SUPER Unique Idle Automation Game!! - The Farmer Was Replaced - Minimalist Programming Game
Вставка
- Опубліковано 7 тра 2024
- The Farmer Was Replaced gameplay with Orbital Potato! Program and optimize a drone to automate a farm and watch it do the work for you. Collect resources to unlock better technology and become the most efficient farmer in the world. Improve your problem solving and coding skills.
► Help make videos like this possible(and get your name in the video!): / orbitalpotato
Check my other videos on Strategy Games here: • Strategy Showcase
Get the game here: store.steampowered.com/app/20...
Buy a bunch of great games and support the channel: bit.ly/OPHumble
► Merch - bit.ly/OrbitalAttire
► Streaming - / orbitalpotato
► Twitter - / orbitalpotato
► UA-cam - / orbitalpotato
► Discord - / discord
#AutomationGame #IdleGame #StrategyGame
DISCLAIMER: You should assume that all games played on this channel are free preview/review copies
OTHER DISCLAIMER: I'm partnered with Humble, and will receive a percentage of game sales.
Enjoyed the video? If you give it a like it helps out the channel!
Welcome to channel if you're new here, I'm Orbital Potato and play a bunch of strategy, simulation and sci-fi games here on UA-cam. I usually cover these games in the Lets Play format, but also make videos analysing specific game mechanics and looking at new releases. If you feel so inclined, consider subscribing, I would love to have you along for the ride! - Ігри
Awesome! Thank you so much for playing my game
Thank you for giving the drone a farmers hat
I bought this because of this video. It's really good, great job!
this is such a cool conceptttt thanks for making it
does it support vim motions?
Try seeing if Primeagen would play it
"It looks funky but it kinda works. There's clearly something that's not quite right here, but it works."
Congratulations. You are officially a programmer now.
"If it looks stupid and it works, it's not stupid." -- programmers everywhere, probably
CTRL c
CTRL v
it's not your code it's our code
Also some weird
if true: can harvest
harvest
if not true
a)move north
Else: b) at 0:2 move east 1:0
c) at 1:2 move east 2:0
d) at 2:2 move west 0:0
But not a programmer but you would think you would have to number movement
“One of us, one of us” - I can hear the chants!
@@orbitalpotato Tod Browning's Freaks - the 1932 cult horror classic film about circus sideshow freaks.
"""Attention! Attention! We'll make her one of us. A loving cup! A loving cup!"""
"""We accept her one of us
We accept her one of us
Gooba Gabba Gooba Gobble
One of us One of us"""
"""How she got that way will never be known.
Some say a jealous lover.
Others, that it was the code of the freaks.
Others, the storm.
Believe it or not, there she is."""
It's always so fun to watch someone unfamiliar with programming try their best to program something xD
Love to see it :D
Game is more helpful with programming then most game maker games.
I just wanted to help him move that ) so bad.
25:57 a very common mindset when programming anything lol
"if it works, it works"
Also: "please just work (how I want you to)"
@@Soken50 lol yeah, going through all the stages of grief: bargaining vs acceptance
As a developer, your code causes me so much pain 😂 good effort though.
1 issue would be duplication of code, for example move(north) within every if statement, just stick a move at the end of the while loop in that case.
Also, when move east then south twice, you could move east then move north to be back at position 0.
How would that look?
If true can Move north
Move North: loop
If not true Move East
If Move East is true
Move east
If not true
Move west south twice
@@loganshaw4527 for 3x3 tile, since move north at the end of the map teleport the drone back to y=0 and move east at the end of the map teleport drone back to x=0, then this code should work
while true:
if get_pos_y() == 2:
move(East)
move(North)
@@pw2020 thank you. The first episodes for this game feels like tutorial. So always nice to hear about different ways to program.
@@loganshaw4527 Back when he first expanded to 3 he built the while loop that just moved north if he couldn't harvest. But without checking positioning once he had the 3x3 and the for loop option you could do:
While true:
for i in range(3):
harvest()
move(North)
move(East)
What this code will do is harvest then move north repeated 3 times. The third time would be from block 2 back to block 0 (as the game's move command loops back to zero when you try to exceed the bounds of that direction.) Since that third move(North) resets your position to block 0, you can just safely move(East) as you've finished the first column in the grid.
@@NovaHorizon nice. So clean.
Awesome game to go with the meme of programmers becoming farmers.
As a dev this is really amazing to me.
Definitely will spend dozens of hours on this.
Have fun!
In an ironic twist, the Potato learns to program.
Highly ironic!
long time programmer here and i can't get enough of this game. if you enjoy programming you'll love it!
If you actually enjoy programming you should try bitburner instead.
Always a pleasure to discover a new game thanks to you ! I must admit though that as a programmer, seeing a "while true" breaks my soul xD
I feel you xD but hes doing well
Should have used while false. Saves a lot of cpu time.
Bruh thats litterally how games are programed, the so called "game loop"
Nothing wrong witha while true. Lots of code uses it, you just normally have a break condition. It can made variable scoping neater since you can occasionally exclude a termination variable.
Literally no issue with while True man
Love the video, I'm a full time programmer and you did well. Don't say "I'm not made to be a programmer" even starting out can be difficult. This game looks like a good entry level game for people that wants to start learning programming. I'm not sure but the code structure looks like python.
Thanks for the warm words :) appreciate it amigo
Yep. It completely look like pythonq
For people who want to try this kind of gameplay in minecraft, there's the computercraft mod. It leads to really creative gameplay so I'd love to see what this game grows into.
Yeah these are really similar! Only difference is this game uses a language based on python and cc uses Lua if I recall correctly
@@portal2fanrealyeah cc uses lua
You're writing code that's based on Python, the indentation isn't about making the code look nice, it's literally the only way the code will work. Plenty of software engineers also hate this about Python xD
This is not my game. But its very very cool. The coder in me is happy, and horrified.
That looks great !
I'd appreciate if you could say at the start 1) if the game is in early access (or if it's already launched, maybe the date?), 2) the price !
Thanks, great videos as always.
or google it yourself
the store page is in description
You sold me on this by fumbling the movement so bad I had to buy it just to make a better carrot loop, excellent work.
its actually funny i just finished the final exam in computer science and i just wanted to watch my favorite youtuber and vwalla more programming :- )
What language is vwalla?
@@FlusterbombI think they meant voilà, which is French xD
Just finished my Comp Sci final exam today as well lol
I think vwalla has a certain Jenna-say-quah to it.
This looks like a fantastic way to get into coding.
It does so many small things right, like good IDE-style autocomplete and subtly getting you used to sifting through technical documentation very similarly to how professionals do it in the real world.
Okay, this game sold me immediately, I'm buying this for sure, but it also sold me on you. Good pacing, intelligence, humility, etc. Look forward to more. I'm not finishing this video past 9 minutes because spoilers. :)
Welcome aboard! And thanks for the kind words
Ah man I love your fantastic work. Thanks for showcasing so many great games. Great video! You're so fun heh
Glad you like them!
This looks fun! Been wanting to do some basic programming stuff and this looks like interesting way to get my head around it.
this was a lot of fun! you should play more programming games
Love this! This actually looks fun.
Watching this after watching Olexa's video you wouldn't guess which of you does programming in their day job 😆
Really well done! There are a couple of things that could be improved but for all the amount of you saying that you were no programmer it really seemed like you have the right mindset right from the start.
Thanks Orbital -- looks like a great game!
It is!
Finally, the other game I'll be playing apart from Helldivers 2.
The dryspill is over ❤
I believe learning to program is one of the most empowering things you can do! I love this game
I just finished a MATLAB course, and I found this particularly entertaining. Thank you Sir, for your contribution to my daily dose of UA-cam.
You are very welcome
As a programmer by trade, I can see this is an excellent REPL learning tool!
wow, looks great) you should probably separate movement to the next tile from processing current tile. do whatever you need to be done in tile, than detect where you are and move
THATS so cool. I JUST bought the game. I will try it
bought the game and loved it, thanks for bringing awareness to it
Hope you enjoy it!
I just wanna say, I'm a big fan of your channel name
This game is so perfect!!! OMG I miss programming 😭😭
I love this game, is so cool, please more X)
nice game. learning programming while playing
AWESOME GAME DUDE!
That's an awesome game and an awesome way to learn to code
It really is!
I wish you the best of luck to handle the Pumpkin patches :)
Control a drone with Python? I'm in! What a fun little game
The issue with your code near the end is that the if chain is exclusive, only one statement will be run, and because the first if is true due to hay being low, it never runs the carrot planting section.
also recommend trying to keep everything flat, split the while loop in to three sections, a harvest section, a planting section and a moving section. nested if's will cause headaches.
I love watching adults have trouble with coding :) ❤
The 2 things I say the most while playing :
"It doesn’t work… Why ?"
"It works !!… why ?!"
😂😂
Hey programmer here, just thought I'd share something based on what you've done at 9:26 You see how both if and else both plant and then move north? Just have the if harvest and have the rest outside of the if statement so it does it either way. Also I think it's wierd the way the dev has made you pick entities.bush this seems to be simulating an enumeration which is effectively a list of things of a certain type but you generally wouldn't have 1 called entities as that's too vague and would contain every object I'd have made it plants.bush and then the direction would be directions.North perhaps.
I had no idea programming was similar to figuring out Excel formulas lol
I would love for this game to be available on mobile.
Looks like a fun thing to do e.g., while travelling by train
I just got home from work doing code reviews and bug investigation and this is what youtube thought i wanted to see?..... Okay yeah its got my interests about right.
I don't think you ever needed to move South since you loop back to the bottom if you keep going North. So I believe you could just use the move(East) command without the move(South) ones.
You’d lose time by having to travel all the way back instead of just moving south.
Not from what I could see. The bot was doubling back over and over.
I have 0 idea about coding but I'll give it a shot lmao
Hey, GOOD STUFF!
Today Orbital Potato experiences self actualisation
Thanks! Didn't know about this game and it seems to be awesome. At last programming game with python syntax :)
Glad I could help!
At 22:38 you mentioned "Code Discipline". Python enforces this kind of behaviour, with the additional unseen benefactor that you must choose between space, or tabs, for indentation. It'll actually complain if you switch between that (At least when I use an external editor). It's part of the language construct, not part of any discipline. There are languages that don't require this, and it allows for some more "creative structures", and I'm not ENTIRELY on board with Pythons style of coding, but, it is what it is.
The num_items issue around 18:30 bothers me so much I saw the mistake being made and wanted to scream
I got a bit stuck with the for loops until I found out how it works.
for moveEast in range(get_world_size()):
for moveNorth in range(get_world_size()):
do_defined_action_containing_move_north_call()
move(East)
Once I had that I just sat back and watched the drone do all the work.
For the 3 by 3. Is there a way to simply move north followed by moving right. Then repeating? This would allow traversing a square grid of any size from any initial starting position with an equal amount of time on all cells without any specification of the grid dimensions.
Fascinating
You sound like that riven main in challenger on lol whos videos i used to watch. Think his name is davey smth
Man I would love if this game was free. It can literally be used by schools to teach kids code instead of using paint...
That first else statement looked completely reduntant, other than making a ton of time waster :P
Fyi, this is based on Python and that language needs the indents to work at all, so it's not just good programming practice in this case. Something like Java on the other hand can all be on one line.
Indeed! My very brief dive into coding was with Java, hence my comment
As a programmer, you made me cry.
Sooo.. Bitburner next? :)
The indentation of this game is not for style, this game uses python style syntax, which uses indentation to define the scope of a function.
If you find something like testing the current situation mentally taxing you can always just tell it what to do with each line so for the 3x3 grid you had you can just tell it harvest, plant bush and move north 3 times then go east and put all that in a loop and you should end up with it harvesting and planting a row and then moving to the next and by the time you got back to the first row the bush would have grown there and be ready for harvest and even if it wasn't you can just add do a flip for as long as you need to delay it. So;
While true:
harvest();
plantbush();
movenorth();
harvest();
plantbush();
movenorth();
harvest();
plantbush();
movenorth();
moveeast();
Notice how this code has no if statements nothing clever at all and as you increase in size all you need to do is increase the number of times you repeat the 3 repeated commands by the number of rows you have and add delays later if you change crop as well as adding delays if they are needed. Obviously this requires adjustment every time something changes with the farm and it would be nice to not have to but this game seems to want you to change your code constantly as part of it so it may as well be not very taxing for you.
amazing game
21:01 this entire bug could be solved by simply harvesting the grass before moving East and South.
Same about the more than 200 which you changed to less because you couldn't make the code work, I think the intent was to have 200 wheat in stock?
Reminds me COLOBOT ;)
try this for carrots guys. You need senses and operators for this to work and, you also have to first buy seeds first
while True:
for i in range(get_world_size()):
move(North)
if get_ground_type() == Grounds.Turf:
till()
elif get_ground_type() == Grounds.Soil:
if get_entity_type() == None:
plant(Entities.Carrots)
if get_entity_type() == Entities.Carrots and can_harvest():
harvest()
if get_pos_y() == 2:
move(East)
I feel a good idea is to plant immediately after harvesting (unless you need hay). If you plant then harvest the code will never be nice.
Too easy for someone with a programming job, but I can see how it can be a great learning tool for beginners.
I'm fairly certain late game things get pretty complex and maximum Optimization becomes challenging
I heard they have made a live version of this idle game in real life !
It's called "I am actually a farmer" and you can make actual money by selling your crops ! The growth rate is pretty slow, though. Also, it's a bit pay to win.
Real life farming sim costs a lot more than this game does haha
yall ever write something then go back to check it because it caused issues later on, only to look at it and wonder what the hell you were thinking when you wrote it?
is there no way to move north 3 and then move south on the next row to not waste a move turn?
you have to be clever about it, and you can only do it well after operators are unlocked. you can't do something like if x == 2 until then.
@@sirgouki6207 I got it thanks just needed more unlocks for it to work. I was trying to be too efficient too fast.
Looks like python code to me. It might end up being an interesting idle kind of game depending on how much there is to it.
the indentation is most probably because is using python to read it, an is the way that works :)
I love the video, but it hurts watching u programm as a software dev mysef 😅❤
There's nothing idle about the OP-144 factory workers.
Comrade Dictator Potato makes sure they work for 22 hours without a break.
"They have time to break during those two hours I give them each day," Comrade Potato was quoted in an interview.
Where do i get this? Is it on steam?
Yes, it's on steam
Yes!
Would this work:
While canharvest()
Harvest()
idk how to start on the maze at all unless its random movements.
I imagine it’s got something to do with checking if the drone can move in a certain direction!
Anyone can tell me, do tab and shift+tab work with multiple selected lines?
Yes it does
So the reason why you have to indent isn't a code discipline thing in the game. The developer is using a Python-esque interpreter for you to write code in. Python itself is a language that uses indentation to identify code blocks. The different language styles are like this:
------------------
if (true) {
Do some stuff
}
------------------
if true:
Do some stuff
------------------
if true
begin
Do some stuff
end
I'm sure there are other formats as well, but those are the ones I can think of. Why does it need the indent to identify?
Well if you have
while true:
if can_harvest():
harvest()
move(North)
the language doesn't know whether "move(North)" is inside the if statement block or if you just always move after checking whether you can harvest. It could be
while true:
if can_harvest():
harvest()
move(North)
or
while true:
if can_harvest():
harvest()
move(North)
For all my sins, I’m not a python expert at all. I did however learn a little Java so my comment was based on that (very shallow) dive into programming!
@@orbitalpotato That's perfectly fine. My response was only intended to be educational.
This game is 7€. Better to make one better. The 3D graphics and the code reader are easy to make
What's the name of the game?
basicly: Learn basic programming skills in game form
Count me impressed, for a non programmer well played, the language looks a lot like python, perhaps you should download Godot and follow a Game tutorial, the default language is very similar!
You've probably been asked this before, but what/how is that OP thing in your username? It doesn't look like plaintext but I didn't think anything else was possible
@@errorhostnotfound1165 I have been a member for over a year, it should tell you if you hover over it. And thats the first time I've been asked :) Have a great day!
Welcome to python!
Orbital Potato encounters his natural enemy. Logic.
1h
first
As a programmer, this video pains me
Ho, bud, just so you know, youtube is putting temu adds on your content, so I am not going to watch.
He can't choose who advertises to him
@@sliceableuser5968 Thanks, but UA-cam advertisements are unregulated, monstrous and frankly getting out of hand.. I have nothing against the creator, but the Temu scam came on and turned it off. I wanted to let the creator know in case the metrics looked odd so it was clear it was not the content but UA-cam's decision to advertise. Also, UA-cam scans comments, so who knows, it might feed back to them. Equally, if it is a new creator and the UA-cam ad is over 5 seconds to skip, I will just turn it off. if it is someone I enjoy but an old video max 15 seconds, and if it is a new video from a popular UA-cam I am subscribed to, I might hang on for 30 sec, but recently, I have been getting + 55-second ads for random toss videos.
9:08 planet(Entitiees.Bush) also returns true or false if it planted so you could have used that in an if statement in your logic. It was cool to see your way of getting around this as well.....props