Once attrib SGA files are converted to Lua in Corsix, this tool will parse attrib directories into JSON.
Currently parses the following attrib directories:
-
abilities -
ebps -
sbps -
upgrade -
weapon -
slot_item -
dot_type -
tables -
damage -
critical -
critical_combo
Also parses the following OMGmod const scar files:
omg_unit_const.scaromg_ability_upgrade_const.scar
Requires Python3
- Expects
./attribsto have all attrib.luafiles - Expects
./conststo have all consts.scarfiles
- Create a python virtualenv
python3.11 -m venv venv - Activate the virtual env
source venv/bin/activate - Install dependencies
pip install -r requirements.txt - Create an output folder
./json - Run the script
python parse_attribs_to_json.py
Writes each parsed attrib directory or const scar file to its own JSON file in the /json directory.