Total War: WARHAMMER III

Total War: WARHAMMER III

Settlement Organizer
Dat Boy 19 Jun, 2024 @ 1:58pm
lua error
Nice mod, unfortunately it throws lua error when attempting to upgrade outposts in ally territory. Log included below for your convenience (hopefully).

[out] <57.2s> settlement_organizer checking uic_context_name [tab_outpost]
[ui] <57.2s>
[ui] <57.2s> uicomponent tab_outpost
[ui] <57.2s> path from root: root > war_coordination > war_coordination_panel > tabgroup > tab_outpost
[ui] <57.2s> position on screen: [960, 760], size: [200, 46], state: [selected_hover], visible: [true], priority: [0], interactive: [true]
[ui] <57.2s>
[out] <58.2s> settlement_organizer checking uic_context_name [outpost_frame]
[ui] <58.2s>
[ui] <58.2s> uicomponent outpost_frame
[ui] <58.2s> path from root: root > war_coordination > war_coordination_panel > subpanel_outposts > constructed_options > outpost_frame
[ui] <58.2s> position on screen: [744, 798], size: [432, 163], state: [NewState], visible: [true], priority: [0], interactive: [true]
[ui] <58.2s>
[out] <58.9s> settlement_organizer checking uic_context_name [square_building_button]
[ui] <58.9s>
[ui] <58.9s> uicomponent square_building_button
[ui] <58.9s> path from root: root > war_coordination > war_coordination_panel > subpanel_outposts > constructed_options > outpost_frame > building_slot > building_construction_popup > popup_panel > building_tree_holder > construction_building_tree > chain_list > CcoBuildingChainRecordwh3_main_hef_allied_outpost > building_chain > slot_parent > wh3_main_hef_allied_outpost_2 > square_building_button
[ui] <58.9s> position on screen: [930, 633], size: [74, 74], state: [hover], visible: [true], priority: [70], interactive: [true]
[ui] <58.9s>
[out] <58.9s> settlement_organizer owned/empty slot selected
********************
SCRIPT ERROR, timestamp <58.9s>
ERROR - SCRIPT HAS FAILED - event callback was called after receiving event [ComponentLClickUp] but the script failed with this error message:
[string "script\campaign\mod\settlement_organizer.lua"]:82: attempt to index local 'uic_slot' (a nil value)

The callstack of the failed script is:

stack traceback:
[string "script\campaign\mod\settlement_organizer.lua"]:82: 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 'add_listener'
[string "script\campaign\mod\settlement_organizer.lua"]:61: 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>
********************
[ui] <60.6s> Panel closed war_coordination
[out] <60.6s> settlement_organizer checking uic_context_name [button_close]