map_icons in TME

Users who are viewing this thread

Jolie Rouge

Recruit
How can I make sure TME loads the module-specific Icons for the world-map? (not Native!!)
I can see castles/forts, but no towns or villages, only their names. And spawn-points.
And map_icons.txt is the correct file?

Be easy on me, I just got started with this.

greetings

Jolie
 
I hope I understand correctly.

-First, you should create your new map icon as models (obj).
-Import it and its texures via OpenBrf and save as brf.
-Then copy paste the brf file to Resource in your mod file. And copy paste the texures to Texures in the same directory.
-Open module.ini and type "load_mod_resource = the brf's name".
-Go to module system and open module_map_icons.py.
-Add your icon's code like this one:
Code:
("city_icon",mcn_no_shadow,"City", 0.45, 0),
-Run build_module.
-Open module_parties.py and find your city's code. You will see something like this:
Code:
("town_1","Sargoth",  icon_town|pf_town, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-17.6, 79.7),[], 170),
-Change icon_town with your icon's name. Don't forget to put icon_ before the name.
-Run build_module.
 
OK, got it so far, but then TME gives me a crash, when I set the editorData/resources.txt to load them.
This is strange, they work in-game, but not with the editor.

greetings

Jolie
 
Back
Top Bottom