* AI Learning - Step by Step Guide *

Discussion in 'General Discussion' started by MarcG, Mar 3, 2015.

  1. Endurancer

    Endurancer Registered

    Joined:
    Mar 31, 2018
    Messages:
    47
    Likes Received:
    28
    Well, it's been a while since this has been posted, but in case you are still looking for a solution, I once had a similar problem with Interlagos, with the cars hitting a wall in the main straight every time. Only way to get around it was to edit the AIW with a graphical tool that allowed me to edit the active area for the AI. So I altered it to prevent the AI from going into that wall. It is not very intuitive, took me nearly I entire day of my vacation to sort how to use it, but the result was very rewarding.
     
    Felixeur, Corti and Juergen-BY like this.
  2. Endurancer

    Endurancer Registered

    Joined:
    Mar 31, 2018
    Messages:
    47
    Likes Received:
    28
    Hi, so I finally got time to test this feature. I want, most of all, improve the performance of APEX FIAGT3 cars in the Nordschleife (24h layout). So I tried following this tutorial (method 1), and results were very inconsistent. Most of the time, the AI was running slower and slower and the message "i can do better, XXX meters off" was displaying smaller figures most of the time. That did not make sense to me. Yet, eventually I got a "success" message and moved to try a qualifying with the updated AI. Then I realized that the AI has got about 10s. SLOWER (!).

    Some research, and I decided to ensure the following parameters in the player.JSON file:
    AI Calibrate Sample Size":6,
    "AI Power Calibration":7,
    "Auto Line Smoothing":7,
    "Autocalibrate AI Mode":1

    Then tested in Interlagos with URD PX1 AURA, just to have some control data. It worked reasonably. During the test, the car laped 1:15.xxx. But in qualify session, after the learning was completed, it raced at 1:16.xxx (it was 1:18.xxx before).

    Then tried Nordschleife again. At least now I saw some coherence between the messages (“off by…”) and the times. However, after the entire test time has passed, There was still no “success” message.

    Does anyone has a clue of what might be happening and any ideas on how to get over it?

    Any help is much appreciated.

    Regards,

    Luciano.
     
  3. MarcG

    MarcG Member

    Joined:
    Oct 4, 2010
    Messages:
    6,406
    Likes Received:
    1,698
    Apologies for the immensely late reply, I needed to do some AI Autocalibration today for the first time in ages and for the life of me couldn't get it to work. I deleted files, rolled back to previous builds, then I noticed the "Test Day" wasn't working in that it was always the number of minutes selected not the Default 30hours for a "Test Day" so I set about finding why that was.

    Turns out the answer is to now Unselect all Sessions Qual, Race AND Practice, then the "Test Day" works as does the Autocalibration, I'm unsure as to when this was changed as I said it's been a while since I've used the AI Learning methods, I'll edit the first post to reflect this.

    Edit: First Post edited to reflect the changes (7/1/2019)
     
    Last edited: Jan 7, 2019
    Mydriaz, Balazs Magyar and SPASKIS like this.
  4. Felixeur

    Felixeur Registered

    Joined:
    Jan 1, 2019
    Messages:
    5
    Likes Received:
    2
    Small Note i'd like to add. If you want to run your AI Learning in the background while browsing, watching Youtube videos, studying, other stuff, you can change a tiny thing

    In your "\rFactor 2\UserData\player\player.JSON" file there is the following setting.

    "Pause If Focus Lost":true,
    "Pause If Focus Lost#":"whether to automatically pause if window loses focus (single-player only)"
     
    gluon and Endurancer like this.
  5. Scott Vermeyen

    Scott Vermeyen Registered

    Joined:
    Apr 22, 2018
    Messages:
    8
    Likes Received:
    0
    Is there no way to simply set a value, and have the AI constantly improve? Is that Mode 2?

    I don't always want to do this process for every track/car. Sometimes I just want to drive and not have to edit files and create *.wics. I'm fine with the .wic files being dynamic.

    I'm assuming this is why the AI has been a bit of a disappointment. Don't think I've tuned it up.
     
  6. Emery

    Emery Registered

    Joined:
    Oct 24, 2010
    Messages:
    2,467
    Likes Received:
    1,084
    Yes, you can turn mode 2 on and leave it on. Note, though, that you have to advance sessions for the WIS files to be written to disk. If you always exit practice and never go to qualify (or race), the file does not get written.
     
    Scott Vermeyen likes this.
  7. Scott Vermeyen

    Scott Vermeyen Registered

    Joined:
    Apr 22, 2018
    Messages:
    8
    Likes Received:
    0
    I can just drive the sessions too instead of advancing, right? I usually drive the full weekend just working on the setup and stuff, like to simulate like that. Usually have 10 or so drivers on the track if any of this matters.

    I'll start checking the folders for the WIS files, and if/when they are updated.

    Bonus dumb question: how come when I pull into the pits to serve a flag, I can't seem to actually serve it? I seem to stop in my box, but the behavior is a bit strange here. I never seem able to clear my flags, like a stop a go when leaving the pits too early in practice for example. Thanks for any help on how that's supposed to play out.

    Cheers!
     
  8. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    6,545
    Likes Received:
    2,429
    @Scott Vermeyen cycle through the HUD and you'll find one that lists the penalties you have. You probably have a drive-through instead of a stop-go. Also when you request a stop and your pitmenu pops up it will say stop-go:yes if you have one of those (you can choose to defer it, say to repair damage rather than serve the penalty then do another whole lap).
     
  9. Scott Vermeyen

    Scott Vermeyen Registered

    Joined:
    Apr 22, 2018
    Messages:
    8
    Likes Received:
    0
    Thanks for the help man, I'll see if I can finally clear a flag.
     

Share This Page