HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding replaceable textures and team colours?

05-06-2005, 10:08 PM#1
Taur
so i was wondering if i could add more replaceable textures and somehow cause them to change from one to another, e.g. i want to have a different set of team colours, could i add this? and trigger it?

could i add more team colours and glows? so even though there are i think 13 (or 12) colours could i add more, not replace them, but add more? and if so how, and how could i trigger a change?

am i being too vague?
05-07-2005, 01:54 AM#2
johnfn
Yes, you're being to vague... I'm lost...


I think the only way to trigger different colors is to replace the unit with another unit with same model but different skin, though...
05-07-2005, 02:09 AM#3
Taur
no i mean replaceable textures i mean something like when i make a model right, and want to add team colour, i don't type in this huge path, i just leave it like that and it'll change team colour according to his player number, what if i wanted to add more team colours, could i do that? what if i wanted to be able to do the same thing and trigger when that path changes
05-07-2005, 02:13 AM#4
johnfn
Oh, I understand, although how are you going to reference them? You can't exactly say player 18. However, I have a suspicion that those colors are hardcoded into the game. You'd have to do some mpq editing at the very least, but I can't guarentee you anything. I recommend you find someone familiar with the entire layout of the code of the game... good luck...


Meh...sorry if that post was useless...
05-07-2005, 02:14 AM#5
Taur
Quote:
Originally Posted by johnfn
Oh, I understand, although how are you going to reference them? You can't exactly say player 18. However, I have a suspicion that those colors are hardcoded into the game. You'd have to do some mpq editing at the very least, but I can't guarentee you anything. I recommend you find someone familiar with the entire layout of the code of the game... good luck...


Meh...sorry if that post was useless...
didn't expect anything much more useful, it was just a thought,

but i'm okay with MPQ editing, can it be done?
05-07-2005, 03:25 PM#6
Taur
sorry for the double post, but i'd like to get some feedback

anyways i was looking through the MPQ and i saw a whole lot of cool stuff you can change, i just wish i knew JASS better so i could fully understand it

anyways in the triggerdata.txt file i fount

team0=red, west ... something something i forgot...

anyways it goes up to 11 can i add more players without corrupting the file? if so how do i do that? can i just import my newly adjusted triggerdata file into my map and it will automaticall overide it?
05-07-2005, 03:31 PM#7
johnfn
Quote:

anyways in the triggerdata.txt file i fount

team0=red, west ... something something i forgot...

anyways it goes up to 11 can i add more players without corrupting the file? if so how do i do that? can i just import my newly adjusted triggerdata file into my map and it will automaticall overide it?

Wow, thats surprising. Yes, you can override it as long as you use the values that they already set. Just import a file with the same name in the same directory. Good luck with it.
05-07-2005, 03:38 PM#8
Taur
Quote:
Originally Posted by johnfn
Wow, thats surprising. Yes, you can override it as long as you use the values that they already set. Just import a file with the same name in the same directory. Good luck with it.
Thanks, yah but i'm not sure how i would trigger the change you know? It doesn't specify which .blp the team colour uses in the equation thing, but i'm guessing unless stated otherwise in the MPQ it will just keep on adding numbers to the .blp file, i'm gonna have to try that, but i'm really not sure how i could trigger the change...
05-07-2005, 08:12 PM#9
Taur
okay i've run into another problem...

first I edited the trigger data so now i added a 14th player, it goes something like this

color01=something,something, PLAYER_COLOR_RED, something

okay i added another one of that and i changed it from RED to TEST, when i tried that and i properly imported the data (closed and reopened the map too), it disables it, next i noticed for the last colour black for neutral hostile instead of PLAYER_COLOR_RED it has convertplayer(12), so i changed that to convertplayer(13), and did the same in the trigger data.txt that worked, but it works in any map, so it always works in theory, but the colour is always black, i'm now stuck, am i doing something wrong?