Closed Olipro closed 11 months ago
Thanks for reporting I found the culprit. Should be fixed as soon https://github.com/ayecue/greybel-vs/pull/90 gets merged. I'll give another update once that's done.
https://github.com/ayecue/greybel-vs/pull/90 got merged. Can you please confirm it that fixed the issue for you?
Confirmed working. Thanks!
Hi, me again!
I use a JSON parser lib originally written by the author of MiniScript. This script works fine in-game, however, when running in Greybel, there is some strange corruption going on:
_eol
variable in the JSON source.[]
for no reason I can fathom. This does not happen inside the game, everything is serialised to valid and correct JSON. At a guess, I would suspect it is related to when the JSON lib escapes strings, but I really am just guessing.This is a snippet of code to reproduce the issues:
Here is the JSON lib - note that I have already changed the
_eol
var in this source, so ensure you change it back if you wish to debug issue 1 (line 296) - https://gist.github.com/Olipro/2eebcca9fae6d70398ca9bdd7ce3eb64