Since Ruthven stole my BLAM on Monday, I've been busy on some new BLAM.
I got tired of dealing with the uber hard to read item tuples so I wrote a pair of scripts to go to and fro. There's a script that will chug through your item_kinds1.txt file and create a CSV file and a sibling script that will chug through the generated CSV and spit out proper tuples that you can then paste into module_items.py. For those of you who started out hacking text files like I did, you can now import your item hacks into the module system with relative ease.
For more BLAMmage: http://www.mbrepository.com/file.php?id=1156
As a test of effectiveness, I ran both scripts on my mod's data, copied the new tuples into module_items.py, compiled everything, and then diffed the results against the old item_kinds1.txt. The only issues were a bug (!) in the original tuples for itm_plate_covered_round_shield (missing its type) and places where the original code stuffed a zero in damage type but with a proper damage type.
Limitations:
- Tableaus are hard to edit in the CSV file because my handling of them is a hack (sorry).
- A handful of itc_ flags are identical (e.x. itc_pike and itc_greatlance) and I'm far too lazy to parse the name of the item to make them match up. They're functionally equivalent and you can fix them in the CSV if you so desire.
- It's in Ruby which I'm guessing a lot of y'all don't have installed. I dislike Python, sorry. If someone wants to port it, feel free.
- Not exactly user-friendly but user-friendlier than dealing with the unformatted disaster that is module_items.py.
If you use these scripts and find bugs, PM me or email me.
I got tired of dealing with the uber hard to read item tuples so I wrote a pair of scripts to go to and fro. There's a script that will chug through your item_kinds1.txt file and create a CSV file and a sibling script that will chug through the generated CSV and spit out proper tuples that you can then paste into module_items.py. For those of you who started out hacking text files like I did, you can now import your item hacks into the module system with relative ease.
For more BLAMmage: http://www.mbrepository.com/file.php?id=1156
As a test of effectiveness, I ran both scripts on my mod's data, copied the new tuples into module_items.py, compiled everything, and then diffed the results against the old item_kinds1.txt. The only issues were a bug (!) in the original tuples for itm_plate_covered_round_shield (missing its type) and places where the original code stuffed a zero in damage type but with a proper damage type.
Limitations:
- Tableaus are hard to edit in the CSV file because my handling of them is a hack (sorry).
- A handful of itc_ flags are identical (e.x. itc_pike and itc_greatlance) and I'm far too lazy to parse the name of the item to make them match up. They're functionally equivalent and you can fix them in the CSV if you so desire.
- It's in Ruby which I'm guessing a lot of y'all don't have installed. I dislike Python, sorry. If someone wants to port it, feel free.
- Not exactly user-friendly but user-friendlier than dealing with the unformatted disaster that is module_items.py.
If you use these scripts and find bugs, PM me or email me.