Adaptive AI & the Tool, How-To

Discussion in 'Community Workshop' started by CheerfullyInsane, Mar 20, 2019.

  1. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +402 / 0 / -0
    Oh well, decided to upload what I had already.
    See OP.
     
    • Like Like x 1
  2. 82charlie

    82charlie New Member

    Joined:
    Mar 21, 2019
    Ratings:
    +2 / 0 / -0
    I thank you sir for your hard work. I can sympathize with your computer problems and I hope that you will get it sorted out soon.
     
    • Like Like x 1
  3. Hervé45

    Hervé45 Well-Known Member Beta tester

    Joined:
    Jan 25, 2017
    Ratings:
    +135 / 0 / -0
    Hello

    thank you for this tool.

    I try to use it for cars dtm 2003 and dtm 2005 but I do not find them in the list of proposed cars
    how should I proceed to force an average lap time?

    sorry for my poor english ...
     
  4. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +402 / 0 / -0
    Well, just for you I've added the DTM 15s to the base.xml in the OP. ;)
    For the DTM 13s, it should be a simple matter of running one race against fixed AI with the same level as you set for the 15s, and then switch to adaptive.

    In more general terms, it's not hard to set up the AI for a specific combo, it just takes a little time.
    What you do is run a race against Adaptive AI, maybe 4-5 flying laps.
    Next, check what level it ran at (by using the Tool database) and run another 4-5 flying laps against fixed AI adjusting the difficulty up or down as needed. Just be aware that since the Tool requires a minimum of 5 levels between each entry in order for it to extrapolate data, you always adjust in increments of 5.
    So there's nothing magical about the process. It's time-consuming, and about as interesting as Hungarian beet-farming, but difficult it isn't.
     
    • Wonderful Wonderful x 1
  5. Hervé45

    Hervé45 Well-Known Member Beta tester

    Joined:
    Jan 25, 2017
    Ratings:
    +135 / 0 / -0
    Thanks you for that

    Is it possible for dtm 2005 ?;)
     
    Last edited: Apr 21, 2019
  6. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +402 / 0 / -0
    Oh, you mean the C-class Mercs?
    No sorry, I don't have them.
    Nor do I have any intention of buying them until/unless they get some friends to play with. Not really interested in having just the one car to race.
     
  7. Hervé45

    Hervé45 Well-Known Member Beta tester

    Joined:
    Jan 25, 2017
    Ratings:
    +135 / 0 / -0
    yes it is this one
    OK nevermind
    Thanks again for this tool
     
  8. Hervé45

    Hervé45 Well-Known Member Beta tester

    Joined:
    Jan 25, 2017
    Ratings:
    +135 / 0 / -0
    Hello

    Where can I find the cars ID to add other groups in the assets.txt file:
    dtm 1995
    dtm 2005

    thank you

    like this for dtm 1992 :
    <optgroup label="DTM 1992">
    <option value="class-3499">Alle DTM 1992-Wagen</option>
    <option value="3662">Audi V8 DTM</option>
    <option value="3549">BMW M3 Sport Evolution</option>
    <option value="3842">Ford Mustang GT DTM</option>
    <option value="3539">Mercedes 190E Evo II DTM</option>
    <option value="3874">Opel Omega 3000 Evo500</option>
    </optgroup>
     
  9. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +402 / 0 / -0
    You can find the complete list locally at:
    ~Steam\steamapps\common\raceroom racing experience\Game\GameData\General\r3e-data.json.
    Just use Notepad to open it, and do a text-search for the needed class.
    But all you need is the class ID, the car ID isn't actually needed for the Tool.

    In this case, the DTM 2005 is ID 7168, and the DTM 1995 is ID 7075
    So add the following to your assets.txt:

    <optgroup label="DTM 2005">
    <option value="class-7168">Alle DTM 2005-Wagen</option>
    </optgroup>

    <optgroup label="DTM 1995">
    <option value="class-7075">Alle DTM 1995-Wagen</option>
    </optgroup>
     
    • Wonderful Wonderful x 1
  10. Hervé45

    Hervé45 Well-Known Member Beta tester

    Joined:
    Jan 25, 2017
    Ratings:
    +135 / 0 / -0
    Last edited: Apr 22, 2019
  11. Skidmark

    Skidmark Well-Known Member

    Joined:
    Oct 9, 2015
    Ratings:
    +232 / 0 / -0
    Thank you to everyone involved for the tool, the instructions and all the time and effort!!

    I'm doing something wrong though... I'll try to be brief.

    This is what I did.
    1) Backup my aiadaption.xml file
    2) Copy base.xml to Seeds
    3) Replace assets.txt with latest attached (thanks!)

    4) With Raceroom not loaded, start tool.
    5) 4 steps:-
    Select WTCR 2018, Brands Hatch, AI=95 / 49.8922 (closest match to my best time - as a test), hit Apply Selected Modification
    6) Close tool

    7) Start Raceroom
    8) WTCR 2018, Brands Hatch, Adaptive AI
    9) At end of race fastest AI time was 52.149 (equivalent to AI < 80)

    With such a large difference in the outcome I repeated everything - and got the same result, give or take a tenth.

    Any hints on what I've missed?
     
  12. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +402 / 0 / -0
    Do you have laptimes for the TCR18s in the indexfile?
    That is, have you ever run the TCR18s at Brands under race-conditions?

    Without player lap-times the AAI has no idea what it's trying to adapt to, it starts either at 80 or whatever the total average is in the index-file.
     
  13. Skidmark

    Skidmark Well-Known Member

    Joined:
    Oct 9, 2015
    Ratings:
    +232 / 0 / -0
    Thanks for your response.

    I think I thought the tool would set my adaptive AI level when I selected “Apply Selected Modification”.

    So... your saying I still need to run some laps at an AI level higher and some laps at an AI level ower than my target level to provide the necessary context for the tool to set it?

    I’m sorry if I’m being a bit dim here :(

    (By the way I had run a few races before using the tool but all at a level too quick for me - turns out I’m at roughly 108 on several other tracks but about 95 on Brands... perhaps because the AI is so good at long fast turns...?)
     
  14. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +402 / 0 / -0
    No, what it does is give the AAI 5 different AI levels and their lap-times to choose from.
    But it still needs a player lap-time to compare those lap-times against.

    But I don't like the fact that it starts at 80 if you've already run against it.....It shouldn't.
    Makes me wonder if there's a glitch somewhere that has corrupted the index-file. If that happens, R3E discards it and starts over with a new one (hence the need for back-ups).
    So try comparing the file-sizes of your back-up file and your present file. A fresh index-file is around 790kb.

    If that's the case, it's no biggie.
    Just copy over your back-up file, run a race against fixed AI at 95, then switch back to AAI.
    That should get you back in business.
     
  15. Skidmark

    Skidmark Well-Known Member

    Joined:
    Oct 9, 2015
    Ratings:
    +232 / 0 / -0
    Okay I think its fine now... I've run another race on AAI and it was much better.

    Thanks for your help and patience.
     
    • Like Like x 1
  16. Rmbonk86

    Rmbonk86 Active Member

    Joined:
    Feb 1, 2019
    Ratings:
    +25 / 0 / -0
    I got a question. I’ve been running races with AAI on. For the race settings I like to mandatory pitstops. With having pitstops on will that effect the AI’s ability to learn ?

    I ran a race tonight at Mid Ohio to pre-race the Porsche GT3 Cup Challenge that is coming up this weekend. The race set up for 30 mins. After it was finished I checked Mid Ohio in the folder for indexes and there was nothing for the GT3’s. From what I read it take two laps for it to start writing the lap times
     
  17. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +402 / 0 / -0
    No, it doesn't matter. The AI laptime registered is the average of the fastest laps of all the AI drivers. so any lap with a pitstop in it will automatically be dropped.
    Same thing with the players laptime. Anything that varies more than 3% from the average is disregarded, so you should be fine.
    (Should, mind you. I've never actually driven a SP race with pit-stops.)

    Well, the Porsche GT3 Cup car is, despite the name, in a different class than GTR3, so that might be it. You're looking for ID 6345 instead of ID 1703.

    It takes one flying lap. So if you're using standing starts, yes, two laps for it to register.
     
  18. Rmbonk86

    Rmbonk86 Active Member

    Joined:
    Feb 1, 2019
    Ratings:
    +25 / 0 / -0
    I was using the the GT3 class Porsche. I just don’t own the Porsche cup car. Own all the rest though

    Ok I just wanted to make sure that the pits weren’t causing the issue of not seeing the laptimes. There are entries for other tracks for the gt3 class which the aai has me around 101- 105.
     
  19. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +402 / 0 / -0
    Ah okay, slight misunderstanding there. :)

    In that case, it depends on what you mean by it not appearing in the index.
    If you're using the Tool to check it with, don't forget that for the car/track combo to appear in the GUI, it needs TWO entries a minimum of 5 levels apart. Otherwise the Tool simply doesn't have enough information to work with.
    That doesn't mean the AAI isn't adapting. The AAI and the Tool are two separate entities that require different levels of information to work.

    Now, if you've checked the index-file itself, and the entries aren't appearing there either, then something else is going on.
    And I honestly have no idea what.
     
  20. Zziggy

    Zziggy Well-Known Member

    Joined:
    Apr 27, 2019
    Ratings:
    +73 / 0 / -0
    Hello, thanks for the tool! I am using it in a different way, I try to view my own lap records. Unfortunately not all are shown, for instance I just completed laps in Sachsenring in GTR3 that are shown on the Portal but not in the tool. Any idea why? It would be great if we could have a real lap time viewer built in a similar way as this tool!