Shield Generators


Adds turret shields and shield generators for civil structures.

Content
a month ago
1.1 - 2.0
29.9K
Combat

b Crash on null (0.3.5)

1 year, 1 month 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>
1 year, 1 month ago

I need a savefile to debug the exact cause

1 year, 1 month 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

1 year, 1 month ago
(updated 1 year, 1 month ago)

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

1 year, 1 month 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

1 year, 1 month ago

Oh uhm, any alternatives?

1 year, 1 month ago

Google drive?

New response