knyghtmare/The_Eight_of_Cembulad

S21 - Clash, no respawning enemies

Opened this issue · 2 comments

Apparently every turn there are enemies supposed to spawn. It's not happening.

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>

Screen Shot 2022-10-16 at 00 28 38

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.