I did'nt find a track with AI made right, so here is how High Stakes AI should be done. I hope this helps make better AI.
For understanding look on the picture.
Speed - is maximum AI speed in m/s for Champion + MADLAND difficulty. Each difficulty, AI ( Ace, Gotcha, Scream - fastest, Sleepy and Bully - slowest ), weather and surface automaticaly lowers the limit.
Weather + snow surface reduce speed limit a lot. For acceleration a i recommend use 111 ( it's 400km/h and easy to find ), for braking use doubled numbers reduced by 2 ( 60,60,58,58,56,56,54,54, ... ), it works best. AI cannot slower faster, it's very rare when stronger braking works better.
AI lines- lines 80,96,112 and 128 always exist
- lines 48, 64, 144 and 160 exist on some wider tracks sections
- lines 16, 32, 176 and 192 are extremely rare and have problematic use
You can test it, if line exist. For example, on section where u want to know, if line 144 exist, set around this section AI speed to 15 m/s, line to 128 and Float numbers to -0,1 then watch where AI drive. After that switch line to 144, and watch it again. IF AI drive same position or driving in waves, line did'nt exist. Same for left side but with 0,1 float numbers. You can't add AI line. Right now only way, to add line, is replace block with another block where line exist and remodel it.
Float numbers - practicly Vroad Node offset. It's distance ( in meters ) from Vroad Node to point, where you want AI to go, negative numbers left side and positive numbers right side.
AI lines have limited width ( 96 and less - negative numbers, 112 and more - positive )
If line width is 4, float numbers are
- 96/112 is for 0,1 to 4
- 80/128 is for 4,1 to 7,9
- 64/144 is for 8-12
- 48/160 is for 12,1-15,9
- 32/176 is for 16-20
- 16/180 is for 20,1-23,9
If its 5
- 96/112 is for 0,1 to 5
- 80/128 is for 5,1 to 9,9
...
Thanks to JimDs T3ED update, its possible to change AI line width, but i recommend set AI line width to road width. Traffics drive on middle of AI lines.
AI lines and Float numbers are bouned, but AI lines are priority for AI !If u set Float number outside of AI line width, opponents will drive on the defined AI line, but ignore float numbers.VRoad Edge - dark purple lines, its limit for AI ( opponenst, trafics and cops ), AI driving between them and refuse go outside.
Cops - they are ignore speed limit, float numbers an AI lines. Cops are controlled by Vroad nodes line and VRoad edge.
IMPORTANTAI can't drift or slide like player, they need use brakes before turning. For this reason, opponents will never be fast as player, but if you are not like EAOAgent, they can be competitive.Before testing, you need put all float numbers 2 Vroad nodes sooner than u want ( make backup ), because AI reacts too late. If you did'nt do this, AI may turn too late or crash. It works on 90% cases.TRACK TESTFirst lap around first 8 blocks AI ignore float numbers and drive only on defined AI lines !
I recomend test track with F1 and CLK-GTR ( what works for F1 may not work wor CLK-GTR ), Champion difficulty and Madland cheat for proper speed limit. Also you need test the track with SLK 230, PRO diffiulty, weather set ON and AI can't be Ace, Gotha or Scream ( they are the winnig AI and drive better than others ). Pro diffiulty with weather and slow AI may crash where Champion won't. This will show 90% problems.
Sorry for the grammar, I've never studied English. This is my games/movies/translator English:)