Results 1 to 4 of 4

Thread: Project Cars Hotlap Statistics Script for Dedicated Servers

  1. #1
    Kart Driver
    Join Date
    Jan 2018
    Posts
    9
    Platform
    PC

    Post Project Cars Hotlap Statistics Script for Dedicated Servers

    Hi!
    im hosting a server that runs Nordschleife training 24/7 with all cars allowed, and i wanted to keep track on the best laps driven for each racer with any car used.
    unfortunately there was no such a tool, so out of need, i created it...

    lets start with the demo: http://stats.m1nd.io/

    the script uses the servers lua stats-script logfile, parses it, and writes the valid laps into a sql database.
    a php script is used to read the (sorted & grouped) data and spits out table, which is then filtered/sorted with a bit js.
    then i wipped it with css to make it less ugly (but failed).

    for some it might me interesting to know that the pcars2 api didnt really change, so i will create a pcars2 version fork when this version (and the pcars2 server) is somewhat acceptable...

    github: https://github.com/m1ndgames/pcars-stats (merge requests welcome)

    Planned:
    * add support for race-mode (currently only training sessions are read from the stats file)
    * more (and better positioned) filters
    * driver status page with fancy graphs
    * create icons for driving aides (not shipped with git as the license collides)
    * refactor mess and 'make it nice'

    Known Bugs:
    * 'Real Driving Aides' button doesent filter the drivers best lap with a car yet. (i wanted to rewrite that in js but failed)
    * you can click the icons to show the meaning, but its positioned wrongly (in the top right corner)
    Last edited by m1ndgames; 19-01-2018 at 22:47.
    The following user likes this Post: Laserbeak43


  2. #2
    Kart Driver
    Join Date
    May 2015
    Posts
    90
    Platform
    PC
    Once I figure out how to use the Lua scripts, I will try it
    PSN Laserbeak43
    Steam Laserbeak43

  3. #3
    Kart Driver
    Join Date
    Jan 2018
    Posts
    9
    Platform
    PC
    Hey, i updated it for pcars2: https://stats.m1nd.io/

    Servername is !Hotlap! ...

  4. #4
    Kart Driver
    Join Date
    May 2015
    Posts
    70
    Platform
    PC
    Hello,
    how to install your program?
    Where do the files "filldb.pl" and "generatestats.pl"?

    Thank you in advance for your answers and your work.
    Excuse me for my bad English, I use a translator.

Similar Threads

  1. Project CARS 2 - Knockhill - BMW E90 - Hotlap + Setup Guide
    By Zinex in forum Screenshots & Videos
    Replies: 0
    Last Post: 12-01-2018, 21:53
  2. Is there a Lua Script list
    By Blackfire49 in forum Multiplayer
    Replies: 2
    Last Post: 16-02-2016, 06:22
  3. Replies: 3
    Last Post: 29-01-2016, 20:45
  4. Replies: 5
    Last Post: 14-01-2016, 15:29
  5. Project Nordschleife. Combined hotlap with all of the cars.
    By Juha Kiili in forum Driver Network Community Events & Leaderboards
    Replies: 9
    Last Post: 06-06-2015, 14:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •