[REL] rFactor2 Log Analyzer ver. 2. With offline and league Championship Manager

Hi Nibo,

Is it possible to include applied race penalties in the r2la JSONP report output?

At the moment /report/get_report_jsonp?file_name=<xml> exposes most of the useful race-result data, such as positions, gaps, lap counts, fastest laps, qualifying times, and DNF/DNS via time/ret.

However, penalties that are visible in the normal r2la report table do not appear to be included in the JSONP payload. For example, the rendered report can show a driver with a +10s penalty badge, but the corresponding table_raceResults row in JSONP does not seem to include a penalty field.

Would it be possible to add something like this to each affected table_raceResults row?

Code:
{
  "penalty": "+10s",
  "penalty_seconds": 10
}

Or, if multiple penalties can apply:

Code:
"penalties": [
  {
    "label": "+10s",
    "seconds": 10,
    "reason": ""
  }
]

The reason I’m asking is that the JSONP endpoint is much easier and safer to consume externally than parsing the rendered HTML report. If there’s already another JSON/JSONP endpoint that exposes penalty data, please let me know.

Thanks.
 
Back
Top