Jump to content


Photo

Stutter in Nashkel when using BP AI


  • Please log in to reply
9 replies to this topic

#1 enkku

enkku
  • Member
  • 23 posts

Posted 03 May 2021 - 04:27 AM

Hello fellow gamers. In my recent megamod install I decided to use Big Picture AI after a long time since I have a soft spot for it. It works decently, especially as I omitted Spell Revisions, but when I arrived to Nashkel (chapter three starts) the game starts stuttering. Using LStest I found that certain BP script block runs multiple times each round when party is in the exterior area of Nashkel. I'd be grateful if someone could take a look and see if there is something obviously wrong in that scriptblock. The script is BPWTRSGT.bcs and the script block is number 13. 

IF
	OR(2)
		!Allegiance(Myself,EVILCUTOFF)
		!Detect([GOODCUTOFF])
THEN
	RESPONSE #100
		ActionOverride(Player1,DisplayStringHead(Myself,440704)) // Running block 13 of BPWTRSGT.BCS
		NoAction()
END


Also another script block runs few times per round, BPWDASGT.bcs block numer 12, but nowhere near as often as the other. As I do not understand their interaction I'll add both as attachments as well as weidu.log. Here's BPWDASGT.bcs :

IF
	OR(2)
		!Allegiance(Myself,EVILCUTOFF)
		!Detect([GOODCUTOFF])
THEN
	RESPONSE #100
		ActionOverride(Player1,DisplayStringHead(Myself,440579)) // Running block 12 of BPWDASGT.BCS
		NoAction()
END


The game type is classic BGT.

Attached Files


Edited by enkku, 03 May 2021 - 07:59 AM.


#2 Gamemacik

Gamemacik
  • Member
  • 55 posts

Posted 03 May 2021 - 12:01 PM

I do not know this mod, but the code prevents from script executions, i doubt it is the reason for stuttering.


For modders:
Animation resources: NWN RED DRAGONTRWNDbl.pngDRAGONWHELP PACK+DRAGONBREATHTRWNDbl.png
For loosers: SPOILER ALERT! RCEuOoU.pngQeZVcUw.png


#3 enkku

enkku
  • Member
  • 23 posts

Posted 03 May 2021 - 07:17 PM

Thanks for help Gamemacik. It seems however, that I was a bit hasty with the analysis. I CTRL-Y:d each npc using the script and the stutter did not go away, so I am inclined to think that these scripts work like they are supposed to, and the problem lies elsewhere. I will continue to investigate...


Edited by enkku, 03 May 2021 - 08:16 PM.


#4 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5148 posts

Posted 03 May 2021 - 09:23 PM

The no action scripts have a tendency to be triggered multiple times even when they end up doing nothing... it's the nature of the deal so to speak.

 

enkku, today, we have more tools. If the stutter phenomenon is localized, you could open the area view in Near Infinity and look for the sound files that are represented in there with the sound file location thing. And if it's missing from the game, it's likely an missing ambient sound. Ouh, you have disabled the ambient sounds have you not ?


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#5 enkku

enkku
  • Member
  • 23 posts

Posted 04 May 2021 - 01:03 AM

Hello Jarno. Thank you for your help, the problem is indeed the ambient sounds. While they all are present, muting them completely removes the stuttering. To my surprise, looks like this bug has been around for ages, this is the first time I have encountered this, even after dozens and dozens of megamod installs. Unfortunately, it seems that there has not been a solution yet (will there ever be?), only workarounds. It would be nice to compare weidu.logs from all reports around internet, too bad they are *so* old threads. I'll try a new install with slight modifications and see how it goes.


Edited by enkku, 04 May 2021 - 02:12 AM.


#6 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5148 posts

Posted 04 May 2021 - 02:19 AM

Can you find out the sound file names ? As one could just replace the non existant ones with a one that has a sound as a file, but is still kinda mute.


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#7 enkku

enkku
  • Member
  • 23 posts

Posted 04 May 2021 - 06:19 AM

I'm sorry, I guess I didn't explain clearly. All sound files are present, and play correctly, however enabling ambient sounds cause severe stuttering in Nashkel exterior.


Edited by enkku, 04 May 2021 - 06:36 AM.


#8 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5148 posts

Posted 04 May 2021 - 07:45 AM

Do you mean the ar4800 or one of the other areas ? PS: The somewhat tiny map in the upper left cornet, in that page has links to all the maps locations.

This will allow me to, to hopefully hunt things down...


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#9 enkku

enkku
  • Member
  • 23 posts

Posted 04 May 2021 - 08:00 AM

Yes, that area, which of course is AR3700 in BGT



#10 enkku

enkku
  • Member
  • 23 posts

Posted 19 June 2021 - 05:12 AM

Closing the topic.I think it's from windows itself. Cleaning the registry has always helped with with "map marker crash" bug, and this as well.