-
Notifications
You must be signed in to change notification settings - Fork 70
Read File #188
Comments
The JSON api is intended for game saving |
And yeah, DiskOS environment is different than games environment |
Are there any workarounds for that, or will it simply not be supported? I've been enjoying using LIKO-12 as a means of quickly throwing together ideas, but I'd prefer to have some data about entities remain external so as to not clutter my main code file too much, hence the JSON. I totally understand if you don't intend to support it at all given the nature of the fantasy console, but even if there's a somewhat "hackish" way around it I'd be willing to load files in a less than conventional way. |
There's a way, you can use multiple code files, So place your JSON in a code file: JSONDatas["Player 1"] = [[
{}
]] |
Awesome, that should work! Thanks, I'll go ahead and close this. |
Thanks for closing it, feel free to use discord so you can have faster answers from me. |
Is it possible to read a file from a game? There's JSON parsing support, but it seems the fs global isn't available from a cart, so loading an actual JSON file doesn't seem possible (unless I'm missing something).
The text was updated successfully, but these errors were encountered: