Reference ยท Disc
The four discs
solidfrom#20#21#23#24#25#239#493#596changed
This page names 1 thing it does not know yet - see what.
Linked from The Mutation DVD, The Outbreak DVD, The Quarantine DVD, The later volumes' unnamed code, The DATA.BIN archive, The .PRG overlay, #20 The other three volumes, and Infection's names carried over to them, #25 Dungeons, fields, battle and text checked on every volume.
Covers10
SYSTEM.CNF and every file on each discINF SLUS_202.67MUT SLUS_205.62OUT SLUS_205.63QUA SLUS_205.64QUA DATA/KFED.BINQUA DATA/KFAED.BINIOPRP243.IMGOUT STREAM/STRT.BINOUT/QUA VOICE2What changes from volume to volume, and how the stripped executables of volumes 2 to 4 get their names. Each disc is described file by file on its own page: Infection, Mutation, Outbreak, Quarantine. Everything here is measured against Infection's.
Volumes
| INF | MUT | OUT | QUA | |
|---|---|---|---|---|
| game | .hack//Infection | .hack//Mutation | .hack//Outbreak | .hack//Quarantine |
boot ELF (SYSTEM.CNF) | SLUS_202.67 | SLUS_205.62 | SLUS_205.63 | SLUS_205.64 |
| sectors | 1,268,832 | 1,830,448 | 1,859,600 | 2,176,912 |
| files | 86 | 93 | 96 | 100 |
| boot ELF bytes | 19,223,388 | 2,669,392 | 2,649,808 | 1,546,192 |
| symbols | all, with DWARF | none | none | none |
| main section | 0x00100000 + 0x278880 | + 0x28b800 | + 0x286b80 | + 0x179480 |
$gp | 0x0037faf0 | 0x00392a70 | 0x0038ddf0 | 0x00280770 |
| overlay window | 0x00400800 | 0x00413800 | 0x0040f200 | 0x00301b00 |
| heap section | 0x00730600 | 0x00774b00 | 0x00773780 | 0x00670300 |
DATA.BIN bytes | 136,665,088 | 138,172,416 | 142,372,864 | 142,372,864 |
DATA.BIN records | 1,023 | 1,031 | 1,072 | 1,072 |
categoryFDTbl | 0x002fb750 | 0x00310fd0 | 0x00308700 | 0x001fc680 |
cateCDOfsTbl | 0x002fb7a0 | 0x00311020 | 0x00308750 | 0x001fc6d0 |
All four SYSTEM.CNF files read VER = 1.00, VMODE = NTSC. Each
executable carries the string MW MIPS C Compiler (2.4.1.01). The three
stripped ones keep Infection's section layout by position (main, the four
overlay sections, heap) with the names blanked; tools/image.py maps them by
that order.
The four overlays (GCMN.PRG, DEMO.PRG, DESKTOP.PRG, TOPPAGE.PRG) are
the same PRG format on every disc, loaded at that
volume's window. DATA.BIN is the same archive on
every disc; tools/fdtbl.py check passes every record of all four.
Files that differ
| directory | INF | MUT | OUT | QUA |
|---|---|---|---|---|
| root | 4 | 4 | 4 | 4 |
DATA | 7 | 7 | 7 | 9 |
MODULES | 12 | 12 | 10 | 10 |
PSS | 4 | 4 | 4 | 4 |
STREAM | 4 | 8 | 6 | 6 |
VOICE | 28 | 29 | 13 | 13 |
VOICE_E | 27 | 29 | 13 | 12 |
VOICE2 | - | - | 21 | 21 |
VOICE2_E | - | - | 18 | 21 |
STREAM: INF hasSTR1,STR1E,STRCMN,STRCMNE. MUT addsSTR2,STR2E,STRSUB,STRSUBE. OUT and QUA keep only the English (E) archives: OUTSTR1E-STR3E,STRCMNE,STRSUBEandSTRT; QUASTR1E-STR4E,STRCMNE,STRSUBE.MODULES: OUT and QUA dropCDVDFSV.IRXandCDVDMAN.IRX, which no volume loads: every disc's CD drivers areIOPRP243.IMG's (the IOP image).DATA: QUA addsKFED.BIN(688,000 bytes) andKFAED.BIN(35,200).VOICE2: the characters' skill words, moved out ofVOICEon OUT and QUA, with three new characters' (the Outbreak DVD).STREAM/STRT.BIN(OUT only): six scenes no code opens, demo discs' screens (the Outbreak DVD).IOPRP243.IMG,DATA/ICON.BIN, the logo movies,OUTSIDE.BINand eight of the modules are byte-identical on all four discs. Each disc's page says, file by file, which other discs hold the same bytes.
The font tables in Quarantine
Infection keeps its bitmap fonts in the executable, between the last code
and the first data: kf14x16 (385,280 bytes), kf20x20 (688,000),
kfa20x20 (35,200), kfa14x16 (19,712), ef12x20 (13,440), ef8x16
(7,168), 1,148,800 bytes in all. From the end of the code to the first named
data object is 1,166,168 bytes in INF, 1,122,628 in MUT and 1,175,028 in
OUT, but only 36,868 in QUA.
MUT and OUT embed all six byte-identical to INF. QUA embeds only ef12x20
and ef8x16 - the two that INF's code uses - and ships KFED.BIN and
KFAED.BIN, the same sizes and sheet layout as kf20x20 and kfa20x20. In
INF the four kanji sheets are unreferenced. KFED's bytes differ (0.2% equal)
because the palette indexes changed (background 1 in INF, 0 in QUA) and the
glyphs were re-shaded; most of the ink falls in the same places. See
text rendering.
DATA.BIN across volumes
Records per category, from each executable's own tables:
| category | INF | MUT | OUT | QUA |
|---|---|---|---|---|
| desktop | 136 | 136 | 177 | 177 |
| spc | 18 | 21 | 21 | 21 |
| pc | 37 | 38 | 38 | 38 |
| town | 14 | 15 | 15 | 15 |
| event | 50 | 53 | 53 | 53 |
| the other 15 | same | same | same | same |
- MUT drops
pc/CBUZ.CCSand adds 9 records:CTBUZandCTWMK(pc),CHA3BODY,CTU4BODY,CWM5BODY(spc),TOWN06, andHANABIRA1,X7478CAM,X7484CAM(event). Of the 1,022 records in both INF and MUT, 992 inflate to the same size. - OUT adds 41 desktop records to MUT's (
ENDING,XDDWAL56onward, ...) and drops none. - OUT and QUA have the same 1,072 records. Five members differ: four desktop
images (
XDDN_050,XDDN_400,XDDN_490,XDDN_690, same size, different content) andboss/X11.CCS(310,052 bytes in OUT, 326,660 in QUA).
Names for the stripped executables
piney-gen syms writes each later volume's <elf>.syms (tools/xfer.py match did until 2026-09-27, byte for byte the same), and
tools/image.py loads it automatically for an executable with no symbol
table, so disasm.py, fdtbl.py and the rest work on every volume by
Infection's names. One symbol per line, tab-separated:
section va(8 hex) size FUNC|OBJECT name how
section is main or an overlay name. how says which pass named it:
| how | meaning |
|---|---|
exact | the body equals Infection's with address fields masked, uniquely |
call | the target of a call, or a function address taken, from a paired body; after the later passes once more from every named body, with the code addresses a body builds also paired in order where both build as many |
order | between two paired neighbours, aligned by the shape of its code |
data | the global a paired body addresses at the same instruction, or in the same place in the order of the addresses it builds |
pointer | a global a carried global points at, where Infection's relocation says it points (a unanimous vote also moves a data name) |
content | a global found by what it holds: its numbers equal, its pointers to the same strings; not when two of Infection's hold the same |
layout | between two carried globals whose words agree and which sit the same distance apart in both, a global at its offset whose words agree (90%), or a data name moved there because they agree better; or two data names of one size that agree better each at the other's place |
ref | a function that builds a carried global's (or a string's) address, where only one function does on each side |
overload | two overloads of one name, one taking no arguments, renamed by which body reads its first argument's register before writing it |
callees | an order name moved to the one unnamed start between its named neighbours whose calls name Infection's callees, in order, where its own place's calls do not |
FUNC sizes are the destination's own (to the next entry point, less
padding), except for exact, whose size is Infection's.
The entry points are the targets of jal, the words after a jr $ra or a
padded tail j, and the ends of threads: after a b back to a loop's head
and its delay slot, a word that opens a stack frame (addiu $sp, $sp, -n),
that no branch reaches and whose code up to the next entry point does not
branch back above it. A thread's endless loop has no jr $ra, and the
function after it is often only stored as an address (a task's delete
hook), so without the last kind the two read as one. Run on Infection, the
rule finds 22 starts the others miss, every one a function's start.
| MUT | OUT | QUA | |
|---|---|---|---|
exact | 3,535 | 1,034 | 1,031 |
call | 596 | 514 | 513 |
order | 1,214 | 3,353 | 3,332 |
data | 4,338 | 3,348 | 3,331 |
pointer | 1,093 | 1,365 | 1,356 |
content | 1,661 | 1,527 | 1,499 |
layout | 167 | 152 | 146 |
ref | 1 | 66 | 65 |
callees | 0 | 1 | 1 |
| total (all passes) | 12,627 | 11,384 | 11,299 |
A switch's cases are paired by their table entry, not by the alignment
(worklog 607). ccThMenu's cases are all alike, one handler call each, so
the alignment had nothing to tell them by: on Outbreak and Quarantine it
put some sixty menu handlers four menus over (GtHackMenu, OUT gcmn
0x00581bb0, was filed as GtNewMenu, RecordMenu as TradeSubMenu),
and the data pass then named their globals from the wrong bodies
(dialogVoice on cmndTarget). The generator found the gate's refusal
through GtNewMenu, so Outbreak's and Quarantine's build had none.
Where two paired bodies have as many jr tables, each case's first call
(before its first branch) is paired with the other's by entry, and those
calls are taken out of the alignment's pairs. Mutation's names are
unchanged.
Before the thread ends were entry points (worklog 596), Outbreak's and
Quarantine's ccThEntryCtrl (gcmn 0x00442580, QUA 0x00334e90) had no name:
ccThEntryCtrlDelete sat on its start, sized over both. The same rule
split ccThDemo from Main__12Data_Control, ccThPlayer from
ccPlayerStart, FileReadTh and UngzipTh from ccFileListLoad, and
named ccGzipThread, Func_str8000 and Func_str8800 on both, moved
Func_str0001 to its own start (OUT main 0x0018b350, QUA 0x0018b400), and
gave Mutation's stream functions (Func_str8800, str7100, str0300)
exact matches and their tables. The callees pass moves
deleteAllObject: Outbreak moved ccThEntryCtrl's frame walk into a new
function of the same shape just before it (OUT gcmn 0x004416d0, calling
four new list walks), which the order pass had named; ccEvent::Execute
calls the real one (OUT 0x00441720, QUA 0x00334030).
The transfer's rounds propagate calls only from the bodies they paired
themselves, so the functions ref and prefix named never named their
callees. A last round of calls from every named body names 17 more on
Outbreak and on Quarantine: twelve races' destructors (ccDestEnemyH
to ccDestEnemyZ, which each ccEnemyX::ccEnemyX stores at +0x1c8:
OUT ccDestEnemyV gcmn 0x004625e0, QUA 0x00354ef0), delLight__8ccEnemyL,
ccThFellow10Delete, ccThKyvia03Delete, ccBossKyvia04::SwitchGateOFF
and EntrySlave, and EVENTAREAB8::HitEnable; none on Mutation.
The carry (work/analysis/carry/<volume>.json) keys an overlay's global
by name, falling back to main's name for one a volume moved into main. A
literal (@4704) is numbered per source file, so that fallback is not
taken for them: it had put 48, 45 and 45 overlay strings of Mutation,
Outbreak and Quarantine (the staff roll's names, BlackRose, Symbol)
on main's unrelated literals of the same number. Most are now carried to
their own overlay; 5, 10 and 31 are left uncarried.
The last four passes were added for the per-volume data
(plans/volumes.md): Outbreak's and Quarantine's
recompiled EVENTAREA and ROOTTOWN constructors carried no names, so
their tables were found by content and the constructors by the tables and
strings they build. The order is content, pointer, layout, content again,
ref, pointer again: what a global holds outranks a table's pointer to it,
since a table can keep Infection's layout while rows are added to what it
points at (Mutation's pcMsg4). The pointer pass does not take a
pointer's bytes for text (0x006f2d98 reads "\x98-o").
The last pass checks pairs of overloads. Outbreak's and Quarantine's
WORLD_MAN::GetEventAreaInfo() loads eventAreaNumber into $a1 and
(int) reads $a1 as passed. Their bodies grew alike, so order and ref
had named them crosswise (worklog 493). It renames that one pair on each
volume and nothing on Mutation.
The data pass pairs a function's globals by the order its code builds
them, and a reordered function misleads it. The layout pass found, on all
three: BGTBL and BGTBL2 swapped (so every BG_TBL_x the pointer pass
reached through them was BG_TBL_x2), BgMatName unnamed, the Grunties'
voice tables (gusoponTbl to aquaTblE) each on its neighbour, and
tradeMenuStr, evs209Tbl and eleven stream tables elsewhere. Each moved
name was checked: Infection's bytes at its new place, not its old one.
In .bss nothing tells, so no span is anchored or filled there: a first
try placed main's SkillDamageValueAttributeCritical 8 bytes off, which
test_battle.py's run of Mutation's ccSkillDamageValue caught.
Infection has 4,998 functions of 6 or more instructions across main and the overlays. MUT's code is mostly Infection's instruction for instruction. OUT and QUA were compiled differently:
- saved registers are allocated differently;
- branch delay slots Infection fills are often left as nops;
fptouiis inlined. So there only about a fifth match exactly, and link order does most of the work.
Precision, measured by carrying names back: MUT's names onto Infection give
9,512 symbols, 7 wrong (0.07%). OUT's names onto Infection give 7,927, 18
wrong (0.23%). The wrong order names sit on a neighbouring function; the
wrong data names on a different object, or inside a larger one. Two functions with identical bodies (_kill_r,
__sigtramp) cannot be told apart.
Systems across volumes
Each system below was checked by running every volume's own code in
tools/eemu.py against the Python reimplementation, with the differences
read from each executable rather than keyed on the volume:
| system | changed in later volumes | page |
|---|---|---|
| area generator | areas 71 and 47 become substitute records; keyword and story-area table edits | area keywords |
| dungeons | floor count a field (15 for area 125), 90 hand-made dungeons, a new save bit in the type rule | dungeons |
| fields | sqrt.s in OUT/QUA; area 100 unprotected | fields |
| battle | Exdefense rule, 21 party members, table rebalancing | battle |
| text | ccKanjiStrlen counts every %x in OUT/QUA; more mails and replies | text rendering |
| event scripts | opcodes 168, 169, a new operand for 99, new events per volume | events |
| saves | a 0x854-byte extension for the three new characters; carry-over | save |
This work also found carried names that are wrong or missing:
- MUT's
MailTblpoints intodesktop.prg's code. - MUT's
skillTblpoints 0x11b0 bytes into the table. - OUT's and QUA's
skillTbl, and MUT'senemyTbl, are not named at all.
The tools find these tables from the code that uses them instead.
What the later volumes' code adds
tools/voldiff.py gaps ELF measures, section by section, the text the
carried names do not cover, and lists the stretches between two named
functions; tools/voldiff.py look ELF SECTION LO HI prints the strings a
stretch materialises and the named functions it calls, which tells new
code from code compiled too differently to be matched. On Infection itself
only main's embedded fonts show.
| INF | MUT | OUT | QUA | |
|---|---|---|---|---|
| main text | 0x275968 | 0x288868 | 0x283be4 | 0x1764e4 |
| main unnamed, less the fonts | 0x160 | 0x19ed0 | 0x1541c | 0x1ca88 |
GCMN.PRG text | 0x1d0fc0 | 0x1ec240 | 0x1ee340 | 0x1f2dc0 |
GCMN.PRG unnamed | 0x78 (0.0%) | 0x112c0 (3.5%) | 0x4be00 (15.4%) | 0x510d0 (16.2%) |
DESKTOP.PRG unnamed | 0.1% | 0.1% | 1.4% | 1.4% |
TOPPAGE.PRG, DEMO.PRG unnamed | 0.6%, 0.4% | 0.9%, 0.4% | 1.4%, 0.6% | 1.4%, 0.4% |
| stretches | 13 | 80 | 173 | 170 |
(Measured 2026-09-27; the carry has named more since the first count.) Every stretch is listed, with its neighbours, strings and calls, in the later volumes' unnamed code.
"Less the fonts" leaves out the one stretch from DEG2RAD to the static
constructors: the bitmap fonts (in QUA, which moved two of them to
KFED.BIN and KFAED.BIN, whatever took their place, 0x86ac4 bytes).
The stretches of 8 KB or more, and what they are:
| volume | where | bytes | what (by its strings and calls) |
|---|---|---|---|
| MUT, OUT, QUA | main, before ccInitStreamDemoThread | 0xffb4 / 0x10584 / 0x17ce4 | the new streams' effect functions (Func_str0710e, str1070e, str1430e: ccRasterNoize, ccBufferSampling, ccBufferReverce, fades) |
| MUT | main, after ccEvent::Execute | 0x3490 | the event engine's new instructions (overlay loads, SimGenerateCode, RoomSelect, party add and delete, gate list, items) |
| MUT, OUT | main, after Func_str9001 | 0x332c / 0x2778 | stream str9001's effects (OBJ_se1_6flo1) |
| MUT, OUT, QUA | gcmn, after BIRD::Move | 0x3cf8 / 0x3c94 / 0x85b4 | the Grunty race (PG_RACE, town06, the xp_ cups, flags and count); QUA adds its staff roll (STFROLL_VOL4) and the hacking logos |
| MUT, OUT, QUA | gcmn, after AreaInfoMenu | 0x59c4 / 0x5b20 / 0x5b20 | a new menu (messages, OpenInfo, number input) |
| OUT, QUA | gcmn, after ccBoss08KillerEye::OnThinkDead | 0x25da0 | Kyvia's fights (kyviaCore, Kyvia01-04, the ex0-ex4 models, the boss camera and particles) |
| OUT, QUA | gcmn, after ccFellowCheckNote | 0x10ec0 | the Root Towns 02-05 (town02-05 static models, their water and lights) and the party of 12 and more (SPC_01-SPC_12, expulsionSpc) |
| OUT, QUA | gcmn, after EVENTAREA::EVENTAREA | 0xaf60 | the other event areas (se1_1, se1_2, se2_1, se2_6: their static models, animations, lens flares) |
| OUT, QUA | gcmn, after ccEnemyG::actEscapeGold | 0xa6cc | the enemy races recompiled (their constructors, acts, breath), with ccEnemyL's type 3 (OBJ_elg1body) |
MUT's code is Infection's with these additions. OUT and QUA were compiled differently, so part of what shows there is Infection's code under other register choices (the enemy races are); the Kyvia fights, the towns and the event areas are new.
Settled
What this page once left open:
KFED.BIN/KFAED.BIN. Event opcode 169 (Quarantine's ending) reads both and frees them after the staff roll (STFROLL_VOL4); no instruction reads them in between. The staff roll draws its text with the executable's own fonts (the Quarantine DVD).STRT.BIN. Six scenes no code opens: the Infection and Mutation demo discs' title screens, a "February 2003" teaser and a four-part selector (the Outbreak DVD).VOICE2. The characters' skill-word banks: Infection's 18, moved, and Tsukasa's, Subaru's and Sora's (the Outbreak DVD).- The CD modules. They did not move into
IOPRP243.IMG; the image already carried newer ones on every disc. Infection's and Mutation'sMODULES/CDVD*.IRX(1.04) were never loaded; the image's (2.26) are (the IOP image). - The stretches. All 423 are listed with what can be read of them (the later volumes' unnamed code).
Unknown
- The names of the functions in the unnamed stretches: none survive to carry. They are read from their strings and calls, and from their code where a system is ported.
How this was found out
- #20 The other three volumes, and Infection's names carried over to them22 Sep 2026
- #21 The area generator is the same on all four volumes, but two story areas moved into data22 Sep 2026
- #23 Text rendering reproduced, and what Quarantine's KFED.BIN is22 Sep 2026
- #24 Event scripts on every volume, and how a save carries into the next23 Sep 2026
- #25 Dungeons, fields, battle and text checked on every volume23 Sep 2026
- #239 Each disc file by file, and the four discs' unknowns27 Sep 2026
- #493 GetEventAreaInfo(0) on Outbreak and Quarantine finds row 0 as the port does: the carried names of its two overloads were crossed25 Oct 2026
- #596 ccThEntryCtrl on Outbreak and Quarantine: thread ends as function starts in the symbol carry, deleteAllObject by its callees, the later passes' calls, and the battle spawn harness on all four volumes14 Nov 2026