Jump to content


SUPPORT TOPIC File Information

  • Submitted: Jul 14 2011 05:15 AM
  • Last Updated: Jan 06 2013 04:36 PM
  • File Size: 708.12K
  • Views: 5019
  • Downloads: 1944

Previous Versions

  • 06 Jan 2013 Download BG1 engine FIX - extending limit of maximum GLOBAL variables v2
  • 14 Jul 2011 Download BG1 engine FIX - extending limit of maximum GLOBAL variables
  • 14 Jul 2011 Download BG1varFIX.exe

Download BG1 engine FIX - extending limit of maximum GLOBAL variables v2

* * * * - 3 Votes

This fix doesn't change anything visible in the game but allows you to
finish BG1 with quest mods while avoiding serious difficulties.

Technically it extends the limit of GLOBAL variables to 4096 by the
modification of 1 byte in the EXE file.

The BG1 engine uses variables for various events memorization and the
count of variables is limited. New global variables and timers above
the limit are just ignored. The game doesn't crash but you have serious
difficulties and the plot is stopped. BG1+TotSC handles global variables
only up to 1024 and if you play with more than one quest mod, the
difficulties occur late in the game (usually Chapter 5 or above). I
played BG1-TotSC with my MotSCv3 + BGQE + TGCe1 and reached the limit in
Chapter 7 in the Duke's Palace. BG1 without TotSC is even more limited,
with only 512 global variables and it couldn't be played with mods at all
without troubles. BG2 has no problem, because the memory allocations for
variables is dynamically extended when the count of variables grow.

The fix works with seven most popular BG1 engine versions:
- BG1       international 1.1.4315 - BGMain.EXE  5,022,720 bytes, offset 1892A8
- BG1       international 1.1.4315 - BGMain.EXE  4,948,015 bytes, offset 18C937
- BG1       international 1.1.4320 - BGMain.EXE  4,857,856 bytes, offset 186A87
- BG1+TotSC USA/Canada    1.3.5508 - BGMain2.EXE 5,046,319 bytes, offset 18E6D5
- BG1+TotSC international 1.3.5512 - BGMain2.EXE 5,042,223 bytes, offset 18EEF5
- BG1+TotSC international 1.3.5521 - BGMain2.EXE 5,009,408 bytes, offset 186A1D
- BG1+TotSC international 1.3.5521 - BGMain2.EXE 4,923,392 bytes, offset 1869F5
The fix should be compatible with all other WeiDU mods for BG1.

 - Avenger(teambg) for offset founding in one version 5521, what was
   crucial for creating this BG1 engine fix.

What's New in Version v2 (See full changelog)

  • The mod v2 extends compatibility with various BG1 engine versions. Now the fix works with seven most popular BG1 engine versions.

17 user(s) are online (in the past 30 minutes)

0 members, 16 guests, 0 anonymous users

Bing (1)