Decode MAINIT and message infrastructure

This commit is contained in:
gamer147
2026-07-23 18:14:19 -04:00
parent 7269ddb547
commit 7f344739e6
12 changed files with 461 additions and 49 deletions

View File

@@ -19,6 +19,7 @@ Usage:
py -3.11 -X utf8 tools/extract_message_table.py VIMES
py -3.11 -X utf8 tools/extract_message_table.py EIMES
py -3.11 -X utf8 tools/extract_message_table.py CIMES
py -3.11 -X utf8 tools/extract_message_table.py MAMES
"""
from __future__ import annotations
@@ -41,6 +42,7 @@ BRANCH_SENTINEL = 0xFFFFFFFF
MESSAGE_LAYOUTS = {
"CIMES.BIN": "character-biography",
"EIMES.BIN": "enemy-commentary",
"MAMES.BIN": "description",
}
@@ -117,6 +119,10 @@ def _message_body(
message = {
"biography": "\n".join(lines),
}
elif layout == "description":
message = {
"description": "\n".join(lines),
}
elif layout == "enemy-commentary":
message = {
"summary": lines[0],