Zyllos / tts_ftc_base_lua_scripts

FTC Map Base Lua Scripts
3 stars 2 forks source link

Save json compiler #20

Closed Zyllos closed 3 years ago

Zyllos commented 3 years ago

Removed all the LuaScript strings from the JSON file and created a compile.ps1 PowerShell script which will read all the TTSLUA files for GUIDs, finds the matching GUIDs in the JSON file, then JSON.Encode each TTSLUA file into a string to place into the JSON file.

This allows for the JSON to be updated independently of the TTSLUA updates, allows the JSON to be compiled with any new TTSLUA changes for testing new branches and fixes, and keeps Github from always showing Merge Conflicts for the JSON file as the file won't change every single time a new code update has been introduced.