![frosty mod manager unable to cast object frosty mod manager unable to cast object](https://cdn.appuals.com/wp-content/uploads/2019/11/2-Run-Frosty-Mod-Manager-As-Administrator.jpg)
(Some teams had 90+ GD after the end of the season so now that should be fixed).
![frosty mod manager unable to cast object frosty mod manager unable to cast object](https://nfsmods.xyz/userdata/Hypercycle/HPRCYCLsq.png)
Ability to train stats such as sprint/acceleration(use the penalty training: ).Improved player growth so that player who performs, trains and play more regularly improves further than player who do not.Throw new InvalidOperationException("tiles != null & tiles.GetLength(0) != value.GetLength(0) || tiles.GetLength(1) != value. If (tiles != null & tiles.GetLength(0) != value.GetLength(0) || tiles.GetLength(1) != value.GetLength(1)) Note that the parameter name discoveredTiles must be the same as the corresponding serialized property name.Īdd a private or protected setter for discoveredTiles and mark it with : Throw new InvalidOperationException("tiles.GetLength(0) != discoveredTiles.GetLength(0) || tiles.GetLength(1) != discoveredTiles.GetLength(1)") If (tiles.GetLength(0) != discoveredTiles.GetLength(0) || tiles.GetLength(1) != discoveredTiles.GetLength(1)) Ensure the tiles and discoveredTiles arrays have the same sizes If (tiles = null || discoveredTiles = null) Protected WorldInstance(WorldTile tiles, bool discoveredTiles) You have two workarounds for this problem:Īdd a protected constructor to WorldInstance that includes a bool discoveredTiles argument and mark it with, for instance: (Note that the tiles property will get deserialized by passing it to the constructor, matching the JSON property name to the constructor argument name.)įor a 1d array property, the exception thrown explains this problem: System.NotSupportedException: Collection was of a fixed size.Īt `1.Add(T item) in C:\Development\Releases\Json\Working\Newtonsoft.Json\Working-Signed\Src\Newtonsoft.Json\Utilities\CollectionWrapper.cs:line 76Īt `1.(Object value) in C:\Development\Releases\Json\Working\Newtonsoft.Json\Working-Signed\Src\Newtonsoft.Json\Utilities\CollectionWrapper.cs:line 194Īt .CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor`1 creator, String id) in C:\Development\Releases\Json\Working\Newtonsoft.Json\Working-Signed\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 2030īut for a 2d array the less illuminating InvalidCastException is thrown.
![frosty mod manager unable to cast object frosty mod manager unable to cast object](https://i.ytimg.com/vi/9n4CYZO7vVs/maxresdefault.jpg)
This is currently not implemented even if the array is pre-allocated and has the same length as the JSON array, since Json.NET will try to add deserialized items to the pre-allocated array, which is of course impossible. Your problem is that you are trying to make Json.NET deserialize a get-only array property discoveredTiles, as is shown in the following simplified version of your class: public class WorldInstance