Jump to content


ketomi

Member Since 22 Oct 2013
Offline Last Active Dec 05 2013 02:12 PM

Posts I've Made

In Topic: Stutter in Baldur's Gate (BWP 8)

04 December 2013 - 08:48 PM

Sort of resurrecting a dead thread here. But this is how I started to find my solution, so I'll report it here.

 

I have the 'nalia/aerie stutter' problem as described above. Basically it appears to happen because the global variables are stored in a hash-map which doesn't dynamically resize as it should when it gets big, as described here:

http://forum.baldurs...-stuttering-lag

 

This is probably why starting a ToB game works - ToB must either reduce the load factor at which resizing occurs or change the initial bucket size for the engine's hash-map implementation. The problem is likely worse if you have TDD or CtB installed because those mods have many global variables. CTRL-Y Nalia works because many scripting blocks apparently have an early variable check if there is "mage/thief" character or similar - see this discussion:

http://www.shsforums...the-stuttering/

 

The problem almost never happens anymore because people use ToBEx which implements a bug-fix for this. I was having weird sound-problems with ToBEx that I haven't worked out, so I still was running into the problem.

 

Anyway, the solution proposed here:

http://www.shsforums...the-stuttering/

 

(create a bunch of dummy global variables enough to finally trigger the dynamic resizing of the hash-map) worked fine by me. I used NearInfinity and copy pasted the proposed script in.


In Topic: BiG World Setup (an attempt to update the program)

24 October 2013 - 06:32 PM

Thanks - I think actually the setting is this one in ToBEx-core.ini

[Music]
Extended Songlist=1

Unfortunately, it looks like it is enabled.


In Topic: BiG World Setup (an attempt to update the program)

24 October 2013 - 02:39 AM

Hi,

 

On a clean install, from CDs, patched, with Admin privileges, in XP, used the 20131022 version of BWS, used the recommended pack, didn't update the urls, and made sure that ToBEx was selected.

 

Still getting a ChSound.cpp 4905 error. As far as I can figure out, the ToBEx patch for the limits to songlist isn't going through, though debug has ToBEx successfully installed.

 

Any ideas why?

 

EDIT:

 

Should have added that the minimum BWS does work so it's definitely something happening with a mod in the recommended pack.


In Topic: BiG World Setup (an attempt to update the program)

22 October 2013 - 11:08 PM

Thanks.

 

I think all of ToBEx was installed, not just parts for SCS. The debug has no errors and the command that ran was:

 

Setup-tobex.exe --no-exit-pause --noautoupdate --language 0 --skip-at-view --quick-log --force-install-list 100 101 102 104 105 107 108 109 110 111 112 113 114 115 116 117 118 120 121 122 123 124 --logapp

 

So shouldn't this have fixed the songlist limit? I think something must have gone wrong with the install of ToBEx but it went wrong silently somehow.

 

Or does bgtmusic still need to patch, even though ToBEx is installed after?

 

Anyway, I'm assuming that the order in BWS is right and I'll just do a clean reinstall of the game files with the 20131022 version and make sure that ToBEx is enabled.


In Topic: BiG World Setup (an attempt to update the program)

22 October 2013 - 07:54 PM

So I finished the install with the 20131022 version using the "recommended" pack and the install had no problems.

 

Getting "An assertion failed in ChSound.cpp at line 4905" error. I've read the posts saying this error is caused by songlist.2da becoming too long because the mods are adding to it:

http://www.shsforums...905#entry181281

 

Not sure if that's a new bug from some mod changing how they add sounds, so FYI.

 

Apparently the manual solution is to edit songlist.2da in the override directory - I don't see a songlist.2da there, any advice?

 

I also saw this, which might allow for longer songlist.2da files:

http://www.shsforums...glist2da-limit/

 

Any one know if it works? Or where I should find a songlist.2da to edit? Or rather which songlist.2da to edit as there are several in my BG2 directory, just not in override...

 

Thanks again

 

EDIT 1:

Looked closer at the BIG World Project v13 manual. There's "26.13 Baldur’s Gate trilogy - Music" which says:

 

Some NPCs connect new music not like other mods with the dialogs or other events, but add them to a songlist. Into the unpatched songlist only 99 entries may be carried out all together. Hence, up to now all lines from line 100 had to be deleted after the installation because, otherwise, the game could not start. This patch removes this limitation. Also it writes all BG1 music into the songlist.
 

So I guess something must have gone wrong with the installation of that mod/patch. Looking at my debug, I see:

 

Setup-BGTMusic.exe --no-exit-pause --noautoupdate --language 0 --skip-at-view --quick-log --force-install-list 2 --logapp

[Setup-BGTMusic.exe] WeiDU version 23400

bgmain.exe: TobEx installation detected. Skipping .exe patch...

 

SUCCESSFULLY INSTALLED      Full Baldur's Gate/Shadows of Amn/Throne of Bhaal Music (WARNING: patches BGMain.exe)

 

Does anyone understand this? The mod appears to be successfully installed, but not a critical part of it? Can I just reinstall?

 

EDIT 2:

For future reference, apparently it is possible to edit songlist.2da from the biffed file, but I think you don't need to do that if the patches install properly:

http://www.shsforums...sertion-failed/

 

OK, learned that TobEx is the mod "Throne of Baal Extender". The TobEx readme says that it changes BGMain.exe to use its library and that it "Corrects engine bugs with soundsets" so I guess that conflicts/replaces the bgtmusic patch?

 

So I have two theories:

 

1) When I attempted the reinstall of the mods from the 20131022 version of BWS, I restored from my backup my original BG2 files, using the GUI. Maybe bgt-music should have patched BGMain.exe but didn't because it thought that TobEx was installed because whatever it uses to check whether TobEx has been installed wasn't replaced by the restore from backup.

 

2)

The mod install order in BWS is wrong, TobEx didn't patch BGMain.exe to allow larger songlist.2da or... something else was strange with my install. I got the "SUCCESSFULLY INSTALLED      TobEx - Core" and no errors for any of the TobEx install itself in the debug.
 

I'm going to wipe and reinstall everything in case it's theory (1) bgt-music checks from something not removed by the restore from backup... and I'm going to leave all of this here in case it's theory (2) or the problem from theory (1) is easily fixable.