Skip to content

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 : 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:

  1. ???
  2. ???
  3. sprite position offset by X axis
  4. ???
  5. ???
  6. ???
  7. ???
  8. ???
  9. ???
  10. ???
  11. ???
  12. ???
  13. ???
  14. ???
  15. ???
  16. ???
  17. ???

Animation frame sections:

  1. start flying
  2. static/selection frame
  3. continuous movement or fly when a creature moves for long distance (?)
  4. stop movement
  5. one cell full movement
  6. ???
  7. ???
  8. ???
  9. idle animation 1
  10. idle animation 2
  11. idle animation 3
  12. idle animation 4
  13. idle animation 5
  14. death animation
  15. ???
  16. ???
  17. single cell attack from bottom
  18. ending single cell attack from bottom
  19. double cell attack from bottom
  20. ending double cell attack from bottom
  21. single cell attack in front
  22. ending single cell attack in front
  23. double cell attack in front
  24. ending double cell attack in front
  25. single cell attack from top
  26. ending single cell attack from top
  27. double cell attack from top
  28. ending double cell attack from top
  29. ???
  30. ???
  31. ???
  32. ???
  33. ???
  34. ???