Page Index Toggle Pages: 1
Topic Tools
Normal Topic problem with w3g action spec? (Read 2061 times)
esby
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: May 10th, 2006
problem with w3g action spec?
May 10th, 2006 at 1:50pm
Post Tools
I find that rather strange:

I'll take an example:

Code
Select All
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
Select All
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
« Last Edit: Jun 14th, 2006 at 10:54am by esby »  
Back to top
 
IP Logged
 
Blue
Grunt
**
Offline


Think first.

Posts: 54
Location: Berlin, Germany
Joined: May 12th, 2003
Re: problem with w3g action spec?
Reply #1 - Jun 14th, 2006 at 10:44am
Post Tools
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
Joined: May 10th, 2006
Re: problem with w3g action spec?
Reply #2 - Jun 14th, 2006 at 10:57am
Post Tools
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
Location: Berlin, Germany
Joined: May 12th, 2003
Re: problem with w3g action spec?
Reply #3 - Jun 14th, 2006 at 11:05am
Post Tools
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
 
Page Index Toggle Pages: 1
Topic Tools