diff options
| author | Dirk Engling <erdgeist@bauklotz.fritz.box> | 2021-07-10 02:48:08 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@bauklotz.fritz.box> | 2021-07-10 02:48:08 +0200 |
| commit | 4eea9c003fbc78eb4ec0f075dbccab8d56b52507 (patch) | |
| tree | 79ca59e3427e241732f252a2518132393c71e1f8 | |
| parent | d30a78c7ea4c702519b00243b43d507582b119c0 (diff) | |
Some clarification on the field types in tables
| -rw-r--r-- | crodump.py | 10 | ||||
| -rw-r--r-- | docs/cronos-research.md | 2 |
2 files changed, 6 insertions, 6 deletions
| @@ -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 | ||
| 230 | def destruct_base_definition(args, data): | 230 | 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 | |||
| 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 |
