COrderMove x,y coordinates

22 views
Skip to first unread message

Robert Nix

unread,
Jun 15, 2012, 12:43:50 PM6/15/12
to sc2ge...@googlegroups.com
Replay:  http://drop.sc/197617
Sc2Gears showed incorrect x,y for these move commands.  Not sure if below is correct, but it's what I came up with upon initial analysis.
51 08 21 4B 04 40 00 26 20 24 00 58 EE 8A 00 00 FF
51 18 21 4B 04 40 00 26 20 25 0D 5F EE 8A 00 00 FF
20 24 00 58 ; x = 18
20 25 0D 5F ; x = 18.527099609375 = (0x20 & 0x80 << 12 | 0x25 << 11
    ;       | 0x0D << 3 | 0x5f & 7) / 4096d (CFixed)

6C 18 21 4B 04 40 00 26 20 A2 86 3F A3 EB 00 00 FF
76 14 21 4B 04 40 00 26 20 A2 86 3F 60 A0 00 01 41
3F 60 A0 ; y = 59.0078125
      ; = (0x3F & 0xF8 << 12 | 0x60 << 7 | 0xA0 & 0x7F) / 4096d

To verify, static y should be ~95.439, static x should be ~81.262.

Static y:

(((0x58 & 0xf8) << 12) | (0xee << 7) | (0x8A & 0x7f)) / 4096
= 95.43994140625

Static x:

(((0x20 & 0x80) << 12) | (0xA2 << 11) | (0x86 << 3) | (0x3f & 7)) / 4096
= 81.263427734375

András Belicza

unread,
Jun 15, 2012, 12:48:27 PM6/15/12
to sc2ge...@googlegroups.com
I will look into it, thanks.

András Belicza

unread,
Aug 8, 2012, 5:23:57 AM8/8/12
to sc2ge...@googlegroups.com
Reporting that the next release will display corrected/precise coordinates.
Reply all
Reply to author
Forward
0 new messages