Open Obsidien opened 5 years ago
There is no concept of AI level (for now) in the game. The AI vehicles are quite dumb: they follow waypoints. What can happen is that they "step" on each others, and so if you manage to avoid that you can reach the head of the pack and remains there.
In short: the AI definitely needs work, it's not really intelligent as of now.
So, having a real AI might be better, but honestly the game can be fun as it is, so I’d not put that in the priorities (don’t overthink things). But, it’s not the main point of this bug (even if changing completely the AI might solve this bug).
The point of this bug is that at the first championship played after the game is launched, the cars follow quite properly waypoints, and keep being in the correct trajectory (making winning with 2cv in Let it snow really challenging for example); while at the next championship played and the others, cars take large curves around this waypoints (I imagine), making them quite dumb (I can take one turn to half of the cars with my 2cv).
It would be great to understand that irregularity of behavior, and make the first championship played as difficult as the others (if possible, something between the two “levels”).
one thing that could improve the waypoint following would be having the opponents find the shortest path while trying to avoid the obstacles more, instead of just driving straight to it. making them look for more pathes and then randomly selecting these with chances might help implement difficulties for the pathfinding. maybe secondary waypoints could help?
as for the waypoints themselves, you can make it so the waypoints have a greater range for triggering (but with such range being set according to the map width, location and other stuff. maybe it is best to set manually). for reference, we can look at Midnight Club games for example
I regularly decide to play a championship, notably the first one, with Let it Snow as first race. Sometimes on this race, the AIs seems quite difficult to beat with my 2cv, sometimes I easily beat all of them, because they are doing many curves from one side of the road to the other.
Having an AI with such level disparity from a run to another on the same map is a bit odd. But, one thing that I find even worse, is that the first race played when the game is launched (properly stopped, put out of memory, and loaded again) is always a hard one. Yes, always.
I didn’t check the code to try to explain that, but I think the AIs level is randomly decided (?) and that there’s a bug on that at game start. Is that possible?