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.
[09:19 am]
Linekat -- cool
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[2024-4-19. : 10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
Please log in to shout.


Members Online: eksxo