Game Automation with YOLOv8: Python Bot Tutorial

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 94

  • @TheDevilzAngelz
    @TheDevilzAngelz 8 місяців тому +13

    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  8 місяців тому +2

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

  • @csg301
    @csg301 8 місяців тому +13

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

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

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

  • @nopainnullgain3405
    @nopainnullgain3405 8 місяців тому +14

    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  8 місяців тому +2

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

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

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

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

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

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

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

  • @JosephShapiroTech
    @JosephShapiroTech 8 місяців тому +3

    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 8 місяців тому +3

    You are back? Man Ive been missing your guides.

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

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

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

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

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

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

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

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

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

    Good Video, Brazil to the world :D

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

    9:44 where is the link in description?

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

    Awesome vid!

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

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

  • @oneupparty
    @oneupparty 6 місяців тому +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 > : )

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

    You could colect more training data while letting the bot play

  • @LivLiveLegends
    @LivLiveLegends 4 місяці тому

    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?

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

    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

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

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

  • @RTMgi9
    @RTMgi9 4 місяці тому

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

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

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

  • @2_exclusive957
    @2_exclusive957 23 дні тому

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

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

    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 Місяць тому +1

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

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

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

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

    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😁

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

    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

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

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

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

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

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

    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.

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

    nice vid

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

      Thanks. Appreciate the comment. More soon.

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

      ​@@ClarityCoders yeah 😊😊

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

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

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

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

    • @LowJackAP
      @LowJackAP 3 місяці тому

      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.

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

    Will it self-learn?

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

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

    • @VinzentB
      @VinzentB 4 місяці тому +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 3 місяці тому

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

    • @AlghostUnit
      @AlghostUnit 3 місяці тому +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...

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

    where is the colab stuff?

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

    Nice

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

    how to contact you ?

  • @teslagamer9382
    @teslagamer9382 19 днів тому

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

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

    so its like a form of aim somewhat

  • @Fabulous_444
    @Fabulous_444 3 дні тому

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

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

    letz gooooo

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

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

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

    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 Місяць тому

      Smh only fix bugs at least how would u grow?

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

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

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

    Any help from ur side 😐

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

    This video is an ad for roboflow

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

    nice video, automating roblox games?

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

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

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

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

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

    sir What's the name of this game.

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

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

  • @2_exclusive957
    @2_exclusive957 23 дні тому

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

  • @hadene_luka
    @hadene_luka 19 днів тому

    10:26

  • @charliebrown1947
    @charliebrown1947 4 місяці тому

    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  4 місяці тому

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

  • @aleksandermaltsev8371
    @aleksandermaltsev8371 4 місяці тому

    did u delete my comment lmao?

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

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

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

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

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

      what's wrong with you

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

      @@qwaqkI cannot talk to you

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

      what is a "free fire game" ?

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

      ​@@LowJackAPthats a mobile game

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

      3d games are very hard to automate

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

    Sorry, but i didnt like the video.