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.
[11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[03:37 pm]
NudeRaider -- (-.-,)
[03:35 pm]
Zoan -- ;o I thought that was a monkey emote
[03:34 pm]
Zoan -- :mods:
[03:34 pm]
Zoan -- :mods"
[03:20 pm]
NudeRaider -- Vrael
Vrael shouted: moderation? on SEN? in 2026? completely localized in anoeth47's topic? at this time of year?
boy, if you're not careful I'll moderate your sorry ass too!
[03:06 pm]
RIVE -- Yyyes. Don't you see it?
[02:11 pm]
Vrael -- moderation? on SEN? in 2026? completely localized in anoeth47's topic? at this time of year?
[01:39 pm]
NudeRaider -- anoeth47
anoeth47 shouted: Can I get a moderator/lord of the forum to clean up my topics - delete posts not really part of the topic.
send me the links of the posts you want deleted via pm
[01:39 pm]
NudeRaider -- anoeth47
anoeth47 shouted: Can you download from forum if not a member?
log out and find out. ;)
Please log in to shout.


Members Online: NudeRaider