STYLE00x.GRY |
Files |
Fil_Style00x.gry.html |
STYLE001.GRY, STYLE002.GRY, STYLE003.GRY - contains 8-bit (?) textures for each city map
gtadata\style00?.gry
all GTA Demos, GTA Full Version
This file contains the graphical information for the game. Textures for sides of cubes (horizontal and vertical surfaces including signs, animations for doors) make up one section, textures for objects, cars, explosions, and people make up another section. More (and more detailed) textures are in the style000x.g24 files.
The first 52 bytes in the file contain 13 Integers (32-bit). I call them h0 through h12. They set the lengths of different parts of the file (see below).
|
Example: Style001.gry |
|||
---|---|---|---|---|
Section |
Position |
Length |
Position |
Length |
0 |
52 |
0 |
52 |
|
Vertical tile textures |
52 |
h1 |
52 |
798720 |
Horizontal tile textures |
52+h1 |
h2 |
798772 |
630784 |
Animated tile textures |
52+h1+h2 |
h3 |
1429556 |
126976 |
52+h1+h2+h3 |
h4 |
1556532 |
36 |
|
52+h1+...+h4 |
h5 |
1556568 |
768 |
|
52+h1+...+h5 |
h6 |
1557336 |
65536 |
|
??? unidentified |
52+h1+...+h6 |
h7 |
1212872 |
1024 |
??? unidentified |
52+h1+...+h7 |
h8 |
1213896 |
2040 |
??? unidentified |
|
h9 |
|
6972 |
??? unidentified |
|
h10 |
|
868 |
??? unidentified |
|
h0 |
|
325 |
??? unidentified (missing bytes) |
|
|
|
11195 |
|
|
1645296 |
983040 |
|
EOF-h12-h11 |
h11 |
2628336 |
79710 |
|
EOF-h12 |
h12 |
2708046 |
42 |
|
File Size |
EOF |
0 |
2708088 |
0 |
The tile textures form 3 sections:
Some of these tiles have a transparent background, e.g. bridge girders or street signs.
The sections do not usually have multiples of 4 tiles; as a result tiles from two neighboring sections are interlaced as if they belonged to the same section. |
Example The horizontal tile section in style001.gry has 630784 bytes; that's 630784/(64*64)=154 tiles. All 3 sections have 1556480 bytes=380=4*95 tiles. To view style001.gry in PaintShopPro, open it as RAW file [Header=52, width=256, height=6080, grayscale]. You can also view GIFs of the Horizontal Tile section of style001.gry (4x40KB). |
05 29 01 07 - 06 19 1A 1B - 1C 1D 1E 16 - 01 03 06 13 14 15 16 17 - 18 64 00 19 - 01 07 BD 00 - 15 01 08 60 00 10 01 09
Find out what these 36 bytes from style001.gry mean because I don't know!
These 3*256=768 bytes could be the 256-color-palette, or something completely different.
These 256x256=65536 bytes could be the key to remapping the object tile textures palettes to the master palette. What makes this guess more probable is that most of these lines contain the numbers 0-256 in ascending order; yet there are 21+14+60=95 256-byte lines that differ from this pattern. It so happens that the texture section has 95 lines of 4 tiles each. Coincidence?
I have no clue what is in these sections and where they are in the file. The "missing bytes" section is just the difference between the file size and the sum of h0-h12 plus the length of the object texture section.
The object texture tile size is 256x256. However, the individual objects are irregularly embedded in these tiles. Somewhere in the file must be the information that describes the rectangular areas that form these objects. [The precincts of the cities are described by x/y of upper left-hand corner and width and height of the rectangle.] |
style001.gry has 15 of these tiles. To view them in PaintShopPro, open it as RAW file [Header=240, width=256, height= 10266, grayscale] and scroll all the way down. You can also view GIFs of 3 object texture tiles of style001.gry (4x25KB). |
I have no clue what is in this section.
18 00 00 00 - 01 00 00 00 - 06 00 1B 00 - 32 02 27 01 00 00 02 00 - 06 00 05 00 - 00 00 1A 00 - 00 00 00 00 07 00 30 00 - 00 00 00 00 - 00 00
Find out what these 42 bytes from style001.gry mean because I don't know!
Information contributed by Ian Howson and Michael Mendelsohn.
Large parts of this file are still uncharted territory. The *.G24 files should have a similar structure although they have no header.
STYLE00x.GRY |
Last change: 1 Jan 1998 |
unofficial GTA Reference |