Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

There seems to be a bug where bots sometimes skip or repeat items in their to-do-lists and then get stuck when they can't complete the next ones.

This is most notable for me with a bot that I have set to make metal:
repeat:
    go to ore storage
    take ore
    go to furnace
    place item
    go to charcoal storage
    take charcoal
    go to furnace
    place item
end repeat
I often come by and he sits there, trying to put another ore into the furnace when in fact it would require only charcoal.This bot is the only one who accesses the furnace (no other bot and I don't use it manually).

The same thing happened when I tried to have bots first produce, then store wares (bring two logs to a furnace, then bring the charcoal to storage/ cut up a log and bring the planks to storage/ ...) - they just seem to jump around in their instructions sometimes. These ones I managed to fix by strictly restricting bots to one task (one bot puts logs into the furnace, the other takes the charcoal away), but that seems uneconomic and doesn't work well for smelting metal as the two bots who want to put in coal and ore often block each other.

So far I have not been able to observe this happening on-screen, so I can't pinpoint any possible reasons (i.e. running out of juice mid-action or being blocked by another bot traversing their target or something), but I'll keep an eye out.

Oh dear. Which version are you running?

v5

Can you send me your level file please? Preferably with the player next to the bot in questions. Thanks

Sure thing:
http://s000.tinyupload.com/index.php?file_id=06172969144112492196
(Didn't find a way to attach files here and you haven't listed an email I could find)
The bot in question is Dave, right above the player.

hmmmmmm. that's going to be difficult to catch. I left it running for about 10 minutes and everything seemed to behave fine but like you say it just happens at some point. I'll add it to the bug list but I can't really fix in until I've got a method of testing it so if you come across one please let me know. Thanks.

It seems to be in the interactions with other bots (i.e. them standing in the way, I guess), as this does not happen when I put him into his own little area with nothing but the two required storages, the furnace and fences all around...
Will try to find a minimal setup where the problem occurs.

(Also, I can now confirm that bots that are unreachable for the recharge bots get charged remotely^^)

Okay, it seems to be definitely related to other bots blocking their way:
I've now got a setup where he skipped the step of actually walking to the furnace and jumped straight to trying to insert the item!
http://s000.tinyupload.com/index.php?file_id=72337184487671410134

Ah that's a good clue. So being blocked causes the Move To to be ignored. Great that's all I need. Thanks so much for the help!