Worm Attack! deprecated

by wodzu93

Burrowing worms! Fend off a digging menace that wants to devour your factory.

Content
3 years ago
0.15 - 1.1
1.31K
Enemies

g buildings worms destroy not leaving ghosts

5 years ago

when the worms pop up in your base they destroy building as expected. unfortunately when the worm is killed the building is not reblueprinted so you have to remake the build underneath the worm. if this lands on a section of belt spaghetti it can be extremely difficult to fix it. plz fix so i can use this again

5 years ago

Can confirm this issue is also present on my game. I've had to remove the mod due to entire sections of my spagget being removed, with no automatic repair to save my sanity.

5 years ago

Sorry guys, I'll fix this asap as soon as I get my PC back from repairs. Its gonna take a week or so.

5 years ago

So I've dug around in the code, and unfortunately placing an entity over the ghost will delete that ghost. It is a hardcoded property of the gameand I can't get around that unfortunately. Your best bet to secure the base is to make a wall several layers thick to force worms to surface in that area, and periodically repair it by blueprinting.

5 years ago

Could you save the data for the destroyed buildings and then put the buildings back when the worm is killed. Even if the building looses its data this would be preferable. In its current state this mod is effectively unplayable.

5 years ago
(updated 5 years ago)

Tried to do that too. Unfortunately the "on_entity_died" event in the API does not trigger when ghost is removed by placing an entity over it, so I have no way to detect it.

Latest update introduced a weapon to kill tunneling worms from a distance though, so now you have a way to fight back and prevent them from digging into the base.

5 years ago

would it be possible to do as part of the worm coming out of the ground directly? instead of as part of the building dieing?

5 years ago

I can't do that in the worm surfacing code because I don't yet know which ghosts will be killed by it.
I can't get which ghosts got killed because necessary event doesn't register that.
I've run out of ideas. I'll ask around the forums, maybe someone will give me some hints...

5 years ago

K, good luck

4 years ago

Fixed! Ghosts will now be reprinted. System is not perfect (details like circuit network conditions might get dropped), but it works.

4 years ago
  • Fixed worms destroying ghosts! Note, items on the ground may interfere with reprinting ghosts.

If you detect any colliding items on the ground and mark them for deconstruction, the interference should be prevented. :)

I think most mods that leave items on the ground as wreckage do that automatically, but obviously there's no guarantee.

4 years ago

The problem is, mark for deconstruction command in the code deconstructs EVERYTHING in marked area. I'd rather nor reprint than deconstruct something by mistake.

New response