Companion Drones 2.0 [WIP]

by kubiixx

Adds friends - now to Factorio 2.0 WORK IN PROGRESS - crashes may occur - use with caution !

Content
10 months ago
2.0
6.23K

b [FIXED] 模组「同伴无人机 2.0 [WIP] [Companion Drones 2.0 [WIP]] (2.0.8)」引发了无法恢复的错误。

10 months ago

模组「同伴无人机 2.0 [WIP] [Companion Drones 2.0 [WIP]] (2.0.8)」引发了无法恢复的错误。
请向模组作者反馈此错误。

Error while running event companion-drones::on_tick (ID 0)
companion-drones/script/companion.lua:886: attempt to compare table with number
stack traceback:
companion-drones/script/companion.lua:886: in function 'has_or_can_take'
companion-drones/script/companion.lua:991: in function 'try_to_find_work'
companion-drones/script/companion.lua:1135: in function 'perform_job_search'
companion-drones/script/companion.lua:1207: in function 'check_job_search'
companion-drones/script/companion.lua:1244: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

10 months ago

I just had this same error. It was caused by placing down a blueprint of a factory with modules in it.

Edit: After further testing I believe it's a conflict with another mod Auto Ghost Builder. When I disabled it I no longer crash.

10 months ago
(updated 10 months ago)

2.0.7 doesn't have this problem.

10 months ago

Seeing the same error when placing a blueprint with buildings that have modules in it.

Only mods enabled (other than base space age) are:
Bottleneck Lite
Far Reach
Orphan Finder (Fixed)
Squeak Through 2

I can place the string of the blueprint that I am placing that will consistently cause the crash.

As a work around if the modules are removed from the blueprint prior to placement, the crash doesnt occur.

10 months ago

Please check it in version 2.0.9

10 months ago
(updated 10 months ago)

upgraded to 2.0.9 and it still crashed as before:

The mod Companion Drones 2.0 (2.0.9) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event companion-drones::on_tick (ID 0)
companion-drones/script/companion.lua:886: attempt to compare table with number
stack traceback:
companion-drones/script/companion.lua:886: in function 'has_or_can_take'
companion-drones/script/companion.lua:991: in function 'try_to_find_work'
companion-drones/script/companion.lua:1135: in function 'perform_job_search'
companion-drones/script/companion.lua:1207: in function 'check_job_search'
companion-drones/script/companion.lua:1244: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

I am seeing it crash when placing a blueprint that contains modules, but am also seeing it crash (occasionally) when just copy/pasting a couple of buildings with modules. Doesnt seem to always happen with the copy/paste, but error code is the same.

10 months ago

I am also getting this error when I walk to near a placed blueprint from the prior version

10 months ago

I'm getting a similar error with the newest update as well.

I have blue prints down in a large area. My drones in place a few items then move onto a different area give me the following error.

The mod Companion Drones 2.0 (2.0.9) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event companion-drones::on_tick (ID 0)
companion-drones/script/companion.lua:886: attempt to compare table with number
stack traceback:
companion-drones/script/companion.lua:886: in function 'has_or_can_take'
companion-drones/script/companion.lua:991: in function 'try_to_find_work'
companion-drones/script/companion.lua:446: in function 'search_for_nearby_work'
companion-drones/script/companion.lua:476: in function 'update'
companion-drones/script/companion.lua:1222: in function 'update_active_companions'
companion-drones/script/companion.lua:1243: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

10 months ago

Similar crash, with py moss farms using moss as modules.

reproducible when copy pasting block of 4 machines with modules.

bug goes away if no modules are present

1st crash https://i.imgur.com/K17IvMc.png

reproduced https://i.imgur.com/E1eYyzs.png

no modules, no crash https://i.imgur.com/xEAKY5k.png

The mod Companion Drones 2.0 (2.0.8) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event companion-drones::on_tick (ID 0)
companion-drones/script/companion.lua:886: attempt to compare table with number
stack traceback:
companion-drones/script/companion.lua:886: in function 'has_or_can_take'
companion-drones/script/companion.lua:991: in function 'try_to_find_work'
companion-drones/script/companion.lua:1135: in function 'perform_job_search'
companion-drones/script/companion.lua:1207: in function 'check_job_search'
companion-drones/script/companion.lua:1244: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

10 months ago

Fixed in 2.0.10

10 months ago

It works perfectly now! Thanks for the update

10 months ago

Thank you as well. Been playing for a few hours now and no issues

New response