Change the map Party skin

正在查看此主题的用户

Velandor

Recruit
Hi, i wanna make a simple question :grin:

I dont like the skin of the Player party unit in the map, i wanna change it by one of the other skins, how will i do it?

thanks :grin:

 
You need to modify the map_icons.txt or map_icons.py (module system)

here's the line from map_icons.txt
    player_horseman 0 player_horseman 0.150000 43 0.150000 0.173000 0.000000 0

that could be switched to a different icon like "knight_a" or a castle.  :wink:
 
not too difficult to change the skins, or even make new one, and add them in python.

1. first, using BRF Editor, open the map_icon_meshes.brf filr found in the m&b main CommonRes folder. look at it - the materials assignment is map_icons; you could pull the material out and look at the texture, but i'll save you the hassle. the graphics file is map_icons.dds

2. save the map_icon_meshes.brf to your mod directory under a different name. i use mod_map_icons.brf

3. now open the mod directory mod_map_icons.brf file and change all the names to whatever you want. if they remain unchanged, when the mod opens you'll get a warning of 'attempt to re-register whatever' and the game will close. i rename all my stuff whatever_maw. save it. you should get a question whether you want to add it to the mod. say yes, and it'll append and look for that file when the games starts next.

now, the fun part...

4. locate and open, the map_icons.dds file found in the m&b main directory Textures. save it to your mod Textures folder under a new name - i would use map_icons_maw.dds. close it.

5. open that file up fro the mod's Texture file, send it to the editor, and mix and match cut and paste. save/reload/check whatever. load up the mod_map_icons.brf file and see what you've done. you'll figure out what graphic connects to what icon.

6. when its all looking good, open up your module_map_icons.py file, then copy the line you've edited, save it in the file, and give it the same new name you have in you're mod_map_icons.brf file. for instance, if you edited the graphic that was originally the gray knight, then copy:

  ("gray_knight",0,"knight_a", avatar_scale, snd_gallop, 0.15, 0.173, 0),

changing the red to your new name, and the brf address which is from the mod_map_icons.brf file (noted in blue).

7. change or add any and all others.

and, le piece de resistance...

8. open up the module_party_templates.py file. icon names are assigned by the prefic icon_whatever.... so if you want to change that party's icon, it happens here.

9. save, build, debug, debug, debug, curse maw, reinstall native, curse maw, build, debug, find that comma that shouldn't be there, curse youself, build, see that its 3 am, start, play skip school or work, curse maw, ad infinitum.

there ya have it.

and no, i don't text edit party_templates, though with some added complication, it can be done. maw
 
thanks a lot!!, i'm gonna try it :grin:


9. save, build, debug, debug, debug, curse maw, reinstall native, curse maw, build, debug, find that comma that shouldn't be there, curse youself, build, see that its 3 am, start, play skip school or work, curse maw, ad infinitum.<----------------------------------- xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
 
后退
顶部 底部