-
-
Notifications
You must be signed in to change notification settings - Fork 386
Bin file structure
Ihar Hubchyk edited this page Feb 4, 2020
·
27 revisions
AGG file is an archive which contains multiple files. Bin files contain information related to displaying images (sprites) on screen.
Monster/creature animation bin file starts from short name of the creature ending by frm. For example, goblnfrm.bin. The file name length is 12 characters. The size of this file is always 821 bytes.
Creature animation frames are divided by sections. Each section could have up to 16 frames.
- Byte 1 : always 0x01 (magic value?)
- Bytes 2 - 4 : some creature related info ?
- Byte 5 : always 0xFF
- Bytes 6 - 117 : X-axis offset of frame for first 7 animation sections (16 values/bytes per section)
- Bytes 118 - 137 : ???
- Bytes 138 - 153 : 4 bytes (unsigned int) values of frame frequency in ms (???). Eg. 350, 1000, 750.
- Bytes 154 - 242 : ???
- Bytes 243 - 277 : amount of frames per each animation frame section (34 values in total)
- Bytes 278 - 821 : sequence of frame IDs for each animation section (34 sections). Only values which not equal to 0xFF are used in animation
Animation frame sections:
- start flying
- static/selection frame (?)
- continuous movement or fly when a creature moves for long distance (?)
- stop movement
- some movement ???
- one cell full movement
- NOT IN USE (always empty)
- always frame ID 1
- idle animation 1
- idle animation 2
- idle animation 3
- idle animation 4
- idle animation 5
- death animation
- got hit start
- got hit end
- single cell attack from bottom
- ending single cell attack from bottom
- double cell attack from bottom
- ending double cell attack from bottom
- single cell attack in front
- ending single cell attack in front
- double cell attack in front
- ending double cell attack in front
- single cell attack from top
- ending single cell attack from top
- double cell attack from top
- ending double cell attack from top
- shoot from bottom
- ending shoot from bottom
- shoot in front
- ending shoot in front
- shoot from top
- ending shoot from top