Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Circular Reference Issues #11

Open
seraphki opened this issue Feb 8, 2017 · 1 comment
Open

Circular Reference Issues #11

seraphki opened this issue Feb 8, 2017 · 1 comment

Comments

@seraphki
Copy link

seraphki commented Feb 8, 2017

Sometimes I have options that circle back on themselves, and it looks like it might be causing an issue with the Hierarchical JSON output, I assume because it just recurses in on itself.

Do you have a version that is Plain JSON output only? I would suspect that this doesn't have the same issue, and I'm only using the Plain JSON anyway.

PS, Thanks for making this. I'm not too bad with parsers, but Javascript is a mystery to me. My writers really wanted to use Twine and I just needed some way to get that into Unity. JSON works out really well for me.

@cauli
Copy link
Owner

cauli commented Mar 3, 2017

Hey @seraphki, sorry for the late response.

TwineJson generates two versions of output.

In one of them, it tries to build a hierarchical JSON. Circular references are impossible here, and in this case TwineJson will just ignore this output.

The other one is a plain JSON. This one will always be exported.

If you are not getting a Plain JSON output, I suspect this might be caused by another problem. (Probably Issue #10)

Please take a look at Twison, a similar project that may fit your needs. I am not updating this project really often, and honestly there are a lot of things to improve right now.

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

No branches or pull requests

2 participants