I have created some bots on my map that will gather logs from the tree farm but every time the crate fills up, they just stop working and I have to get them to start over again. It isn’t the end of the world but it can be annoying if I don’t catch them quickly and the supply of wood has dropped down significantly. Why do they keep doing this? I have the repeat loop to work based on the pallet being full so when it is not full, I would have expected them to get back to the stacking.
1 Answer
Scripts in Autonauts are designed to run to the end and once they reach the end, the script terminates and the bot stops running. What is likely happening here (hard to tell without a picture of the script) is that you have a repeat loop to stay keep stacking until the stack is full. Once the stack is full, the script will break out of this repeat loop and will no longer run. This means you will need to press the play button to get it to start again.
To fix this issue, you will need to add an additional repeat loop that runs forever. This way, when the storage is full, it will break out of this repeat loop but keep running forever. When the storage is eventually empty, it will go back into the repeat loop and the bot will get back to stacking the storage.