Companion Drones 2.0 [WIP]

by kubiixx

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

Content
11 days ago
2.0
2.44K

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

12 days 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>

12 days 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.

12 days ago
(updated 12 days ago)

2.0.7 doesn't have this problem.

12 days 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.

11 days ago

Please check it in version 2.0.9

11 days ago
(updated 11 days 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.

11 days ago

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

11 days 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>

11 days 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>

11 days ago

Fixed in 2.0.10

11 days ago

It works perfectly now! Thanks for the update

10 days ago

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

New response