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

Weltmeister produces invalid level JSON #90

Open
Joncom opened this issue Dec 16, 2021 · 0 comments
Open

Weltmeister produces invalid level JSON #90

Joncom opened this issue Dec 16, 2021 · 0 comments

Comments

@Joncom
Copy link
Collaborator

Joncom commented Dec 16, 2021

Weltmeister will produce invalid level JSON if a double-quote is used anywhere in the settings of one of your entities.

For example: Say you have an Entity called EntityText, and it has a text property with a value of "Hello". These double-quotes will seem to work fine, but when you save, the JSON produced will be invalid. And when you refresh and try to reload the level, the level will not parse.

This is caused by a bug in JSONFormat:

var dataString = JSON.stringify(data);
if( wm.config.project.prettyPrint ) {
dataString = JSONFormat( dataString );
}

Bug details and a fix can be found here: phoboslab/json-format#2

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