I’d like the ability to split the json file into multiple files.
I’d like all scripts to be available as seperate lua files.
Reasoning:
Working with a json file of ~200k lines is a bad and slow experience. Not to mention error prone.
I’d like to use source control like Git to manage my files. It’s currently a merge hell.
Try reading this https://lurey.dev/posts/advanced-tts-mods-on-github/
Proposal:
There are many was of doing this. But the simplest I can think of is to simply replace the current json file with a zip file that contains all the files.
Inside the zip file a main.json file would be the entry point. That json file could use $ref to reference other json files and lua files.
https://github.com/tomprince/tabletop-tools is another implementation of the same idea.
I use https://github.com/rolandostar/tabletopsimulator-lua-vscode to write my code and it bundles everything upon saving. So I can do separate files and git.