Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

It doesn't necessarily need to happen simultaneously though.  Like I said, I can have a dozen bots all at very different stages in the processing of an item type (such as running threshers with cereal) and all but one of the bots will have this glitch.  It seems to be something to do with how they are reacting to the storage unit once it is full.  If I had to guess, it was a boundary condition you are using with the test for a full storage container, where you are currently only looking at if the bot put in the last item.

Those logic bugs are the kind that tear your hair out, so I completely understand and am sympathetic with why it exists.


I even get a sort of weird situation where due to the fact it isn't completely simultaneous that some arbitrary number of bots won't necessarily glitch out.   What I think is happening there is that due to the heavy demand of that item to and from multiple storage containers, that the bots who glitch out slow down production thus allowing the other bots who are consuming that item (like making bread) to catch up and make space available to some of these bots who aren't glitching to put items into storage.  If for some reason the consumption of items from the whole production chain is halted (as is the case sometimes when setting up a completely unrelated production chain), I have this happen to all but one of the bots without fail.  I can easily reproduce this situation every time it fits this criteria.

hmmm. There's nothing special about the last bot that put something in so it should be all-or-nothing really. Can you do me a favour and send me your level please so I can have a look? If you could set it up ready to go wrong that would be great.

(3 edits)

Here are some example test files which demonstrate this bug:


LineHalt1.txt


This is a large scale production of clay pots that I'm doing (with support bots leading the production chain... I'm doing clay pots to show it more clearly).  Here you will see several workerbots making raw clay pots simultaneously, and when it hits the storage peak, all but one will stop.  If I ramp up production of the clay pots after the storage containers are full, all of the bots but one are glitched out.


Another situation is here:


LineHalt2.txt


Here I have multiple bots both consuming and making raw clay pots.  The production of raw clay posts is slightly higher, so one or more of the bots are going to glitch out but the others will continue afterward.  A situation like this can have a second or third bot eventually glitch out.  If you aren't closely paying attention to the situation, what will happen is that the glitched out item production will gradually start to fall until the storage containers eventually go empty.

I hope that helps you out in seeing a test condition to catch this bug.

(+1)

ok thanks for your help. I've added it to the bug list.