Enemy distance evolution


Evolves enemy spawners based on distance from map center.

Tweaks
3 months ago
2.0
38
Enemies

g Error while loading mods

3 months ago

Failed to load mods: enemy-distance-evolution/data-updates.lua:123: attempt to perform arithmetic on field 'max_health' (a nil value)
stack traceback:
enemy-distance-evolution/data-updates.lua:123: in function 'create_spawner_level'
enemy-distance-evolution/data-updates.lua:136: in function <enemy-distance-evolution/data-updates.lua:132>
enemy-distance-evolution/data-updates.lua:132: in main chunk

The only major thing installed for biters is bob enemies

3 months ago

I've tried launching the game with Base (2.0.47), Bob's Enemies mod (2.0.1), Bob's Functions Library mod (2.0.0), and Enemy distance evolution (0.1.0) and didn't encounter the crash. The game started fine, though Bob's Enemies mod wasn't working correctly as it couldn't properly track leveled spawners.

I'd say this is a fundamental incompatibility with how the two mods work:
- Enemy distance evolution works by destroying original spawners and creating their leveled counterparts in the same place
- Bob's Enemies tracks spawners by their unit number
Since the unit number changes when a spawner is recreated the tracking breaks.

In any case I've pushed a version 0.2.0 that fixed some issues among which there's a possible fix to the 'max_health' error you've encountered (though I can't verify if it's really fixed since I couldn't reproduce the issue in the first place).

3 months ago

Seems like its working now, even on existing save (did evolution reset, killed nests - they are dropped evolution).
Thank you for the fix)

New response