The Centaur's Page of QG5 Hex Hacking

WARNING!!!

Hacking a saved game is risky business.  One slight error will crash the game and make you lose your saved game forever.

You should always save your game under AT LEAST two different names before you try hacking it.  That way, if you mess one up by hacking it, you can still always play the other one and no harm is done.

THE CENTAUR OF SIFNOS (THAT'S ME) WILL NOT BE HELD RESPONSIBLE IF YOU MESS UP YOUR SAVED GAME FILE AND HAVE TO START YOUR WHOLE GAME OVER, OR IF YOU CRASH YOUR COMPUTER.  I WILL ALSO NOT BE RESPONSIBLE FOR ANY DAMAGE DONE TO YOUR GAME OR YOUR COMPUTER. YOU'VE BEEN WARNED.  LIKE I SAID, SAVE MORE THAN ONCE!!!!
 

I have to apologize to those of you who sent me your saved game files or e-mailed to ask questions.  I haven't updated this page recently, but there seems to be a problem with the e-mail system I'm on that it will not send back saved game files correctly.  Unfortunately, this means that I am no longer able to personally edit your saved games, but you can attempt to use the following procedure if you would like.


 


Following is a step-by-step instruction of how to hack your saved games.

1.  The first thing you will have to do is download a hex editor.  There are many shareware hex editors available.  You can try these sites or most any shareware site:

For Macs: Brain-Hex 1.1       For PCs: Hex Workshop    or    UltraEdit

2.  The next step is to save your Quest for Glory 5 game, preferrably 3 times under different names.
3.  Exit Quest for Glory 5 and open one of those saved game files in your hex editor.

Now is where the confusing part begins.  In the hex editor your file looks like a bunch of letters, numbers, and other strange characters.  The part that you are concerned with is normally on the left side.  There are columns containing sets of 4 digits across.  The digits will range from 0-9 and A-F.

To edit your inventory items, you will need to scroll down the file some.  About 100 lines down or so, you will get to a section of the file that will look something like the following (without the red and blue boxes).  NOTE: THE ROW NUMBERS WILL NOT BE THE SAME AS IN THIS PICTURE!!!!

It probably won't match up so nicely as this, so don't be alarmed.  Now, here comes the hacking...

The column surrounded by the red box is the items column.  The sets of 4 digits are the items in your inventory.  For example, in the row labeled 40, 098B is Healing Pills and in the row labeled 80, 208B is your fruit rations.  It is possible that 20 be at the end of row 70 and 8B be at the very beginning of row 80.  You may even find something like this in the middle of the columns:  0020 8B01.  Just remember that the 20 and the 8B go together.  Same with the 09 and the 8B, even if they are at connecting ends of consecutive rows or if there is a space between them.

Now let's give your Hero the Dragon Slayer Sword.  The Dragon Slayer Sword is labeled as 058B.  In row 80, you would replace 208B with 058B.  Make sure that all of the digits in the area corresponding to the green column are 0s.  Then save the file in your hex editor, close it, and then open it up in Quest for Glory 5.  Your Hero will now have the Dragon Slayer Sword.  However, you have replaced your fruit with the sword, so you no longer have any fruit to eat.  The solution:  Go to Marrak and buy some more fruit, it only costs one silver each.

Unfortunately, I have not yet found a way to add items without replacing others.  This is not really a problem though, except for having to switch between QG5 and your hex editor repeatedly.

You can replace your fruit with any item in the game.  The following is the label for each item in the game.  Replace 208B with any of the following to get that particular item.
 
 

Replace 208B with 
to get 
FF8A
Magic Spear
FE8A
Throwing Spear
FD8A
Spear
FC8A
Arrows
FB8A
Magic Bow
FA8A
Bow
F98A
Slasher Dagger
F88A
Poisoned Dagger
F78A
Magic Dagger
F68A
Dagger
F58A
Magic Helm
F48A
Helm
F38A
Magic Leather Armor
F28A
Leather Armor
F18A
Magic Chain Mail
F08A
Chain Mail
EF8A
General's Shield
EE8A
Magic Shield
ED8A
Shield
008B
Wurmbane Spear
018B Sword
028B
Magic Sword
038B
Paladin Sword
048B
Ice Diamond Sword
058B
Dragon Slayer Sword
068B
Trident
078B
Magic Axe
088B
Minotaur Axe
098B
Healing Pills
0A8B
Poison Cure Pills
0B8B
Stamina Pills
0C8B
Mana Pills
0D8B
Health Potion
0E8B
Vitality Potion
0F8B
Mana Potion
108B
Fire Proofing Potion
118B
Amphora
128B
Lethe Water
138B
Hippocrene Water
148B
Styx Water
158B
Goo
168B
Alabaster Amphora
178B
Gyro
188B
Sokolatak-ya
198B
Chocolate Box
1A8B
Pepperoni Pizza
1B8B
Jalapeno Peppers
1C8B
P&J Pizza
1D8B
Artichoke Pizza
1E8B
Anchovies
1F8B
A&A Pizza
208B
Fruit
218B
Pick-Pocket Knife
228B
Grapnel
238B
Magic Grapnel
248B
Rope
258B
Rope & Grapnel
268B
Stealth Oil
278B
Blackjack
288B
ACME Toolkit
298B
Tinderbox
2A8B
Flowers
2B8B
Black Lotus
2C8B
Sigil of Ios
2D8B
Sigil of Keros
2E8B
Sigil of Naxos
2F8B
Sigil of Parros
308B
Sigil of Tinos
318B
Peace Statue
328B
Blackbird
338B
Winged Lion Statue
348B
Magic Statue
358B
Bead Necklace
368B
Gold Ring
378B
Hera's Ring
388B
King's Ring
398B
Ring of Truth
3A8B
Amulet of Defense
3B8B
Amulet of Attack
3C8B
Good Luck Charm
3D8B
Atlas Armband
3E8B
Stealth Charm
3F8B
Magic Charm Bracelet
408B
Katta Pin
418B
Water-Breathing Amulet
428B
Jewelry
438B
Scroll
448B
Deed
458B
Map
468B
Handbook of Swimming
478B
Drachmas*
488B
Hydra Teeth
498B
Hydra Scale
4A8B
Mystic Magnet (Blue)
4B8B
Mystic Magnet (Red)
4C8B
Proof of Destiny
4D8B
Rocks
4E8B
Magic Wood
4F8B
Basket
518B
Torch
528B
Lit Torch
538B
Sheet
548B
Sewn Sheet
558B
Balloon Painting
568B
Pegasus Feather
578B
Beeswax
588B
Key
598B
Brazier
5A8B
Shell
5B8B
Mug
5C8B
Spearhead
5D8B
Arrowhead
5E8B
Fine Axe
5F8B
Magic Seeds
608B
Amphora with Water
618B
Ouzo (drink)
628B
Retsina (drink)
638B
Ale (drink)
648B
Greek Coffee (drink)
658B
Today's Special (drink)
668B
Immitation Blackbird
678B
Windproof Sheet
688B
Augmentation Scroll
698B
Shrink Spell Scroll
6A8B
Thermonuclear Blast Scroll
6B8B
RIP Scroll
6C8B
Boom Scroll
6D8B
Juggling Lights Scroll
6E8B
Resistance Scroll
6F8B
Dazzle Scroll
708B
Zap Scroll
718B
Fascination Scroll
728B
Interesting Toolkit
738B
Barbed Spear
748B
Ornate Shield
758B
Magic Staff
7C8C
Open Spell
7D8C
Fetch Spell
7E8C
Trigger Spell
7F8C
Force Bolt Spell
808C
Flame Dart Spell
818C
Frost Bite Spell
828C
Lightning Ball Spell
838C
Dazzle Spell
848C
Calm Spell
858C
Hide Spell
868C
Glide Spell
878C
Detect Magic Spell
888C
Levitate Spell
898C
Reversal Spell
8A8C
Protection Spell
8B8C
Resistance Spell
8C8C
Aura Spell
8D8C
Juggling Lights Spell
8E8C
Summon Staff Spell
8F8C
Zap Spell
908C
Whirlwind Spell
918C
Augment Spell
928C
RIP Spell
938C
Boom Spell
948C
Fascination Spell
958C
Thermonuclear Blast Spell
968C
Dragon Fire Spell
978C
First Aid Spell
988C
Shrink Spell
E08C
Healing (Paladin Ability)
E18C
Honor Shield (PA)
E28C
Magic Ward (PA)
E38C
Destroy Undead (PA)
E48C
Peace (PA)
E58C
Sense Aura (PA)
E68C
Holy Strength (PA)
E78C
Awe (PA)

If you are so inclined, you can also change the amount of an item you have in your inventory.  The blue column contains the data for the amount of an item you have.  Be forwarned, the numbers are in HEX, not decimal.  Therefore, a value of 35 for the first two digits does not correspond to having 35 of the item in your inventory.  It is 53 of the item in your inventory.  To figure how many of an item you have:

Multiply the first digit by 16 and then add the second digit as follows:
 
 
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
A 10
B 11
C 12
D 13
E 14
F 15

Thus a hex value of 35 for the first two digits of the blue column is
3*16=48+5=53
53 of the item in inventory.

Now lets say that you want 200 Drachmas.
Divide 200 by 16 to get the first digit.
200/16=12 remainder 8.
12 corresponds to a hex value of C.
The second digit is the remainder.
8 corresponds to a hex value of 8.
Therefore, 200 is C8 in hex.

In the row with 478B in the red column, change the first two digits of the blue column to C8 and the last two digits to 00.  Make sure that the green column for this item has all zeros.

The second two digits in the blue column are for even higher amounts of an inventory item.  It is suggested that you not play with these digits because it tends to mess up the game.

DON'T FORGET TO BUY MORE FRUIT WHEN YOU ARE DONE EDITING YOUR FILE OR ELSE YOUR HERO WILL STARVE!!!!