My friend wanted this again, so here it is: It’s a Stranded bot that I made back in May when Stranded had outlasted its fun for me. Now I’m not so much releasing this so you can cheat on Stranded (cheating only makes Stranded even less fun), but as something you can play with and possibly give you inspiration to make on your own. Making it was really fun, especially when you’re on a server and everyone is in on it. This bot:
[li]Knows to get a drink when it needs to[/li][li]Knows when to get something to eat when it needs to[/li][li]Knows to plant fruit trees when needed (in a very orderly garden)[/li][li]Knows to forage for seeds to plant fruit trees with[/li][li]Knows to sleep when it needs to[/li][li]Knows to mine when it is idle[/li][li]Knows to drop off things from the bot’s inventory into a designated area when it’s getting full[/li][/ul]
That aside, it’s not a genius. The biggest issue is that there is no pathfinding, so you need to plant yourself in a reasonable accessible location. Consequently, you have to choose locations for each task (eat, drink, etc.).
I remember one time I had left the bot running and came back later to see that a crowd had gathered around me. They were discussing among themselves whether I was really a human or a bot because my farm was always so orderly and straight. I also performed the tasks with such mechanized motion too. It was really funny and I was a bit surprised that they considered that I was actually real.
I also thank Solaris as he didn’t have a problem with me developing it while he was online, though Script Enforcer came on a few weeks later. I actually leveled up ~25 levels with the bot (though I was already a fairly high level by manual means) in 2 days, but he doesn’t know that.
The code is a mess as it was just a big experiment. Find the file here:
[ol][li]Drop autostranded.lua into your lua/ folder.[/li][li]In your console, run lua_openscript_cl autostranded.lua[/li][li]Run as_stop[/li][li]Look at appropriate places and do as_set placename where “placename” is water, forage, sleep, dropoff, mine, or plant. You need to set these positions for the bot to use them.[/li][li]Run as_start[/ol][/li]
I also did work on a more organized version that let you (the programmer) assign tasks with priority. It even drew a prioritized task tree on your HUD so you knew exactly what your bot was “thinking.” Tasks are arranged in a hierarchy so tasks can depend on subtasks, but subtasks can always raise an exception to stop/control its parent task. I never finished it, but you can find it here:
hiertask.lua is a module.