summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crodump.py10
-rw-r--r--docs/cronos-research.md2
2 files changed, 6 insertions, 6 deletions
diff --git a/crodump.py b/crodump.py
index 86a6926..1b2540f 100644
--- a/crodump.py
+++ b/crodump.py
@@ -215,16 +215,16 @@ def decode_field(data):
215 idx1 = rd.readdword() 215 idx1 = rd.readdword()
216 name = rd.readname() 216 name = rd.readname()
217 unk1 = rd.readdword() 217 unk1 = rd.readdword()
218 unk2 = rd.readbyte() 218 unk2 = rd.readbyte() # Always 1
219 if typ: 219 if typ:
220 idx2 = rd.readdword() 220 idx2 = rd.readdword()
221 unk3 = rd.readdword() 221 unk3 = rd.readdword() # max value or length
222 unk4 = rd.readdword() 222 unk4 = rd.readdword() # Always 0x00000009 or 0x0001000d
223 remain = rd.readbytes() 223 remain = rd.readbytes()
224 224
225 print("%d %2d/%2d %d,%d,%d,%d - '%s' -- %s" % (typ, idx1, idx2, unk1, unk2, unk3, unk4, name, tohex(remain))) 225 print("Type: %d (%02d/%02d) %04x,(%d-%d),%04x - '%s' -- %s" % (typ, idx1, idx2, unk1, unk2, unk3, unk4, name, tohex(remain)))
226 else: 226 else:
227 print("%d %2d %d,%d - '%s'" % (typ, idx1, unk1, unk2, name)) 227 print("Type: %d %2d %d,%d - '%s'" % (typ, idx1, unk1, unk2, name))
228 228
229 229
230def destruct_base_definition(args, data): 230def destruct_base_definition(args, data):
diff --git a/docs/cronos-research.md b/docs/cronos-research.md
index 022cbcf..3e9ac76 100644
--- a/docs/cronos-research.md
+++ b/docs/cronos-research.md
@@ -193,7 +193,7 @@ the `Base000` entry contains the record number for the table definition of the f
193 193
194 array { 194 array {
195 uint16 entrysize -- total nr of bytes in this entry. 195 uint16 entrysize -- total nr of bytes in this entry.
196 uint16 fieldtype 0 = sysnum, 2 = text, 4 = number 196 uint16 fieldtype 0 = sysnum, 1 = number, 2 = text, 4 = date, 5 = time, 6 = often notes or fotos (binary?), 18 = "Access Level"
197 uint32 fieldindex ?? 197 uint32 fieldindex ??
198 Name fieldname 198 Name fieldname
199 uint32 199 uint32