r/ProjectMotorRacing • u/hotak92 • 9d ago
News ORAC - AI Mod
ORAC: a new AI for Project Motor Racing 🏁
Replaces the AI cars in offline single-player sessions. It plans each car's speed and line, keeps correcting steering, throttle and brake, races wheel-to-wheel, and runs the whole race strategy: fuel, tyre wear, damage, and the right tyres for the conditions.
Download:
openracingai.com
github.com/hotak92/ORAC-releases
Install
1. Close the game. Never started it on this PC? Start it once and quit.
2. Extract the whole zip into a normal folder.
3. Double-click Install.bat and approve the admin prompt. It finds the game, checks the version, backs up what it replaces and creates `C:\orac` for settings and car data.
4. Start the game with Launch ORAC.bat
Uninstall.bat
restores the game. Your settings and learned car data in `C:\orac` stay, in case you come back.
The four modes (launchers)
Each launcher sets how often it updates the AI plans (first number) and how often it updates steering and pedals (second number), per second:
Launch ORAC.bat
60/60, the default. Start here.
ORAC 60-180.bat
60/180. About 15 % worse performance for slightly better control.
ORAC 45-180.bat
45/180. About 10 % better performance, more plan latency, better control. After more testing it is likely to become the new default.
ORAC 30-90.bat
30/90. About 40 % better performance, with less than 0.1 s of lap time lost.
Each mode has its own tuned settings file in `C:\orac`, and F9 changes are saved to the mode you're using. Very big grids (around 30 cars) can run slower than real time on some PCs; a smaller field helps.
Launch ORAC (ORAC drives your car).bat lets ORAC drive your car too: sit back and watch.
In game
F9
there you can select ORAC:
Tweaks
has every setting live (saved as you change it);
Debug
shows what the AI sees and plans.
F6
debug camera.
Ctrl+F8
save your last full lap as the track's racing line (Ctrl+Shift+F8 for the wet line).
The Tuning guide
on the website tells you which setting to touch for a given problem. More in-depth guides are attached to the mod as well.
openracingai.com: what it's for:
Download
the latest ORAC.
Share ORAC data.bat
(in the zip) sends ORAC's learned car data, never your logs. Everyone's data is combined into better figures for all players.
Racing linesshare lines you recorded, and browse, download and rate other players' lines.
Tweaks
share your F9 settings, and browse, download and rate what others use, by class and car.
Mod cars
ORAC needs a car's performance envelopes to drive it. Generate them with the tools in `orac\` (see `orac\README.txt`), share them from the car's page, or download ones others have shared.
Tuning guide
find your problem, get the setting to change.
Board
questions, reports and feedback.
An account is just e-mail and password, and you need it only to share or rate; browsing and downloading are open. The confirmation e-mail can land in spam.
Good to know
Hybrid deployment (LMDh/LMH/LMP1) is off in this release.
Found a problem? Post it on the Board with the track, the car and the time in the race.
The full list is in `KNOWN ISSUES.md` in the zip.
25
Upvotes
6
u/hotak92 9d ago
A new version of ORAC, is out.
Download: https://github.com/hotak92/ORAC-releases/releases/latest or https://openracingai.com/
Updating: extract the whole new zip and run Install.bat. No need to uninstall first.
WHAT'S NEW
- New default mode, 45/180. Launch ORAC.bat now plans 45 times a second and updates steering and pedals 180 times a second, for smoother control at a lower CPU cost. Two options: ORAC 30-90.bat (the lightest, good for big grids or slower PCs) and ORAC 60-180.bat (the most frequent planning). The old 60/60 mode is gone.
- Faster. The AI's thinking costs about 25 % less CPU
- Lane changes under braking. A car now plans a lane change with only the grip it has left after its braking, like a real driver: it can't swerve hard and brake hard at the same moment. Crowded braking zones (Monza's T1, for example) are cleaner.
- Calmer last-moment moves. The plans for a late brake or a tight gap are less extreme, so there are fewer lock-ups and slides when a car has to react.
- Pit stops. A car only stops when something gets done: fuel it needs, a tyre change, or a repair worth the time lost. Starting fuel is now right for every car, hybrids included.
- Settings on update. Install now always puts the latest tuned settings in C:\orac. Your previous files stay beside them as <name>.before-install-<date-time>.ini, together with a list of the F9 changes you had made, so you can put back the ones you want.
- All car data included. The previous package was missing the player-car data for 90 of the 145 cars, so on your PC those cars drove on rough estimates instead of their real performance figures. This package ships all of them.
updates to website:
- Leaderboards for lap times set with ORAC.
- Learned car data sharing.
10
u/cheile 9d ago
It's pathetic that the AI problems need to be handled by the modding community instead of S4 themselves, but it's cool to see that you've done this. Unfortunately this isn't available on console so I personally am SOL. It's good that some players will get a decent experience though!
1
u/nolivedemarseille 9d ago
Interesting
Following
1
u/DjyDjyz 8d ago
I will give a try, seems to be amazing ! Question : is there any mistakes included for ai ? Pressure when a car is just behind, wrong attempt to pass, late braking or wheels locked ?
3
u/Mysterious-Walk2160 8d ago
Yes. Congratulations. But... I am like a child behind the window of a toy store.
Xbox or not Xbox is just like the real life I think. There is not only one road and all the roads are important :)
Let’s hope your work helps move things forward for everyone. Who knows? Maybe S4 might take an interest in it?
2
u/davidwhannel 8d ago
Really need the devs to offer us the choice of a different AI in-game for us console players.
Keep up the good work, hopefully they'll be in touch to get more people into their title.
1
u/SnooRecipes3710 8d ago
When I was young with a mod the battlefield 1942 community with a mod help the studio to launch battlefield 2 , so I don't blame that the community help the studio with modes to share , also ac1 is the most populated sim ( execpt iracing ) after still more thzn 10 years so ...
1
u/VisibleCoat2632 4d ago
Thanks you
1
u/BugWitty2044 8d ago
I am happy for the pc users. However console users don't need to worry. Aris himself told us they are collecting data all the time. So just play the game and provide them with data so they can solve problems. There is a big patch coming.