Closed WithLithum closed 3 years ago
When the colors are loaded, the custom converter is used.
When they are saved, the converter is not used.
Also, a quick warning: Setting the color of the user will permanently override the color that the user has set. If you are trying to set it temporarily, then I should probably make Apply(Color)
public.
Sorry for bad English.
To be clear, I'm using the latest release version of the mod, and also the NuGet package for developer reference.
I'm working on a mod called NAL, and replaced internal Money, Weapons Inventory mechanism from NAL's own save file to PlayerCompanion. However, when I'm using
and then reload all scripts from console,
Companion
script crashes. When I looks into log, it shows Newtonsoft.Json caused the exception:When I checks the
Colors.json
, it looks like this:It doesn't looks like the new format. I have to manually correct it to
to prevent the crash from happening. Some exception messages has been translated to help you better understand this issue.