Enemy Race Manager

by heyqule

Add support to have multiple races of enemies and add various RTS elements. Enemy become tougher as you kill them. Added aerial enemies. Please visit the mod page or search "ERM -" mods to download the new demo races.

Content
23 hours ago
1.1 - 2.0
13.5K
Combat Enemies Environment

g Getting an error when trying to disable custom Biters (aka the infected drones) (fixed 1.22.6)

2 months ago

Failed to load mods:enemyracemanager/prototypes/extend-scout-units.lua:29 bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback [C]: in function 'pairs'
enemyracemanager/prototypes/extend-scout-units.lua:29: in main chunk
stack traceback [C]: in function 'pairs'
enemyracemanager/prototypes/extend-scout-units.lua:41: in main chunk

Regardless of that, honestly, extremely amazing mod by the looks of things.

2 months ago
(updated 2 months ago)

Hi

May you post your save? I suspect mod conflicts.

It looks fine on my end when I disable "enable biters" How did you try to disable the custom biters?

2 months ago
(updated 2 months ago)

Hmm, that might be true. I'm running quite a few mods at the same time though. I do also have Rampant, so that might have something to do with it cause I was testing stuff.

I'm happy you replied so fast too.

Here's my save in my Google Drive so you can sync the mods:
https://drive.google.com/file/d/1jvMgPDOyi0PuhoYqVDuxwydABKSYwCeb/view?usp=sharing

2 months ago
(updated 2 months ago)

The setting I am disabling btw is just the "Enable Biters" setting. After disabling all mods, I in fact am finding that it still has that error without any other mods enabled.

2 months ago
(updated 2 months ago)

Ya. I looked at your save. Looks like you don't have any other ERM enemy installed.

The "Enable Biter" option wasn't designed to disabled when you don't have any other ERM races installed. It attempted to disable all units in the original "enemy" force hence it crashed. The option was designed to mix other ERM enemies without the base game biters.

I can fix the start up crash. However, the mod may have other unknow bugs from other features, as none of them were designed with this scenario in mind. (disable biter without any other ERM enemies). This fix will probably like open a can of worms.

2 months ago
(updated 2 months ago)

Ah, okay that makes sense. I didn't even realize I didn't have other units installed and that makes more sense to what that option was for.

2 months ago

ya. When you disable the biter, all support data structures are excluded from run-time. When you don't have any ERM race, I don't know how my mod will behave lol.

2 months ago

It's a good finding tho. I may find a way to fix it in 2.0.

2 months ago

I added code to fixed the startup crash in 1.22.6.

But I don't know whether it'll crash in mid-game. #fingercross. Anyway, it's not recommended to turn off biter without other ERM races.

New response