Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Apr 2020
atom0s Offline OP
stranger
OP Offline
stranger
Joined: Apr 2020
[Info] Debug Mode - Better Game Performance + Windowed Mode

After beating the game, I decided to start hacking it for fun and seeing what all has been hidden over the years in the game. Something that was pretty disappointing is how badly this game runs on newer systems due to all the emulation layers with things like DirectDraw, along with no out-of-the-box windowed mode for some reason. However, this game does have it, just not enabled for normal players.

For myself, I generally only get like 10-25fps running this game on any resolution over 1024x768. Using this trick you can run the game properly in Direct3D mode, get full FPS and be able to properly use a proxy such as dgVoodoo2 to really get the most out of the game along with being able to properly use ReShade and such if you wish to.

What You Need

You will need the following tools to accomplish this:
- Divine Divinity (Only tested with the Steam version. 1.0062a)
- A hex editor. (Any that can scan for byte patterns will work fine. I use 010 Editor personally.)

How To Enable Debug Mode

1. Open your hex editor.
2. Open div.exe inside of the hex editor.
3. Look for the following byte pattern:
Code
89 5E 28 89 7E 2C 89 5E 34 89 5E

4. Go to the first result where this pattern was found. (Currently, this is at file offset: 0x8CCD5)
5. Change the first 0x5E byte to 0x7E. (Currently, this is at file offset: 0x8CCD6)
6. Save div.exe and close the hex editor.

Now when you start the game next time, it should automatically be running in debug mode and run in a window.

Recommended Settings

For myself, I recommend the following settings for better game performance with this enabled:

- Set the game to Direct3D rendering system via the config tool.
- Set the game resolution to 1920x1080 via the config tool.
- Enable 'Smoothness' via the config tool.

Along with this, you can also now properly use dgVoodoo2 with this setup.
You can download the latest version of that here:
http://dege.freeweb.hu/dgVoodoo2/dgVoodoo2.html


Please note: I have not played through the whole game with debug mode enabled so I cannot say for certain there are no issues while playing the game like this. Please be sure to backup all files you edit as well as your saved games just in case before making any changes!

Last edited by vometia; 05/04/20 02:06 AM. Reason: formatting
Joined: Mar 2003
Location: Canada
Support
Offline
Support
Joined: Mar 2003
Location: Canada

Interesting. It seems to work fine in a quick check.

EDIT: Here is a link for an edited version of the div.exe file (1.0062).

Last edited by Raze; 12/04/20 05:27 AM.
Joined: Apr 2020
atom0s Offline OP
stranger
OP Offline
stranger
Joined: Apr 2020
I am able to do this with Beyond Divinity as well. I can make a post about that in the other forum.
It's a bit more involved than this.

Joined: Jul 2021
G
stranger
Offline
stranger
G
Joined: Jul 2021
When I launch the game with the edited .exe and the recommended config settings, I get a black screen with a white corner in top left. I can hear the main menu music but can't see anything. I'm running the GOG version using 1920x1080 which is my native resolution. Some lower resolutions will show the game screen but then it's small and I have big black borders. Anyone know what the problem could be?

Last edited by Gringovich; 29/07/21 10:48 PM.
Joined: Nov 2022
R
stranger
Offline
stranger
R
Joined: Nov 2022
I'll revive the topic a bit.
I don't speak English, so you might not understand me.
I'm trying to make something similar to the editor for dd.
Perhaps someone here has already tried to do this.
If there are any developments, I would like to know about it.
So far I have only written a program for replacing textures and moving objects.
[img]https://sun9-68.userapi.com/impg/Cl...825289839ec19ad816d3cb7c4&type=album[/img]
[img]https://sun9-87.userapi.com/impg/DE...1673d6ad9a33a8940f3e281f2&type=album[/img]


Moderated by  Larian_QA, Lar_q, Lynn, Macbeth 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5