-
-
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 related bin file starts from short name of the creature ending by frm. For example, goblnfrm.bin. 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 - 277 : information about all animation sections (17 sections) such as frame offset for movement
- Bytes 278 - 821 : sequence of frames for each animation section (34 sections). Only values which are not equal to 0xFF used in animation
Information sections:
- ???
- ???
- sprite position offset by X axis
- ???
- ???
- ???
- ???
- ???
- ???
- ???
- ???
- ???
- ???
- ???
- ???
- ???
- ???
Animation frame sections:
- start flying
- static/selection frame (?)
- continuous movement or fly when a creature moves for long distance (?)
- stop movement
- one cell full movement
- ???
- ???
- ???
- idle animation 1
- idle animation 2
- idle animation 3
- idle animation 4
- idle animation 5
- death animation
- ???
- ???
- 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
- ???
- ???
- ???
- ???
- ???
- ???