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

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.

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

New response