BassMunkee / awd

Automatically exported from code.google.com/p/awd
Apache License 2.0
0 stars 0 forks source link

Wrong Spec: VarString length is 1 byte not 2 #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Just playing around with the awd file format in general. Wrote a basic python 
parser which dumps all blocks of a given file. I'm currently working on parsing 
a BitmapTexture block and it's lookup name.

The lookup name is a VarString according to the spec, of which the first two 
bytes indicate the length of the actual value, a utf-8 (without BOM) encoded 
string.

I'm using "vase.awd" from the following link as my test file: 
http://download.macromedia.com/pub/developer/flashplayer/GettingStartedWithAway3
D.zip

In this file the first block is a texture block and its lookup-name is 
"exture_png". But when I parse VarString with only 1 byte indicating the length 
I get "texture_png" which seems to be the correct lookup-name.

Original issue reported on code.google.com by pr...@ibbgdv.de on 18 Jul 2012 at 2:18

GoogleCodeExporter commented 8 years ago
No, the spec is correct. If anything, that file must be incorrect. It was 
encoded with an old, non-final version of the SDK, and there have been 
specification changes since then as part of file format finalization.

Original comment by bengtric...@gmail.com on 18 Jul 2012 at 2:21