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
Choice tags are gone after state reloading #1022
Comments
I extended my example a bit. If I continue the story from the reloaded state, then later choices don't have the same problem. It's only the choice at which I saved the state.
Output:
|
Shepard
added a commit
to Shepard/inkjs
that referenced
this issue
Aug 5, 2023
Choice tags were missing in serialisation and deserialisation of state to/from JSON. Fixes y-lohse#1022
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have a story with tags on choices. I can find these on the choice objects initially. But when saving the state at a choice to JSON and then later reloading the story state from that JSON (in a fresh Story object), there are no tags on the choice objects anymore.
To Reproduce
Output:
Expected behavior
The console.log statements before and after state reloading should provide the same output. However
choices[0].tags
is[ 'just some tag' ]
before andnull
after.Environment
The text was updated successfully, but these errors were encountered: