Game Automation with YOLOv8: Python Bot Tutorial

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 97

  • @TheDevilzAngelz
    @TheDevilzAngelz 9 місяців тому +17

    Greetings. Welcome back!
    Overall the process seems fairly well explained, and code seems decent. Is A few comments.
    Might be worth mentioning that roboflow is only free for a trial.
    6:10 - you should not include the price in the annotations, as it might try and match the exact picture. Pre-submission edit: looks like you caught this. Good job!
    12:45 - screen width and height can be calculated. Even for multi-monitor setups. No need to have those as variables for us to modify.
    13:41 - all the `descion["buy"] = True` redundancies can be simplified down to `decision[name] = True. Similarly, you can use f-strings to do `decision[f"{name}_location"] = (center_x, center_y)`. This removes almost all of the conditionals (except the special cases such as "tree" and "building" scenarios - but again those could maybe be improved)
    I took a quick look at your code on Github. Why is the requirements file so large? Surely not all that is required for this. Maybe you did a pip freeze without being in your venv?

    • @ClarityCoders
      @ClarityCoders  9 місяців тому +4

      Great comment I really appreciate the feedback. I will review tomorrow thanks for watching and commenting means a lot.

  • @MovieReviewings
    @MovieReviewings 3 місяці тому +3

    Dude...I need more educational material like this. This was so high quality. Thanks!

  • @csg301
    @csg301 9 місяців тому +14

    lets go! Waiting every day for a new upload and it finally happened! Keep up the content bro you're the best!

    • @ClarityCoders
      @ClarityCoders  9 місяців тому

      Really appreciate this comment. Thanks for sticking with me! More soon.

  • @nopainnullgain3405
    @nopainnullgain3405 9 місяців тому +16

    Please do more AI bot stuff! you are my favorit content creator for bot stuff, you are so good at explaning and making it easy to understand.

    • @ClarityCoders
      @ClarityCoders  9 місяців тому +2

      Thanks! I hope to have a ton of stuff coming out this year. Stay tuned.

  • @ontoshere
    @ontoshere 9 місяців тому +3

    This couldn't have come at a better time. Thanks! Can't wait to mess with this.

    • @ClarityCoders
      @ClarityCoders  9 місяців тому +2

      It's a pretty cool process! Thanks for watching/commenting.

  • @JosephShapiroTech
    @JosephShapiroTech 9 місяців тому +4

    Great video. Thanks!
    You mention in the video that you will share the colab link, but it isn't in the description or on the Github. Do you still plan to share it?

  • @leonardobradley3261
    @leonardobradley3261 9 місяців тому +3

    You are back? Man Ive been missing your guides.

    • @ClarityCoders
      @ClarityCoders  9 місяців тому +1

      Back! Hopefully, more is coming soon. Thanks for watching/commenting.

  • @y00sz
    @y00sz 3 місяці тому +1

    9:44 where is the link in description?

  • @imjustprism
    @imjustprism 5 місяців тому +1

    i did 1/1 the same and not works, there is a error in the colab, custom training cell seems broken

  • @BuLLGotcha
    @BuLLGotcha 9 місяців тому

    You’re an amazing teacher, thank you. Have you considered taking on an FPS game?

  • @Helviio
    @Helviio 12 днів тому

    Hello, the video is very good... I would like to know how I can keep the trained data and add more images and train the bot with more new images and new data! Or every time I train, do I have to redo the process?

  • @timkuhne4782
    @timkuhne4782 Місяць тому

    Hey i just wanna now what the setup to be abel to do the same and learning how to do it

  • @arturorg0
    @arturorg0 4 місяці тому +6

    I took like 1 hour annotating images and then the training in the google notebook gave me one error and I couldn't follow :(((

  • @masolhebem
    @masolhebem 9 місяців тому

    Good Video, Brazil to the world :D

  • @Frombull
    @Frombull 9 місяців тому +1

    Awesome vid!

    • @ClarityCoders
      @ClarityCoders  9 місяців тому +1

      Thank you! Means a lot that you guys take the time to watch and comment. More soon.

  • @Burgerhs
    @Burgerhs 9 місяців тому

    Im talking to chatgpt rn about some like that but i need to farm in a small game area theres trees but you can only cut the one with the white circle RED marker in the middle of it

  • @LivLiveLegends
    @LivLiveLegends 5 місяців тому

    video is too short to learn i am a bigner,how u used those screenshot inside script..how i use this script for any other game?..do u know where i could find full tutorial videos?

  • @RTMgi9
    @RTMgi9 5 місяців тому

    Is there an open source free version program like roboflow anywhere that doesn't have a pricing option?

  • @JanPeter56
    @JanPeter56 7 місяців тому

    Do to need to retrain after you changed the locations of the buy buttons?

  • @LXRD.DIABLO
    @LXRD.DIABLO 7 місяців тому

    its saying whoops when i try to join , i want to join so that i can find answers for some topic please help me

  • @snefden
    @snefden 8 місяців тому +1

    You could colect more training data while letting the bot play

  • @rulofmg
    @rulofmg 9 місяців тому

    waiting for you to make another game automation series with SIMA when its released😆😆

  • @cahyakomara1468
    @cahyakomara1468 9 місяців тому

    is there a way that we can run bots in games for multi tab games using yolo and python?

    • @LowJackAP
      @LowJackAP 5 місяців тому

      I'm no coder but I think that would be vertual pc's like orical. unless you use servers or run a script to swap between tabs. swapping tabs would also be run on a vertual pc or server though pretty sure.

  • @nunogomes6058
    @nunogomes6058 8 місяців тому

    where is the colab stuff?

  • @PHOENIX44444
    @PHOENIX44444 Місяць тому

    Plz bro plz make a bot for the game merge fellas that play automatically

  • @dragonfish-du5iu
    @dragonfish-du5iu 9 місяців тому

    Will it self-learn?

  • @NemPressaNemPreguica
    @NemPressaNemPreguica 8 місяців тому

    Very nice! So while the bot is working it still keeps takign screenshots, right? Do you add lines of code to delete them as you go? How many ss did it take in 13 hours?

    • @byailen
      @byailen 2 місяці тому +1

      13 hours means 46800 seconds, lets assume it takes screenshots per 3 secs.
      15600 screenshots in total.

    • @byailen
      @byailen 2 місяці тому +1

      you can pipe it directly to your app or make a queue list to remove them automatically.

  • @mankopooh67778
    @mankopooh67778 8 місяців тому

    how to contact you ?

  • @AchieveAplenty
    @AchieveAplenty 8 місяців тому

    Hey bro you did really great job, so i have for you idea for your next content, lets make together video where you will help me to write my first ever bot😁

  • @Wikinger18
    @Wikinger18 9 місяців тому +1

    nice vid

    • @ClarityCoders
      @ClarityCoders  9 місяців тому +1

      Thanks. Appreciate the comment. More soon.

    • @Wikinger18
      @Wikinger18 9 місяців тому +1

      ​@@ClarityCoders yeah 😊😊

  • @lightsploit
    @lightsploit 9 місяців тому

    Amazing video could you also make a python bot for crossy road?

    • @ClarityCoders
      @ClarityCoders  9 місяців тому

      I don't hate that idea. I'll look into it!

  • @academyonnet
    @academyonnet 8 місяців тому

    Please reply make a course with NexJS and Python pandas with Excel/CSV file uploading for input data and then presenting the output as tables and downloadable Excel/CSV files and pdf pages. There are already beginner level here on youtube but something advanced is needed. I have bought your course on Udemy and I will buy this one too.

  • @oneupparty
    @oneupparty 7 місяців тому +2

    I approve this, BUT you can take this one step further and install PYENV, this will allow you to set any python version you require for your specific project with out changing your system python. YOUR WELCOME > : )

  • @ALEDGENDARY1695
    @ALEDGENDARY1695 8 місяців тому

    letz gooooo

  • @frostytvss
    @frostytvss 7 місяців тому

    so its like a form of aim somewhat

  • @Das_Unterstrich
    @Das_Unterstrich 9 місяців тому

    Nice

  • @teslagamer9382
    @teslagamer9382 Місяць тому

    when fuel reaches 1/3 automatically search for fuel ignoring other game elements

  • @sixthsense844
    @sixthsense844 9 місяців тому

    Try making a bot or AI for Clash of Clans to really test your botting skills, I've done it but haven't finished the project

  • @JS-Lab
    @JS-Lab 8 місяців тому

    Any help from ur side 😐

  • @2_exclusive957
    @2_exclusive957 Місяць тому

    it took me a few hors but i got it to work

    • @timkuhne4782
      @timkuhne4782 Місяць тому

      What setup are you using i dont now how to get python and so on wirking on my PC

  • @Plexify-v2s
    @Plexify-v2s 5 місяців тому

    when you say "google collab is free", that's wrong. It's limited

  • @BillyGamerTH
    @BillyGamerTH 9 місяців тому

    sir What's the name of this game.

    • @ClarityCoders
      @ClarityCoders  9 місяців тому +1

      You would think I would have remembered to say the game name. Tornado Madness!

  • @AlghostUnit
    @AlghostUnit 5 місяців тому +1

    Bots are more fun even than the games them self often lol

    • @VinzentB
      @VinzentB 5 місяців тому +1

      So I’m not the only one hehe
      ATM I use scripts to play my other instances of a game, but now I will start writing bot Programms, Im really hyped (:

    • @LowJackAP
      @LowJackAP 5 місяців тому

      this is true, I LOVE the idea of passive income, and being able to automate vertual progress just feels so rewarding.

    • @AlghostUnit
      @AlghostUnit 5 місяців тому +1

      @@LowJackAP also in rpg games you can create a user interface to manage some stuff like what you want to keep, the quests you want the bot to do, the farming area that you want it to go, choosing a place to farm, choosing the skills, stats, fighting strategies, distances to keep ect... Stuff like those things makes it feels like you are actually playing the game in a certain way finally...

  • @mankifg
    @mankifg 9 місяців тому

    nice video, automating roblox games?

    • @ClarityCoders
      @ClarityCoders  9 місяців тому +1

      I like.... What games would be a good fit do you think. I haven't really got into roblox.

    • @mankifg
      @mankifg 9 місяців тому

      @@ClarityCoders well i think there a lot of grindy games like treasure hunt simulator and a lot of tycoons

  • @2_exclusive957
    @2_exclusive957 Місяць тому

    beware if your using a amd it will take a while an di recommend asking ai for help

  • @hadene_luka
    @hadene_luka Місяць тому

    10:26

  • @byailen
    @byailen 2 місяці тому

    Now instead of writing your own decision logic, use ai on that part too! :)
    Punish that little tornado when it didn't crush trees and buildings!

    • @JimTim-bh2ex
      @JimTim-bh2ex 2 місяці тому

      Smh only fix bugs at least how would u grow?

    • @byailen
      @byailen 2 місяці тому

      ​@@JimTim-bh2exI didn't understand what you meant?

  • @Dude29
    @Dude29 2 місяці тому

    This video is an ad for roboflow

  • @charliebrown1947
    @charliebrown1947 5 місяців тому

    That "music" needs to go. It's too loud and distracting. Fine some soothing music that blends into the background instead of making it incredibly hard to focus on what you're saying and the code on the screen

    • @ClarityCoders
      @ClarityCoders  5 місяців тому

      Noted. I apologize next one will be better. Thanks for the comment.

  • @aleksandermaltsev8371
    @aleksandermaltsev8371 5 місяців тому

    did u delete my comment lmao?

    • @ClarityCoders
      @ClarityCoders  5 місяців тому

      I did not. It must have been UA-cam.

  • @abdullahmehmood4945
    @abdullahmehmood4945 9 місяців тому +4

    please please please bro write a program that automate free fire game

    • @qwaqk
      @qwaqk 5 місяців тому +2

      what's wrong with you

    • @abdullahmehmood4945
      @abdullahmehmood4945 5 місяців тому

      @@qwaqkI cannot talk to you

    • @LowJackAP
      @LowJackAP 5 місяців тому +1

      what is a "free fire game" ?

    • @concretywatch
      @concretywatch 4 місяці тому +1

      ​@@LowJackAPthats a mobile game

    • @concretywatch
      @concretywatch 4 місяці тому +1

      3d games are very hard to automate

  • @bobr4211
    @bobr4211 7 місяців тому

    Sorry, but i didnt like the video.