Mango's Robot Deployer [Deprecated] deprecated


Adds a way to Collect and Deploy bots into Logistic Network System (Automatically). 9551 made the Textures and thumbnail

Content
2 years ago
1.1
488
Logistics

g Error

2 years ago

Die Mod Mango's Robot Deployer (0.1.4) hat einen Fehler verursacht, der nicht behoben werden kann.
Bitte informiere den Autor der Mod über diesen Fehler.

Error while running event bot-deployer::on_entity_destroyed (ID 156)
bot-deployer/control.lua:37: attempt to index field '?' (a nil value)
stack traceback:
bot-deployer/control.lua:37: in function <bot-deployer/control.lua:36>

2 years ago

Is this still happening? And if so, can you tell me what you did that may have caused this? Also what mods are you using?

2 years ago
(updated 2 years ago)

The mod Mango's Robot Deployer (0.1.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event bot-deployer::on_entity_destroyed (ID 157)
bot-deployer/control.lua:37: attempt to index field '?' (a nil value)
stack traceback:
bot-deployer/control.lua:37: in function <bot-deployer/control.lua:36>

about 45 seconds after loading my already running base (like 5d played in map) went to build a logi and construction bot caller box (1 of each) and before i could place them from my inv, the error.

so i loaded it again and tried the same thing, but faster, this time i got the logi box on the ground, saw a rotation of 2 or 3 logi bots go into it, but the same error happened.

i have a LARGE list of mods, i can put them here if needed. Edit: i am using Nuclear Robot Reboot, and some of the nuclear are already in the network, i was trying to get the other 40k bots swapped to nuclear, hence this mod.

2 years ago

update: loaded ONLY this mod and nuclear bots to a vanilla save copy, no more error (probably another mod) but the construction recaller isn't doing anything, while the logi recaller is working fine

unrelated note: i realized that i don't know how to tell it to call vanilla logi bots and not nuclear logi bots...

2 years ago
(updated 2 years ago)

I probably have the same error: https://imgur.com/a/lM5MeTg
Caused by:
- Shift-building ghosts and mining them
- Holding Shift to make a Tapeline grid persistent
New freeplay save file with my mods: https://drive.google.com/file/d/1sJavQnaFLvDeArljX7hPFxp1UIxyZuyK/view?usp=sharing

2 years ago

Error: The mod Mango's Robot Deployer (0.1.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event bot-deployer::on_entity_destroyed (ID 159)
bot-deployer/control.lua:37: attempt to index field '?' (a nil value)
stack traceback:
bot-deployer/control.lua:37: in function <bot-deployer/control.lua:36>

As soon as construction bots start added modules, the game crashes. If I remove MRD, it works just fine.
Save showing it: https://drive.google.com/file/d/1-ushBgrG4LxIM9aeHUpc0wfprGxNIKHR/view?usp=sharing

1 year, 11 months ago

https://imgur.com/a/0PluYrG im having the same issue as the people above, here is the proof and my mods

1 year, 3 months ago

The fix for this is to modify the mod, in control.lua replace this callback with following:

script.on_event(defines.events.on_entity_destroyed, function(event)
  local entity = global.entities[event.unit_number]
    if entity and entity[1] and entity[2] then
        entity[2].destroy()
        global.entities[event.unit_number] = nil
    end
end)

I had this happen once I added Transportation Drones to an existing save and tried to destroy one of the buildings added by that mod. I'm not sure if my change actually breaks anything, but it just ensures that the destroy function is not called on something that is nil.

New response