Rampant

by Veden

Improves the enemies tactics by using potential fields (pheromones) allowing probing of defenses, retreats, reinforcements, counterattacking, breaching, raids, rallying death cry, and player hunting. Uses blockable biter projectiles. Adds new Enemies which can be disabled in mod settings. Difficulty setting in mod options menu.

Content
7 months ago
0.13 - 1.1
113K
Enemies

g Error while running event Rampant::on_entity_died

7 months ago
(updated 7 months ago)

Mod Rampant (3.3.3) způsobil neopravitelnou chybu.
Prosím nahlaste tuto chybu autorovi modu.

Error while running event Rampant::on_entity_died (ID 4)
Attack target has no health.
stack traceback:
[C]: in function 'set_multi_command'
Rampant/libs/Squad.lua:931: in function 'retreatUnits'
Rampant/control.lua:495: in function <Rampant/control.lua:422>

Its deffinitely not the first this has happened on this run. From what i have observed its when biters die in some "cloud" either poison capsule, or bio rocket or similar.
Edit:
Sorry for not posting this as a bug.
I am using Rampart. Rampart Arsenal, several QoL mods, Armored Biters and Alien Biomes.

7 months ago

same problem, trying to debug here :eyes:

7 months ago
(updated 7 months ago)

found:

control.lua:504
change from:

if (getCombinedDeathGeneratorRating(chunk) < Universe.retreatThreshold) and cause and cause.valid then

to:

if (getCombinedDeathGeneratorRating(chunk) < Universe.retreatThreshold) and cause and cause.valid and cause.get_health_ratio() ~= nil then

the problem it's the cause, sometimes it triggers something that hasn't health, this should fix the problem.

New response