THREAD NAVIGATION:  
    Where am I?   Original message   Top of thread   Current page 
Displays all thread messages Displays thread map That to which this responds This thread's lead message Your most recent Tavern page

Hex edit format
10/16/2008, 14:14:27

    kkc writes:

    The save.HDR has everything important about your game. The save.MM9 contains the current status of the area that you are in.

    The HDR file begins with some information about your current location.

    The first player name always appears at hex offset 1D518 in my files. But just find you character name to begin. Here's a table of what is in each player section -

    Offset /Length/Data
    h'0' /17 /Character Name
    h'41' / 1 /Level (max=255)
    h'45' / 4 /XP
    h'4D' / 4 /Current HP (can't be set higher than max HP)

    ** Variable length issues - Next three fields **
    h'55' / 1 /Count of something. Multiply this number by 28 and add the result to every offset beyond this field (including the next two).

    h'AB' / 1 /Count of items in inventory. You need to multiply this value by 30 and add the result to every offset beyond this field (including the next one).

    h'AF' / 4 X 16/ Sixteen fields which are indicators of items worn. A x'01000000' means there is an item in this slot (helm, ring, boots, etc). You need to add up the number of used slots, multiply by 30, and add the result to every offset beyond this field.

    h'EF' / 1 /Voice. Tired of hearing the same stuff? Change it.
    h'F3' / 1 /Class. See table 1 below.
    h'F7' / 1 /Race -- 0=human,1=elf,2=dwarf,3=half orc
    h'107'/ 1 /HUD Picture (player icon) Change your face.
    h'11B'/ 4 /Max HP before bonuses (will be recalculated if you train)
    h'11F' / 4 /Current Spell Points
    h'123'/ 4 /Max SP before bonuses (will be recalculated if you train)
    h'13D'/ 1 /Might Stat
    h'141'/ 1 /Pure might flag (=1 if you drank the potion)
    h'142'/ 1 /Magic Stat
    h'146'/ 1 /Pure magic flag (=1 if you drank the potion)
    h'147'/ 1 /Endurance Stat
    h'14B'/ 1 /Pure endurance flag (=1 if you drank the potion)
    h'14C'/ 1 /Accuracy Stat
    h'150'/ 1 /Pure accuracy flag (=1 if you drank the potion)
    h'151'/ 1 /Speed Stat
    h'155'/ 1 /Pure speed flag (=1 if you drank the potion)
    h'156'/ 1 /Luck Stat
    h'15A'/ 1 /Pure luck flag (=1 if you drank the potion)
    h'15B'/ 49 /Spell flags (1 byte for each spell). A '01' means that you know this spell. The spells are alphabetical but spell number 4 was never put in the game. Leave a '00' in the 4th byte. Of course, they won't all work unless you GM every magic skill.
    h'18C'/ 4 X 23/Skill Levels table - 4 bytes for each skill - max value = 100.
    h'1E8'/ 4 X 23/Skill Mastery table - 4 bytes for each skill (why hunt for teachers?). Allow your player to GM any skill you wish. The Values are : x'FFFFFFFF' = don't know skill ; x'00000000' = know it ; x'01000000' = expert ; x'02000000' = master ; x'03000000' = GM
    The order of the 23 skill fields for each of the two tables is : blade, cudgel, bow, spear, thrown, unarmed, armor, dodge, shield, elemental, dark, light, spirit, armsmaster, disarm, merchant, perception, item repair, ID item, ID monster, body building, learning, meditation
    x'244' / 0 /Start of next player

    Table1 - Character classes
    00 - Fighter
    01 - Mercenary
    02 - Crusader
    03 - Assassin
    04 - Gladiator
    05 - Ranger
    06 - Paladin
    07 - Initiate
    08 - Scholar
    09 - Healer
    0A - Mage
    0B - Lich
    0C - Priest
    0D - Druid

    So, to become a priest, change the hex'09' to hex'0C'.

    Good luck





Reply to this message   Back to the Tavern  

Replies to this message

  • Ah... - Artifacts ( Fri 17-Oct-08 02:56:41 )
  • Thanks, kkc! (n/t) - Peter2 ( Fri 17-Oct-08 07:01:26 )