Direct material assignment
In short, new export tool now exports text material list, and you can edit this file, and it will be used on import. Now if you just export any model and import it back, it will work, and materials will not be changed.
So the process is now:
- export .model with new spiderman_pc_model.exe
- edit the model or make a new one
- edit materials list
- use spiderman_pc_mi.exe tool as before
Now on a last step, if there is "materials.txt" file with same name as .model file, import tool will assign materials to meshes according to that list. Or if no such file, in natural order like before.
If you dont want to re-export a model, you can make such material list in text editor.
You can edit this file as you like, but don't delete the 1st line "Materials used:".
For convenience, you can delete lines, or move them above/below. Names are not needed, you can just set numbers. The tool only reads numbers in first list, everything else is ignored. Slots in 2nd list are only for reference.
Note that materials can repeat.
p.s. if blender will still somehow mess up meshes order, you will have to rename them, but hopefully this will not happen, because tool now names them with leading zeroes and without underscore.