1.17.1
Error while playing:
Error while running event enemyracemanager::on_biter_base_built (ID 57)
enemyracemanager/lib/helper/force_helper.lua:56: bad argument #1 of 5 to 'find' (string expected, got nil)
stack traceback:
[C]: in function 'find'
enemyracemanager/lib/helper/force_helper.lua:56: in function 'is_enemy_force'
enemyracemanager/lib/replacement_processor.lua:99: in function 'replace_entity'
enemyracemanager/controllers/unit_control.lua:22: in function 'handler'
stdlib/stdlib/event/event.lua:342: in function 'pcall'
stdlib/stdlib/event/event.lua:362: in function 'dispatch_event'
stdlib/stdlib/event/event.lua:438: in function <stdlib/stdlib/event/event.lua:396>
The buttons "replace enemy" or "reset bitters "also throws an error:
Error while running event enemyracemanager::on_gui_click (ID 1)
enemyracemanager/lib/helper/force_helper.lua:56: bad argument #1 of 5 to 'find' (string expected, got nil)
stack traceback:
[C]: in function 'find'
enemyracemanager/lib/helper/force_helper.lua:56: in function 'is_enemy_force'
enemyracemanager/lib/replacement_processor.lua:87: in function 'rebuild_map'
enemyracemanager/gui/detail_window.lua:230: in function 'replace_enemy'
enemyracemanager/controllers/gui.lua:102: in function 'handler'
stdlib/stdlib/event/event.lua:342: in function 'pcall'
stdlib/stdlib/event/event.lua:359: in function 'dispatch_event'
stdlib/stdlib/event/event.lua:438: in function <stdlib/stdlib/event/event.lua:396>
////////////////
bolderbrush10 github commit fixes it.
There is 1 error left:
1 Race / Surface will spawn only turrets in the far distance.