I created an A.I. to generate racing tracks in TrackMania
ฝัง
- เผยแพร่เมื่อ 6 ก.ย. 2024
- Hello everyone. TrackMania mapping is an integral part of the game that provides endless possibilities for players to explore. But can it be automated? In this video I show how I created an A.I. track generator which is able to generate technical tracks that imitate the style of tracks built by humans.
Download the generator and play with it yourself: github.com/don...
Generated sample maps (TM2): tm.mania-excha...
Post about the generator (2018): donadigo.com/t...
GitHub page: github.com/don...
PayPal donation: www.paypal.com...
Additional footage by Spammiej:
/ spammiej
TTC Keissla Edition with generated maps: • True Talent Cup #129 |...
Music:
Mattashi - Tale Of A Knight
Waterflame - The Wanderer
Ooyy - Hemisphere
Lukhash - Proxima
Humbot - Wave Saver
Ooyy - Osaka 3AM
www.epidemicso...
/ waterflame89
/ mattashicomposer
Thanks for watching!
This was so epic, didn't even think that could be within reach. Funniest part was generation 9 but jokes aside, the 30th generation map is simply beautiful. Wonderful job!
G9 be like: car go zzzoop
G9 it gained awareness and went I don't want to build tech I want to build lol
11:58 generation 9 be like: "S P E E D"
11:59 Did the AI put a big jump at the end of the boosts, to try to get the car out of the stadium? That's what all new players do the first time they try the map editor ahah,
Nice video !
As a software engineer and TM fan - this is one of my favorite TM videos to date! GG
i love you for all the tarkov science!!! ❤❤❤❤
AI Gen 1-8: Learning... Learning...
AI Gen 9: Fuck it, booster.
informative video, really enjoyed it! to give some feedback though, the section where you show the different generations is just way too long without any commentary over it, I would've expected to show maybe gen 1-3, then skip to 10, 20, and so on... to keep it shorter and to see more difference at once. Also I'm not sure what generation even means in this context, is there some way to judge a generated map with some fitness algorithm like I've seen in other neural network videos? I understood that you trained the network with all those tech tracks, and then it would spit out maps, so I don't know where generations come into play there...
Thanks! Yeah the generation section could be a lot shorter, or use a commentary, I agree. I named them "generations" here but in reality these are epochs of training in ML terms. Each epoch N tracks are randomly generated based on the current network weights. Those you see in the video were then picked by me. This is why there isn't a clear progression curve, because the randomness may skew the results. The process is still necessary, as training for longer means more stable results and quicker generation times (the build algorithm doesn't get stuck when networks are accurate). The "fitness" function is the loss so mean error across all tracks in the dataset.
Well done! Very interesting to watch.
Even though it would take much more computing time, wouldn't it make more sense, to get a probability by looking at segments of blocks? Like always 4 blocks at a time for example. Give it a start block. Now calculate a segment of 4 blocks, place the first of them. Now you have two blocks. Calculate first, second, and a theoretical third and fourth (judging by common 4 block patterns, with a start block attatched to the front of them). Place your third block. Now calculate your fourth block, by looking at common 4-block-combinations using the last 2 placed blocks. Place your 4th block. As far as I'm not missjudging it, the endresult should be smoother (even if you don't take the one with the highest probability, cause this would end in the same route every time).
awesome video!
Now combine that with @Yosh 's TM driver AI to drive AI generated tracks. That way we have completely eliminated the human in the process and fully bowed down to our robot overlords.
why have they not done that
I just now realized that the Cup of the day is kind of the new version of the TTC, only that you just play one map instead of 5 and have a long warmup. Great video and maps btw.
Man Detinu ich erinner mich noch an dich, du hast doch damals mit tmspeedy videos gemacht :D
@@nmatthes2927 :^)
@@TmSpeedy0407 Ich warte immernoch auf die TM Sunrise Lets Play Fortsetzung! AausrufezeichEN1!!elf!
LETS GO DONADIGO IM SO EXITED TO WATCH THIS
Gen9 was everyone's first ever made track
This could be a fine addition to a duel 1v1 gamemode where you compete to be the fastest lap by 3 rounds race in a random generated map. Great work dude
We are moving into a universe where AI will generate maps in TM and will grind out runs with TAS, this cycle will go on for eternity, nothing but the AI playing its own maps until the end of time
first create an AI than can use tas ahahahaha, I think it's close to impossible, AI can hardly play trackmania so tas seems no-go
@@wicowan What? Have you any clue about the current state of machine learning? Or even that there is already an "AI" that has learnt to drive TM maps (albeit not very well)?
@@Herbert. Yosh did quite a lot of videos on trackmania ai.
Nice AI.
So so cool ! greatjob
An idea : maybe you could provide your neural network with a sense of the driving flow by providing it with the trajectory of a player for each block of the track (or at least, player's entry point & speed and exit point & speed for each of the block)
Maybe with this kind of training data, the network would learn the correlation between common sequences of blocks and the expected trajectory and speed on those sequences ?
Crazy, u are like the engineer of the community, u are giving us a lot, thank you and keep up the work
Your going to make Trackmania a scientific playground for yourself... Wondering what's next
Impressive my dude, you really took trackmania and created something worth its own game. You deserve way more reach than you have.
How has this video not blown up yet :O
Wow, absolutely amazing. The finished track is even pretty good
Why are we not using reinforcement learning or particle swarm based algorithms to create theoretical speedruns with AI? I kept looking for it and there are some initial works on it but with a legend like Donadigo on board, we might come up with AI speedruns.
It would be cool to implement this in a club on tm2020 maybe with someway of giving feedback on flow
Omfg! Great work dude!
Wooo lets gooo
Pls do more of these type of videos! they are so fun to watch!
Nice Kacky map generator you've got there ;)
sehr gut adam
Sick!
Haha, finally people are finding my favorite Dona creation
This really deserved its own video. Nice one!
you’re a legend
What's the rationale behind randomly choosing outputs (weighted by probability) rather than choosing the most probable output every time? I can imagine choosing randomly would give more "natural" results in some sense, but would expect overall higher quality tracks from choosing the most probable since results would resemble the training set more closely. Just guessing though, I have little experience working with NNs.
Choosing the most probable output every time generates you the same track, every single time. How conservative we are towards choosing the output is controlled by the "temperature" hyper-parameter. If it's lower, the output will be more conservative, if it's higher - more diverse. For example, setting the parameter to a very low value, will generate mostly straight line tracks with only the same one block repeating. Of course there are many strategies you can take e.g changing the temperature while generating the track.
sick performance !! but.. new kacky edition of those generations? give those to mig :D
You should try to do this using the new trackmania potentially.
lessgo
I'm always interested in the coding behind ai as the formation of neural networks always seem so advanced and beyond comprehension when thinking that an computer has the potential to match the thinking of a human from data given to it.
Anyways congrats on 1 year of TMinterface and may the future remain bright for this community @donadigo
Nice video! Made me wonder how you managed to handle giving all blocks as inputs, what type of NN worked for this?
Cool video. Although, it sounds like a class presentation since the pacing is kinda slow. Otherwise, nice job!
Nice project and nice video. Great job!
Now you can associate with Yoshi and his AI trained car to race this track
So this is how lolsport builds his maps...
Plottwist:
every campaign and tmgl map is build using an ai
wow
Some of you may know, I even held a cup with 30 AI generated maps two months back. Here are the results - th-cam.com/video/GBLd9srf8r8/w-d-xo.html
wicked'
Who else is here because of wirtuals comments on Fall - 18???
how did you iterate from generation to generation ? how do you give a score to a track ?
btw you might want to check your website, bitdefender flagged it as unsafe
WOW
how does this work can we also run this within trackmania to generate our own maps?
Can you make that for tm2020?
could this not be a good start for creating a ai that can identify possible stolen tracks?
Are you from poland? Czy jesteś z Polski?
Bro trackmania turbo did it in 2016
6th and 7th
11:59 +++
gen 9 was random
Yeah A.I. creating a tech map is cool and all, but what about creating a trial with A.I., will it be possible to create a map harder than Final Enigma or creating a more transitionnal and longer fullspeed map. Will it be used for competitive maps and leaving the human mappers behind, or will it be used to push the robot and human limit of trackmania
First.
Absolutely.
Now make one that makes PF tracks 💀
Some of these generated maps look like kacky maps