From 4eea9c003fbc78eb4ec0f075dbccab8d56b52507 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 10 Jul 2021 02:48:08 +0200 Subject: Some clarification on the field types in tables --- crodump.py | 10 +++++----- docs/cronos-research.md | 2 +- 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): idx1 = rd.readdword() name = rd.readname() unk1 = rd.readdword() - unk2 = rd.readbyte() + unk2 = rd.readbyte() # Always 1 if typ: idx2 = rd.readdword() - unk3 = rd.readdword() - unk4 = rd.readdword() + unk3 = rd.readdword() # max value or length + unk4 = rd.readdword() # Always 0x00000009 or 0x0001000d remain = rd.readbytes() - print("%d %2d/%2d %d,%d,%d,%d - '%s' -- %s" % (typ, idx1, idx2, unk1, unk2, unk3, unk4, name, tohex(remain))) + print("Type: %d (%02d/%02d) %04x,(%d-%d),%04x - '%s' -- %s" % (typ, idx1, idx2, unk1, unk2, unk3, unk4, name, tohex(remain))) else: - print("%d %2d %d,%d - '%s'" % (typ, idx1, unk1, unk2, name)) + print("Type: %d %2d %d,%d - '%s'" % (typ, idx1, unk1, unk2, name)) def 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 array { uint16 entrysize -- total nr of bytes in this entry. - uint16 fieldtype 0 = sysnum, 2 = text, 4 = number + uint16 fieldtype 0 = sysnum, 1 = number, 2 = text, 4 = date, 5 = time, 6 = often notes or fotos (binary?), 18 = "Access Level" uint32 fieldindex ?? Name fieldname uint32 -- cgit v1.2.3