Decompiled THKL Orchestrator Specification - Ezekial711/MonsterHunterWorldModding GitHub Wiki
The file has roughly the following form.
:HEADER:
AT LOCATION
FOR MONSTER
FUNCTION := PATH @ DATA
FUNCTION := PATH @ DATA
FUNCTION := PATH @ DATA
FUNCTION := PATH @ DATA
FUNCTION := PATH @ DATA
FUNCTION := PATH @ DATA
FUNCTION := PATH @ DATA
FUNCTION := PATH @ DATA
Has COUNT entries
LOCATION := THKRELATIVEPATH | ABSPATH
MONSTER := MONSTERID_MONSTERSUBSPECIES | MONSTERNAME
MONSTERID_MONSTERSUBSPECIES = ddd_dd
MONSTERNAME = MONSTER_NAME_STRING | MONSTER_NAME dd
THKRELATIVEPATH = "PathToChunk" ABSPATH = ABS"AbsSysPath"
Thk that are found on the path get decompiled as well and called by their decompiled name. Thk that are not found keep the .thk prefix.
During compilation a single missing .thk will cause warnings to be raised because register optimization and code flow analysis are no longer possible.
FUNCTION := Thk_dd | FunctionListElem FunctionListElem depends on SELF LOCATION (per monster, per type mon/otomo)
PATH := local_file_id | "SysPath" | ABS"AbsSysPath" @ DATA Optional
DATA := %08X
COUNT := dd The entries keyword is optional and the decompiler uses it for aesthetic reasons.
// Is used to indicate comments