Jump to content


Stutter in Baldur's Gate (BWP 8)


  • Please log in to reply
61 replies to this topic

#61 djc

djc
  • Member
  • 5 posts

Posted 20 March 2011 - 12:52 AM

I have problem with LStest mod.

I installed this mod successfuly, but don't work on my BWP installation.

My dialog.tlk have 156156 strings.
Action ActionOverride(Player1,DisplayString(Myself,x)) display only strings from 0 to 156155.
All strings added by LStest from 156156 and above aren't display.

For example:

IF
Global("creature","dd7003",0)
THEN
RESPONSE #100
ActionOverride(Player1,DisplayString(Myself,156155)) // Innershade \\display ok. Latest in my installation.
ActionOverride(Player1,DisplayString(Myself,156156)) // Running block 0 of 01POOL1.BCS \\not display. First added by LStest.
CreateCreature("mistcd01",[936.1452],4)
CreateCreature("mistcd01",[1208.1441],4)
CreateCreature("mistcd01",[1486.1344],4)
CreateCreature("mistcd01",[1651.926],4)
CreateCreature("mistcd01",[1607.864],4)
CreateCreature("mistcd01",[1827.672],4)
CreateCreature("mistcd01",[1893.634],4)
CreateCreature("mistcd01",[796.422],4)
SetGlobal("creature","dd7003",1)
END

I tested LStest on BG2 clear installation and added string are displayed ok.

Please help me with what's going on.

I attach weidu.log and setup-lstest.debug


Edit:

Ehh.... I solved the problem.

It was my mistake.
I have original BWP and copy BWP. I install LStest mod on copy. My copy BWP had bad alias. Copy BWP had alias to original BWP.

Attached Files


Edited by djc, 21 March 2011 - 08:12 AM.


#62 ketomi

ketomi
  • Member
  • 6 posts

Posted 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.