Change Icon of CP
Moderator: Moderators
- commanderawesome
- Field Commander

- Posts: 971
- Joined: Tue Aug 13, 2013 11:58 pm
- Projects :: Skin Changer - Warfront - Other stuff
- xbox live or psn: AaTc_CmdrAwesome
- Location: The Universe
Change Icon of CP
Is it possible to change the icon of an individual command post? Thanks in advance.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Change Icon of CP
If you mean to change the icons of one command post but leave the other command post icons as they are, the answer is most likely not. The reason why not is because you can't change the name of the msh each team's icon uses; they have to be either com_icon_alliance, com_icon_cis, com_icon_imperial, or com_icon_republic. There *might* be some weird way to do it, but don't count on it.
EDIT:
So apparently, according to this post, you *can* actually change the name of the msh files used, but it's still...weird, mainly due to the second argument in the HoloImageGeometry parameter. You *might* try using a line like this in your map's Lua script, but don't necessarily count on it working:
Obviously, you'd change cpname to the name of the CP whose icon you wish to change, new_msh_name to the name of the new icon msh, and teamstr to the ID of the team whose icon you want to change: alliance, cis, empire, or republic. If you want to affect multiple teams, duplicate that SetProperty line for each team whose icon you want to change and change teamstr to the appropriate ID.
EDIT:
So apparently, according to this post, you *can* actually change the name of the msh files used, but it's still...weird, mainly due to the second argument in the HoloImageGeometry parameter. You *might* try using a line like this in your map's Lua script, but don't necessarily count on it working:
Code: Select all
SetProperty("cpname", "HoloImageGeometry", "new_msh_name teamstr")- commanderawesome
- Field Commander

- Posts: 971
- Joined: Tue Aug 13, 2013 11:58 pm
- Projects :: Skin Changer - Warfront - Other stuff
- xbox live or psn: AaTc_CmdrAwesome
- Location: The Universe
Re: Change Icon of CP
I meant on the mini-map, sorry.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Change Icon of CP
...Oh. Yeah. Lol. Probably. Just do SetProperty("cpname", "MapTexture", "texturename") then. (Of course change texturename to the name of the TGA.) It *should* work with individual CPs.
- commanderawesome
- Field Commander

- Posts: 971
- Joined: Tue Aug 13, 2013 11:58 pm
- Projects :: Skin Changer - Warfront - Other stuff
- xbox live or psn: AaTc_CmdrAwesome
- Location: The Universe
Re: Change Icon of CP
The texture has to be from "interface", right?Marth8880 wrote:...Oh. Yeah. Lol. Probably. Just do SetProperty("cpname", "MapTexture", "texturename") then. (Of course change texturename to the name of the TGA.) It *should* work with individual CPs.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Change Icon of CP
Doesn't matter where the texture's stored - they're just files in folders. It could be in a folder called "Jar_Jar_Binks_XRated_Deleted_Scenes" and the mod tools wouldn't care. As long as the texture's loaded before the stock ingame.lvl in the LUA, anything goes.
Tutorial for creating a custom ingame.lvl (so you have something to store and load your texture in): http://www.gametoast.com/viewtopic.php?f=27&t=12600
Tutorial for creating a custom ingame.lvl (so you have something to store and load your texture in): http://www.gametoast.com/viewtopic.php?f=27&t=12600
- commanderawesome
- Field Commander

- Posts: 971
- Joined: Tue Aug 13, 2013 11:58 pm
- Projects :: Skin Changer - Warfront - Other stuff
- xbox live or psn: AaTc_CmdrAwesome
- Location: The Universe
Re: Change Icon of CP
Well, it's not working for me. Do you have to include the extention?
Here's the code I used:
SetProperty("cp1", "MapTexture", "rep_icon")
Here's the code I used:
SetProperty("cp1", "MapTexture", "rep_icon")
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Change Icon of CP
No. How are you loading the texture? Could you post the map's LUA as well as the REQ in which you're loading the texture?
- commanderawesome
- Field Commander

- Posts: 971
- Joined: Tue Aug 13, 2013 11:58 pm
- Projects :: Skin Changer - Warfront - Other stuff
- xbox live or psn: AaTc_CmdrAwesome
- Location: The Universe
Re: Change Icon of CP
I forgot about that. It still doesn't show up, however.Marth8880 wrote:Could you post the map's LUA as well as the REQ in which you're loading the texture?
Mission scripts:
CW:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
