Total War: WARHAMMER III

Total War: WARHAMMER III

Mortals, Mercs and Management
incognito 14 Aug, 2023 @ 2:17pm
End-turn crash
I am getting an end-turn crash in my Norsca campaign. I was trying to identify which mod could cause this by using the debugger. In the logs there are multiple files in the stacktrace that belong to this mod: kiki_pop.lua, zrz_merc_evil.lua, zrz_merc_good.lua. Is it a bug or is it another mod that is not compatible? I would really appreciate if someone could help me with this. Here are the logs:


[out] <68.3s> ********************************************************************************
[out] <68.3s>
[savegame] <68.3s> Saving value long_savegame_strings_map [return {[1]={["name"]="faction_info",["long_str_name"]="long_string_1"},[2]={["name"]="faction_info",["long_str_name"]="long_string_2"},[3]={["name"]="tech_list_research_points",["long_str_name"]="long_string_3"},[4]={["name"]="tech_list_research_points",["long_str_name"]="long_string_4"}}]
[ui] <68.5s> Character selected, cqi: 1784 || faction: World Walkers (key wh_dlc08_nor_norsca) || subtype: nor_cha_fimir || name: Jyjurrra of the Vargs (key names_name_87143444, names_name_2147356209) || position: log [500, 788] dis [334.01669311523, 607.84625244141]
[ui] <68.5s> Panel opened units_panel
[out] <79.9s> & Removing effect bundle [effectbundle_morale_1] from military force with cqi [1086]
[out] <79.9s> & Removing effect bundle [effectbundle_morale_2] from military force with cqi [1086]
[out] <79.9s> & Removing effect bundle [effectbundle_morale_4] from military force with cqi [1086]
[out] <79.9s> & Applying effect bundle [effectbundle_morale_2] to military force with cqi [1086] for [0] turns
[ui] <79.9s> Panel closed recruitment_options
********************
SCRIPT ERROR, timestamp <79.9s>
ERROR - SCRIPT HAS FAILED - event callback was called after receiving event [RealTimeTrigger] but the script failed with this error message:
[string "script\_lib\lib_campaign_manager.lua"]:374: attempt to perform arithmetic on a string value

The callstack of the failed script is:

stack traceback:
[string "script\_lib\lib_campaign_manager.lua"]:374: in function 'out'
[string "script\_lib\mod\pj_error_wrapping.lua"]:60: 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>

The callstack of the script which established the failed listener is:
stack traceback:
[string "script\_lib\lib_core.lua"]:1908: in function <[string "script\_lib\lib_core.lua"]:1876>
(tail call): ?
[string "script\campaign\mod\kiki_pop.lua"]:6606: in main chunk
[C]: in function 'pcall'
[string "script\_lib\lib_core.lua"]:714: in function 'load_mod_script'
[string "script\_lib\lib_core.lua"]:647: in function 'load_mods'
[string "script\_lib\lib_mod_loader.lua"]:85: 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>
********************
********************
SCRIPT ERROR, timestamp <79.9s>
ERROR: find_single_uicomponent() called but supplied parent [UIComponent (00000000D589F6C0)] is not a ui component


stack traceback:
[string "script\_lib\lib_common.lua"]:387: in function 'find_single_uicomponent'
[string "script\_lib\lib_common.lua"]:422: in function 'find_uicomponent'
[string "script\campaign\mod\zrz_merc_evil.lua"]:95: in function <[string "script\campaign\mod\zrz_merc_evil.lua"]:91>
[C]: in function 'pcall'
[string "script\_lib\mod\pj_error_wrapping.lua"]:58: 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>
********************
********************
SCRIPT ERROR, timestamp <79.9s>
ERROR: find_single_uicomponent() called but supplied parent [UIComponent (00000000D589F6C0)] is not a ui component


stack traceback:
[string "script\_lib\lib_common.lua"]:387: in function 'find_single_uicomponent'
[string "script\_lib\lib_common.lua"]:422: in function 'find_uicomponent'
[string "script\campaign\mod\zrz_merc_evil.lua"]:193: in function <[string "script\campaign\mod\zrz_merc_evil.lua"]:189>
[C]: in function 'pcall'
[string "script\_lib\mod\pj_error_wrapping.lua"]:58: 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>
********************
********************
SCRIPT ERROR, timestamp <79.9s>
ERROR: find_single_uicomponent() called but supplied parent [UIComponent (00000000D589F6C0)] is not a ui component


stack traceback:
[string "script\_lib\lib_common.lua"]:387: in function 'find_single_uicomponent'
[string "script\_lib\lib_common.lua"]:422: in function 'find_uicomponent'
[string "script\campaign\mod\zrz_merc_good.lua"]:100: in function <[string "script\campaign\mod\zrz_merc_good.lua"]:96>
[C]: in function 'pcall'
[string "script\_lib\mod\pj_error_wrapping.lua"]:58: 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>
********************
********************
SCRIPT ERROR, timestamp <79.9s>
ERROR: find_single_uicomponent() called but supplied parent [UIComponent (00000000D589F6C0)] is not a ui component


stack traceback:
[string "script\_lib\lib_common.lua"]:387: in function 'find_single_uicomponent'
[string "script\_lib\lib_common.lua"]:422: in function 'find_uicomponent'
[string "script\campaign\mod\zrz_merc_good.lua"]:210: in function <[string "script\campaign\mod\zrz_merc_good.lua"]:206>
[C]: in function 'pcall'
[string "script\_lib\mod\pj_error_wrapping.lua"]:58: 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>
********************
********************
SCRIPT ERROR, timestamp <79.9s>
ERROR: find_single_uicomponent() called but supplied parent [UIComponent (00000000D589F6C0)] is not a ui component



And the modlist:

Crisis of Mortals, Mercs and Management (Adds New Pop, Merc and Food Mechanics)
Building Progression Icons III
UI IMPROVEMENTS
Script debug activator
One Button Respec
Mod Configuration Tool - v0.9 Beta
[IE] Loreful Strategic Threat
Reloading Animations
Research Overflow & Options System
SFO: Grimhammer III - WAR UNDER THE MOUNTAIN
Army recruitment mechanics
< >
Showing 1-3 of 3 comments
incognito 14 Aug, 2023 @ 2:28pm 
Hm, maybe there is a problem with SFO. I had a Fimir Meargh lord from the SFO mod, when I deleted his army the end-turn crash didn't happen.

Upd: that army consisted only of a lord and 2 norscan warhounds, one of them is 80/80 models and the other one is 79/80. Deleting the damaged unit from the army made the end-turn work

Upd: I've noticed that the region where I was trying to replenish had a broken number of beasts. Ending the turn in a region with an adequate number of beasts didn't cause a crash. Also I've tried starting a new Wulfrik campaign with my current modlist. At the start of the campaign the numbers are fine. On the first turn I defeat a faction leader and make a confederation with whoever has the Troll Fjord. On the turn 3 the beasts in the Troll Fjord region bug out even if I stand still after the first turn battle and do absolutely nothing (no recruitment, building, diplo, or commandment changes).
Last edited by incognito; 15 Aug, 2023 @ 5:33am
incognito 15 Aug, 2023 @ 5:51am 
Ok, here's the final bug report. There is an issue with the wild beast count. I've tested it with no other mods on. Here's the way to reproduce it:

* start a Wulfrik campaign
* on turn 1 put the starting hero into Wulfrik's army and autoresolve the battle with the Bjornling army
* accept confederation in the dilemma
* skip turns, do not do anything else (no research, recruiting, diplo, building, commandments, moving, stance switching)
* check the beast count in the Troll Fjord (the number becomes extremely large)

On my first try it happened on turn 3, on the second one it was turn 4
Last edited by incognito; 15 Aug, 2023 @ 5:54am
_Zevon  [developer] 21 Aug, 2023 @ 12:11pm 
Thanks for the report! I'll try and fix this.
< >
Showing 1-3 of 3 comments
Per page: 1530 50