FINAL EDIT : i feel a bit sorry, i really cyberpunk'd that fierst version. Got all excited with the firstlap features, and they ended up bringing a whole mess into what was otherwise working pretty well.
I shut off the firstlap function (the sliders do not apply) that need to be debuggued so you guys can test the features. lesson learnt, next time, i'll wait for a while before sharing something.
Have fun!
Update to the AI Whisperer
It's very raw and quite buggy at the moment, some stuff need a full restart ( the Firstlap sliders added a big mess).
The Dangerzone brakes semm to work only after firstlap, the Firstlap brake is either working or not, you get the idea. I'm debugging this atrocity.
i'm just gonna copy the looooong explanation text from Overtake. the app is here is you wanna skip the crap (if anyone knows how to collapse that wall of text let me know lol):
A little app to enhance your AIs per car type and per track, with a save function and auto recall at start. The simple version is in the folder and so far is bug free. The new update that includes Firstlap settings is a little more touchy, i...
www.overtake.gg
The simple version is in the folder and so far is bug free (still need to fix the Dangerzone brakes). The new update that includes Firstlap settings is a little more touchy, with multiple bugs, report if anything strange happens.
The Dangerzone brakes sometimes don't work with Firstlap state, same with Firstlap state sliders... Most of the features work, but it was a little too early.
EDIT v0.72 : All sliders work as intended. The whispererdebug will fail if session is restarted after a firstlap situation has ended, but it's a matter of hours for this to get fixed.
The app does not modify anything in the cars' or AC folders, but does save into a new "settings.ini" file in the track's data folder (per track saving) or in the app folder (global save). Uninstalling the app would immediatly stop any of its effects.
Settings can then be shared very easily with the file and recalled thru another AC player using the app.
For Fastlane makers, it's another step to share your fresh fastlanes with dedicated settings for particular classes.
HINT code based on @Damgam
Broken Kicker App, with his permission
. Thanks a lot mate❤️
What it looks like :
Don’t modify then share this app without permission. I’m happy to work on issues or to study new functions you would write/implement, but let’s not multiply ****** versions online, especially now that it records a few dedicated settings files. I want to make sure updates preserves previous settings, as it works super well and usually end up on gaining 2-3 seconds per fastlane. No one wants to do the tweaks twice.
What an hairpin would look like with 26 different class vintage cars when set up properly:
Is it perfect? certainly not. But for anyone that tried to do a race with an hairpin in AC, you know how bad they can get in this situation.
Now this is an exemple to fix a particular zone on an otherwise decent fastlane, but i could almost always fix recurent crashes with the app. A few settings later, they usually gain 1 to 4 seconds depending on the lenght of the track.
Not even mentioning the AI GRIP cheat that basically can make them seconds faster per lap above 1.2 values (see below).
On cars that would otherwise be unusable to race against, it's doing miracles.
Warning : doesn't work on encrypted cars
Features :
-real time car's ai.ini edits and other AI tweaks , can be by zone, or by situation. Does not modify the ai.ini file, just intercepts data and modifies it real time.
-sliders apply to aggression, time and intensity of braking, ai grip, tyre hints, aero hints, ai safe distance to car in front, steer gain. Soon to be added : throttle limit (for fast corners)
-Fixes the AI locking brakes randomly (Prevent brake mistakes) on BRAKEHINT zones. Applied in other zones.
-setup best AI settings on a dedicated track, car and save the settings with recall on each start
-ai_hints.ini can declare zones and apply related sliders values in real time
-Fixed the automatic aggression level up (that was fun).
-On this matter, i’ll leave the simple version without firstlap in the folder.
-Fixed the safety brake exiting [DANGER] zones.
-All values applied can be seen in the LUA debug real time. if an AI car makes the best lap of its life you can see all values applied in the debug, neat if you have the aggression level not set up precisely in the Drive menu and want to get that value (there's also a aggressionleveldebugger app to spot cars with issues on aggresion.level).
-Load ai_hints.ini with zones, zones highlighted per focused car, with a real time ai_hints reader in app
-Experimental section can be collapsed.
-Dangerzone sliders, related to the [DANGER] zones from your ai_hints.ini file
-AggressionLevel slider for [DANGER] zones and First laps
-AIWhisperer in app debug with real time calculations to estimate real time settings
-added Firstlap section, with settings that would strictly apply to the 1-4 first laps
Comment : the app will not turn a ****** fastlane into a gold one. It could, however, turn a good one into a great one. Plus you are able to finally edit a car driving too safely or braking too early, save its setting for the track, and never bother again.
to start editing a car type, click on it on the top tab
AI Hints Debug section:
Automatically loads the track's ai_hints.ini file to get all
HINT zones.
-"Load Ai Hints Cache" (automatically called and cached at start). If you modified the ai_hints.ini file, to update the new values ingame without reloading (won't apply the ai_hints.ini to the AI, which needs a full restart, but you could load new [DANGER] zones without restarting : Use the AIHintsreader app to do that ingame in a few secs. See below.
-"Debug Hints" shows you what's applied to which car in real time. Perf costs are minimal but still there, it's a check feature. Zone results appear in the LUA Debug App as well.
-"Show zones" to see all HINTS highlighted when the focused car go thru them.
The "show zone" is just a checking view to see which [HINTS] are applied during the race. For me it's important as i'm into zone creation, but basically for you, it's just to see where [BRAKEHINT] are, for the "
Prevent Braking mistake" slider (see below in Main Values) and where "DANGER Hint" are, for the "Dangerzone' sliders" (see below in Experimental values), and to see if cars are still in FIRSTLAP state.
-AI Whisperer Debug is an in-app debug that would calculate the end results for all settings. Follows the focused car. Also shows which set of sliders are currently in use.
About the slider values :
I went for simple. They are additive. If you want a set of sliders to be off, leave them values to 0.
On firstlap, main values are applied, then + Firstlap values, then + Dangerzone values.
About the aggression.level : some cars are buggy and would start with a 0 aggression level. You can spot them using the aggressiondebugger app (zip in the app folder). Car#0 (player’s car) would always show 100% aggressionlevel if set to AI control (ctrl+0), it’s normal. If you wanna see the Player’s car driving by itself, bring its AI push to 90, as the 100% aggression level often end up in crash. Don’t use player’s car under AI control to tweak sliders values as the auto 100% aggression level would give wrong results in driving anyway.
Main Values:
The regular sliders all work the same way : they get the value from the car ai.ini file, intercepts them, and inject new settings set in app's sliders. The values are applied in real time, stored in a temp file, and are discarded if you hit "restart" during a race. You can save them to the track data folder (settings.ini file) or as a global setting in the app folder(different settings.ini file there as well).
The app would load the values from the track first, if not found, from the global file, if not found, start with default values.
You should definitly set those main values to optimal results FIRST before tweaking the experimental ones.
Brake Hints : the brake hint value in the car ai.ini. Increase or decrease 0.005 by 0.005, test, until full lap
Increase to delay brakings, decrease to brake earlier.
Changes drastically the braking points of a given car. Works in combination with [BRAKEHINT] values, as the braking applied to a car
seems to be influenced by a mix of those values. Not sure yet, because i thought BRAKEHINT was applying a percentage of brake pedal, but it seems more complicated than that.
Tweak tip : +/-0.005, test. If a car stops in front of a corner, increase. If a car overshoots the corner, decrease.
Lookahead : the Look-Ahead value in the car 's ai.ini file.
To simplify, how the fastlane (and the data recorded in it) is read by the ai car. Decrease to turn/brake later, increase to turn/brake earlier. Huge improvment depending on the fastlane if a car is starting to steer way too late or too soon in a given corner.
Tweak tip : +/-0.5, test. If a car cuts a corner too sharp, decrease, if it's ending on the outside line, increase.
Lookahead gas_brake seems a little useless. See if it impacts anything for yourself, for me it just makes the cars way too safe. Soon to be deleted, maybe a crossed settings with Aicaution if I get results mixing both.
Steer Gain : the sensitivity of the steering wheel when the AI is in control. If you see it making huge fast rotations to compensate on a corner, reduce it. If it doesn't turn the wheel fast enough, increase. Highly dependant of the way the fastlane was recorded : if a GT3 was used and you're on a 1934 formula one, the inputs from the GT3 might be a little hard to transfer to the 1934 's car. This setting can help.
Tweak tip : 0.1 by 0.1. If Ai car makes huge wheel corrections in a medium corner, decrease. If it just floats from a side to the other like a boat, increase.
Aero Hint : influence of the aerodynamics of the car body with speed. higher : huge influence (car will think it can go thru a fast corner faster), lower : less influence. Vintage cars with a lot of drag usually don't take this into account much, GT3 will.
Tweak tip : +/- 0.1, test. See if cars go faster in fast corner and fast chicanes. Faster : keep increasing, slower, decrease.
Vintage cars usually have those values pretty low by default. Usually already well implemented by modders, but there might be half a second to grab on dedicated zones.
Tyre Hint : how the tyres' state influence the car's behavior. Lower values if you're on a vintage car that tends to overheat or damage its tyres quickly. Higher values for a car with undestructible tyres. That setting can prevent ai cars from crashing after many laps out of nowhere if they don't take the tyre wear enough into consideration.
Tweak tip : +/- 0.01. If cars crash after a few laps due to locking brakes or overshooting corners where they were fine laps before, decrease (more tyre hint influence). If fine, increase until it reaches its breaking point; Highly track dependant.
Experimental values (Show Experimental button):
Extra AI GRIP : default for ai cars is at 1.2, to compensate for their incompetence. Bringing this higher gains more grip, therefore making the AI faster. if AI grip is higher, you can also delay brakings by bringing a higher value in Brake hints. Divide by 20 seems to work fine : if ai grip +0.1, brake hints +0.005
AI Level : forget this one. Max at 1. Only use to balance some cars if they're completely out of strenght against their same class competitors by lowering their AI level (0.9=90%). Will be deleted if there's not a better script behind it.
Prevent Brake mistakes : the game has a random Braking mistake that would lock the brakes randomly. Pretty painful in a close track where one crash blocks everyone. The prevent Brake mistakes is strictly applied in [BRAKEHINT] zones, as defined in the track's ai_hints.ini file. The random mistakes would happen normally on other corners. Default is 1 (that's my choice) : no Brake mistakes allowed in BRAKEHINT ZONES. Bring it to 0 to recall random mistakes.
AI Caution : safe distance from car at front. Use this for cars ramming into the others, or to allow for closer racing with a car class you're confident they are too safe. I wonder how it would work for Nascar, for example, more tests needed, as it seems to impact the distance to sidelines as well : combined with aggressionlevel (Dangerzone aggressivity slider) it's actually a cool feature to add into [DANGER] hints, as the cars 2-wide would actually fight for each inch rather than slowing down like noobs to stay safe.
Decrease : less safe distance, increase : more safe distance. Tweak tip : +/- 0.05, test. Add 0.05 to cars that are fine braking and taking a hard corner by themselves, but struggle not to bump into other cars when there opponents in the way. A litle bump on hard brakings is your first warning, tolerated but not optimal.
More about thePrevent Brake Mistakes : slider at 0, AI will randomly lock brakes. I hate that stupid thing with vintage cars (they crash, as if they needed to suck more). At 1, the value (in seconds) will be set to 0 on each [BRAKEHINT] zone. I have no idea how the random brake mistake is called thru a game, but it can still happen out of the BRAKEHINT zones.
Dangerzone sliders :
The dangerzone sliders will modify the values from the sliders set in regular section. They will be applied each time the car type selectionned run into a [DANGER] hint zone.
ie : Danger zone AI Grip result = Extra AI Grip slider value + Dangerzone AI Grip slider value
Dangerzone AI grip : more is faster, more grippy, less drift. Default for most AI cars is 1.2
Dangerzone Caution : more is longer safe distance to car at front, less is shorter safe distance. At values 0.8 they might be a little touchy. At 0.5 they start to crush opponents. Default is 1, so implement the dangerzone caution with +/-0.050 at first and see how high you can go before they ram eachother.
Dangerzone brakes : extra brake setting in danger zones. A value of 0.005 makes them brake later and go a little faster, -0.005 will make them safer.
You can save your edited cars in a settings file that will automatically be called at start.
if you want to revert to default settings and have a fallback to compare behaviors, i suggest you hit the "apply defaults settings" then "save all cars globally". The "Reload global settings" are now Default, the "Reload track settings" are those applied for the track, and you can compare their pace and behavior in real time in a click.
Firstlap sliders :
Same as Dangerzone sliders, but strictly applies to first laps. Includes a length selection (1-4laps) for short tracks.
Next update :
-real time creation of 3 different zones with sliders for each. This one's gonna be funny : you would be able to create your own zones with dedicated slider settings. On the alpha test i'm running, i can now turn a hairpin into a real fighting zone, even with 5-6 cars.
-First lap settings : so they don't do **** with the new settings until they have a little more room, especially on small tracks. That could simply be a Caution value 0.1 higher on dedicated zones on first lap, or a combination of caution and aggression level. Done, but def needs a looooot of debugging. it's like instead of fingers i used 2 anuses to integrate that firstlap feature.
-Prevent Brake Mistake : soon to have a duration value and/or a clamped interval, once i figure out how it's used by the game engine (ie 0.1 second, small smoke, little loss of pace, 0.3 second, full lock, skid mark, important loss of pace)
-Prevent Traction mistake : same as Brake mistake, but with the throttle and (supposedly) with gearbox. Is it necessary? probably not. But maybe i can couple it with the Fury state and maintain a hotlap state (see below).
- "Fury state", where a car you bumped or crashed a few times would enter a revenge state with boost in all values until it reaches you back, and then maintain a close behavior to you to try to **** your race up. Easy to implement, would be a trottle limit each time it's 10m below you, so they don't really overtake you for some time, still maintaining a faster pace, just to push you to mistakes. It works fine atm with a car that is slightly more powerful than yours, so that should be an easy one. Then they pass you with Pedro Pascal 's face on the next straight. Maybe a honk, even.
CSP version 1.0 probability update :
- "Safe state", where a car would maintain a safer pace if 1st for 2 laps or more
- "Auto adjust", where a fraction of some values are added each lap until the car reaches a hotlap (or crashes), with testing on qualification mode. Could be stated by user : i want Alfa Romeo TZ2 to reach 1.52 on BridgeHampton.
- "Hot lap" state settings, where a car would maintain all its parameters once it reaches its best lap value or user's entered value.
"I'll never find time for this" update :
-"Blue lap state", with zones where a soon to be overlapped car could slow down and leave room to let the opponents pass safely without disturbing the race pace
- "Flash Headlights" for a few seconds if you overtake an opponent with contact. Also, for blue lap situations. And for Fury state.
Those are the ideas that SHOULD be "easy" to implement with the tools i have in the lua so far.
The debugging of interacting values is gonna be another story, it's just maths i suppose?
I'll make small updates on this mediafire
https://www.mediafire.com/file/ttm0o1jj6v7vmdq/AIWhisperer_v0.7.7z/file
Once debugged and tested, the new features would be uploaded here.
if you wanna create [DANGER]zones in a few clicks ingame without hurting your soul, don't forget the AiHints Editor :
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
Tip on [DANGER]zones : apply a LEFT=0.00 and RIGHT=0.00 in the editor to have [DANGER] hints with no particular effect, just to see how the behavior change in those zones with the AIwhisprer app.