Transferring a party from Eye of the Beholder I
The party · Transfer: spells and items · The start menu
In brief
TRANSFER EOB I PARTY reads the saved game of the first game, EOBDATA.SAV,
converts its six characters and lets the player choose four of them. The
characters keep their attributes, class and levels without any test against
the creation rules; their experience is capped, their poison, paralysis and
petrification are cleared, and they start with full hit points and 100 food.
The game then begins as with a new party, but without starting items or
starting spells.
Transferring a party from Eye of the Beholder I
No saved game of Eye of the Beholder I was available: the file layout below is what this game's code reads, not a description of the first game's format, and what the bytes meant in that game is not established here.
TRANSFER EOB I PARTY, on the start menu, reads the saved game of the first game, converts its six characters, lets the player choose four of them and starts the game with them. The game then begins as with a new party, but none of the steps of entering the game is run: no starting items, no starting spells and no copy of the attributes into their second bytes.1
-
The game looks for
EOBDATA.SAV. While it cannot find it, a message asks for the disk holding that file, or for the file to be copied into the game's directory, and whether to continue; yes looks again, no returns to the start menu. -
It reads the file and converts the six characters, below.
-
A screen shows the six characters, "You may only take four characters on your adventure." and "Select OK when you are finished choosing your party.". Only a character marked
CHARACTER_STATUS_PRESENTcan be chosen. OK with fewer than four chosen shows "You must transfer four party members before you may play!", with more "You may only transfer four party members to EOB II!"; CANCEL clears the six records and returns to the start menu. OK with four shows "Items which are not useful or unbalance the game will be deleted.".Keypad 4 and 6 switch column; keypad 8 and 2 move by row through the six characters, then CANCEL and OK, wrapping around. Enter or Space toggles the selected character or presses the selected button; Escape presses CANCEL; a left click acts on the entry under the pointer. With a mouse, the selected portrait has a pulsing frame and the selected button label is coloured.2
-
The four chosen characters move to slots 0 to 3, in the order they had; slots 4 and 5 are cleared.
-
The items of the four are converted, below.
-
Khelben's Coin, item 93 of the item table, goes to the first of the four with an empty backpack slot, in its first empty one.
A party with fewer than four characters marked present cannot be transferred: the only way out is CANCEL.
What the game reads
The game reads the first 8,522 bytes of EOBDATA.SAV and nothing else:3
| File offset | Size | Read as |
|---|---|---|
0x000 | 6 × 243 | Six character records. |
0x5b2 | 64 | Read, then overwritten by the next read: never used. |
0x5f2 | 500 × 14 | Items. A character's inventory holds indexes into this table; 0 is an empty slot. |
In a character record, the game uses these bytes:
| Offset | Becomes, in CharacterRuntime |
|---|---|
0x00–0x1a | The same bytes: the first byte, status_flags, name, the attributes with exceptional strength, and their second bytes. |
0x1c | hit_points_max and hit_points, read as a signed byte. |
0x1d | defense. |
0x1f–0x32 | race_and_sex, class_index, alignment, portrait, food, levels and experience, at offsets 0x21–0x34. |
0x73 | known_mage_spells, converted; see spells. |
0x77–0xac | inventory, 27 item indexes, converted; see items. |
In an item, it uses the flags at 0x02, the icon at 0x03, the type at
0x04, the next item of a quiver at 0x0a and the value at 0x0d, the type
and value as signed bytes. Slot 16 of the inventory is the first item of the
quiver, as in this game.
The characters
The six records are converted before the choice:4
-
status_flagskeeps onlyCHARACTER_STATUS_PRESENT: poison, paralysis and petrification are gone. -
hit_pointsandhit_points_maxboth take the byte at0x1c; the byte before it is not read, so every character starts with as many hit points as its maximum.foodis set to 100. -
defenseis copied, not computed again, before or after the items are converted. -
A negative
portrait− n becomes n + 43; every portrait is then drawn fromCHARGENA.CPS. -
Each component's experience is lowered to a cap of its base class, without changing the levels:
Base class Highest experience kept Just below the threshold of level Fighter 999,999 12 Mage 749,999 12 Cleric 899,999 12 Thief 439,999 12 Paladin, ranger 899,999 11 -
Class, race, alignment, attributes and levels are copied without any test against the creation rules.
-
disabled_slots, the spell slots, the timers,spell_effects, the Armor and Aid reserves, the hand results and the spell-book page are not written. They keep what the record held, which is zero when the game has just started (inferred from the executable's initial data).
Sources
Locations refer to the game executable reference;
comparative sources are listed in the technical references.
The figures are drawn by make_party_figures.py.