BSAVE Header
The BSAVE header is a "stamp" that QBasic puts on an array that it saves to disk. It tells QBasic how to load it again, and where to stick it.
However, the modern OHRRPGCE engine ignores all the data except the size and magic number, which is what you should do too. In addition, many lumps still have a 7 byte header which used to be a BSAVE header, but now contains only garbage, and should be completely ignored.
Only GEN, FNT, PAL, MAS continue to use BSAVE headers, meaning the length and magic number need to be correct. When writing a BSAVE lump, you can set the segment and offset to anything.
Formal Specs[edit]
Data | Meaning |
---|---|
BYTE | Magic number (always 0xFD, 253) |
INT | Segment. Set to 0x9999 by modern versions. |
INT | Offset is always 0 |
INT | Length, the number of bytes |
ARCHINYM.LMP
. ATTACK.BIN
. BINSIZE.BIN
. BROWSE.TXT
. DEFPAL#.BIN
. DEFPASS.BIN
. distrib.reld
. FIXBITS.BIN
. general.reld
. heroes.reld
. heroform.reld
. LOOKUP1.BIN
. MENUITEM.BIN
. MENUS.BIN
. PALETTES.BIN
. PLOTSCR.LST
. SFXDATA.BIN
. SLICELOOKUP.TXT
. slicetree_#_#.reld
. SONGDATA.BIN
. UICOLORS.BIN
Map Format :
E
. D
. L
. N
. P
. T
. Z
BAM
. DOR
. DOX
. DT0
. DT1
. DT6
. EFS
. FNT
. FOR
. GEN
. HSP
. HSZ
. ITM
. MAP
. MAS
. MN
. MXS
. PAL
. PT0 ... PT8
. RGFX
. SAY
. SHO
. SNG
. STF
. STT
. TAP
. TIL
. TMN
. VEH