-
Notifications
You must be signed in to change notification settings - Fork 11
Quirks of the Visual JSON Editor
The Visual JSON Editor can be an extremely useful tool for building your character files. It takes the plain text of a JSON file, and allows you you to edit it with a simple GUI. However, it is not without some quirks, and so I recommend reading through this article if you plan on using it.
When editing one of the default character files, you might run into a case where you want to expand an object, but are unable to.
This happens when the underlying object is actually null
in the JSON file
There are two options to deal with this issue:
- Replace the
null
with{}
in the JSON file, and reopen it in the editor. This will allow you to expand the object, but everything within the object will also benull
, so fixing this issue for objects within objects can be tedious. - Use the
PopulatedCharacterTemplate.json
as a base for your character. This file is generated within theTNH_Tweaker
folder, and has all necessary fields filled out so you won't run into any objects that can't be expanded.
When the Visual JSON Editor creates a new object, all of the fields of that object are blank. For some variables, such as strings and integers, this is perfectly fine. However, things like enums get converted into null
, which causes the character to be unreadable.
The only fix in this situation is to make sure that all enum fields (any dropdowns) are set to a value