OSHA - Bot Recaller deprecated


Utility mod to help recall/collect bots within a network.

Content
3 years ago
0.16 - 1.1
2.54K
Logistics

b Chest also makes regular requests

2 years ago

The chest also makes regular requests. So every time you recall robots from roboports by setting a logistic request on the chest, it also fetches robots in storage. This seems to me to not be desireable, but is it intentional?

2 years ago

For now I've made a little hack to the mod that works for my purpose. I've added the following to doRecall:

local signals = recaller.get_merged_signals()
if (signals ~= nil) then
for key, signal in pairs(signals) do
local invertedCount = signal.count * -1
if
string.find(signal.signal.name, 'robot') and myInventory.get_item_count(signal.signal.name) < invertedCount and
myInventory.can_insert({name = signal.signal.name})
then
requests[#requests + 1] = {count = invertedCount, name = signal.signal.name}
end
end
end

So I can send a signal over circuit network as a negative value. Recaller chest will still recall the bots that are signaled, but no real requests will be set on the chest because of the negative value. Would be nice if there was an event that could be interrupted or something, but I'm not too into the api atm to know how or if you can do that.

2 years ago

The idea was to get bots from anywhere it could find them. I could add a separate chest type to help determine where to pull from? Would that solve your issue?

1 year, 7 months ago

Yes, please?