Advanced Spaceship Repair

by heyqule

Speed up repairing entities on space platform. Damaged entities repair in a batch, instead of one at a time. Ideal for space battles.

Utilities
5 months ago
2.0
1.41K
Combat

b Error when asteroid destroys platform under asteroid collector

10 months ago

I'm not sure on the exact cause of this crash, but loading the most recent save and watching all active platforms, I saw an asteroid crash into the asteroid collector of one, after which the game immediately threw this error:

The mod Advanced Spaceship Repair (1.0.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event advanced_spaceship_repair::on_entity_damaged (ID 114)
__advanced_spaceship_repair__/repair_ship.lua:58: attempt to index field '?' (a nil value)
stack traceback:
    __advanced_spaceship_repair__/repair_ship.lua:58: in function 'add_to_repair_list'
    __advanced_spaceship_repair__/control.lua:13: in function <__advanced_spaceship_repair__/control.lua:12>

Here's a screenshot of the gamestate as the error occurred:

10 months ago

The platform also had no repair packs on it at the time, if that's relevant.

10 months ago

Thanks for the report. 1.0.4 should fixed it.

It was the internal data structure wasn't properly created when the platform created.

New response