Sorry, we don't support your browser.  Install a modern browser

Make multiple files a "first class citizen"#817

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.

3 years ago
1

https://github.com/tomprince/tabletop-tools is another implementation of the same idea.

3 years ago

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.

3 years ago