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.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: Ultraviolet, O)FaRTy1billion[MM]