Adaptive AI primer/database tool

Discussion in 'Community Workshop' started by pixeljetstream, Jun 4, 2016.

  1. DriftMachine

    DriftMachine Well-Known Member

    Joined:
    Jan 29, 2015
    Ratings:
    +72 / 0 / -0
    Pull data from leaderboard challenge for ai. Seems like the best place to start since all the data is already created.
     
  2. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    Same problem though.
    It'll give you times, but it won't give you the corresponding AI levels. And without those, the times themselves are useless.
     
  3. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    @pixeljetstream if I understand it correctly, the XML files need to go through you to incorporate it in the database, correct?
    Aquilas are finished (that is, entries for the long version of all tracks) if anyone wants to try them out.
    Should have at least three or four AI entries for each track, depends a little on how quickly I get the level-assesment right.
    No entries for Paul Ricard, Norisring or Macau, since I hate them all intensely. :D
     

    Attached Files:

  4. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +383 / 0 / -0
    They don't need to go through me, if you put them in the /seeds directory (any XML file is checked) they get automatically added to the database file unless identical entries exist.

    So sharing the XML files here just means people need to download them as well.
    Whilst I only updated the database file from time to time on github. I am traveling for a while so won't get to that.
     
  5. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    Gotcha.
    Somehow I was under the impression that you couldn't add to the database yourself.
    Then again, I confuse easily. :D
     
  6. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    @pixeljetstream Turns out your work isn't quite finished yet. :D
    The F4's (id 4867) are missing from the database.
     
  7. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +383 / 0 / -0
    Can have multiple reasons. Either the asset file doesn't contain the id. Or more likely the plausibility filter of computing the ai times cannot make a proper fit based on the samples it has (there is warning messages on console)
     
  8. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    Pretty sure it's missing from the assets-file, judging by this:
    [​IMG]
    Anything we can add through LUA by ourselves?
     
  9. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +383 / 0 / -0
    Just edit the assets.txt file or whatever it is called. It's XML extracted from the raceroom website.
     
    • Like Like x 1
  10. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    Worked like a charm. :)
    Cheers mate.
     
  11. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    @Andy Blade You still looking to add the F4s?
    I've got asset-file edited, and I've have most of the major European tracks 'trained'.
    So the question is whether you want what I have now, or if you want a heads-up as and when I get them finished.
     
  12. Andy Blade

    Andy Blade Well-Known Member

    Joined:
    Feb 21, 2016
    Ratings:
    +300 / 0 / -0
  13. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    Er....Which? :D
     
  14. Andy Blade

    Andy Blade Well-Known Member

    Joined:
    Feb 21, 2016
    Ratings:
    +300 / 0 / -0
    Yeah i would like assets file and your file when you have finished it , thanks
     
  15. M4IRC1IE

    M4IRC1IE Well-Known Member

    Joined:
    Aug 23, 2015
    Ratings:
    +68 / 0 / -0
    hey, I found these little tool here and want to try it out, but i cant get it working. after downloading, where to put the files? when i start it says: error: could not find adaptive ai file. and after that a wrong pass: the right one is D:\Dokumente\My Games\SimBin\RaceRoom Racing Experience Install 2\UserData\Player1 upload_2016-8-30_16-6-9.png

    okay have found to edit the link, now it is working. can somebody explain how to get car/track combos inside the ui which is not avaiable? there are a lot of missing

    and here is my adaptive AI file... i am driving a lot of single player
     

    Attached Files:

    Last edited: Aug 30, 2016
  16. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    Yep, there are a lot missing.
    The reason is that the UI only contains combos that have enough entries for @pixeljetstream 's algorithms to do their thing.
    Only way to add them is to 'train' the AI, either just by racing them or by doing targeted training like in this post:
    https://forum.sector3studios.com/index.php?threads/the-new-adaptive-ai.5013/page-5#post-71240

    You can either run the races yourself, or if someone else has the combo you're looking for, you can copy their XML-file into the seeds-folder and it'll be added as well.
    I've included mine below, as well as the edited assets.txt file you'll need in order to get the F4s.
     

    Attached Files:

  17. pixeljetstream

    pixeljetstream Well-Known Member Beta tester

    Joined:
    Jan 29, 2015
    Ratings:
    +383 / 0 / -0
    added both your xml files to the "official" database and fixed assets
     
    • Like Like x 1
  18. Andy Blade

    Andy Blade Well-Known Member

    Joined:
    Feb 21, 2016
    Ratings:
    +300 / 0 / -0
    Thanks for all your work pixeljetstream and thankyou cheerfullyinsane !
    Quick question what is criteria for fastest lap on ui to show up ?
    I just did 15 min race at
    Oschersleben wtcc15 ai at 110
    Now it shows my fastest lap in the black command screen ? But on white ui where you select ai level etc it does not show up ?


    thanks for any help
     
  19. CheerfullyInsane

    CheerfullyInsane Well-Known Member

    Joined:
    Oct 24, 2015
    Ratings:
    +336 / 0 / -0
    Not entirely sure, but if I understand it correctly the ui only shows combos which have enough entries for the program to fit into an algorithm.
     
  20. Andy Blade

    Andy Blade Well-Known Member

    Joined:
    Feb 21, 2016
    Ratings:
    +300 / 0 / -0
    Okay thanks , i wish i understood how to write these programs lol , I know when i race offline my fastest time in race is in the player results file kinda wish i could get that info into this ui so everytime i race it would load my best lap so i could compare ai more easily