Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
removed shipping pre-generated database
  • Loading branch information
pixeljetstream committed Dec 9, 2017
1 parent acef62b commit f87cbde
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@ The benefit is that you will not loose your own existing laptimes, and the AI wi
* Run the tool (it will print some command-line stuff)
* Press the "Reset all AI times" button

### Database Seed Setup
### Database External Seeds

The project comes with a "database.lua" file provided by "Cheerfullyinsane". You can contribute [here](https://forum.sector3studios.com/index.php?threads/adaptive-ai-database-prototype-call-for-participation.5632/) to make it better, however it
has to be reset after every major AI or physics update (current database state is roughly from January 2017 onwards).
The database will alwasy be built from your own aiadaptataion values. So the track & car combinations you are driving as well as how the AI rated the levels based on your driving will always be shown.

To enhance the database dump as many "aiadaptation.xml" files as you can find from different people in the "/seeds" directory (the tool will look for all *.xml files). The input files should have content that fits the version of R3E's AI (when the AI changes a lot with an update, old results may be too slow or fast). Run the tool it will update the database and generate a "results/database.html" file similar to [this](http://htmlpreview.github.io/?https://github.com/pixeljetstream/r3e-adaptive-ai-primer/blob/master/results/database.html).
To enhance the database with results from other players, dump as many "aiadaptation.xml" files as you can find in the "/seeds" directory (the tool will look for all *.xml files). The input files should have content that fits the same version of R3E's AI (when the AI or physics changes a lot with an update, old results may be too slow or fast). Run the tool it will update the database and generate a "results/database.html" file similar to [this](http://htmlpreview.github.io/?https://github.com/pixeljetstream/r3e-adaptive-ai-primer/blob/master/docs/database.html).

The table gives you AI laptimes for different levels for each track/car combo found in the database. The lower number is the "variance" in seconds, when multiple times for the same AI level were found. The lower the variance the more reliable the number (unless zero then it means we only have one entry).

### Database AI Level Processing

When the tool is run, it also generates a "results/processed.html" file ([example](http://htmlpreview.github.io/?https://github.com/pixeljetstream/r3e-adaptive-ai-primer/blob/master/results/processed.html)), which looks is similar to the database file, however this time all AI levels have timing values. These are generated by linear curve fitting to the original database. The fitting may not always work, especially as the database may have noisy data from different users, it can happen that low AI is faster than higher AI, the tool will therefore reject curves that were not plausible.
When the tool is run, it also generates a "results/processed.html" file ([example](http://htmlpreview.github.io/?https://github.com/pixeljetstream/r3e-adaptive-ai-primer/blob/master/docs/processed.html)), which looks is similar to the database file, however this time all AI levels have timing values. These are generated by linear curve fitting to the original database. The fitting may not always work, especially as the database may have noisy data from different users, it can happen that low AI is faster than higher AI, the tool will therefore reject curves that were not plausible.

Check the "config.lua" file for some of the influence on the fitting/plausibility checks.

Expand Down

0 comments on commit f87cbde

Please sign in to comment.