Spidertron Automation

by ILLISIS

Automated Spidertrons; have the ability to move, set logistic requests, construct, deconstruct, repair, upgrade entities/blueprints and destroy enemies of any size, anywhere on the map with items from your logistic network for the ultimate fire and forget automation and megabase quality of life experience with unmatched scaling potential.

Tweaks
8 days ago
1.1 - 2.0
30.5K
Logistics Combat Logistic network

b Error when adding items to grid (Krastorio2)

2 years ago

Hi,

I'm in the middle of a Krastorio2 playthrough and I've been trying to get this mod to work, before the latest update it wouldn't let me add some items to the grid, they'd just show as red when I dragged them over and I couldn't add them.
Following the update to 1.0.7 I'm now getting a crash when I add a roboport to the grid, I've tried with and without a service station nearby and get the same issue both ways. It also occurs no matter what type of roboport I add, same error with a Personal robotport mk1, mk2 or the Vehicle roboport from K2.

The error is

The mod Constructron-Continued (1.0.7) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Constructron-Continued::on_nth_tick(60)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__Constructron-Continued
/control.lua:928: in function 'get_closest_object'
Constructron-Continued/control.lua:1409: in function 'get_closest_service_station'
Constructron-Continued/control.lua:1158: in function 'get_job'
Constructron-Continued/control.lua:1220: in function <Constructron-Continued/control.lua:1212>

2 years ago

Hi

Could you please provide me a copy of your save game?
Does the game crash on load or only when you try to interact with a Constructron's equipment grid?

2 years ago

It was when adding the roboport to the grid. I've just cleared out a few unneeded mod's and that seems to have fixed the issue, I'm guessing there was one of those causing the issue. I'll try and add them back in one at a time to identify the one causing the issue. If I work it out I'll let you know.

2 years ago

Ok, now seeing a slightly different crash, I've removed all mods other than Krastorio2 and this one, I can add items to the Constructatron's grid fine, but when I try and get it to work, I get a new crash, If I copy something and then paste it into a blank space of the map (outside existing roboport coverage I get this crash after a few seconds.

The mod Constructron-Continued (1.0.7) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Constructron-Continued::on_nth_tick(60)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__Constructron-Continued
/control.lua:928: in function 'get_closest_object'
Constructron-Continued/control.lua:1409: in function 'get_closest_service_station'
Constructron-Continued/control.lua:1158: in function 'get_job'
Constructron-Continued/control.lua:1220: in function <Constructron-Continued/control.lua:1212>

Savegame is located here.

https://1drv.ms/u/s!Ajd1psEDXuiGnZghxAV68AY5O5p8Ew?e=k8magq

2 years ago
(updated 2 years ago)

I can't even add the personal roboport to the grid, Maybe I need to update. Edit. I've updated and it works fine. No crashes so far.

2 years ago

Ok, now seeing a slightly different crash, I've removed all mods other than Krastorio2 and this one, I can add items to the Constructatron's grid fine, but when I try and get it to work, I get a new crash, If I copy something and then paste it into a blank space of the map (outside existing roboport coverage I get this crash after a few seconds.

Okay thanks for your save, some how, you have 4 service stations that are invalid and have not been removed from the global variable. I will add a check in the function for invalids. In the mean time, you should be able to remove the mod, save the game, add the mod, then load the save you created to fix the issue.

Do you have any other mods that could have removed/destroyed a service station with an event that I may not be listening for?

2 years ago

v1.0.8 is getting very close and registers all Constructrons and Service Stations so none of these entities can be removed and slip through the cracks which causes this crash.

I will close this thread off but also feel free to jump into the new discord if you need any more help
https://discord.gg/m9TDSsH3u2