Total War: WARHAMMER III

Total War: WARHAMMER III

40 ratings
How To Enable A Script Break Warning
By prop joe
How to enable an in-game warning for script breaks.
   
Award
Favorite
Favorited
Unfavorite
Introduction
The context viewer, usually intended for modders, can give you a warning when you have a script break in your game. A script break occurs when a Lua script throws an error while running. This in turn crashes the whole in-game Lua interpreter, so other script mods stop working as well, as well as some vanilla game features powered by scripts. You should never play the game with broken scripts.
Enable in game options
In the options menu click the gear icon and under the "Modding" header check the "Enable context viewer" checkbox.

In-game warning
if you have a script break you will see a red cross in the top right of your screen:


Reload the last save and do not play the game with broken scripts. It's possible you'll have to find and disable the mod that caused the script break.
Caveat
Once a script warning shows it'll always persist from then on if you save the game with it showing. So in cases where a reload somehow causes the script to not break (possible with some scripts) or in cases where you remove a script mod that was the cause, you'd expect the warning to disappear, but it'll always stay there when you load the game where the warning was already showing. You must reload a save from before the warning appeared.
Error in the script log
If you enable the script log using an option in the WH3 Mod Manager (inside Other Options) or using the Script debug activator mod you will have script logs saved into the directory where your Warhammer3.exe is located. Script logs have a file name like script_log_010524_1229.txt. If you get a script error it will get logged in that file and reporting it could help a modder fix the error. Post your log in https://discord.gg/moddingden, in the mod_user_troubleshooting channel.
11 Comments
doot Nov 1, 2024 @ 10:46am 
I deleted all the log txt files in the main wh3 directory after the 31st patch and the button is back.
prop joe  [author] Jul 1, 2024 @ 8:04am 
it shows for "script breaks" meaning your scripts won't work at all
=[NK]= Col. Jack O'Neil Jun 29, 2024 @ 4:08am 
Would script breaks display the x for minor script issues, like a value being wrong, or only the major breaks that flag errors on the logged script file?
Lampros Jun 29, 2024 @ 4:00am 
I see. Thanks!
prop joe  [author] Jun 29, 2024 @ 2:07am 
usually an error has the name of the script that caused it, so you can kind of guess by the prefix and the name of the script, or post in the modding den and someone will know
Lampros Jun 28, 2024 @ 4:36am 
But how do you find which mod has script breaks?
Guvenoren May 4, 2024 @ 9:26am 
Got it, all I need to know!
prop joe  [author] May 4, 2024 @ 9:14am 
you don't have to be concerned based on my experience and the experience of other modders who always have this enabled
Guvenoren May 4, 2024 @ 5:27am 
It has a noticable stability warning. Should I be concerned?
prop joe  [author] Jan 13, 2024 @ 9:57am 
yes it'll show vanilla script breaks, if there are any