cemberkay Competition App v2.4.5

UPDATE CHECK
- The app checks cemberkay.com for the current required Competition App version.
- If this installation is too old, the app displays: "Please update the app."
- Old versions cannot submit Global Leaderboard laps.

Global Leaderboard version gate:
- cemberkay.com now requires Competition App v2.4.5 or newer for Global Leaderboard submissions.
- Older Competition App versions can still run locally, but their Global Leaderboard uploads are rejected by the server.
================================

OFFICIAL ASSETTO CORSA COMPETITION APP

INSTALLATION
------------
1. Custom Shaders Patch (CSP) is required.

2. Extract THIS ZIP directly into your Assetto Corsa root folder.

   Typical Steam location:
   C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\

   If Assetto Corsa is installed in another Steam Library, use that game's
   actual "assettocorsa" folder instead.

3. After extraction, confirm this folder exists:

   assettocorsa\apps\lua\CemberkayCompetition\

   It should contain:
   - CemberkayCompetition.lua
   - Config.lua
   - manifest.ini
   - icon.png

4. Launch Assetto Corsa with Custom Shaders Patch / Content Manager.

5. While driving, open the in-game Apps sidebar and select:

   cemberkay Competition App

USAGE
-----
- "Send Data" ON:
  Eligible lap times, drift scores and supported lap data can be submitted to
  cemberkay.com.

- "Send Data" OFF:
  The app does NOT upload your lap, drift, telemetry, driver-distance or
  diagnostics data. Public Event and Leaderboard information can still load.

- Penalties must be ON for lap submission. If Penalties are OFF, the app
  marks the session as not eligible and does not submit the lap or its telemetry.

- Results and telemetry: https://cemberkay.com

- No website registration is required.

LAP TIMING / VALIDITY
---------------------
- Assetto Corsa's own lap timer and lap-completed callback are the timing source.
  The app no longer depends on log.txt COUNT matching for normal lap validity.

- Circuit, Hotlap, Touge, Rally and Point-to-Point layouts use the same native
  completion flow. Official protocol-3 Circuit Events and protocol-4 P2P Events
  keep their existing Event verification and submission endpoints.

- Penalties must be ON. Clean-lap validity is tracked from Assetto Corsa while
  the lap is running. Persistent AC invalid state or a native cut count rejects
  the lap and telemetry. Brief finish-line validity flickers are ignored.

- Sector splits are optional metadata. If a mod track/CSP build reports invalid
  or inconsistent sector values, the clean AC lap is submitted without sectors
  instead of failing with an "Invalid sector time" error.

For Point-to-Point Events, use the official Event Files or an event-linked
Quick Drive preset so the correct START spawn is used.

DRIFT RESULT DELIVERY
---------------------
Drift results are saved locally before they are uploaded.

If a stage finishes and Assetto Corsa is closed immediately, an interrupted
upload remains queued locally and the app retries the same result automatically
the next time it is running with "Send Data" ON.

This avoids losing a finished Drift result just because the game was exited
before the HTTP request completed.

OFFICIAL EVENTS / EVENT RESULTS
--------------------------------
https://cemberkay.com/competition/events

Open an Event to view its details and leaderboard/results.

GLOBAL LEADERBOARD
------------------
https://cemberkay.com/competition/leaderboard

TELEMETRY
---------
https://cemberkay.com/competition/telemetry

MAIN WEBSITE
------------
https://cemberkay.com

EVENT FILES
-----------
Official Events can include downloadable Event Files. Download them from the
Event page and follow the README included with that Event ZIP.

NOTES
-----
- Keep the Competition App up to date when a newer version is published.
- Do not modify the app files if you want official Event verification to work
  as intended.
- Internet access is required for live Events, Leaderboards and submissions.
- If "Send Data" is OFF, a locally queued Drift result is kept but is not sent
  until uploads are enabled again.

cemberkay
https://cemberkay.com
