Hello,
I am very interested in this plugin, but since I am not a very good artist, I thought I could contribute in another way.
I wrote a quick little utility to read through your raw files, and then generate export files with the item subtype numbers. Hopefully this helps somebody when they are crafting their overrides.txt file.
it was written in AHK, so unfortunately it is windows only. It isn't very complex, so I'm sure somebody with more knowledge than me could make it for something else.
The download for it is here:
http://dffd.wimbli.com/file.php?id=9086The download contains the source code, and a compiled EXE that should work for anybody on Windows XP - 8.1.
How To Use:- Run the script or executable
- Point the dialog box to your RAW\OBJECTS folder.
- Point the next dialog box to the folder you would like the export files to be generated.
- Give the script the prefix you would like all of your export files to start with. For instance, 'ModName' would result in: ModName-Ammo.txt, ModName-Tools, etc
- Make awesome tilesets!
Example:I want to add more instruments to the game. I create a new file called 'item_instrument_CustomAdded.txt', and populate it. I now have 2 raw files with instruments in them, item_instrument.txt (the default one), and item_instrument_CustomAdded.txt.
item_instrument
[OBJECT:ITEM]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_FLUTE]
[NAME:flute:flutes]
[HARD_MAT]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
[NAME:trumpet:trumpets]
[HARD_MAT]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_HARP]
[NAME:harp:harps]
[HARD_MAT]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_DRUM]
[NAME:drum:drums]
[HARD_MAT]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_PICCOLO]
[NAME:piccolo:piccolos]
[HARD_MAT]
item_instrument_customadded
[OBJECT:ITEM]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_FLUTE_Of_Wind]
[NAME:flute of the wind:flutes]
[HARD_MAT]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_TRUMPET_of_guts]
[NAME:trumpet of guts:trumpets]
[HARD_MAT]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_HARP_of_Shredding]
[NAME:harp of shredding:harps]
[HARD_MAT]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_DRUM_Of_Bludgioning]
[NAME:drum of bludgioning:drums]
[HARD_MAT]
[ITEM_INSTRUMENT:ITEM_INSTRUMENT_PICCOLO_of_marching]
[NAME:piccolo of marching:piccolos]
[HARD_MAT]
item_instrument.txt
item_instrument_CustomAdded.txt
0 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_FLUTE]
1 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
2 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_HARP]
3 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_DRUM]
4 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_PICCOLO]
5 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_FLUTE_Of_Wind]
6 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_TRUMPET_of_guts]
7 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_HARP_of_Shredding]
8 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_DRUM_Of_Bludgioning]
9 [ITEM_INSTRUMENT:ITEM_INSTRUMENT_PICCOLO_of_marching]
I tested this on masterwork mod partly because it has a complex raw load order with multiple files for item types, but mostly because he has already counted the item subtypes in his raw files, and it made it easy to check my work.
Thanks to Meph for help with figuring out how Dwarf Fortress loads files. Good luck if you ever try to add custom artwork to all of the Tools! I found 900+...
Hope this helps somebody! If you have any questions, feel free to PM me. I'll start a thread for it if need.