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.
[06:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy