Shield Generators


Adds turret shields and shield generators for civil structures.

Content
6 months ago
1.1
25.5K
Combat

b Crash on null (0.3.5)

6 months ago

In version 0.3.5 of this mod (most recent as of posting) a crash occurs. It appears to be an edge/timing case. When the shield generator attempted to recover/recharge a shield on an entity that was getting destroyed at exactly the same time.

stack:

Error while running event shield-generators::on_tick (ID 0)
__shield-generators__/control.lua:807: attempt to index local 'tracked_data' (a nil value)
stack traceback:
    __shield-generators__/control.lua:807: in function <__shield-generators__/control.lua:590>
6 months ago

I need a savefile to debug the exact cause

6 months ago

Sure here you go: https://we.tl/t-w5VrzdqC8j.

Just keep in mind its a pretty rare thing to happen so you might need some hours of gametime in my erm...creation

6 months ago
(updated 6 months ago)

Rechecking code reveal no possible way for shields_dirty to contain random nil among other values. so i can't promise fixing this

6 months ago

Sure here you go: https://we.tl/t-w5VrzdqC8j.

Just keep in mind its a pretty rare thing to happen so you might need some hours of gametime in my erm...creation

we.tl banned russian ips, i can't download this savefile

6 months ago

Oh uhm, any alternatives?

6 months ago

Google drive?

New response