1. #1

    Making a "Perfect Run" Bot

    Is this even possible on a game like Trials? I don't really know anything about bots in video games but I was just wondering if it would be even possible to make a bot that would run an absolutely perfect time on every course, or even one course for that matter. Has anyone tried this? Is it something that we may be able to see in the future? If not, then what about projected perfect times on courses using some sort of algorithm?
    Share this post

  2. #2

    Re: Making a "Perfect Run" Bot

    lestropie
    Share this post

  3. #3

    Re: Making a "Perfect Run" Bot

    Is there such a thing as a perfect run?
    Share this post

  4. #4

    Re: Making a "Perfect Run" Bot

    From the view of a software developer I can tell you that it is impossible to create a program which takes control of your bike and drives as fast as possible on all tracks. Thats what you call Bot.

    Mentioning Bots, you probably have ego shooters in your mind. Decisions made in an ego shooter are rather simple. Detecting nearest target with a fix field of view, turning your gun and simulate the fire key.

    These decisions can clearly be written down and can be set into rules, which can be transfered into code. These bots are not intelligent, they dont walk, they dont go into defense, they cant decide if its better to save ammo. They can aonly do things which can be described with a certain set of rules.


    Decisions you have to do in Trials are more complex. Cant describe it in english, its not my mother language. But as experienced player, Im sure you know what I mean.

    What is possible? With access to all replays, RedLynx could make a replay, with the fastest parts combined. That replay would beat the current high score.

    You can name that replay a bot if you want. But it doesnt work on all tracks and it can be beaten if a player is better in every part than all existing users.
    Share this post

  5. #5

    Re: Making a "Perfect Run" Bot

    Making a good bot, let alone 'perfect run' bot is a very difficult task in trials. A simple bot that could be able to finish in a reasonable time might be possible to do if you had access to the game data structures and spend a lot of time teaching it how to play the game, but even this is a challenging task.

    If you would like to make a 'perfect run' bot you would have to be able to predict how each of your actions is going to affect the future and then choose the most promising of these actions to continue your search for perfect run. The problem with this is that while the trials physics engine is deterministic (same action always result in a same run), it is very unstable (minor difference in earlier actions can cause major changes later) and the presence of seemingly noneffective objects can have effects on the precision of the calculations. This basically means that you would have to do accurate full world simulations when doing these predictions and you cannot really do much guesswork which would be needed to cut down the needed calculation work. And you really would need to do some optimization and guesswork as there are about 3.6e1625 possible input sequences in a 15 second run on Middle name: Danger. (number of atoms in universe is about 1e80)
    Share this post

  6. #6

    Re: Making a "Perfect Run" Bot

    almost every single run i do is different, it would be merely impossible to get a "perfect" run, ever.
    Share this post

  7. #7

    Re: Making a "Perfect Run" Bot

    just check out my replays... job done
    Share this post

  8. #8

    Re: Making a "Perfect Run" Bot

    Originally Posted by 420
    almost every single run i do is different, it would be merely impossible to get a "perfect" run, ever.
    Exactly. That's why I would want to see a perfect run so badly. I would honestly be willing to pay some money if there were ever a perfect run. Every single millisecond you need to hit the exact correct inputs, that's what makes it so unbelievable if it were to ever happen.

    And Jorma, thanks for that explanation. I have absolutely no idea how you found that number, but I'll have to trust it, haha.
    Share this post

  9. #9

    Re: Making a "Perfect Run" Bot

    device records inputs on a decent run on a track, then you adjust timing of the inputs until the perfect run is achieved. doing this isn't that far-fetched and alot simpler than anything you guys are talking about in this thread. ofcourse it would be a bot-per-track thing and a ton of time tweaking input timing for each track but in theory it could be done. there are alot of losers out there with way too much time on their hands..
    Share this post

  10. #10

    Re: Making a "Perfect Run" Bot

    I recon it could only be done by human. No computer thinks as fast as the human brain.
    I get it tho, I would love to see how quick tracks could be done if a bot could be made to use random boosts off scenery to keep fwd momentum at 100% all the way to the finish. Even Lestropie can't do this!(Although he's bloody close. Watch his hill climb to see what I mean. Non stop til he's at the top! )
    Share this post