Enemy Race Manager

by heyqule

Add support to have multiple races of enemies and add various enhancements to enemy races. They become tougher as you kill them. Added aerial enemies to all races. Buffed defensive entities and some attacks to balance with high level enemies. Free For All games!! Please visit the mod page or search "ERM -" mods to download the new demo races.

Content
a month ago
1.1
11.1K
Combat Enemies Environment

b Error report

11 months ago
(updated 11 months ago)

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.

11 months ago

I just pushed bolderbrush10's fix.

"1 Race / Surface will spawn only turrets in the far distance."

I'll take a look in 1.17.3.

11 months ago

I'm not seeing the "spawn only turrets in the far distance" issue. I scanned a few planets with radius of 2000 - 4000.

May you provide your save?

11 months ago
(updated 11 months ago)

I did some tests. Only one mod combination causes this error.

K2SE+ERM = ok.
K2SE+ERM+Armored Biters = ok.
K2SE+ERM+Explosive Biters = error.
K2SE+ERM+Frost Biters = ok.
K2SE+ERM+Toxic Biters = ok.

K2SE+ERM+(Armored, Explosive, Frost, Toxic) Biters = error.
K2SE+ERM+(Armored, Frost, Toxic) Biters = ok.

Explosive Biters with ERM breaks spawning hives (1 Race/Surface).
ERM Default doesn't have this error.

https://imgur.com/a/8za3CN2
https://imgur.com/a/4PtowKc

Also spawning hives don't work correctly.
Example, explosive biters will appear in ice surface: https://imgur.com/a/lyrEawW

11 months ago

Thanks for the tests. 1.17.3 fixes the fire biter.

Re: Custom biter on incorrect surface.
Yes. The enemy autoplace function in this mod does not compatible with those custom biter mods'. I have tried to balance them, but failed. It either have mass amount of default biters or mass amount of custom biters.

11 months ago

Thank you :)

New response