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

Debugger .dll breaks TTS onSave() with non-identifier character TTS Object names #5

Open
mikerieser opened this issue Oct 21, 2024 · 0 comments

Comments

@mikerieser
Copy link

mikerieser commented Oct 21, 2024

I love the debugger! Thank you for all the work you put into it and sharing it for others to use as well!

Only, there seems to be a bug related to TTS Object names saving incorrectly when the name contains "special characters."
The effect is that you can "Save" the TTS game to disk. Then when you "Load" the saved game, the StateScript for the object is empty.

Here is what I think is going on. The JSON is encoding and decoding properly. I think (but am not certain), that the game is saving the encoded JSON into a field in a table, but the field name is taken from the object name and it isn't a valid Lua identifier so it balks. There is no error and Save and Load seem to go okay, only the object's state doesn't get restored and the JSON is empty.

Save and Load work with the regular game, but breaks as above with the Debugger .dll.
The object I detected this with has the following object name pilotName = '"Howlrunner"', his call-sign has double-quotes in the name. If I strip the double-quotes (or convert them to '_'), it works. If I don't use the Debugger, it works. Hence why I'm reporting here.

Thanks again!

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