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

Json parse error on weird module id's #4

Closed
ELadner opened this issue Feb 3, 2019 · 9 comments
Closed

Json parse error on weird module id's #4

ELadner opened this issue Feb 3, 2019 · 9 comments

Comments

@ELadner
Copy link

ELadner commented Feb 3, 2019

Occasionally the toolset generates bizarre module id's that don't convert both ways with the tools. Converting from GFF -> JSON works fine. Ths error occurs when converting back to GFF.

Error: unhandled exception: ./ifo/module.ifo.json(2693, 19) Error: { expected [JsonParsingError]

  "Mod_ID": {
    "type": "void",
    "value": "ÿÿÿÿ^A^@^@^@^@^@^@^@ã^A^@^@"
  },

That's /////wEAAAAAAAAA4wEAAA== in base64 or the binary below:

11111111 11111111 11111111 11111111 
00000001 00000000 00000000 00000000 
00000000 00000000 00000000 00000000 
11100011 00000001 00000000 00000000
@ELadner
Copy link
Author

ELadner commented Feb 3, 2019

This happens occasionally on weird non-printable color tags, too, I think.

@niv
Copy link
Owner

niv commented Feb 3, 2019

This might be an issue with the json library. It really should escape these things. Hmm.

Regardless, Mod_ID is unused so as a quick workaround you can just strip it out.

@niv
Copy link
Owner

niv commented Feb 4, 2019

Can you retry on nim 0.19.4, which was released today? Or will you require binaries?

Edit: It might require re-generating module.ifo.json from gff.

@ELadner
Copy link
Author

ELadner commented Feb 5, 2019 via email

@ELadner
Copy link
Author

ELadner commented Feb 5, 2019 via email

@niv
Copy link
Owner

niv commented Feb 5, 2019

Gah. Can you send me the failing .ifo file, please? To my work email is fine if you don't want to post it here publicly.

@ELadner-cvx
Copy link

the e-ix.net address? I'll send something tonight.

@ELadner
Copy link
Author

ELadner commented Feb 5, 2019

module_ifo.zip

Attached is a test module that has a similar issue (module and JSON produced by nwn_gff)

@niv
Copy link
Owner

niv commented Aug 17, 2020

Should be fixed as of 1.3.1

@niv niv closed this as completed Aug 17, 2020
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

3 participants