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. 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. End of stack trace from previous location where exception was thrown -Īt .Throw()Īt .HandleNonSuccessAndDebuggerNotification(Task task)Īt _28.MoveNext()Īt _13.MoveNext()Īt .InternalRealCall(Delegate callback, Object args, Int32 numArgs)Īt .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 One ore more symbolic links could not be created, please restart tool as Administrator.Īt _Displa圜lass28_0.b_0() Clicking the report button under the post is the fastest way to helps us catch anything that might be in violation of the rules. If you see something that isn't right, report it. Send a message to mod mail before posting if you have questions about what is and isn't allowed.
Frosty mod manager unable to cast object free#
If your information isn't free - you're operating a business and should advertise through reddit. Using the subreddit's subscriber base for financial gain is not allowed. If you wish to advertise, you can do so through reddit. Giveaways promoting another medium (retweet to enter, subscribe to win, etc.) are not allowed. However, when going to launch the game through the mod launcher it initially throws up a pop up saying 'new installation detected' and tells me to allow additional permissions.
Frosty mod manager unable to cast object install#
So recently re-installed MAE and went to install some mods this time around on the Frosty Mod Engine. Read what reddit considers to be acceptable self-promotion here. Frosty Mod Engine 'One or more symbolic links could not be created'. Keep in mind that excessive posting of videos or streams from a channel constitutes as spam and may be removed without warning.
Posts with external content will only be allowed for active and consistent members of our community. We support original content, but we have our limits.
Pictures showing personal information that could lead to doxxing will not be allowed. Posts and comments consisting of racist, sexist or homophobic content will be removed, regardless of popularity or relevance. Anyone posting a picture of a player in their career mode or manager mode named Pablo Escobar as if it were some original joke they've unleashed to the world will be banned on sight. It's not that we don't love memes, it's that they are upvoted enough that they will cover the front page if we don't regulate them a bit. Users may be subject to temporary bans for breaking any of the main subreddit rules, at the sole discretion of the moderators.