Skip to main content

Technical references

Home · Kaitai schemas · File inventory

This registry lists external technical references relevant to the study of Eye of the Beholder II: The Legend of Darkmoon. References can provide context and interpretations, but do not by themselves prove that a description applies to a particular game, platform, or release. Individual findings identify their supporting evidence and any remaining uncertainty.

Format documentation​

Reference IDSourceSubject
REF-MW-001ModdingWiki: Eye of the BeholderOverview of game resources and format references.
REF-MW-002ModdingWiki: Maze Format, revision 11916MAZ dungeon geometry and wall data.
REF-MW-003ModdingWiki: Maze Information FormatINF level data and scripting-related structures; includes a distinct EOB II section and unverified 68000-derived example, consulted 2026-10-31.
REF-MW-004ModdingWiki: VCN FormatDungeon graphics data.
REF-MW-005ModdingWiki: VMP FormatDungeon graphics arrangement.
REF-MW-006ModdingWiki: Westwood CPS FormatImage containers and compression.
REF-MW-007ModdingWiki: Westwood PAK FormatResource archive structure.
REF-MW-008ModdingWiki: Westwood LCWComparative compression method for DOS INF payloads; consulted 2026-10-31.
REF-MW-009ModdingWiki: EOB decorationsDEC decorations; explicitly distinguishes PC byte order; consulted 2026-10-31.
REF-MW-010ModdingWiki: EOB item.datCandidate item data layout; incomplete, game/version applicability requires checking; consulted 2026-10-31.
REF-MW-011ModdingWiki: EOB itemtype.datCandidate item type layout; incomplete, game/version applicability requires checking; consulted 2026-10-31.
REF-MW-012ModdingWiki: EOB text.datCandidate text data; incomplete, applicability requires checking; consulted 2026-10-31.
REF-MW-013ModdingWiki: EOB palettePalette formats; examples specifically describe EOB I PC and cannot be assumed for EOB II; consulted 2026-10-31.
REF-MW-014ModdingWiki: Westwood Font Format v2Candidate FNT font format; applicability requires checking; consulted 2026-10-31.
REF-MW-015ModdingWiki: ADLComparative sound format, including an EOB II entry (120-byte table, 250 program and 250 instrument pointers, pointers relative to the table's end); a stub without commands; consulted 2026-10-31 and 2026-11-04.
REF-MW-016ModdingWiki: EOB save gameDescribes EOB I only (revision 10015, last edited 2021-09-02) and gives part of the character record; it has no EOB II layout. Not used for the EOB II saved-game layout; consulted 2026-11-03.

These pages may cover multiple games or platforms. Their descriptions are comparative references; applicability to a specific EOB II file requires verification against that file and its version.

Comparative implementation​

Reference IDSourceSubject
REF-SCUMM-001ScummVM repositoryOpen-source game engine implementations.
REF-SCUMM-002ScummVM Kyra engineCode containing Eye of the Beholder implementations.
REF-SCUMM-003ScummVM EOB script interpreterComparative EoBInfProcessor::run and its oeob_* instruction handlers, such as oeob_setFlags; moving branch, consulted 2026-11-01, exact revision unknown. REF-SCUMM-013 links three handlers at a fixed revision.
REF-SCUMM-004ScummVM EOB scene codeCandidate source for comparison with MAZ loading; applicability requires verification.
REF-SCUMM-005ScummVM RPG block propertiesComparative LevelBlockProperty::walls[4] definition, not an original on-disk type; retrieved 2026-10-31.
REF-SCUMM-006ScummVM scene loader, revision 6b6d5c0Comparative readLevelFileData, initLevelData, loadBlockProperties, loadVcnData, getVmpData and loadDecorations; source previously retrieved 2026-10-31.
REF-SCUMM-007ScummVM EOB II monster properties and monster instancesComparative DarkMoonEngine::loadMonsterProperties and EoBCoreEngine::loadActiveMonsterData; moving branch, retrieved 2026-10-31, exact revision unknown.
REF-SCUMM-008ScummVM monster behavior and monster damageComparative updateMonsters, updateMonsterDest, updateMonsterAttackMode, turnFriendlyMonstersHostile, updateMoveMonster, walkMonsterNextStep, getNextMonsterPos, findFreeMonsterPos, updateMonsterTryDistanceAttack and inflictMonsterDamage; moving branch, consulted 2026-11-01, exact revision unknown.
REF-SCUMM-009ScummVM EOB II NPC dialogue and shared NPC and sequence routinesComparative runNpcDialogue, npcSequence, npcJoinDialogue, prepareForNewPartyMember, initNpc, seq_portal and checkPassword; moving branches consulted 2026-11-01, exact revisions unknown.
REF-SCUMM-010ScummVM EOB item flight and RPG scene and door operationsComparative updateObjectFlight, setLevelShapesDim, openCloseDoor and completeDoorOperations; moving branches consulted 2026-11-02, exact revisions unknown.
REF-SCUMM-011ScummVM EOB monster drawing and EOB shape encodingComparative loadMonsterShapes, drawMonsters and Screen_EoB::encodeShape; moving branches consulted 2026-11-02, exact revisions unknown. Not a description of the original DOS implementation.
REF-SCUMM-012ScummVM Kyra engine, revision 5f9fa6fComparative oeob_movePartyOrObject and oeob_dialogue (script_eob.cpp), moveParty (scene_eob.cpp), countQueuedItems (items_eob.cpp), initDialogueSequence, restoreAfterDialogueSequence, drawSequenceBitmap, runDialogue (eobcommon.cpp) and TextDisplayer_rpg::printDialogueText (text_rpg.cpp); retrieved 2026-11-02. The moving-branch files fetched that day were identical to this revision. Also Screen::crossFadeRegion (graphics/screen.cpp), retrieved 2026-11-04. Also AdLibDriver::startSound, setupPrograms, executePrograms, _parserOpcodeTable and Channel (sound/drivers/adlib.cpp) and SoundPC_v1::loadSoundFile (sound/sound_pc_v1.cpp), retrieved 2026-11-04.
REF-SCUMM-013ScummVM EOB functions with line links, revision 5f9fa6fComparative functions, by file. engine/magic_eob.cpp: magicObjectStatusHit L603, turnUndeadHit L657, createMagicWeaponType L699, createMagicWeaponItem L723, removeMagicWeaponItem L746, spellCallback_start_fear L1015, spellCallback_start_turnUndead L1313. engine/eobcommon.cpp: testCharacter L1181, increasePartyExperience L1589, calcAndInflictCharacterDamage L2400, calcCharacterDamage L2406, trySavingThrow L2780, savingThrowReduceDamage L2834. engine/sprites_eob.cpp: drawBlockItems L339, drawFlyingObjects L588. engine/scene_eob.cpp: toggleWallState L560, calcNewBlockPositionAndTestPassability L718. engine/darkmoon.cpp: DarkMoonEngine::replaceMonster L417. script/script_eob.cpp: oeob_replaceMonster L352, oeob_calcAndInflictCharacterDamage L685, oeob_increasePartyExperience L1350. Retrieved 2026-11-02.
REF-SCUMM-014ScummVM EOB main loop, timers and interactions, revision 5f9fa6fComparative game loop, timed updates and cross-system interactions. engine/eobcommon.cpp: runLoop L770, checkPartyStatus L814. engine/timer_eob.cpp: setupTimers L33, setCharEventTimer L107, timerProcessCharacterExchange L232, timerProcessMonsters L283, timerSpecialCharacterUpdate L287, timerUpdateTeleporters L387, timerUpdateFoodStatus L398, timerUpdateMonsterIdleAnim L411. engine/magic_eob.cpp: updateWallOfForceTimers L752, destroyWallOfForce L762. engine/eobcommon.cpp: inflictMonsterDamage L2367. engine/sprites_eob.cpp: placeMonster L128, killMonster L150, isMonsterOnPos L234. engine/items_eob.cpp: updateFlyingObjectHitTest L708. engine/darkmoon.cpp: DarkMoonEngine::killMonsterExtra L470. script/script_eob.cpp: EoBInfProcessor::run L169. Character progression, engine/eobcommon.cpp: generateCharacterHitpointsByLevel L1096, getClassAndConstHitpointsModifier L1138, getCharacterClassType L1147, increasePartyExperience L1589, increaseCharacterExperience L1608, getRequiredExperience L1626, increaseCharacterLevel L1635; gui/gui_eob.cpp: GUI_EoB::runCampMenu L2395, GUI_EoB::runMemorizePrayMenu L3569 (retrieved 2026-11-03). Retrieved 2026-11-02.
REF-SCUMM-015ScummVM EOB saved games, revision 5f9fa6fComparative reading and writing of original saved games, gui/saveload_eob.cpp: EoBCoreEngine::importOriginalSaveFile, readOriginalSaveFile and saveAsOriginalSaveFile. Retrieved 2026-11-03.
REF-SCUMM-016ScummVM RPG scene code, revision 5f9fa6fComparative dungeon view, engine/scene_rpg.cpp: KyraRpgEngine::generateBlockDrawingBuffer (the 18-block _visibleBlocks diagram, side tables _dscBlockMap, backdrop parity), hasWall, assignVisibleBlocks (_dscBlockIndex), generateVmpTileData and generateVmpTileDataFlipped; and engine/scene_eob.cpp, EoBCoreEngine::drawScene (the copy of the view to the screen), drawSceneShapes and drawDecorations; engine/sprites_eob.cpp, drawBlockItems, drawMonsters and drawFlyingObjects; graphics/screen_eob.cpp, scaleShape, scaleShapeStep L1200 and scaleShapeProcessLine4Bit L1937; engine/scene_eob.cpp initLevelData L155 (door records) and releaseDoorShapes L533; engine/darkmoon.cpp DarkMoonEngine::loadDoorShapes L505 and drawDoorIntern L524. Retrieved 2026-11-03.
REF-SCUMM-017ScummVM EOB character generator, revision 5f9fa6fComparative party creation, engine/chargen.cpp: CharacterGenerator::createDefaultParty L443, createPartyMember L725, classMenu L824, alignmentMenu L901, generateStats L1018, rollDice L1395, modifyStat L1410, getMaxHp L1582, getMinHp L1603, finish L1624, and the tables _classMenuMasks L2014, _alignmentMenuMasks L2018 and _raceModifiers L2023; engine/eobcommon.cpp: the start loop of EoBCoreEngine::go L665 and getModifiedHpLimits L1151; engine/items_eob.cpp: createInventoryItem L196. Retrieved 2026-11-03. Party transfer, engine/chargen.cpp: TransferPartyWiz::start L2099, selectAndLoadTransferFile L2150, selectCharactersMenu L2208, convertStats L2402, convertInventory L2450, convertItem L2473 and giveKhelbensCoin L2576, retrieved 2026-11-04.
REF-SCUMM-018ScummVM EOB party formation and close attacks, revision 5f9fa6fComparative formation, monster target choice and character actions. engine/eobcommon.cpp: monsterCloseAttack L2601, exchangeCharacters L1582, dropCharacter L1545; engine/sprites_eob.cpp: updateMonsterTryCloseAttack L1025; engine/magic_eob.cpp: magicObjectDamageHit L528; gui/gui_eob.cpp: gui_drawWeaponSlotStatus L336, clickedCharNameLabelRight L1045, gui_processWeaponSlotClickRight L1432; engine/items_eob.cpp: eatItemInHand L601. Retrieved 2026-11-03.
REF-SCUMM-019ScummVM EOB resting, revision 5f9fa6fComparative rest command. gui/gui_eob.cpp: GUI_EoB::restParty L3995, restParty_updateRestTime L4922; engine/eobcommon.cpp: restParty_displayWarning L1847, restParty_updateMonsters L1860, restParty_getCharacterWithLowestHp L1904, restParty_checkHealSpells L1922, restParty_checkSpellsToLearn L1937; engine/darkmoon.cpp: DarkMoonEngine::restParty_npc L565 and restParty_extraAbortCondition L606. Retrieved 2026-11-03.
REF-SCUMM-020ScummVM EOB monster update, movement and state, revision 5f9fa6fComparative monster update loop, modes, destination, movement, positions in a block and state flags. engine/sprites_eob.cpp: initMonster L97, placeMonster L128, killMonster L150, updateAllMonsterShapes L317, updateMonsters L700, updateMonsterDest L753, updateMonsterAttackMode L772, turnFriendlyMonstersHostile L788, getNextMonsterDirection L806, getNextMonsterPos L833, findFreeMonsterPos L864, updateMoveMonster L889, updateMonsterTryDistanceAttack L918, updateMonsterTryCloseAttack L1025, walkMonster L1093, walkMonsterNextStep L1164, updateMonsterFollowPath L1223, updateMonstersStraying L1230, updateMonstersSpellStatus L1260, setBlockMonsterDirection L1267; engine/eobcommon.h: EoBMonsterInPlay L208; engine/timer_eob.cpp: timerUpdateMonsterIdleAnim L411; engine/eobcommon.cpp: closeDistanceAttack L2255, inflictMonsterDamage L2367, characterAttackHitTest L2496; engine/magic_eob.cpp: magicObjectStatusHit L603, turnUndeadHit L657, spellCallback_start_fleshToStone L1134, spellCallback_start_turnUndead L1313; engine/darkmoon.cpp: DarkMoonEngine::replaceMonster L417. Retrieved 2026-11-03.
REF-SCUMM-021ScummVM EOB monster attacks and effects, revision 5f9fa6fComparative monster hit roll, melee and ranged attacks, monster spells, conditions inflicted on characters and character timer events. engine/eobcommon.cpp: monsterAttackHitTest L2547, monsterCloseAttack L2601, monsterSpellCast L2668, statusAttack L2673, specialAttackSavingThrow L2795; engine/magic_eob.cpp: findFirstCharacterSpellTarget L784, findNextCharacterSpellTarget L795, charDeathSavingThrow L805, spellCallback_end_monster_lightningBolt L1338, spellCallback_end_monster_fireball1 L1343, spellCallback_end_monster_fireball2 L1358, spellCallback_end_monster_deathSpell L1363, spellCallback_end_monster_disintegrate L1380, spellCallback_end_monster_causeCriticalWounds L1396, spellCallback_end_monster_fleshToStone L1410; engine/items_eob.cpp: launchObject L622; engine/timer_eob.cpp: timerSpecialCharacterUpdate L287. Retrieved 2026-11-03.
REF-SCUMM-022ScummVM EOB clock, pauses and character timers, revision 5f9fa6fComparative tick length, clock pauses and character timers. engine/eobcommon.cpp: _tickLength L63; engine/timer_eob.cpp: enableSysTimer L57, disableSysTimer L95, setCharEventTimer L107, timerSpecialCharacterUpdate L287; engine/sprites_eob.cpp: flashMonsterShape L306, updateMonsterTryCloseAttack L1025; engine/magic_eob.cpp: castSpell L174, sparkEffectOffensive L443, spellCallback_start_coneOfCold L1055; engine/items_eob.cpp: explodeObject L732; engine/scene_eob.cpp: loadLevel L35; gui/gui_eob.cpp: gui_drawSpellbook L673, clickedCamp L916, clickedSpellbookList L1135. Retrieved 2026-11-03.
REF-SCUMM-023ScummVM EOB PC speaker driver, revision 5f9fa6fComparative PCSpeakerDriver: startSound, update, the note tables _periodsPCSpk and _periodsPCjr, one or three channels; retrieved 2026-11-05.

The references in this table are independent implementations, not the original Westwood source. Most links above follow a moving branch; findings cite the specific revision and relevant source location used for their comparison.

The MAZ comparison uses REF-MW-002 revision 11916. Its proposed header fields and wall-side order are comparative descriptions, not findings from the EOB II DOS samples. The MAZ comparison also uses REF-SCUMM-004 at revision 6b6d5c0f3a49f71738966c5893c87e9271b040fb, EoBCoreEngine::loadBlockProperties, lines 369–382.

Tools and specifications​

Reference IDSourceSubject
REF-TOOL-001Kaitai Struct · User guide · Web IDEFormal description and parsing of binary formats.
REF-TOOL-002REAReverse-engineering workflows and binary analysis integration.
REF-TOOL-003Ghidra · WebsiteStatic analysis and decompilation.
REF-TOOL-004Kaitai Struct KSY Style Guide, version 0.11Schema doc/doc-ref authoring and documentation conventions; consulted 2026-10-31.
REF-TOOL-005Ghidra issue #5543: Borland FBOV overlaysComparative overlay header, segment table and loader limitations; consulted 2026-10-31. Interpretation must be checked against the executable.
REF-TOOL-006LoadBorlandOverlays.javaComparative overlay stub and fixup interpretation; moving branch, retrieved 2026-10-31, exact commit unknown.

Evidence and interpretation​

The documentation marks inferences and unknowns where they occur; everything else it states is established, as explained in the reading guide. Source revisions, sample identities, offsets, and validation results appear with the findings to which they apply.