Skip to content

Conversation

@kimden
Copy link
Owner

@kimden kimden commented Jan 10, 2026

I only make PR because I need a convenient pipeline. Disregard this.

Agreement

By creating a pull request in stk-code, you hereby agree to dual-license your contribution as
GNU General Public License version 3 or any later version and
Mozilla Public License version 2 or any later version.

This includes your previous contribution(s) under the same name of contributor.

Keep the above statement in the pull request comment for agreement.

Nomagno and others added 30 commits March 14, 2025 00:39
Nomagno and others added 29 commits December 1, 2025 21:29
… and proper storage at the end of each race)
- There's three new parameters, pit-time-drivethrough, pit-time-tyrechange, and pit-time-refuel (which only specifies the fixed, not the variable cost of the refueling)
- These parameters are used for AI to calculate, along with the existing minimum life parameters for tyres, when it needs to pit and for how long
- The AI will only pit in the last 10% of the track, and only once per lap. If fuel is enabled, it will compute its own fuel consumption and use it to determine when it needs to pit
- Pitting is done by simply self-applying a stop penalty and becoming a no collectibles ghost kart during the pit stop period.
- The AI prefers, within reason, pitting only once for tyres and fuel instead of pitting for fuel and tyres on consecutive laps
- TODO:
    - add the auxiliary variables to control fuel usage and only pitting once per lap to the AI
    - add a new parameter for race GUI minimum tyre life which will usually be different from the AI-specific one
    - debugging
@kimden kimden closed this Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants