Superseded with UnitEditor
Download that instead.
Download: http://www.multiupload.com/MQD1P3TNPU
Or: attachment
What does this do?
First, it sweeps the modeldb code and sorts it out in a nice 'human way'. It accepts any kind of .modeldb file, so it doesn't matter if you are using the formatted files or un-formatted ones.
The programs output will mostly look like this, with numbers in red computed automatically:
11 condottieri
1 3
56 unit_models/_Units/EN_Pplate_Plate/condottieri_lod0.mesh 121
56 unit_models/_Units/EN_Pplate_Plate/condottieri_lod1.mesh 1225
56 unit_models/_Units/EN_Pplate_Plate/condottieri_lod2.mesh 6400
1
4 merc
72 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_mercs.texture
73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture
40 unit_sprites/merc_Condottieri_sprite.spr
1
4 merc
65 unit_models/AttachmentSets/Final Heater Special_merc_diff.texture
65 unit_models/AttachmentSets/Final Heater Special_merc_norm.texture 0
1
5 Horse
13 MTW2_HR_Lance
13 MTW2_HR_Sword
2
21 MTW2_HR_Lance_Primary
14 fs_test_shield
2
18 MTW2_Sword_Primary
14 fs_test_shield
16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 (or -1 0 0 0 0 0 0 for mounts)
The serialization number will also get updated.
Second, the program will ask you if you want to check for files that are referenced by the modeldb but are missing from the directory structure. Trying to load the battlemap with a missing texture\attachement will lead to a CTD.
Third, You can check for any file not referenced by the modeldb, but inside the directory structure. Such files are mostly leftovers and only make the mod folder bigger, an option to automatically remove the files will show up as a yes/no (first view the unneeded.txt tho).
Run it from within unit_models.
This does not overwrite any of your files, it will simply create a mdb.txt file which you can use or compare with you base modeldb file.
Although this tool is highly resistant to "mistakes", it does not work miracles and if the structure of your modeldb file is highly damaged it will not be able to work properly.
It's best used when merging a lot of different unit roosters, and you just have to copy the relevant text strings, without worrying about faction/string counts.





Reply With Quote













































