Changing Flag Textures
Moderator: Moderators
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Changing Flag Textures
I went into Common and found the flag models and textures, and I changed com_icon_ctfflag_rep_cis.tga and com_icon_ctfflag_neutral.tga as those are the textures I believe are used in 2-flag CTF. However, after editing the textures, there was no difference in game.
I've tried cleaning and renaming the flags. The texture is still unchanged. Anyone know how to change the texture? (Or should I just make a new flag and use the same model?)
I've tried cleaning and renaming the flags. The texture is still unchanged. Anyone know how to change the texture? (Or should I just make a new flag and use the same model?)
-
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: Changing Flag Textures
Are you loading the textures in a custom ingame?
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Changing Flag Textures
I wasn't before, but now I am, and I think that the textures are properly loaded in the ingame, but I'm unsure. (They don't show up in the game)
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Changing Flag Textures
Did you edit your lua file(s) to load this custom ingame.lvl? If so, how did you do it? And did you remember to manually move the custom ingame.lvl file to your map's _LVL_PC folder after munging?
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Changing Flag Textures
Yes and yes.
In the lua, the flags are loaded in before the ingame.lvl is. Does this have any relation to the textures being loaded in? The dc:ingame.lvl is still before the ingame.lvl, so my custom textures should be loaded before the default ones.
In the lua, the flags are loaded in before the ingame.lvl is. Does this have any relation to the textures being loaded in? The dc:ingame.lvl is still before the ingame.lvl, so my custom textures should be loaded before the default ones.
-
kinetosimpetus
- Imperial Systems Expert

- Posts: 2381
- Joined: Wed Mar 25, 2009 4:15 pm
- Projects :: A secret project
Re: Changing Flag Textures
Try loading the custom textures after the stock ones.
- Nedarb7
- Lieutenant General

- Posts: 676
- Joined: Sat Sep 22, 2012 3:41 pm
Re: Changing Flag Textures
Just out of curiosity, doesn't the flag get loaded in with the map? If so wouldn't make sense to loadkinetosimpetus wrote:Try loading the custom textures after the stock ones.
the custom ingame.lvl after the map is loaded? That's just my thought on this.... I know that loading a side after a map can override terrain, object, and sky textures.
-
kinetosimpetus
- Imperial Systems Expert

- Posts: 2381
- Joined: Wed Mar 25, 2009 4:15 pm
- Projects :: A secret project
Re: Changing Flag Textures
I'm not sure, but textures loaded later override previously loaded ones.
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Changing Flag Textures
Alright, so after trying out a ton of stuff, I've managed to turn the allied flag green with a different pattern. I have not seen that specific pattern anywhere. Even when I don't load my custom ingame.lvl, it is still green. I have edited no textures that could have made it green. The only texture that I've seen with green in it is a green on one side and red on the other side both fading out to become completely transparent.
I've tried loading my ingame.lvl in a ton of places and also edited it so it includes everything related to flags, yet my new textures do not show up! I've also done many cleans, but no manual cleans for a while.
My conclusion from all of this is that my ingame.lvl is either not loading the textures properly or not being loaded. Here's my lua and current ingame files:
ingame.req
M13c_ctf.lua
After examining my lua, I've also concluded that IF I add the commented lines back in at the top, the allied flag texture returns to normal. I'm not sure what this means for my custom flag texture, though. I'm thinking I could edit the model so it calls for a differently named texture and then use the mentioned parameter to set the flag to use the edited model.
Hidden/Spoiler:
My conclusion from all of this is that my ingame.lvl is either not loading the textures properly or not being loaded. Here's my lua and current ingame files:
ingame.req
Hidden/Spoiler:
Hidden/Spoiler:
Last edited by Noobasaurus on Tue May 14, 2013 8:05 pm, edited 2 times in total.
-
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: Changing Flag Textures
Try removing the line "ColorizeByTeam" (or something).
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Changing Flag Textures
This line?
I set it to zero, and now when the flag is dropped on the ground it has the neutral texture but red. The green texture above was actually the neutral texture, but green. Is there any way to set an object's texture via lua? I'm assuming it's:
I'm going to test it.
EDIT: It seemed to do nothing. However, in the bug log it said that the textures were already loaded in a different file. So now I loaded my custom ingame after the regular one and now all of the ally textures are green neutral and all of the enemy textures are red neutral. Meaning they use the neutral flag design but different colors. Before, when I picked up the flag it would turn yellow neutral but now it stays the same. The question is now, how do I turn this into a custom texture?
EDIT2: I just tried using
on all the flag odfs. It didn't work. Going in for round 2.
EDIT3: Ok, so I thought it wasn't working because I didn't load in the edited flag odfs with ingame.lvl, but now they're loaded in the ingame.lvl and still no new textures.
EDIT4: Good news! I finally got the flag to want to use a different named texture! However, the texture does not show up in the game.
Code: Select all
SetClassProperty("com_item_flag", "DroppedColorize", 0)Code: Select all
SetClassProperty("objectname", "TextureName", "nameoftexture")EDIT: It seemed to do nothing. However, in the bug log it said that the textures were already loaded in a different file. So now I loaded my custom ingame after the regular one and now all of the ally textures are green neutral and all of the enemy textures are red neutral. Meaning they use the neutral flag design but different colors. Before, when I picked up the flag it would turn yellow neutral but now it stays the same. The question is now, how do I turn this into a custom texture?
EDIT2: I just tried using
Code: Select all
OverrideTexture = "com_icon_ctfflag_fun"EDIT3: Ok, so I thought it wasn't working because I didn't load in the edited flag odfs with ingame.lvl, but now they're loaded in the ingame.lvl and still no new textures.
EDIT4: Good news! I finally got the flag to want to use a different named texture! However, the texture does not show up in the game.
