Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Autonauts

Make and teach robots to automate the world! · By Denki

Understanding bots rules

A topic by arthurbrunner created Oct 19, 2019 Views: 1,496 Replies: 5
Viewing posts 1 to 5

Can someone clarify to me what is the %threshold for the command 

Do this action until a certain storage is full because my bots don't continue there work when a certain storage goes from 100% which is full storage to anything below? 

I thought they would pick up there work once a specified storage is not 100%? 

When you use "Repeat until Storage Full", the commands in its loop will run until that Storage is at or above 95% full.  When you use "Repeat until Storage Not Full", the commands in its loop will run until that Storage is below 95% full. 

@arthurbrunner

When the condition "full" is met, the loop doesn't repeat. So obviously, the condition isn't checked any more. You're out of the loop.

You need to wrap an unconditional loop around the conditional one. That way, the condition is checked repeatedly and when the storage has room again, the action inside the conditional loop restarts.

I agree.  I also like to put a "Wait" command after the inside "conditional" loop before the end of the outside "unconditional" loop to avoid the annoying jittering of the execution of the two loops.  In the new version 125, I get the "Wait" command by training the bot to go to a spot and clicking that spot again, and then changing the number of seconds shown to wait to an appropriate value for the situation. 

I understand now, also what is the box next to select target box, its 2 boxes that are white on top of actions commands, when i hover over it says toggle exit, repeat on fail?

when i click it there is a down arrow pointing, is this a repeat loop button on fail? Noone mentioned it so i assume it is something else?

When that option at the top of a Repeat Loop is checked, then if any actions within that loop fails (such as a "Find Nearest Log" when there are none to be found, or "Add to Log Storage" when that storage bin is already full), the loop will be exited and the next action after the bottom of the loop will be run.