Skip to content

Spellhold-Studios/Stutter-Debug-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Published Downloads Views Platform Language Games

SHS logo

Stutter Debug Tool

A Spellhold Studios tool for Infinity Engine games


Download  Readme  Webpage  Discord

Introduction

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.

How to debug a script stutter

  1. If you encounter an issue that could be caused by a repeating script action, save your game.
  2. Install the Stutter Debug Tool onto your game.
  3. 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.
  4. The output will be something like, "Running block 54 of scriptxy.bcs". Note this down.
  5. Exit the game.
  6. Open Near Infinity. Browse to the bcs files. Open the script file that was mentioned ("scriptxy" in our example).
  7. 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.
  8. 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.
  9. Copy the whole script block and ask for help with the stutter if need be.
  10. Deinstall the Stutter Debug Tool to continue your playthrough.

Credits

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