EUDx and stuff
Dec 21 2020, 11:36 pm
By: Fruitdispenser  

Dec 21 2020, 11:36 pm Fruitdispenser Post #1



I wanted to change the minimap color of player 11 from green to orange
I take the queue from here, the selection circle color
http://farty1billion.dyndns.org/EUDDB/?pg=entry&id=407
To see if I was ok, I tried exactly what was done there
Selected Set Memory Address with mask, for player 5 (because it seemed more simple and because I also wanted Red selection circle for player 5)
SetMemoryAddressMask(stuff)

Now, if I try to save, I of course get the message that the map is only 1.22 compatible, because of course.

Now, before EUDx in SCMDraft, how where masks dealt with?

PS:
I ended up using this to change player colors in minimap
http://www.staredit.net/topic/17753/



Thanks!



None.

Dec 26 2020, 7:32 pm Roy Post #2

An artist's depiction of an Extended Unit Death

Before EUDx, we calculated it manually. EUDs read/write values in 4-byte chunks, but in the case of selection circles, the data is stored in a single byte per player. So when we use address 0x00581D6B, we're dealing with the values for players 3, 4, 5, and 6.

If we want to add/subtract to a specific player, we would multiply the value based on the byte offset:
Code
p3 = -8574 with mask 0x000000FF (no offset: x)
p4 = -8574 with mask 0x0000FF00 (1-byte offset: x * 256)
p5 = -8574 with mask 0x00FF0000 (2-byte offset: x * 65536)
p6 = -8574 with mask 0xFF000000 (3-byte offset: x * 16777216)


(I'm going to write this in EPD form for simplicity, though technically we had to use EUD form for Actions back in the day.)

If we want to change Player 3's selection circle from Yellow (1) to Red (2), we would do "Modify memory at -8574: Add 1.", since Player 3's byte is not at an offset.
If we want to change Player 5's selection circle from Yellow (1) to Red (2), we would do "Modify memory at -8574: Add 65536.", since Player 5's byte is offset by 2 bytes.

I explain this in layman's terms in Section 4.2 of my old EUD Guide if you want to read more on the subject.




Jan 4 2021, 8:03 pm Fruitdispenser Post #3



Quote from Roy
Before EUDx, we calculated it manually. EUDs read/write values in 4-byte chunks, but in the case of selection circles, the data is stored in a single byte per player. So when we use address 0x00581D6B, we're dealing with the values for players 3, 4, 5, and 6.

If we want to add/subtract to a specific player, we would multiply the value based on the byte offset:
Code
p3 = -8574 with mask 0x000000FF (no offset: x)
p4 = -8574 with mask 0x0000FF00 (1-byte offset: x * 256)
p5 = -8574 with mask 0x00FF0000 (2-byte offset: x * 65536)
p6 = -8574 with mask 0xFF000000 (3-byte offset: x * 16777216)


(I'm going to write this in EPD form for simplicity, though technically we had to use EUD form for Actions back in the day.)

If we want to change Player 3's selection circle from Yellow (1) to Red (2), we would do "Modify memory at -8574: Add 1.", since Player 3's byte is not at an offset.
If we want to change Player 5's selection circle from Yellow (1) to Red (2), we would do "Modify memory at -8574: Add 65536.", since Player 5's byte is offset by 2 bytes.

I explain this in layman's terms in Section 4.2 of my old EUD Guide if you want to read more on the subject.

Sorry for the late reply, but it worked as intended EXCEPT that I had to add 65536*3 in Remastered. I don't know if that should be the case in 1.16.1
Thanks!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:32 pm]
Oh_Man -- yea APM vs eAPM
[08:48 am]
NimoStar -- plus most of the human APM is just spam clicking APM inflation
[08:47 am]
NimoStar -- the thing with the "*12" thing is completely misleading. The AI isn't using two control groups, it can use each of those actions to command a single unit individually and issue different commands to each single unit.
[08:06 am]
NudeRaider -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
*Pluto's wraiths
[08:05 am]
NudeRaider -- Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
[02:18 am]
Oh_Man -- Close enuf
[2026-9-21. : 4:14 pm]
Vrael -- perhaps there is a small professional player trapped in a box in the server rack where pluto is running? hmm?
[2026-9-21. : 4:14 pm]
Vrael -- 240*12*2 is 5760, where is the other 240 APM?
[2026-9-21. : 3:44 pm]
Oh_Man -- 1 action is selecting the unit and another action is moving it
[2026-9-21. : 2:58 pm]
Vrael -- 240*12 is 2880, where is the other 3000 APM?
Please log in to shout.


Members Online: UndeadStar