Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [EUD] Change player color
[EUD] Change player color
Jan 4 2018, 1:06 am
By: Wormer  

Jan 4 2018, 1:06 am Wormer Post #1



A quick question here. I can't understand if it is now possible to change player's color on the fly using EUDs?



Some.

Jan 4 2018, 9:52 pm Pauper Post #2



I tried to play around with it last night without success (I really had no clue what I was doing, I probably was doing it wrong). I got the error message that the map has an invalid EUD in it and the game closed.



Alias: Oo.Pauper.oO - Mp)Madness - Bitz - p00pyjoel

Jan 4 2018, 10:17 pm T-warp Post #3

Unlimited N-word pass winner

Try messing with it in 1.16.1 with a memory editor (i.e. cheat engine). If you succeed, try making EUD triggers for your changes.




Jan 4 2018, 11:10 pm Suicidal Insanity Post #4

I see you !

Even if you change the player's color on the fly, it will not update the graphics. You will also need to update the sprites color setting. I vaguely remember an example where somebody was doing that here a few weeks ago.




Jan 4 2018, 11:32 pm Wormer Post #5



That's interesting! seems doable if all I need is to change color of 1-2 units.



Some.

Jan 5 2018, 5:41 am safhfh Post #6



Quote from Wormer
That's interesting! seems doable if all I need is to change color of 1-2 units.

You can do it easily by using euddraft



Or you can change all of the unit




Post has been edited 1 time(s), last time on Jan 5 2018, 6:04 am by safhfh.



None.

Jan 5 2018, 6:23 pm Gambler Post #7



Address "0x581D74 + 8 * player" holds the value of player`s color in 3-4th byte.
Address "0x581DD0" holds the value of minimap color.



None.

Jan 5 2018, 7:49 pm O)FaRTy1billion[MM] Post #8

👻 👾 👽 💪

Even if you change the player's color on the fly, it will not update the graphics. You will also need to update the sprites color setting. I vaguely remember an example where somebody was doing that here a few weeks ago.
That only stores which player's color to use. If you edit a particular player's color, all of the units with their color will change accordingly.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jan 5 2018, 8:07 pm Suicidal Insanity Post #9

I see you !

Quote from O)FaRTy1billion[MM]
Even if you change the player's color on the fly, it will not update the graphics. You will also need to update the sprites color setting. I vaguely remember an example where somebody was doing that here a few weeks ago.
That only stores which player's color to use. If you edit a particular player's color, all of the units with their color will change accordingly.

Oh ok. That's actually what I do in scmdraft, but I thought starcraft stored the color directly.




Jan 5 2018, 8:45 pm MTiger156 Post #10

Veteran Mapper

Quote from Gambler
Address "0x581D74 + 8 * player" holds the value of player`s color in 3-4th byte.
Address "0x581DD0" holds the value of minimap color.
I've played around with those addresses, made some really distorted colors. I need some hints for making the P1-P12 colors.
Edit: This might be a silly question...




Jan 6 2018, 4:23 am Gambler Post #11



Quote from MTiger156
Quote from Gambler
Address "0x581D74 + 8 * player" holds the value of player`s color in 3-4th byte.
Address "0x581DD0" holds the value of minimap color.
I've played around with those addresses, made some really distorted colors. I need some hints for making the P1-P12 colors.
Edit: This might be a silly question...

P1-P12`s color codes => 111, 165, 159, 164, 156, 19, 84, 135, 185, 136, 134, 51
EPD(0x581D74 + 8 * player) = -8572 + 2*player

SetDeaths(-8572 + 2*player, SetTo, color code * 65536, 0) <- Use this action

If you want to change P1`s color to blue(P2`s), you can add the action SetDeaths(-8572, SetTo, 10813440, 0) in your map.



None.

Jan 12 2018, 1:51 pm T-warp Post #12

Unlimited N-word pass winner

It's now fully supported in my editor :P




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: Roy, Dem0n