Hi GL,
That's pretty close to what we were looking at. Your config file does break some parsing rules for .ini files, so heres a slightly modified version that makes the following changes:
1. The race series has a name
2. The races in that sequence are linked via the "series =" line with their sequence in the series indicated by the "sequence =" line. This way the races are tied to a series
3. Some extra points given for things like fatsest lap, top qualifier, most improved grid position
4. Add in default handicaps (mass:irest) and player specific handicaps (we modify these based on results, so might need to allow for adding handicaps in points system)
Lastly we should make sure that the system is flexible enough to allow for extra settings like driving aids allowed, registered drivers only etc.
<?php
[points]
name = "poinType1"
1 = 20
2 = 18
3 = 16
...
RelativeToPlayer = true;
FastestLap = 1
PolePosition = 1
MostImprovedGrid = 2
[series]
name="champ1"
title = "First championship";
points = "poinType1";
HandicapDefault = "20:0";
SaveReplays = yes
MailResults = krayy0@gmail.com
[race]
series="champ1"
sequence=1
date = dd/mm/yyyy;
Time = hh:mm;
Car = XFG+XRG;
Track = SO6;
qualifyTime = 0; // in minute
// qualify = no; <- specifying qualify time overrides
Laps = 10
HandicapUsers = "@krayy:20:0,4aged:30:0";
Allowresets = yes
[race]
series="champ1"
sequence=2
date = dd/mm/yyyy;
Time = hh:mm;
qualifyTime = 30; // in minute
Car = RB4;
Track = SO1;
points = "poinType2"; // override championship point
Laps = 20
HandicapUsers = "@krayy:40:0,4aged:20:0";
Allowresets = no
?>