S21 - Clash, no respawning enemies
Opened this issue · 2 comments
Konrad22 commented
Apparently every turn there are enemies supposed to spawn. It's not happening.
cooljeanius commented
I got some console messages about it:
20221016 00:22:20 error scripting/lua: game_error: creating unit with an empty type field
stack traceback:
[C]: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
20221016 00:22:20 error scripting/lua: game_error: creating unit with an empty type field
stack traceback:
[C]: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
20221016 00:22:20 error scripting/lua: game_error: creating unit with an empty type field
stack traceback:
[C]: in local 'cmd'
lua/wml-utils.lua:144: in field 'handle_event_commands'
lua/wml-flow.lua:5: in function <lua/wml-flow.lua:4>
k-konami commented
I have also confirmed this phenomenon and investigated it.
It can be addressed by modifying the description that generates the unit (only one location).
I confirmed that it works correctly after the modification on my local PC.
units/variables.cfg 4 :
{VARIABLE_OP {VAR_ID} random {RVALUE} }
-->
{VARIABLE_OP {VAR_ID} rand {RVALUE} }
and ... in S22
22_Fortress_Of_The_Night.cfg 194 :
#Not working! Waaah! :-(
This will work fine too.