Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Autonauts

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

Feedback, Bugs 'n' Stuff Sticky

A topic by Denki created Jul 12, 2017 Views: 61,770 Replies: 1,418
Viewing posts 474 to 493 of 496 · Next page · Previous page · First page · Last page

What would help with the programming of Automatons, is the ability to use Conditions in code. It would mean a bot dedicated to multiple tasks (that rely on the condition and status of other bots) could go ahead with other tasks while the other bots do not meet a condition. For example, if you have a bot that mines Metal Depos, and the chance to get Metal Ore or Stone is 50%, then you have another bot collecting the resource, but cannot due to its code telling it to wait for another robot to need a recharge. Conditionals would help - is the short way of putting it.


Sorry if it reads incorrectly.

Developer

Yep, that's something we'll be adding when we do a big overhaul to the scripting system. This will happen some time after our next release

Several people in the past have agreed that adding Conditionals to the scripting language would certainly help.  The developers have been working for over a year on the next version of Autonauts. They have said recently "Unfortunately, if we release it too early, we'll just get loads of complaints about things that don't work or can't understand. We're going to release when we think it will be ready and make everyone happy rather than angry/confused."

While we are waiting, you can use the "Repeat until hear..." commands in the scripting language to act as Conditionals and you can use Steam Bots to overcome the problem of Worker Bots needing to wait a long time for recharging.

Below is shown one example of how to build bots that use the "Repeat until hear..." commands.  One bot named "GoFish" (wearing a Party Hat) will wait until the Salmon Storage is not full and then will Shout "GoFish".  Another bot named "StopFish" (wearing a Guy Fawkes Hat) will wait until the Salmon Storage is full and then will Shout "StopFish".   A set of 7 bots with names like "Fish1" will wit until they hear "GoFish" and then will repeat until they hear "StopFish" the commands to "Find nearest Deep Sea Water" and "Use held item" (which is the Fishing Rod).  These commands will control the bots so that they only catch fish when needed.

Below is shown an example of how you can set up a Steam Bot (wearing a Traffic Cone Hat) to charge Worker Bots and to also collect Logs into its inventory to keep itself charged.  After the Steam Bot has taken a Log from the Log Storage, if its inventory is full then the "Stow held item" command will fail and the Log will still be in its hands, and so it will add that Log back to the Log Storage.  If its inventory was not full, the "Stow" command will run and the "Add to Log Storage" command will be skipped because its hands are empty.  You can set the number of times that the "Repeat times …" command runs based on how much energy is used by the Steam Bot to find and move to recharge the Worker Bots.

(1 edit)

You can also do the following

Repeat [forever]
|   Repeat [until inventory full]
|   |   Move to Log Storage
|   |   Take from Log Storage
|   |   Stow held item
|   |__
|   Repeat [until inventory empty]
|   |   Find nearest unwound Workerbot
|   |   Move to Basic Workerbot
|   |   Recharge Workerbot
|   |__
|__

This way it will start by taking enough logs to work for a long time, and when it's got no Logs left in it's inventory, meaning it just used up the last log available, it will fill its inventory again.

Instead of using the first in the following code, you can choose the bot to take different amounts. If you don't want the bot to take out so many logs at once, set it to only take 3 for example. This way it has three logs in it's inventory and takes another three after they are all burned up 

(1)    Repeat [until inventory full]
(2)    Repeat [times] [3]

I don't know if it's been mentioned before- but I play on mac and my save files are not showing up. It will show the saving logo in the corner, but it wont create a save file. (This was kinda frustrating because I grinded the game for a few hours w/o saving whoops)

Developer

Oh no! Unfortunately there's been a few reports of save files not appearing. This can be because you've chosen a folder that you don't have access to. Try saving to your desktop instead (and do an early test save to make sure it works). When we release the next version on Steam it uses a much safer system and this sort of thing won't happen any more. 

Sorry about that :(

It works when I save to desktop! Thank you for the quick reply! <3

If you have a bot which puts idle bots in storage you can softlock yourself if he cleans up the one you want to teach something because he thinks is idle. That keeps you stuck in the teach menu and none of the hotkeys, esc, and not even taking all bots out of storage can get you out of it... I think the only wayout  is by alt-F4 and losing all progress.

autosave did give back most things luckily enough

Developer

Thanks for the bug report, sorry about your lost progress. This will be fixed in the first Steam release towards the end of the year

i know i was, like, just here but i found another bug-

One of the little people spawned inside of the rock in my world? Its a small generation bug, didnt have any real effect on the game, but it still happened ;^^

(Apologies if this has already been mentioned and/or discussed)

I'm having an issue using buckets in automation. I have one Basic Autobot whose only commands are [Repeat forever[move to water storage][take from water storage][move to crude wash tub][add to crude wash tub]]. Grabbing water and putting it in the tub, forever. For some reason, once in a while the bucket will remain full after adding to the wash tub, leading to a confused bot trying to fill an already-full bucket and getting stuck. The wash tub is usually full, so the bot spends time waiting for the water level to drop, if that's relevant.


Any advice would be appreciated! Thanks!

Here's the best screenshot I could capture.

(1 edit)

Here is a suggestion that might help you.  If you add loops that say "Repeat times 1" and include the down-arrow at their ends, the down-arrow will check to see if there was a failure within the loop and in that case will exit the loop.  In this example, a failure could happen at the top if the water bucket was already full and the bot could not "Take from Water Storage", and so the bot would then "Move to Crude Wash Tub" and continue.  A failure could also happen at the bottom if the bot could not "Add to Crude Wash Tub" because the tub was already full, and so the "Repeat forever" loop would go back to the beginning.  (Another failure could happen if the Water Storage was empty but this example does not include steps to deal with that.)

 

You do not need the second "Repeat times 1" if you have another bot set up which adds dirty Folks or dirty Clothes or dirty Soup Pots into the Wash Tub.  If you don't have that second "Repeat times 1", this bot will simply wait until after the Wash Tub has cleaned something and then has room for more water.

Wow, that's a cool tip. I just used it to make a production line. Each bot handles a different material, and delivers the that material to 3 different clay stations. If the clay station doesn't need that material yet, he just goes on to the next one.

Developer

Hi! Yes, sorry about this I think it's a pesky bug. I'm not quite sure why it keeps happening as it's difficult to catch. However this won't be an issue when we finally release a new version on Steam as we no longer use the wash tub any more. Sorry for your inconvenience.

I'm sorry to hear that the Wash Tub will not be included in the new version.  I thought that the Wash Tub added some interesting activities to the game and allowed players to solve lots of challenges with keeping Folks and Clothes and Soup Pots clean.  I wonder if the "Besom Broom" will also no longer be included, since it is also used for cleaning after the Folks eat the Soup.  Please don't drop out of the new version too many features like the Wash Tub and the Besom Broom.  (I don't mind if you drop out the musical instruments though.)

Developer

Sorry :( Most feedback suggested that cleaning wasn't much fun. However the Folk will require certain things to be happy (food, shelter, clothing etc) so it's something we may reintroduce in a later release. We've not removed all that much from v21.2 and we've added in a whole load so you won't be short of things to play with :)

That's great news.  Just like everyone else, I can't wait to see the new version.  Thank you.

Hi, this is an awesome game. I love that I programmed two bots to wind up all the others. And one bot that can build more bots. I wonder if there is a way to program a bot to deliver a shovel to a bot with a broken one.

I only have one minor glitch to report, Sometimes I try and save a game, but it fails because the disk is full. I have to delete some files so I can save the game. Then when I close the game, I have 1.5gb of free space again. I'm going to copy some rubbish files that do nothing but take up space, so I don't have to hunt around for something to delete. I wonder how much free space I need prevent this from happening.

Version 21.2 Linux Universal

I don't use the Linux version but I can imagine that your need to delete files in order to save the game is caused by the same issue that I reported in the topic below.  When you have bots that "Repeat forever" an action such as chopping down trees or threshing grain which then creates a super-tall pile of something, every item in that pile is then included in the file being saved, which I have seen becomes a huge file of over 3,400 KB.  I suggest that you review this post and take whatever action is similar for Linux so that your game will keep running.

 https://itch.io/t/265312/autonauts-take-half-an-hour-to-load

So, I checked my save files, they're only 750kb, and my resources are fairly well balanced, so I don't think we have the same issue. The entire program folder is only 200mb, I can't figure out where all the space went. I'm assuming its a swap file in a temporary folder somewhere. I cleared 15gb so it had plenty of room, and it swallowed all that up as well, lol. I keep a usb drive handy, that seems like the quickest easiest solution, lol.

Have you managed to get berries to work? I've only tried a couple of times, but after a short while (it might be triggered by restoring from a saved game) the berries become useless, you can't pick them up off the ground or take them out of the storage container, or even feed them to the folk, they just refuse to do anything except, one time a bot was holding one and trying to store it into a container, so I took it off him, and I was able to plant it. But it grew into a useless bush, that refused to be thrashed.

Berries seem to be the only renewable food. There's not enough cows to feed everyone on milk, and bread requires sticks aren't renewable for some reason.

Hit a tree with a wooden mallet and sticks will fall out of it. Or apples, if it's an apple tree.

O.O


:-D

(1 edit)

You will need lots of cows to make lots of butter.  Even if you collect all of the cows in the game, you might still want to somehow get more cows to feed everyone.  Here is a link that provides information on how you can add more cows to the game.  The link will not work with Internet Explorer; you can use Google Chrome instead.  https://autonauts.fandom.com/f/p/3100000000000000076

Developer

These broken berries sounds like you've run into an error loading up your previous save file (possibly related to my previous post). Have a look at the contents of the log file for any errors or, if it's small enough, send the log file here and I'll take a look.

Yes, I suspect you are right about the save file being corrupted, probably while trying to save to a disk with not enough space on it. I just started a new game and that solved them problem.

I looked up the log file, and it has about 45 lines of generic looking messages involving buffers and files, then these two lines:

Graphics.CopyTexture can only copy between same texture format groups (OpenGL internal formats: src=35905, blockSize=3 ; dst=32856, blockSize=4)
 
(Filename:  Line: 1384)

Over and over and over for 15gb, lol.

Now that I know where it is, I can delete is easily when I need to, thanks :-)
Developer

Yeah I suspected that error might have been what was happening. Never seen a 15GB file though :)

That bug will be fixed in the next release.

Developer

Sorry to hear about your storage problem. The only thing I can think is going on is the game is producing an enormous log file because of some repeating error. However this would take quite a bit of time to produce a file that consumed that much. Moreover, every time you launch the game a new log file is started, freeing any space it previously used. Anyway have a look in this folder ~/.config/unity3d/Denki/Autonauts/Player.log and keep an eye on it as you run the game.

Failing that, I really have no idea why it would use that much.

While I was trying to train a basic bot, another bot picked him up and deposited him into the storage shed, now the red program recording window is unresponsive, also, I can't get to the game menu, so I can't save or load or exit, lol.

I suggest that you terminate Autonauts by right-clicking on its icon in the task bar of Windows and selecting "Close Window".  Then, you should be able to start another session of Autonauts.  Next, if you have a recent save file that you made before the basic bot being trained got put into the shed, load that save file.  If you don't, look in the "Autosaves" folder below you "Autonauts" folder, which contains the files that are automatically created whenever you see the piggy-bank appear I the bottom-right corner while the game is running.  Find the most recent Autosave file, and load that file.  Below is an image of a typical "Autosaves" folder which should be named something like "C:\Users\Owner\Documents\yourname\Autonauts\Autosaves".

Developer

Argh! Sorry about that. This bug will be fixed in the next version.

Another minor issue that's a bit curious, if you tell a bot to pick up a beacon, he picks up the one you used to instruct him with.

Here's the long story: I instructed the bot called "bot-beacon" to repeatedly make beacons and put them in a storage box. But instead of picking up the unnamed one he just made, he picked up the one from my forest. So I came up with this solution: I made a beacon called "local" and put it next to the assembler factory, and reduced the range down significantly so that he would only ever find the new one he just made, and not one in the forest, except he picked up "local" and put it in the storage box, leaving the brand new unnamed beacon still on the ground.

So.. you could fix it by excluding that beacon from the range, but then if you did actually want to pick up "local" you'd need another beacon to guide to "local". My brain is starting to hurt thinking of all the possibilities. Has anyone else come up with this scenario?

I did something similar.  I created a bot which I named "Beacon" that creates Beacons and then puts them into the "Beacon Storage", as shown below.  I was able to avoid the problem that you are having by making the "Find nearest Beacon" command centered on the spot where the Beacons are created (as indicated by the question mark (?) following the command) rather than centered on a specific Beacon (which would instead be indicated by the blue-and-red symbol) which I'm sure your "bot-beacon" has connected to its "Find nearest Beacon" command and which you said uses the "local" Beacon.  Try changing your bot's commands this way.  Good luck.

The first time it happened, my code looked very similar to yours with the question mark. I got around it by making him wait for 2 seconds before looking for a beacon, that stopped him from finding the forest beacon before the new one was completed.

(1 edit) (-1)

Maybe there could be enemy bots that spawn depending on how many bots there are that won't destroy your bots but corrupt them so they will attack you, and to get your bots back you have to attack them with a sword or any weapon and it will only save your bots and not the corruption itsef,

i think  i found a bug without even playing the game  screen color is pink(or purple) i found this bug in 95% of games idk wth its making this happen can somone plz explain

If your screen color is pink or purple even when you are not playing the game then the problem is not with the game,  The problem is with your computer.  You might want to try taking it to a computer repair place or getting a new computer.

thank you it might be because i made an upgrade to my pc it's not huge like change graphics card or processor but all the programs /games i have is still working as intended and it's my frist time trying itch.io idk it was like this before upgrade but also all games i downloaded frm itch don't work either it doesn't even start or it makes black screen and audio only playing and also the purple screen problem I didn't encounter any problems with anything else than itch. Io games 


But thank u anyways

I found a bug.

When you store any tool (Tested on axe, pickaxe,shovel) and then take it out, it will have full durability.(I guess, you are not saving durability in storages.)

Developer

Thanks. This will be fixed in the new version we will release on Steam

Thank you for that information, Denki.  Since there hasn't been any announcements here for over 50 days, I'm sure your fans appreciate any news on your progress.

Found it listed on Steam this morning.  Wishlisted and anxiously awaiting the release.

Developer

\o/

hello alI can not find the Crude Mortar Mixer is normal?

From the "Research" group of equipment, build the "Stir Research Station" on or near the sand using 5 planks and 1 pole.  Grab a bucket and use it to take about 20 buckets of sand and put each one into the "Stir Research Station".  After the research has completed, a message will be shown about a new blueprint that can be found in the "Misc" group of equipment for the "Crude Mortar Mixer", which then can be made using 5 planks and 1 pole.  Mortar can be made in the Mixer using 1 clay, 1 bucket of sand, and 1 bucket of water.

I cannot build the blueprint


So I got 4 planks for general storage and I right clicked the blueprint w/ the planks in my hand and nothing happend

To build an object from its blueprint, the blueprint must first be placed in the world somewhere, which is done by clicking on the desired blueprint from the list on the left and dragging it to the desired location in the world.  The blueprint cannot overlap other placed objects or blueprints, which would cause the blueprint to appear in red and prevent it from being dropped.

The following blueprint objects must be placed on "Simple Flooring" rather than on bare ground:  Crude Bench Saw, Basic Workbench, Bench Saw, Metal Workbench, Wood Router, Kitchen Table.  The Simple Flooring needs to be created before those objects' blueprints can be placed upon it.  You will usually need to place several Simple Floorings adjacent to one another to have enough room for several desired objects. 

Once the blueprint has been placed, it may be rotated if desired by pressing key R as many times as needed.  Then drop the required logs, planks, poles, etc. that are in your hands onto the blueprint, one by one, by right clicking on the blueprint.  Once all of the required parts have been added, the blueprint will be replaced with the actual object. 

whenever I load up the game the screen turns purple and it says autonauts  has stopped working how do I fix this.

Developer

Can you send you the output_log.txt file please? If you're on PC you'll find it in the Autonauts_Data folder

I cant find it anywhere.

Developer (1 edit)

It should be a folder inside where you installed the game. If you can't see it that means you didn't unzip it properly. How did you unzip it?

I have two issues with the bots, sorry if these have already been addressed but I found nothing by searching.

1: When I'm trying to edit a bot program but it has already done a step like "pick up x" and I start the program again it gets stuck trying to pick up x.

2: This is a big problem if I have a large pile of X and it's standing in the middle of it because I can no longer click the bot.  The only way to fix it is to destroy the program and make the bot move somewhere else so I can take stuff out of its hand.  This is not fun.  I don't have storage for everything yet so I have big piles of stuff until I can get everything organized.

(1 edit)

I have a steam bug, after my first play of the steam release the second time i tried to open, the window was so small it was only the minimize, the unusable maximize and the close buttons regularly in the top right corner, it still seems to work normally based off of the sound but i cant play

Hi. Russian translation has some errors, mostly in bot program menu. Maybe author is good in English but he is not that good in russian and he doesnt even know the difference between "-тся" and "-ться".  Also "until" is currently translated like "while" should be.  As a result we have unreadable bot programs. 

btw it would be nice to change loops caption from "Loop: until X full", "Loop: until X not full" to something like "Loop: exit when X is full", "Loop: exit when X is not full". Current form makes problems in some languages(in some languages you need multiple words to translate "until"). New form looks more user friendly in any language.

Also "Planetary Annihilation" were using "crowdin" service to create community-driven localizations...And they had a lot more text...And it worked...

06/21/2020 I wanted a bot to generate all the planks, poles, and fixing pegs I would need to create a Mk2000 bot. I run the following code using an Mk2000 with Good Bot Power and Good Bot Brain upgrades:

Times: 1 (I included this in case I want to create multiple bots)
  Times: 12
   Times: 2
     Move to Log Store
     Take from Log Store
   Until hands empty
     Move to MF.Saw Planks
     Add to MF.Saw Planksa
  Times: 3
    Times: 7
      Find nearest Plank in (MF.Saw Planks)
      Move to Plank
      Pick up Plank
   Until hands empty
     Move to MF.Saw Poles
     Add to MF.Saw Poles
  Times: 3
    Times: 7
      Find nearest Pole in (MF.Saw Poles)
      Move to Pole
      Pick up Pole
  Until hands empty
     Move to MF.Saw F.Pegs
     Add to MF.Saw F.Pegs
Expected Results:
  Planks = 2 Planks/Log*12*2 = 48 Planks - 3*7 Planks2Poles = 27 Planks (more than what is needed for one Mk2000 bot)
  Poles = 2 Poles/Plank*3*7 = 42 - 3*7 Poles2F.Pegs = 21 Poles
  F.Pegs = 2 F.Peg/Pole*3*7 = 42 Pegs
Results Achieved:
  Planks = 13
  Poles = 19
  F.Pegs = 42

I ran different sections independently of others and, sometimes, more than once:
Times: 1
  Times: 12
   Times: 2
     Move to Log Store
     Take from Log Store
   Until hands empty
     Move to MF.Saw Planks
     Add to MF.Saw Planks
Expected v Results Achieved:
Planks = 48 v 37 (1st attempt... may have been a fluke), 48 (2nd attempt)

Times: 1
  Times: 3
    Times: 7
      Find nearest Plank in (MF.Saw Planks)
      Move to Plank
      Pick up Plank
   Until hands empty
     Move to MF.Saw Poles
     Add to MF.Saw Poles
Expected v Results Achieved:
Planks starting at 48, ending at 27
Poles = 42 v 42

It seems to do fine when I simplify the code/run each section separately then has issues when they are all combined. I believe this is an issue in the game but it could be something I've done incorrectly.

Viewing posts 474 to 493 of 496 · Next page · Previous page · First page · Last page