Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] EPD for Weapon Upgrades?
[SOLVED] EPD for Weapon Upgrades?
This topic is locked. You can no longer write replies here.
Aug 24 2012, 10:22 pm
By: SlayerFTH  

Aug 24 2012, 10:22 pm SlayerFTH Post #1



Does anyone know of a viable EPD for Weapon Upgrades, or the amount of damage a unit at X Index has?
Specific Upgrade: (ID: 13), (Offset: +13), Protoss Ground Weapons



None.

Aug 24 2012, 10:52 pm jjf28 Post #2

Cartography Artisan

to clarify: do you mean EUP? (this)

Post has been edited 1 time(s), last time on Aug 24 2012, 11:44 pm by jjf28. Reason: wordingz



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Aug 24 2012, 10:56 pm Roy Post #3

An artist's depiction of an Extended Unit Death

I'm going to answer this from a technical level, but if you need me to explain in more detail, let me know.

SC upgrades researched: http://farty1billion.dyndns.org/euddb/?pg=entry&addr=0x0058D298&ver=1.15.2&plat=win

Your upgrade is 0x0D away, since upgrades are 1 byte apiece; this means you're +3 players from the base Player ID (3027).

Memory at Death Table + 3030 is exactly A + (B*256) + (C*65536) + (D*16777216)
A = Zerg Flyer Attacks
B = Protoss Ground Weapons
C = Protoss Air Weapons
D = Protoss Plasma Shields

You'll need to know the values of all of these except Zerg Flyer Attacks, which you can negate by checking between A = 0 and A = 255. That is:
Memory at Death Table + 3030 is at least 0 + (B*256) + (C*65536) + (D*16777216)
Memory at Death Table + 3030 is at most 255 + (B*256) + (C*65536) + (D*16777216)

EDIT: This is only for Player 1. Player 2's upgrades are located immediately after Player 1's, and this pattern continues for all players. If you need more help for the other players, let me know.
EDIT2: If you're not interested in explanations, try this:
Upgrades for each player




Weapon damage amount: http://farty1billion.dyndns.org/euddb/?pg=entry&addr=0x00656EB0&ver=1.16.1&plat=win

Your weapon is 0x1A away, since damage amounts are 2 bytes apiece; this means you're +6 players from the base Player ID (209619).
Memory at Death Table + 209625 is exactly A + (B*65536)
A = Zerg Flyer Attacks
B = Protoss Ground Weapons

This is actually in your favor, as you can completely ignore the value of Zerg Flyer Attacks:
Memory at Death Table + 209625 is at least 0 + (B*65536)
Memory at Death Table + 209625 is at most 65535 + (B*65536)



As for checking the damage of a unit at a specific index, that's not directly (and pragmatically) possible, as the unit's damage is not stored in the unit struct; you'd have to look up its weapon's damage.

Post has been edited 8 time(s), last time on Aug 26 2012, 11:36 am by Roy.




Aug 24 2012, 11:38 pm SlayerFTH Post #4



Got it working perfectly Roy, thanks :P.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:09 am]
NimoStar -- It can by playing the same map thousands of times. It is similar to AI speedrunning games
[02:30 am]
Symmetry -- I dreamed about that as a kid. The idea of a computer capable of analyzing a starcraft map and calculating the fastest possible way to hit the victory condition
[02:29 am]
Symmetry -- But can AI beat my custom maps?
[12:32 pm]
Oh_Man -- yea APM vs eAPM
[2026-9-22. : 8:48 am]
NimoStar -- plus most of the human APM is just spam clicking APM inflation
[2026-9-22. : 8: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.
[2026-9-22. : 8: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
[2026-9-22. : 8: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.
[2026-9-22. : 2: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?
Please log in to shout.


Members Online: jun3hong