Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modding Tool doesn't parse proper JSON #5

Open
CocoaMix86 opened this issue Jan 26, 2021 · 1 comment
Open

Modding Tool doesn't parse proper JSON #5

CocoaMix86 opened this issue Jan 26, 2021 · 1 comment

Comments

@CocoaMix86
Copy link

I'm working on a GUI editor for easier level editing, and I want to allow it to take in a full fledged leaf/lvl/master/etc file.

However, due to the way the Modding Tool requires the files to be formatted, I can't parse the file in using regular JSON.
Issues with current file format:
-Starts and ends with [ ]
-Not all fields are wrapped in ' (single quotes)
-Does not ignore fields that normally are not there, and instead errors

Suggested fixed:
-remove the beginning and end [ ].
-require all values to be wrapped with single quotes
-skip fields with names it doesn't recognize

The first two definitely, as that puts the files inline with JSON formatting.

With these, my GUI editor and your Modding Tool can exist in harmony.

@CocoaMix86
Copy link
Author

My project can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant