ShadowFlare's Realm
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl
ShadowFlare's Realm Forums >> Program Development >> problem with w3g action spec?
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl?num=1147272630

Message started by esby on May 10th, 2006, 2:50pm

Title: problem with w3g action spec?
Post by esby on May 10th, 2006, 2:50pm

I find that rather strange:

I'll take an example:


Code:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0x05 - Decrease game speed in single player game (Num-)       [ 1 byte ] [APM-]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 byte length - obviously the action byte is counted in the length.


Code:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0x12 - Unit/building ability                                [ 30 bytes ] [APM+]
      (with target position and target object ID)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 word  - AbilityFlags (see section 3) ('byte' for patch version < 1.13)

1 dword - ItemID (see section 4)

1 dword - unknownA (0xFFFFFFFF) (only present for patch version >= 1.07)
1 dword - unknownB (0xFFFFFFFF) (only present for patch version >= 1.07)

1 dword - target position X coordinate
1 dword - target position Y coordinate

1 dword - objectID1
1 dword - objectID2


length 30 bytes.
Wait, word + 7 * dword = 30.
so the action byte is not counted anymore?

Is something wrong? or did I missed something?

esby

Title: Re: problem with w3g action spec?
Post by Blue on Jun 14th, 2006, 11:44am

You are right - this is not correct anymore.
But I have an explanation. ;D
The item AbilityFlags used to be a byte for patch versions < 1.13. It then was changed to a word. Looks like we missed to correct the total length for each command by then. ::)
I will correct this.


PS: Sorry for this late response. Things regarding w3g format slowed down quite a bit lately ...

Title: Re: problem with w3g action spec?
Post by esby on Jun 14th, 2006, 11:57am

Actually what is strange is that it is only affecting 4 actions in the documentation:

0x11
0x12
0x13
0x14


esby

Title: Re: problem with w3g action spec?
Post by Blue on Jun 14th, 2006, 12:05pm

Well, only 0x10, 0x11, 0x12, 0x13 and 0x14 have the member 'AbilityFlags' that grew in size.
0x10 is correct - the other are simply some kind of copy&forget errors - we are just humans editing this file ;)
The size readings for 0x11, 0x12, 0x13 and 0x14 used to be correct for patches 1.12 and earlier ...

ShadowFlare's Realm » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.