A Spellhold Studios tool for Infinity Engine games
Stutter Debug Tool helps debug script malfunctions in the game. For example, if an NPC "stutters", i.e. only walks a few steps and constantly terminates any actions, or if the NPC's PID (player initiated dialogue) pops up repeatedly. Also, if the game experiences a lag which could be caused by a looping script.
The tool will patch every script block with a text stating which script and block number is running. The text is shown in the dialogue box in-game and right above the entity executing the script.
Please check the complete Readme to learn more about this tool before installation.
- If you encounter an issue that could be caused by a repeating script action, save your game.
- Install the Stutter Debug Tool onto your game.
- Load the save and identify which script or block keeps repeating. There might be a lot of scripts mentioned in the dialogue box, so try to identify the one that leads to the issue.
- The output will be something like, "Running block 54 of scriptxy.bcs". Note this down.
- Exit the game.
- Open Near Infinity. Browse to the bcs files. Open the script file that was mentioned ("scriptxy" in our example).
- Inside the script, search for the textline you noted down, e.g. "Running block 54 of scriptxy.bcs" (without the quotion marks). The block with this text inside is the script block you are looking for.
- I'll stress this again: the number given in the "Running block 54 of scriptxy.bcs" is NOT the line number. It refers to the BLOCK containing this text.
- Copy the whole script block and ask for help with the stutter if need be.
- Deinstall the Stutter Debug Tool to continue your playthrough.
WeiDU coding
- jastey
- Argent77
Contributors
- the bigg – first tutorial for the stutter debug principle
- Jarno Mikkola – tool pre-versions and debug guide
- Ascalon – tool pre-versions and debug guide (German)
Translators
- Selphira – French