Jump to content


Photo

Problem installing stutterdebug


  • Please log in to reply
7 replies to this topic

#1 Feamane

Feamane
  • Member
  • 8 posts

Posted 31 July 2022 - 02:24 PM

Hi, I decided to build a new run through of BG2 (not EE) with some mods I've never tried before. Chez Irenicus was just fine, it was playing fast and smooth. But now I'm in the Coronet with Nalia added to the party and I've got quite a bit of lag. It could be deArnise, but it could be other mods as well. It looks like maybe script induced stutter. I'm trying to install stutterdebug to test, but with 2GB RAM and 4GB paging file (though I think XP will only use 2GB of it) the install fails. It's trying to patch ~6000 files and is running out of memory. Is there a way to mod the .tp2 file to patch the script files in chuncks? Maybe five chuncks say a-e, f-j, etc. And make it so each time setup-stutterdebug is run a chunck can be patched? Same idea as I have to use to install SCS since if I try to install the whole thing in one go I also run out of memory. I've tried looking through the WieDU documentation but I can't figure out just what the .tp2 is doing and how I should mod it. Thanks, DJ

#2 jastey

jastey
  • Administrator
  • 3218 posts

Posted 31 July 2022 - 11:58 PM

Look here if the old LSTest tool installs better. I think there you can specify which scripts should be patched. I would start with Naila's override script : http://www.shsforums...ds/#entry504055



#3 Feamane

Feamane
  • Member
  • 8 posts

Posted 01 August 2022 - 12:26 AM

Hi, I do have LStest, and the .tp2 script that The Bigg posted, but of the three stutterdebug seemed to be the most advanced so I thought I'd try that first. I have a feeling LStest will also bomb out trying to patch 6000-something scripts, but IguessI'll give it a try. Thanks, DJ

#4 Feamane

Feamane
  • Member
  • 8 posts

Posted 01 August 2022 - 11:51 PM

As I feared, LStest also faild to install due to runn8ng out of memory. Any hints on how I can edit the .tp2 file to patch the scripts in alphabetical chuncks? I gather I'd have to make a number of BEGIN blocks, but not sure what the COPY_EXISTING_REGEXP line should look like to do, say: all scripts that begin with a-e? Thanks, DJ

#5 Argent77

Argent77
  • Administrator
  • 1397 posts

Posted 02 August 2022 - 03:09 AM

Try the attached file, it contains a patched tp2 script for the mod. The original patch-all components are disabled and replaced by components for patching scripts in chunks (a-e, f-j, ...). Unzip it into the "stutterdebug" subfolder to replace the original tp2 file.

Attached Files



#6 Feamane

Feamane
  • Member
  • 8 posts

Posted 02 August 2022 - 10:07 AM

OK, this is awesome! Thank you! But it turns out that the scripts are inordinately weighted in number and size. The a-e chunk turns out to have about half the scripts in my install. So I started breaking it down further by editing the tp2 file: a-b ~1000 scripts, c ~800, d ~1300. I got a-c done, re-running setup each time like I do when installing SCS. But it seems the 'd' scripts are larger because it runs out of memory after processing only about 500 of them. So could I do something like: ~d[a-k].*\.bcs~, ~d[l-v].*\.bcs~, and ~d[^a-v].*\.bcs~ to break 'd' into three chunks? I've been looking at some RegExp tutorials but it's still not quite making sense to me. I think the majority is the 'dw' scripts, probably these are all the SCS scripts which seem to be both long and numerous.

 

On the other hand, is this WieDU trying to both decompile and patch the scripts at the same time? If so, maybe it can be done in steps? It is crazy that this is chewing up about 3.6GB of memory (2GB RAM -0.4GB for the OS, and 2GB of virtual memory). I've used the Task Manager to watch it and it does seem to be using up all the RAM and VM before erroring out.

 

Thank you, DJ


Edited by Feamane, 02 August 2022 - 10:13 AM.


#7 Argent77

Argent77
  • Administrator
  • 1397 posts

Posted 02 August 2022 - 11:39 AM


I've been looking at some RegExp tutorials but it's still not quite making sense to me. I think the majority is the 'dw' scripts, probably these are all the SCS scripts which seem to be both long and numerous.

These functions support very basic regular expression rules. For example, to process all scripts starting with 'd' in two chunks (first chunk: scripts with 'dw' prefix, second chunk: everything else), use dw.*\.bcs and d[^w].*\.bcs .



#8 Feamane

Feamane
  • Member
  • 8 posts

Posted 02 August 2022 - 10:27 PM

OK, I got it to mod all the scripts expect for the dw series. Yay! But when I ran the game it was almost crickets. So I think that if it's a script that's bogging the game down after getting out of Chez Irenicus then it is in the dw set. I tried just doing the dw chunk on it's own, but ran out of memory at about 100 of 1000. So now I'm trying to work out how to divide the dw set into bite size pieces. Something like:

dw#[a-l]

dw#m[^g]

dw#mg0

dw#mg1

dw#mg2

dw#mg3

dw#mg4

dw#mg[5-9]

dw#o

dw#p[^r]

dw#pr[0-1]

dw#pr[2-5]

dw#pr[6-9]

dw#[r-z]

dw#[0-2]

dw#[3-9]

dw[^#]

 

But can I just get rid of the DESIGNATED 2 and DESIGNATED 21-26 sections and keep adding on sections after DESIGNATED 18 (19-35)?

 

Thanks,

DJ