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.
[04:28 pm]
Ultraviolet -- yeah I don't disagree
[01:19 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: :megathink: nice
I just wish those were actual pixel graphics, and not so blurry. They just don't fit in.
[01:16 pm]
NudeRaider -- Roy
Roy shouted: Moose is one of the most veteran members of the site that I can think of: if he isn't doing well, that's a premonition of the site as a whole. Moose, as a community, what can we do to improve your disposition? Please keep in mind the fate of the administration, moderation, and general outlook of the site is reliant on this answer.
Moose even brought Roybot back!
[09:18 am]
Zycorax -- :O
[03:46 am]
Ultraviolet -- I knew big changes were coming this year :doubt:
[03:45 am]
Ultraviolet -- :megathink: nice
[01:52 am]
Moose -- :lolxd:
[01:43 am]
lil-Inferno -- :lolxd:
[01:42 am]
lil-Inferno -- :megaya:
[12:36 am]
Moose -- :wacko:
Please log in to shout.


Members Online: lil-Inferno, BarleyOats, Roy