So I am getting back into Baldur’s Gate but i want to customize the game. I have the game on my phone and i can’t figure out how to use EEKeeper.
But I do know how to use a hex editor.
The main thing i want to do is change alignments and classes. I want Jaheira=Ranger/Cleric, Khalid= Paladin, Minsc=Berserker, Imoen=Thief/Mage multi-class, Dynaheir=Sorcerer
I know where the class hex location is and I know the class codes for:
Mage=1
Fighter=2
Cleric=3
Thief=4
But I do not have and cannot find class codes for any of the others and i fear I am starting to destroy saved games to figure it out.
Does anyone have these class codes
I would also like to know a few alignment and race codes and hex locations so that I can change Khalid to LG, etc.
I’m guessing since you’re on your phone you don’t have a way to access the game resources. There is a file called class.ids, which defines the constants for all classes and races (including monsters and whatnot). These numbers are in base 10, not hex. The first 21 lines are:
I fired up Near Infinity, and looked at a few NPCs, at it appears race is located at 0272, while alignment is located at 027b. This should be uniform for all NPCs.
On the PC, In the unmodded game, the files are all packed away in zipped files called biffs. There are a mess of them, I’m not sure it’s possible to locate which biff has which files. You need a program like Near Infinity to access them. Unfortunately, I don’t know how it works with a tablet or phone. Near Infinity is written in Java and is cross-platform (I use it on linux), so it’s possible it will work with Android (assuming that’s what you’re using).
If a mod touches a file, then it gets put in a folder called override, within the game folder. Then the file can be accessed directly. .ids files are just text files, so they can be opened right up.
The .ids file just defines constants. For our purposes, it’s a list of which integer indicates which class.
Be careful assigning kits, though. If you want Minsc to be a bezerker, then his base class needs to be changed to fighter. I don’t know what kind of bizarre things might happen if a kit is assigned to a class it’s not meant for. But it probably will just fail to work.
I just realized something… everything I’ve been saying refers to modifying the NPC’s creature file, but you’re talking about editing your savegame file. Doh!
Ok, so looking at this another way: in a NPC creature file, the class starts at offset 0273, and the kit starts at 0244. So if you’ve located the NPC’s class in your savegame file, you can figure out how far to back up to locate the kit.