The speeds of my car after boosting seems completely broken in the current build. This is one example where my car fixed all the damage in the previous two turns and then boosted. No terrain was hit but the final speed is 5 ?? why ?
If what I suspect is correct, you will have to look at the previous rounds where max allowed speed was adjusted.
What I know can happen (for example) is:
you hit stuff , and max allowed is adjusted downward
then you boost
you get lucky, and you hit no damage while boosting
boost counter reaches zero, and you drop back to speed 9 (constant MAXIMUM_SPEED)
now, your MAX allowed speed is still actually whatever it was set to previously, but it will only kick in if you try to accelerate (I think).
You can look at CarGamePlayer - most of the speed/damage related problems are in there (afaik)
As well as this being a weird bug, isnβt the speed of 5 only the initial speed - why is it reachable at all except at the start? Or is it now one of the speed states for round 3?
speed 5 is not reachable by accelerating but it is part of the speed limits:
damage states:
damage: max speed:
0 - 15
1 - 9
2 - 8
3 - 6
4 - 5
5 - 3
6 - 0
damage is capped at 6.
so if you accelerate while having 4 damage you end up at speed 5.
Hi, also seem to be picking up a similar bug for when my bot accelerates. See below - no damage, but unable to accelerate past a speed of 8 (even though I do move the 9 blocks as one would expect)
Iβve found the cause of this bug and I submitted a PR two days ago with a broken test in one commit and a fix in the next.
The problem is that in the current engine the maximum speed isnβt updated after fixing.
Itβs only updated when interacting with other things.
So. If you fix and then hit something your maximum speed will be correct, but it wont be correct immediately after fixing.
Documentation states damage is capped at 5 and specifically states:
Damage of 5 equals in a max speed of 0
Damage of 4 equals in a max speed of 3
Damage of 3 equals in a max speed of 6
Damage of 2 equals in a max speed of 8
Damage of 1 equals in a max speed of 9
Damage of 0 equals in a max speed of 15
Meaning Speed state 5 should only be the initial state.
We do have a code freeze, so if this is inacurate I will adjust accordingly,