Welcome, Guest. Please Login
Back to main page
  News:
Welcome to the ShadowFlare's Realm Forums.  New registrations are by request only.  To be considered for a new forum account, send an e-mail with the user name and display name you want and the reason you want to register.
  Home SFRealm HelpSearchLogin  
 
Pages: 1
Send Topic Print
problem with w3g action spec? (Read 1779 times)
esby
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 23

problem with w3g action spec?
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
Back to top
 
« Last Edit: Jun 14th, 2006, 11:54am by esby »  
  IP Logged
Blue
Grunt
**
Offline

Think first.

Posts: 54
Berlin, Germany
Gender: male
Re: problem with w3g action spec?
Reply #1 - Jun 14th, 2006, 11:44am
 
You are right - this is not correct anymore.
But I have an explanation. Grin
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. Roll Eyes
I will correct this.


PS: Sorry for this late response. Things regarding w3g format slowed down quite a bit lately ...
Back to top
 
 
  IP Logged
esby
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 23

Re: problem with w3g action spec?
Reply #2 - 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
Back to top
 
 
  IP Logged
Blue
Grunt
**
Offline

Think first.

Posts: 54
Berlin, Germany
Gender: male
Re: problem with w3g action spec?
Reply #3 - 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 Wink
The size readings for 0x11, 0x12, 0x13 and 0x14 used to be correct for patches 1.12 and earlier ...
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print