MagicJinn
MagicJinn
Explore posts from servers
CC#
Created by MagicJinn on 11/4/2024 in #help
ILSpy decompiles namespaces incorrectly
I'm having an issue where ILSpy is decompiling scripts like this:
namespace Sunless.Game.AI;

public class HuntingPlus : AIBehaviour{ code here }
namespace Sunless.Game.AI;

public class HuntingPlus : AIBehaviour{ code here }
Instead of
namespace Sunless.Game.AI
{
public class HuntingPlus : AIBehaviour{ code here }
}
namespace Sunless.Game.AI
{
public class HuntingPlus : AIBehaviour{ code here }
}
Which is a big issue for the around 1000+ scripts it generates. I cannot fix it all manually. Did I configure something wrong?
21 replies
CC#
Created by MagicJinn on 10/21/2024 in #help
Force Newtonsoft to deserialize into certain formats
I've been using JsonFx for a bit now and am trying to migrate away to Newtonsoft, but the biggest problem I've faced is that when you deserialize into Dictionary<string,object>, and the object is another nested object, it'll become a JObject. Is there any easy way to force Newtonsoft to deserialize T or List<T> (depending on the data), instead of JObject for all nested objects?
36 replies
CC#
Created by MagicJinn on 10/15/2024 in #help
Utf8Json or Jil for Net3.5
Hey there! I'm trying to improve the performance of a game made in an older version of Unity that uses Net 3.5, and want to find a better JSON serializer and deserializer (current is JsonFx). I read about Utf8Json and Jil, but there don't seem to be any 3.5 versions available, even though I have read several articles and StackOverflow posts that mention them. Any help is much appreciated!
37 replies