Shield Generators


Adds turret shields and shield generators for civil structures.

Content
5 months ago
1.1 - 2.0
33.3K
Combat

g non-recoverable error

2 years ago

I'm using a lot of mods but it is repeatable. I was using robots to place a substation covering the turrets, it seems to be safe if the substations are connected to power after they're placed. But if they're placed and connected to power and try to power the turrets at the same time it seems to crash. Here's the error:

The mod Shield Generators (0.3.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event shield-generators::on_tick (ID 0)
real number expected got nil.
stack traceback:
[C]: in function 'set_right_bottom'
shield-generators/control.lua:902: in function <shield-generators/control.lua:590>

2 years ago

I'm using a lot of mods but it is repeatable. I was using robots to place a substation covering the turrets, it seems to be safe if the substations are connected to power after they're placed. But if they're placed and connected to power and try to power the turrets at the same time it seems to crash. Here's the error:

The mod Shield Generators (0.3.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event shield-generators::on_tick (ID 0)
real number expected got nil.
stack traceback:
[C]: in function 'set_right_bottom'
shield-generators/control.lua:902: in function <shield-generators/control.lua:590>

Edit: Sorry, forgot to mark this as a bug

2 years ago

it seems to happen at random while I'm doing other stuff. I have a feeling it has something to do with the "Ammo Loader+++" mod [https://mods.factorio.com/mod/ammo-loader-Revise], but I don't have any coding experience to back that up.

2 years ago

It was reported before, but without a save file i can't do anothing about it: https://gitlab.com/DBotThePony/shield-generators-factorio/-/issues/7

2 years ago

should I upload my world file (if so where should I), I can send it prepared for the error

2 years ago

google drive should do

2 years ago

Here's the google drive link:
https://drive.google.com/drive/folders/1uiAevvRdQkGnyuS-oR29WRwW3IltbGl0?usp=sharing

The world should crash 28 seconds in, if it doesn't try reloading it. I've found that if I'm fast enough and cut power to all the upper outposts by breaking the power line in the image below the crash doesn't happen. I've only connected the upper outposts turrets to power in that save so far.
Image:

https://cdn.discordapp.com/attachments/749688578451308564/1160664724204175510/image.png?ex=65357c42&is=65230742&hm=ff7d0569215bd7872f57f3674521295fa19e8f340ad33214b20cecaa29266fbd&

2 years ago
(updated 2 years ago)

I am able to reproduce the crash, problematic turrent resides on -328 -712, and im trying to figure out the cause (crash happens because when turret fully charge its shield, bars are getting wrongly removed)

2 years ago

Should be fixed

2 years ago

It's fixed, thanks! I appreciate it :)

New response