pdxiv / sk2sadat

Convert ScottKit to Scott Adams DAT format
GNU General Public License v2.0
1 stars 1 forks source link

Doesn't calculate game size in bytes correctly #4

Open pdxiv opened 3 years ago

pdxiv commented 3 years ago

Should follow this:

HEADER:
BYTES
#OBJ
#ACT
#VOC
#RM
MAX
BEG
#TR
WLEN
TIME
#MSG
TR_RM

BYTES =  (#VOC+1) * 2 * (WLEN+1)
BYTES += (#RM+1) + length of all non-empty Room Description
BYTES += (#OBJ+1) + length of all non-empty Object Description + 1 for all objects with a name ('/name/')
BYTES += (#MSG+1) + length of all non-empty Message 
BYTES += 1 (Because I am lacking 1!)