The best way to train an AI on a game is to not do the same level over and over again. Or the AI will be godlike at one single level and just very bad at others. If you diversify the training process il will take longer but the AI will be way better. Try doing this and then putting the AI on a level it has never seen before and you'll be surprised by how quick it learns it!
You’re right! I was trying to train the AI on the whole game but due to that 1 bug at the very end it wasn’t working out so I switched to training level by level!
And....what was this bug? If I could program myself, I wouldn't watch other people do it. It's like making the whole video in English and then an erratum at the end in Mandarin.@@KushGupta1
That looks like an useless backwards jump tho as the AI did not go over the pipe and keep momentum, instead just landed on the floor and kissed the pipe
That probably is why the AI does it, because you do accelerate faster this way if you aren't already at max speed. The AI is wasting a lot of time by jumping too high though, because it's not very good at it. The thing is that it is hitting the walking speed cap in midair, and it can't accelerate to running speed until it hits the ground while holding B. But it doesn't understand that yet. It's a lot easier to just figure out that jumping backwards is faster, at least briefly. Of course, it didn't matter in this run because it bonked anyway, but surely it didn't always bonk while training.
6:00 i don't know the exact reason but due to a quirk with the physics mario actually accelerates faster backwards, TAS speedruns will also use backwards jumps to reach top speed as fast as possible.
with backwards jumps (the smb speedrunning community calls it fast accels) it's only applicable in tases since it requires you to press both left and right in the same frame, something that physically can't apply in rta runs because of the d-pad, even then the backwards jump the ai did there wastes time as it's walking speed
@@arfansthename Nah, pressing left+right is only required for the fastest possible execution of a fast acceleration. Even without left+right, if you do a fast accel frame-perfectly you'll be slightly faster.
You would be surprised how much theory goes into SMB1 speedruns at the top level. People will literally spend thousands of hours on improving by a few milliseconds, that is how optimized the game is at this point.
it's a popular thing on youtube now to have a dumbass OC of yourself randomly pop up on screen for no reason other than to take up screen space it's self serving and cringy but its The Thing™
6:20 Speedrunners: we must save this 0,35s framerule somehow AI: I'm 15s away from the record, 𝙡𝙞𝙩𝙚𝙧𝙖𝙡𝙡𝙮 𝙖𝙡𝙢𝙤𝙨𝙩 𝙩𝙝𝙚𝙧𝙚 :𝘿 jk, obv great video and great work, but it made me laugh lol
Yeah he needs to continue at it. It's been few months already and he only has one video on his site. I have seen others doing this on TH-cam as well with Pokemon and stuff. So the competition is there for sure. I do agree though that content like this is going to blow up soon as it already seems like it is.
Your editing and commentary is really good. I'm surprised you only have 1 video, good quality like this usually takes youtubers a lot longer to achieve.
After the AI masters SMB1 I would like to see it attempt the lost levels, it's much harder so I wonder how the AI would figure out how to get past some of the harder parts, specifically ones where hidden blocks are required to progress, or how to use the wind to do longer jumps. Since SMB1 and the lost levels have the same physics the same AI could probably be used. I subscribed to see your next uploads! :)
Thanks for the support! Thats a good idea. I’m to add it to the list. The same AI couldn’t really be used, since I’d still have to train it on the level which costs money because I have to rent a very powerful but expensive gpu. Nevertheless, I’m going to try that in the future for sure!!
@@KushGupta1 How much processing power does it need? I'm running some Learnfun/Playfun, but that is entirely CPU based. Got an RTX 4090 on an AMD 7950X3D.
I think a fun game for the AI to speedrun would be a game like Wario Land 4 or pizza tower, as they are really fast paced and I want to see how the AI works in fast situations.
@blackgustavogaming Someone coded a bot to Speedrun Super Mario Bros before we had fancy AI programs like Nova AI. The bot was programmed to first learn the levels from brute force trial and error, then fully optimize the routes to be as frame-perfect as possible. It was able to discover tricks that nobody knew were even possible. So yes, it will be technically possible; it will just take a lot longer for the first phase of training to be completed. Unfortunately, the video I watched about it back in the day is lost in the sea of similar videos.
Amazing video, the animations and commentary is very nice. I thought that you must have millions of subscribers and was shocked to see 3K. I guess this shows how high the bar has been set in order to go viral on TH-cam.
Some thing you should probably do are: 1) have more poses for your character 2) get him out of the way of the screen while showing off what You did (if you are so scared someone is going to steal your content just put something half trasparent on the vidioso it so be as much in the way)
I checked your channel and this is your first video?! I've never seen a channel blow up so fast! Be warned though, you'd better follow up on a sequel or they might all leave. Don't waste this wonderful chance you have.
kind of lost me with the "remake the game" part, kind of defeats the whole purpose, still very impressive and i hope this kind of stuff becomes "easy" in the near future with any game. it would be amazing to see if in the future people could just have an AI that learns any game with very little effort/time, i have no idea if that will come one day but maybe in 10 years? who knows.
New youtube trick- skip the first 3/4 of every video, and you don't have to deal with any rambling preamble, channel description, begging for subs, AND you'll know instantly if they're even going to talk about what was proposed in the title. BTW this channel passes the test. Good job. You actually did what you said in the title, unlike 99% of youtube videos. I didn't need the vast majority of the explanation before hand though.
@@KushGupta1 That's just 1 GPU? Man, now I feel even more spoiled thinking back to when I was doing molecular dynamics stuff and got allocated time to several super-computers which were basically entire rooms of stacked GPUs.
"For every second Mario stays alive, he receives negative punishment" 💀
Welcome to the human condition, Mario.
that's a biological process called "ageing".
@@eyescreamcake lol
What is a positive punishment?
@@moliver_xxiilol
1:22 is when the ai is born and took 6mins and 44secs to get a record, scary.
Well, it only took 2,100 tries.
The AI wasn’t training the whole vid, Kush even explicitly said he trained it for thirty minutes beforehand at 3:45
@@You-are-definitely-right-but oof I forgot that lol (like your name lmao)
The best way to train an AI on a game is to not do the same level over and over again. Or the AI will be godlike at one single level and just very bad at others. If you diversify the training process il will take longer but the AI will be way better. Try doing this and then putting the AI on a level it has never seen before and you'll be surprised by how quick it learns it!
You’re right! I was trying to train the AI on the whole game but due to that 1 bug at the very end it wasn’t working out so I switched to training level by level!
And....what was this bug? If I could program myself, I wouldn't watch other people do it. It's like making the whole video in English and then an erratum at the end in Mandarin.@@KushGupta1
@@KushGupta1when part 2
@@KushGupta1 when part 2
@@KushGupta1 when part 2
5:58 I actually think you go faster with a backwards jump. Granted, it only saves a few miliseconds, but it counts that the AI knows how and to do it.
That looks like an useless backwards jump tho as the AI did not go over the pipe and keep momentum, instead just landed on the floor and kissed the pipe
This is a trick called fast acceleration. The AI didn't really do this since he hit the pipe right after.
backwards jumping indeed make the player slightly faster
That probably is why the AI does it, because you do accelerate faster this way if you aren't already at max speed. The AI is wasting a lot of time by jumping too high though, because it's not very good at it. The thing is that it is hitting the walking speed cap in midair, and it can't accelerate to running speed until it hits the ground while holding B. But it doesn't understand that yet. It's a lot easier to just figure out that jumping backwards is faster, at least briefly.
Of course, it didn't matter in this run because it bonked anyway, but surely it didn't always bonk while training.
seemed like it knew where the plants hitboxes were too. as it skid over the op of one by mere pixels during its world record run
with 202,200 views you can buy some more training for the bot
Let me cook
600,000*
@@gregritferdjr 750,000*
@@Shurafaa 749,566*
@@gregritferdjr 813,273*
0:20 that wasn't the same goomba
Good eye lol
2:26 i wasnt prepared for this visual
After 13 months, with 824k views, almost 20k likes and more than 10.7k subscribers to date, there is still no part 2... :(
6:00 i don't know the exact reason but due to a quirk with the physics mario actually accelerates faster backwards, TAS speedruns will also use backwards jumps to reach top speed as fast as possible.
with backwards jumps (the smb speedrunning community calls it fast accels) it's only applicable in tases since it requires you to press both left and right in the same frame, something that physically can't apply in rta runs because of the d-pad, even then the backwards jump the ai did there wastes time as it's walking speed
@@arfansthename Nah, pressing left+right is only required for the fastest possible execution of a fast acceleration. Even without left+right, if you do a fast accel frame-perfectly you'll be slightly faster.
Useless backwards jump tho as the AI just used it to hug the pipe as fast as possible, unless im wrong
I always thought they were doing that for swag, interesting to know it's actually for a reason.
@@Jdeadevilrta runs do everything for a reason but tas runs do as much swag as possible haha
Next you should try to make an AI beat FNAF. (Even though someone probably already did that.)
Sure, I'll add it to my list!
Ai learns to manipulate rng
@@Tailsbot98761the impossible
That's my next video haha @@Tailsbot98761
For that, the ai would need to be a model that responds to certain inputs, rather than one that memories the level
You would be surprised how much theory goes into SMB1 speedruns at the top level. People will literally spend thousands of hours on improving by a few milliseconds, that is how optimized the game is at this point.
why is there an anime waibu sliding in and out of video
it's a popular thing on youtube now to have a dumbass OC of yourself randomly pop up on screen for no reason other than to take up screen space
it's self serving and cringy but its The Thing™
👁👁👉📺
👄
📺👈👁👁
👄
6:20 Speedrunners: we must save this 0,35s framerule somehow
AI: I'm 15s away from the record, 𝙡𝙞𝙩𝙚𝙧𝙖𝙡𝙡𝙮 𝙖𝙡𝙢𝙤𝙨𝙩 𝙩𝙝𝙚𝙧𝙚 :𝘿
jk, obv great video and great work, but it made me laugh lol
this kind of content is so entertaining, if you continue to make video game content like this I will absolutely support you!
Yeah he needs to continue at it. It's been few months already and he only has one video on his site. I have seen others doing this on TH-cam as well with Pokemon and stuff. So the competition is there for sure. I do agree though that content like this is going to blow up soon as it already seems like it is.
0:33 "This video, I literally won't stop coding until I make an AI that beats the game." So that was a total lie.
0:22 - you didn't die to the same goomba, you died to the other one.
Content like this is simply amazing, I just know you're about to blow up soon!
Happy to be an early viewer to a massively underrated channel!
I appreciate the kind words :)
first video and he already has 1K, he probably had the good idea of going in with experience
@@happyboy07685 Totally! The video is so well produced, and the topic is very interesting as well! I'm excited for more content from Kush!
after 4 months... im still waiting for part 2
Me too.
I’m at 4 months since last waiter 😭
0:44 why do you need to remake the game
You need to edit the code
You might only have 190 subscribers but this content is one of a kind. Keep making videos!
Thanks for the kind words! I’ll try my best.
@@KushGupta1 What about part 2 ?
totally agree with you!!! waiting for part 2!!!
He's got way more now :) He is busy making part 2, I'm sure!
i would've watched more of your content, but i realized there was no more content to watch
the more you upload, the higher attention and popularity you bring, allowing you to get more money to make these videos
New vid coming soon :)
@@KushGupta1 yay :D
@@KushGupta1 im gonna be honest i didn't even know ai could work like this
Part2????
Your editing and commentary is really good. I'm surprised you only have 1 video, good quality like this usually takes youtubers a lot longer to achieve.
Thanks, I appreciate the kind words!
And there was no part 2
Unfortunately
This is like Mark Rober
"I may suck at Mario, but im really good at coding (mark=engineering), so im actually *really* good at Mario
Thanks! I love mark rober vids :)
@@KushGupta1 yeah
5 months no part 2
I’m excited to see part 2, but more excited to see what direction your channel takes. Great start!
Bro I’m excited for part 2! This video inspired me to use reinforcement learning with my own personal project
bro went broke from letting the pc on
Wait how does that even work?
Edit: nvm he explained that he rents it
my man made the smart idea of making the channel with experience
After the AI masters SMB1 I would like to see it attempt the lost levels, it's much harder so I wonder how the AI would figure out how to get past some of the harder parts, specifically ones where hidden blocks are required to progress, or how to use the wind to do longer jumps. Since SMB1 and the lost levels have the same physics the same AI could probably be used. I subscribed to see your next uploads! :)
Thanks for the support! Thats a good idea. I’m to add it to the list. The same AI couldn’t really be used, since I’d still have to train it on the level which costs money because I have to rent a very powerful but expensive gpu.
Nevertheless, I’m going to try that in the future for sure!!
@@KushGupta1ok
@@KushGupta1 Please use cheat codes to get money then buy the gpu and stuff so you can make more of these videos.
@@KushGupta1 How much processing power does it need? I'm running some Learnfun/Playfun, but that is entirely CPU based. Got an RTX 4090 on an AMD 7950X3D.
this was great i really hope part 2 comes out soon
I think a fun game for the AI to speedrun would be a game like Wario Land 4 or pizza tower, as they are really fast paced and I want to see how the AI works in fast situations.
added it to the list!
@@KushGupta1pikmin?
@@KushGupta1 I would love to see that
idk if it will be possible though
@blackgustavogaming Someone coded a bot to Speedrun Super Mario Bros before we had fancy AI programs like Nova AI. The bot was programmed to first learn the levels from brute force trial and error, then fully optimize the routes to be as frame-perfect as possible. It was able to discover tricks that nobody knew were even possible. So yes, it will be technically possible; it will just take a lot longer for the first phase of training to be completed.
Unfortunately, the video I watched about it back in the day is lost in the sea of similar videos.
10 months still no part 2...
The way he explains ppo
Gonna check back for part two cuz this is 🔥
BROOO THIS IS A REALLY GOOD NEW CHANNEL
Very cool video. Any update on part 2?
Brooo we need part 2!
First video, doing very good. Nice job man! 73k views and 1,55k subs are really good for only a first video. You got this!
7:32 the video he clicked said FWR which means **FORMER** World Record
cool video! i hope you get more and more famous
That is *amazing!* For sure want to see second video about this
7:31 The AI did it without the power-up so its taking a route longer to avoid the monsters but it still has enough momentum to beat the lvl fast
I subscribed because I want to see Mario sniffing more drugs!
"ill have to make the whole game, from scratch."
*proceeds to open unity*
what about ScartcH
do you even understand what that means?
@@TWrongLeen yes i do and thats just a joke
Amazing video, the animations and commentary is very nice. I thought that you must have millions of subscribers and was shocked to see 3K. I guess this shows how high the bar has been set in order to go viral on TH-cam.
The entertainment factor of this video left me flabbergasted when I discovered you only have one video! I can't believe it. When can we expect part 2?
Where is part 2?
Some thing you should probably do are:
1) have more poses for your character
2) get him out of the way of the screen while showing off what You did (if you are so scared someone is going to steal your content just put something half trasparent on the vidioso it so be as much in the way)
You’re right! I’m going to try to draw more poses & use him less so people can focus on whats on the screen. Thanks for the feedback.
Bro really didnt know about the 1-1 underground bonus area💀💀
☠️
this seems to be your one and only video, I will watch your career with great interest. Definitely earned a subscribe from me.
0:09 metal mario in mario bros?
someone: *_Beats super mario bros under 5 minutes_*
just in case nobody said that before in 6:04 backwards jump makes perfect sense to get faster
Wow. Excellent first video.
Now subscribed.
Waiting for part 2 😊
Can we talk about how sucessful this guy will be ! He already has 9:62k *could be wrong* only 2 videos!😊
7:51 the flag animation counts for the time
This is really good haha. Can’t wait for Part 2
I checked your channel and this is your first video?! I've never seen a channel blow up so fast! Be warned though, you'd better follow up on a sequel or they might all leave. Don't waste this wonderful chance you have.
I was going to comment the exact same thing! Surprising that this is a young channel with just 1 vid. Keep doing a good job!
Remember us when this channel gets famous
Of course! Thanks for the support!
@@KushGupta1This randomly got recommended to me, and I just subscribed!
Imagine the ai starts doing TAS stuff
you know what ima sub u at 6.16k as im doing so wonder if that'll be something cool soon
1:40 he said da funni word. Lol.
where part 2, I'm invested now
Bro never posted a part 2 😔
I swear its coming eventually 😭
@@KushGupta1 i expect a 4:54 any% time
4:05 what song is this i need to know
i found the song name
Dedede's Royal Payback
@@MAr10q me too just keep scrolling it down
RIP part2
give us part 2 I’ve replayed this 347 times
bro this is ur1st video!? pls keep up this quality of editing its really good
The really insane thing on 1-3 is the AI can do world record as smol mario, while world record uses flower so in a way the AI beat the human.
“That reminds me of my childhood “
Rip
Okay you got my sub. I look forward to part 2 ;)
Pls make part 2
I watched this the 3rd time
7:02 that song is called "Masked Dedede - Kirby Triple Deluxe" for those who don't know the song
“This is the world’s fastest Super Mario Bros. Speedrun”
That is 18 minutes
4:11 Fuzzy - Masked Dedede ... noice 🎶
Legend right here
4:49 you better be sarcastic
Lol, For real.
in before this channel blows up. current subs: 5.17k
I was surprised to see such a new channel making such good content
Nice, bro! Wtg! Amazing. Preferred your AI for style points, too.
This video was very good. Any chance we'll see part 2?
Masked Dedede theme sounds so badass.
Shows it really has trained.
Do this with celeste. I know it has been done before, but it would be really cool to see the AI progress.
Wait how does running a gpu cost money does it break or something
I have to rent a cloud gpu thats very powerful.
right, its because our computers cannot handle that much@@KushGupta1
This editing is wayyyy to good to have less than 1k subs
Wait... THIS IS YOUR ONLY VIDEO? THIS IS SO FREAKING GOOD WTH
If i said the video would end when *I* break a record, yeah no the video’s gonna be 700 years long
Interesting video! I will be back for part II.
what's the music you used from the AI speedrunning ?tell me
dedede's royal payback kirby triple deluxe
bro using the same sprite and then making transitions to other sprites which actually IS THE SAME SPRITE! CANT YOU JUST MAKE A TALKING ANIMATION?!
It’s hard 😭
I made more sprites for the next video though, so hopefully its better.
sorry about that but yeah, transitioning to the same sprite is weird.@@KushGupta1
0:34 did this guy steal my keyboard
Bro that keyboard is goofy
got urself a goofy keyboard bro
@@heathernd3532 ty
goofy keyboard head ah
Highly underrated! Nice work.👍
This is his first and only video right now… IT BLEW UP
kind of lost me with the "remake the game" part, kind of defeats the whole purpose, still very impressive and i hope this kind of stuff becomes "easy" in the near future with any game.
it would be amazing to see if in the future people could just have an AI that learns any game with very little effort/time, i have no idea if that will come one day but maybe in 10 years? who knows.
And so a new Code Bullet has appeared except a lot less chaotic.
ooo subbed. this is very underrated
damn your pretty underrated! hope ya get popular in the future :D
New youtube trick- skip the first 3/4 of every video, and you don't have to deal with any rambling preamble, channel description, begging for subs, AND you'll know instantly if they're even going to talk about what was proposed in the title. BTW this channel passes the test. Good job. You actually did what you said in the title, unlike 99% of youtube videos. I didn't need the vast majority of the explanation before hand though.
HOW TF IS THIS UR FIRST VIDEO
Almost only vid 😂
DEADASS
Question because I'm computer illiterate: How do you "run out of money" using a GPU? Do they wear out? Is it the power bill?
I don't own the gpu. It's a really powerful gpu yet expensive to own, so I rent it via the cloud.
@@KushGupta1 That's just 1 GPU? Man, now I feel even more spoiled thinking back to when I was doing molecular dynamics stuff and got allocated time to several super-computers which were basically entire rooms of stacked GPUs.