9

I've been a gamer since I was a child.

But today, my games play themselves thanks to Python automation. I can enjoy life whilst the bots do the work.

"Automate the boring stuff", I bought this book in 2018 and never touched it but it's like I discovered gold. I've never felt so much joy programming and learning.

It's like my life has been leading just to this very moment. I've been mid-life crisis for 1-2 years now. But no more. I feel like a kid again. Gonna automate everything.

Comments
  • 3
    I want to automate games and control them remotely through phone somehow. So it turns game into semi-automated autoclicker or similar.

    I think I will probably have a mode like that in my games. People are turning into casual gamers because they are adults and have responsibilities.
  • 4
    Yes, that's an amazing book! And very coincidence, I touched it also today! Amazing how you can configure images as smth to click on. But I think resolution and stuff shouldn't change right? But button positions and stuff don't afaik.

    What game do you automate? And how do you know where your player is in the level and if it's not walking upon some wall?

    Finally, my biggest mystery is resolved: you are a dev. Always questioned that
  • 2
    I was never really into gaming, also, programming became earlier than games to me. I had an computer with nothing else than qbasic on it and the banana monkey game as example
  • 9
    When I notice the game is turning into an endless farming routine I know it is time to uninstall.
  • 1
    @cafecortado what kind of games do you play?
  • 3
    @cafecortado modded minecraft with goals is often farming, but done by automation. Bigger and bigger machines to get millions of resources to make some op piece of equipment.
  • 1
    @retoor nowadays I play city-building games and stuff like that
  • 3
    I need to play the Kerbal Space Program again. There is the K-OS mod (Kerbal - Operating System, pronounced Chaos. Best name ever.)

    You can automate pretty much everything. You just sit there, write code. Starting from staging code, gravity turn, stable orbit, orbital rendezvous, landing on Mun (Kerbal's Moon). Or longer missions. Just sit there, let it play out in real time while working on something else. Telnet capable. Connect via network to it to control it.

    Yea, I need to play KSP again.

    Doing a lot of Space Engineering nowadays, though. Lots of coding to automate pretty much everything.
  • 0
    screeps
  • 1
    I mean book title sound interesting but generally clickbait books like that don't have anything interesting in them, raaghh

    weren't everyone always automating the boring stuff? I thought that was just natural. that's like the one time I don't feel useless coding

    fuk I need to automate my automation rn. I always have too much work.

    AI says SparkNotes:
    - web scraping (check, do that all the time. is s felony but just don't tell anyone I guess)
    - file manipulation (I mean I guess I sync stuff with scripts)
    - data entry, automatic input into spreadsheets and databases. I don't know when you'd ever use this

    honestly writing stuff like this takes a long-ass time, longer than you spend doing the activity often if you're gonna do it for every activity

    idk id want more ideas. I want programmatic alerts but I haven't setup a system so you could combine web scraping with notifying you of events for example. but android is gay about alerts and I haven't gotten to it yet
  • 4
    If you need to automate a game, it means the “game” is shit.
  • 2
    @retoor way to go 10K!!!
  • 2
    @Demolishun finally whoring for points pays off. Ten K! Yeah!
  • 3
    @retoor What I'm doing now is bot levelling a new account from 1 to 30 in League of Legends. I might try selling the account if it works out. The current bot is not there yet, and I'm having fun improving it!

    The market is really mature and I use to buy fresh accounts myself few years ago. Finally I'm a supplier and not a consumer. Well, hopefully.
  • 1
    @kanyewest that sounds very good but how does the system know where to click? I mean, it's not that you can compare screenshots of buttons to click on right? How does it navigate trough maps? I don't think that that book covers answers on these questions
  • 1
    @retoor it has fixed points on the screen, and always configs the screen settings to a fixed size before the game so the points are always the same. Recently Riot changed the position of buy item button and the buy item function stopped working, but I updated it.

    However, it's not all made up of mouse clicks, only inside the game. It's combination of https://developer.riotgames.com/ API to verify account, start a game queue, get available champions, pick a champion, check game game status. But they also update the api endpoinds so the parsing fails, but it's not always.

    It currently plays a match, finishes it, and then starts a new game, a perfect loop. Now the challenge is it make it more human. Like picking a random champion, buying random items so the match history doesn't look obvious.
  • 0
    @kanyewest does it matter if he wins match or not? Is it match with computer or a player? Would be nice if you could upgrade the image compare system to match images that look 50% the same or so, so that it works on more levels / appearances. Really awesome project!
  • 1
    @kanyewest holy f, can I play a whole game league of legends using this api? I'm currently building advanced sudoku puzzle generator, but this can be fun to do too
  • 3
    What's the point of a game, if not to play it for enjoyment?
    If you're farming, that's just a job with extra steps.
  • 1
    @qwwerty programming is just more fun than gaming
  • 1
    @retoor It only plays a game mode called Co op vs. AI in Intro difficulty. Meaning against 5 bots. Those bots are provided by the game itself. Usually in this mode, your 3 teammates are bots. Because, they're farming level.

    Winning matters little bit because you get more XP from a win. But doesn't matter compared to Ranked Game where your rank and elo is dependent. The bot usually wins with 98% winrate because it's the easiest gamemode. (My bot does very simple steps, attack and go back and repeated few times until you recall to base, I not designed to dominate games, it's very passive and team dependent)

    I am avoiding other game modes to avoid a ban. Got one account got banned so far.
  • 2
    lol I remember seeing league bots kill themselves. like not just accidentally suicide by a tower, like... I think I afked for one reason or another and came back to a won game lol

    you can do a lot of damage using minion waves. nobody appreciated my strategies in league tho
  • 0
    @kanyewest why a ban if they have an API? What else to do with it?
  • 1
    @retoor the API is only about game statistics or information. It can't play the game.

    Botting is against ToS. :/

    Also if you like this is a perfect reference:

    https://github.com/iholston/lol-bot
  • 0
    @kanyewest Thanks, you work on windows?
Add Comment