vegastrike / Assets-Production

Vega Strike - Upon The Coldest Sea Game Data in Engine-Consumable Form
https://www.vega-strike.org
GNU General Public License v2.0
26 stars 15 forks source link

Convert weapon_list to weapons.json #90

Closed royfalk closed 2 years ago

royfalk commented 2 years ago

Including generating script and actual file. Note that this change and the previous one to units will break Wing Commander.

Code Changes:

Issues:

BenjamenMeyer commented 2 years ago

@royfalk @ermo we need something similar for PWCU

royfalk commented 2 years ago

@royfalk @ermo we need something similar for PWCU

Simply run convert.py (weapon_list.xml) and parser.py (units.csv) and it will generate it for you.

royfalk commented 2 years ago

Assuming the weapons.json is correct.

I did not run a complete comparison of the two, but I did spot check and they seem identical. Also, the script is pretty simple so I don't see a lot of places where it can go wrong.

stephengtuggy commented 2 years ago

@royfalk @ermo we need something similar for PWCU

Simply run convert.py (weapon_list.xml) and parser.py (units.csv) and it will generate it for you.

Yeah, I'm working on the units conversion as we speak.

stephengtuggy commented 2 years ago

Here's the draft pull request for the units conversion for PWCU: https://github.com/pwcu/privateer_wcu/pull/9