Skip to content

Debugging script related crashing

While I'm not a mod developer, I imagine this could be useful to actual mod developers, and would be useful to me to diagnose what mod is causing what crash.

Essentially, sometimes the game crashes. It's heavily modded, and is almost certainly script related. One is likely due to the Planar Sphere Mod, and a bug with one of the scripts from wearing an item. The other is entering the slums district in BG2 at night-time.

Having an option to enable script debugging would be great. It could be as simple as printing to a file what script is started and what script is finished, that way when you read the file (or give it to a developer) they know what script is causing problems. Capturing the errors as they happen would be better, but would likely require heavy modification to the script runtime engine. Line numbers would help, but since I believe the scripts are compiled before the game is run, I don't think this is feasable.

Comments

Sign In or Register to comment.