Total War: WARHAMMER III

Total War: WARHAMMER III

Victory Conditions Overhaul [DEPRECATED, USE NEW VERSION, LINK INSIDE]
Blyckert 15 Jul, 2023 @ 6:04am
Bug Report: Script breaks on RoC campaign start
I'm having a couple of errors. I'm getting script breaks when starting new campaigns in RoC. I'm unsure if they affect gameplay, I've just completed a Cathay run and the victories triggered correctly. I found them when searching for another issue.

With only VCO active it is:

SCRIPT ERROR, timestamp <16.6s>
ERROR: event_handler:add_listener() called but callback given [nil] is not a function

stack traceback:
[string "script\_lib\lib_core.lua"]:1893: in function 'add_listener'
[string "script\campaign\mod\vco-listeners-ksl.lua"]:44: in function '?'
[string "script\_lib\lib_campaign_manager.lua"]:2015: in function 'call_each'
[string "script\_lib\lib_campaign_manager.lua"]:2410: in function 'process_first_tick_callbacks'
[string "script\_lib\lib_campaign_manager.lua"]:2375: in function 'first_tick'
[string "script\_lib\lib_campaign_manager.lua"]:477: in function 'callback'
[string "script\_lib\lib_core.lua"]:1930: in function <[string "script\_lib\lib_core.lua"]:1930>
[C]: in function 'xpcall'
[string "script\_lib\lib_core.lua"]:1930: in function 'event_protected_callback'
[string "script\_lib\lib_core.lua"]:1991: in function 'event_callback'
[string "script\_lib\lib_core.lua"]:2051: in function <[string "script\_lib\lib_core.lua"]:2051>

Adding High Resolution UI Improvements changes it to:

[out] <16.5s> BIG FAT SCRIPT ERROR
[out] <16.5s> attempt to call a nil value
[out] <16.5s> stack traceback:
[string "script\_lib\mod\pj_error_wrapping.lua"]:62: in function 'callback'
[string "script\_lib\lib_core.lua"]:1930: in function <[string "script\_lib\lib_core.lua"]:1930>
[C]: in function 'xpcall'
[string "script\_lib\lib_core.lua"]:1930: in function 'event_protected_callback'
[string "script\_lib\lib_core.lua"]:1991: in function 'event_callback'
[string "script\_lib\lib_core.lua"]:2051: in function <[string "script\_lib\lib_core.lua"]:2051>

If I add my entire mod loadout the second script break still occurs, although the behaviour of the mod changes. When I start a new campaign the victory conditions all pop up as if a mission has been issued. The text in these popups all start with <dummy>. This does not happen when launching only with VCO, or with VCO + HRUI