Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: [EUD] Minimap Ping
[EUD] Minimap Ping
Dec 7 2011, 2:12 am
By: Cinolt  

Dec 7 2011, 2:12 am Cinolt Post #1



Code
struct ping{
 int32_t active; /* boolean */
 int32_t x;
 int32_t y;
 char timer; /* goes from 0 to 0x13 */
 char u;
 char color;
 char u2;
} *ping=0x59c1b8; /* 16 structs allocated for 16 simultaneous pings */
#define RED 0x10
#define GREEN 0x11
#define YELLOW 0x12


Unfortunately the struct doesn't seem to be "shared", only happens to be the same on all clients sometimes but it only takes one time when they're not the same to cause desyncs. Same plague as my Text Detection Application, FFFFFFFUUUU-

Attachments:
[MMP] Python 1.3.scx
Hits: 2 Size: 305.95kb
python.protrg
Hits: 2 Size: 29.19kb

Post has been edited 2 time(s), last time on Dec 7 2011, 2:46 am by yoonkwun.



None.

Dec 7 2011, 5:32 pm Heinermann Post #2

SDE, BWAPI owner, hacker.

Code
0059C1B8 minimapPingArray mmPing[16]


Confirmed. Timer cycles from 0-19 (0x13).

My structure:
Byte-for-byte:
Code
struct mmPing
{
 bool isActive;
 bool __unused_padding1[3];
 POINT pt;
 WORD wTimer;
 BYTE bColor;
 BYTE __unused_paddingF;
}


In C++ with struct alignment set to 4 bytes(default):
Code
struct mmPing
{
 bool isActive;
 POINT pt;
 WORD wTimer;
 BYTE bColor;
}

EDIT: I may be wrong about the alignment stuff, will test it in a sec.
EDIT2: Tested and confirmed that the compiled structure in a new C++ project matches.

Also yes of course they are not shared, since pings are most commonly only seen individually by each client ("Your base is under attack" for example).

Post has been edited 2 time(s), last time on Dec 7 2011, 5:51 pm by Heinermann.




Dec 7 2011, 9:37 pm O)FaRTy1billion[MM] Post #3

👻 👾 👽 💪

Can you use the colors before 0x10, do you know? They are the same as the player colors (as defined in game\tblink.pcx)



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!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:25 pm]
bapilo1712 -- Sports and fitness equipment manufacturer https://riogrand.in/blog/riogrand-cricket-bats-manufacturer
[01:25 pm]
bapilo1712 -- Sports and fitness equipment manufacturer https://riogrand.in/blog/riogrand-cricket-bats-manufacturer
[01:25 pm]
bapilo1712 -- Sports and fitness equipment manufacturer https://riogrand.in/blog/riogrand-cricket-bats-manufacturer
[01:25 pm]
bapilo1712 -- Sports and fitness equipment manufacturer https://riogrand.in/blog/riogrand-cricket-bats-manufacturer
[01:25 pm]
bapilo1712 -- Sports and fitness equipment manufacturer https://riogrand.in/blog/riogrand-cricket-bats-manufacturer
[01:25 pm]
bapilo1712 -- Sports and fitness equipment manufacturer https://riogrand.in/blog/riogrand-cricket-bats-manufacturer
[01:25 pm]
bapilo1712 -- Sports and fitness equipment manufacturer https://riogrand.in/blog/riogrand-cricket-bats-manufacturer
[07:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[06:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[04:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
Please log in to shout.


Members Online: Revenant