Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.2 KB

SNR_Files.md

File metadata and controls

30 lines (24 loc) · 1.2 KB

.SNR SCENARIO Text format struct

SNR are binary archives containing scenario definition and text used by Rent-A-Hero No.1:

  • TEXT DATA: chunk of game dialogues using Text Format Struct.
  • PARAMETER DATA: List of floats for positioning chars / camera location on each scene.
  • TEXT DATA POINTERS: An array of pointers specifying dialogue offset in .SNR file.

.SNR Header

.SNR has an header of 0x40 with the following data:

Address Length (hex) Description
0x00 08 MAGIC HEADER: x53/x43/x45/x4E/x41/x52/x49/x4F
0x08 04 TEXT DATA / END OFFSET (+ 0x40)
0x0C 04 FLOATS LIST TOTAL ENTRIES
0x10 04 TEXT SENTENCES TOTAL NUMBER
0x14 04 PARAMETER A TOTAL ENTRIES
0x18 04 PARAMETER B TOTAL ENTRIES (Divided by 2)
0x1C 04 Null
0x20 04 Null
0x24 04 FLOATS LIST / START OFFSET (+ 0x40)
0x28 04 TEXT DATA POINTERS / START OFFSET (+ 0x40)
0x2C 04 PARAMETER A POINTERS / START OFFSET (+ 0x40)
0x30 04 PARAMETER B POINTERS / START OFFSET (+ 0x40)
0x34 04 UNK
0x38 08 HEADER END: xFF/xFF/xFF/xFF/xFF/xFF/xFF/xFF

*Please note (+ 0x40) is a relative value to add in order to get actual offset!