Krastorio 2


K2 is a global mod that introduces new energy sources, buildings, ores, technologies, turrets, coverings, fuels, ways of producing science, and a major re-balance of many vanilla features.

7 days ago
0.18 - 1.1
457369

g Creep Generator support new enemy forces

a month ago

Hi Linver

I'm making a mod to add new enemy forces. A player brought up about compatibility with Krastorio. The only problem I see is the creep generator. It doesn't generate creep under my new enemy forces. Other aspects seem fine.

https://mods.factorio.com/mod/enemyracemanager/discussion/605c9c708618fe16b0713f92

The creep generator in this mod only filter the "enemy" force. Do you mind to changing it to support all forces with the word "enemy"? My new enemy forces are prefix with "enemy_".

Here is the gist for the change of function pushCreepToGenerate(event) in mods/Krastorio2_1.0.23/lib/private/control-scripts/creep-generator.lua
https://gist.github.com/heyqule/cbb9b7b72b7cfc1598f8c72ca8e00524

New response