Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Autonauts

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

Bug with switching focus

A topic by TheRealZboys created Aug 28, 2019 Views: 490 Replies: 3
Viewing posts 1 to 2

I have encountered a problem with the autonauts robots command order being screwed up every time I lose focus in full-screen. What I do is I either alt-tab or press the windows key to hide it away, but when I come back to the game, the robots are always on the wrong step of a command line.

(+1)

I would expect that the bots would not have waited in their working through their steps while you had changed your focus to another window.  The bots would continue working without your focus, and when you came back they would certainly be on a different step than when you last viewed them.

If you meant something different than this, please provide us with "before" and "after" images that show what you meant.

I was referring to if I had a bot do a certain task, it would skip a few steps when I lost focus, and cause an item that shouldn't ever be at that certain step in the first place. 

Basically if i had an instruction order like (Paraphrasing due to time):

  1. Pick up bucket
  2. Milk cow
  3. Empty bucket into Milk Storage
  4. Drop bucket
  5. Collect Dung
  6. Put Dung in Compost Bin

It would have a bucket in hand while trying to "Collect Dung".

(Also I have it like that due to me trying to use minimal bots. However, it has happened to multiple bots in a similar fashion. (Trying to pick stuff up with a hand that should be empty.))

I have tried to replicate the scenario that you described above.  I have created a bot named "Milk&Dung" that follows your steps within a "Repeat Forever" loop, as shown below.  It will find and pick up a bucket, find and milk a cow, move to and add the milk to the Milk Storage, drop the bucket, find and pick up a dung, and move to the Compose Bin and add the dung.

I then changed the focus to look at your posting.  Because I always use "windowed mode" in Autonauts, I could still see the steps that the bot followed while the focus had changed, as shown below.

Although the bot some times needed to wait at the "Find nearest Dung" step until a cow had dumped a dung, it would continue to follow all of the step as long as there was room in the Compost Bin.  When there was no room in the Compost Bin, the bot couldn't add the dung and so it would fail several steps.  Perhaps that might be similar to what happened with your bot.  Since you said "Trying to pick stuff up with a hand that should be empty", maybe you were implying that there was a failure when the hands were not empty.  If so, I can understand that the bot would fail there.  I would view that as an opportunity to try to find a solution (perhaps using a "Repeat 1 times" loop with the test-for-failure option checked).

Good luck.