Jump to content


pharaox

Member Since 20 Jul 2021
Offline Last Active Aug 06 2021 07:04 AM

Topics I've Started

Crash on Linux with GOG downloaded games

20 July 2021 - 06:18 AM

Hi,

 

I am trying to install Infinity Animations on Linux with BGT based on BG1 and BG2 downloaded from GOG. I have already successfully installed and used a number of mods in this setup (all of what's mentioned here except IA, and some more quests / NPCs) , none of the "megamods" though, and so I thought before trying them out I should install also IA as it's strongly recommended for these.

 

I downloaded the main archive and all additional archives and extracted them as instructed. With the WeiDU installer, I successfully installed the core component but then got errors stating that the content of the additional archives was missing, even though I could clearly see that it's there. I checked the tp2 file and saw that it uses the "Windows 1252" encoding, and so I assumed the WeiDU installer could not read the special characters from it correctly. Since these were only used in REQUIRE_PREDICATE FILE_EXISTS_IN_GAME checks, I simply commented all these checks out in order to install everything.

 

I started a new game, created a character, and then when entering the Candlekeep Inn I got a CTD:

 

Unhandled exception: page fault on read access to 0x00000058 in 32-bit code (0x009ca8a8).

 

Logging is enabled but baldur.err is empty. Since I have followed the proper installation order recommended here, and since I have a working setup with everything else except IA, I assume the crash is caused by IA, and somewhat related to the use of special characters and the "Windows 1252" encoding, as mentioned in the Readme.

 

I found out that to pass the right encoding via Wine I should use the LANG environment variable. I added the following line to the GOG start.sh script:

 

export LANG=en_US.CP1252

 

I also tried export LANG=en_US.ISO-8859-1; both locales are correctly generated and usable in my system.

 

This indeed got me somewhere - now the game crashed in exactly the same way but earlier, when loading the very first area (Candlekeep), right after the character creation screens. This confirmed my suspicion that the crash is somehow encoding related, but I am still clueless how to resolve the issue.

 

Anybody else got similar issues? My GOG setup is pretty standard and I suspect other people trying to install IA on a GOG-based BGT should encounter these issues as well. Tried to google similar issues but this got me nowhere. I would greatly appreciate any hints.