In this update1
Full notes
Full City-Racing update
Read the full published notes in a cleaner layout. The original post stays linked below.
What changed
- Performance
- Events
City-Racing changes
How CRAILearningSystem Works
Purpose:
CRAILearningSystem is an adaptive AI system for racing games. It enables AI cars to learn the optimal speed for each waypoint on the track by analyzing their own driving performance in real time.
Key Mechanisms:
Waypoint-Based Learning:
The system tracks each waypoint on the racing track.
For every waypoint, it stores learning data: optimal speed, how well the car passed the waypoint, if it overshot, understeered, or was perfect, and more.
Performance Monitoring:
As the AI car drives, the script monitors how close the car passes to the center of each waypoint.
It detects if the car overshoots (goes too wide), understeers, or passes perfectly.
Adaptive Speed Adjustment:
If the car consistently overshoots or understeers at a waypoint, the system reduces the target speed for that waypoint.
If the car passes perfectly, the system increases the target speed for that waypoint (up to a maximum).
This process is repeated every lap, so the AI gets better with experience.
Corner Detection:
The system detects sharp corners and applies more aggressive learning to those waypoints, ensuring the AI slows down more for difficult turns.
Immediate Feedback (Optional):
With the "immediateSpeedApplication" option, the AI can apply learned speeds right away, not just on the next lap.
Data-Driven:
All adjustments are based on real driving data, not just static track analysis.
---
Why CRAILearningSystem is Good
Self-Improving:
The AI gets better every lap, learning from its mistakes and successes, just like a human driver.
Track-Aware:
It adapts to any track layout, including custom or procedurally generated tracks, because it learns from actual driving, not pre-baked data.
Handles Corners Intelligently:
By detecting sharp corners and applying extra learning, it avoids common AI pitfalls like crashing or going off-track on tight turns.
Realistic and Challenging AI:
The AI becomes more competitive and realistic, providing a better challenge for players.
No Manual Tuning Needed:
You don’t have to hand-tune speeds for every waypoint—the system figures it out automatically.
Debugging and Visualization:
Built-in debug options help you see how the AI is learning and performing.
Optimized the CRAILearningSystem class!
Summary:
CRAILearningSystem is a modern, adaptive AI system that makes your racing AI smarter, more realistic, and able to handle any track by learning from its own driving. This results in a more dynamic and challenging racing experience for players.
Source
Changelog.gg summarizes and formats this update. How we read updates.
