MagicJinn
MagicJinn
Explore posts from servers
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
There are certain fundamental things that cannot be easily changed.
21 replies
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
I plan to go the route of games like OpenRCT, Daggerfall Unity and OpenMW. Make the basegame a hard requirement.
21 replies
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
Well, fan remaster, I didn't make the game.
21 replies
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
Remastering
21 replies
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
Recreating a Unity project from an existing game.
21 replies
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
Ah, was looking for that, thanks!
21 replies
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
No description
21 replies
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
The problem is that Unity does not accept these files.
21 replies
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
Nope, that was my mistake, sorry
21 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
Well perhaps Dictionary<string,object> is just the default for JsonFx, as JObject is for Newtonsoft
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
The type specified. So new JsonReader.Read<Dictionary<string,object>> will have JsonFx attempt to deserialize every object into another Dictionary<string,object>.
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
If I'm not wrong, when you deserialize with JsonFx, all nested objects will also deserialize into that type, and arrays will deserialize into lists of that type
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
When you specify Dictionary<string,object>, it'll convert nested objects to JObjects (or List<JObject>), that I know for sure. When I try to patch the existing methods in the game to deserialize into custom classes, I get non-descript errors, but I'm assuming that's what is happening as well. I can't be certain though, and I'd have to do more testing. I've temporarily given up on it though, since for some reason, when using Newtonsoft, seemingly unrelated methods fail spectacularly at random intervals.
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
Yes.
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
I'll test it tho, unless anyone has a better idea.
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
I guess I could recursively cast into the desired type, but I'm not sure what the performance cost of that will be.
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
The game I'm modding sadly relies on JsonFx's behaviour.
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
Well here's the deal, I can adjust my code to work with newtonsoft types, but I can't adjust the code of the game I'm modding, or at least I can't majorly overhaul it.
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
Nope. Net3.5, Unity 2018.
36 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
Because it's generic object and doesn't carry a type in JSON
Well JsonFx and Newtonsoft have different behaviour in this case. JsonFx deserializes nested objects into T or List<T>, and Newtonsoft into JObject and List<JObject>. I'm not entirely sure how the wiki page you sent helps me with that.
36 replies