Roboport Technology


A mod that adds different researches for roboports! Every 'tier' or upgrade adds the same value (by default). Vanilla is 100%, level 2 would be 200%, and level 3 300%, level 4 is 400%.

Tweaks
4 days ago
1.1 - 2.0
4.16K
Logistic network

g LuaEntity API call when LuaEntity was invalid. May have found a solution.

7 months ago

Hi,

First of all, thank you for your commitment :)
I suddendly began to get crashes when placing roboports. Error report was like:

The mod Roboport Technology (1.0.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event bot-batteries-technologies::on_built_entity (ID 6)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__bot-batteries-technologies
/control.lua:205: in function 'on_built'
bot-batteries-technologies/control.lua:229: in function <bot-batteries-technologies/control.lua:219>

I'm on Space Exploration, and using a couple of other robots-oriented mods, but I'm in this game for about a hundred hours now and placing roboports has never been an issue until today.

I investigated a little, and simply made this modification: I added <code>if not entity.valid then return end</code> in line 205 of control.lua (between if statements). It made the trick.

Please let me know whether you need any more details. Kindly.

7 months ago

Hey thanks for letting me know, i think i got this issue covered on my end too now, feel free to head over to my source code and submit Pull Requests for these types of things! (ignore the version in the repository name).

Other than that, enjoy the mod!

This thread has been locked.