Results 1 to 3 of 3

Thread: sms_stats addon configuration

  1. #1
    Kart Driver
    Join Date
    Jul 2019
    Posts
    10
    Platform
    PC

    sms_stats addon configuration

    Hello, A I am using sms_stats addon in order to generate a log file and publish data in a website. This is data for a race in my log:

    Code:
    "stages" : {
              "race1" : {
                "end_time" : 1563725607,
                "events" : {},
                "results" : [
                  {
                    "attributes" : {
                      "FastestLapTime" : 145925,
                      "Lap" : 5,
                      "RacePosition" : 1,
                      "State" : "Finished",
                      "TotalTime" : 832929,
                      "VehicleId" : 1161219858
                    },
                    "is_player" : true,
                    "name" : "player1",
                    "participantid" : 1,
                    "refid" : 46721,
                    "time" : 1563725607
                  },
                  {
                    "attributes" : {
                      "FastestLapTime" : 149984,
                      "Lap" : 5,
                      "RacePosition" : 2,
                      "State" : "Finished",
                      "TotalTime" : 842783,
                      "VehicleId" : 1161219858
                    },
                    "is_player" : true,
                    "name" : "player2",
                    "participantid" : 0,
                    "refid" : 63360,
                    "time" : 1563725607
                  }
                ],
                "start_time" : 1563724753
              }
    As you can see, log only saves total laps, position, fastest lap and total time. I have seen other logs in simresults.net which save more data: time per lap, time per sectors, consistency, led laps, number of pit stops, position per lap, incidents, cut tracks, etc.

    How can I configure logs to save all data? This is actually my config file (sms_stats_default_config.json) for this addon:

    Code:
    // Config version
    version : 2
    
    // Default configuration
    config : {
    
    	// Length limit for the history. Oldest sessions will be removed from the history.
    	// Use 0 to completely disable session history tracking.
    	// Use negative number for infinite history.
    	"history_length" : 50,
    
    	// Should the history track session events?
    	// If enabled, these participant event types will be tracked per stage:
    	// Lap, State, Impact, CutTrackStart, CutTrackEnd
    	"track_events" : true,
    
    	// Should the history track session results?
    	// If enabled, the Results participant events will be tracked per stage.
    	"track_results" : true,
    }

  2. #2
    Superkart Pilot
    Join Date
    May 2017
    Posts
    219
    Platform
    PC
    There are some minor errors within original files. Use the files from this thread instead: http://forum.projectcarsgame.com/sho...FIXED!-2-25-18
    The following user likes this Post: Doberk


  3. #3
    Kart Driver
    Join Date
    Jul 2019
    Posts
    10
    Platform
    PC
    Quote Originally Posted by Racing4Life View Post
    There are some minor errors within original files. Use the files from this thread instead:
    Thank you, I am going to take a look. Anyway I have found the problem, I was editing the wrong file. There is a sample config file in lua folder, and I was editing this instead of the one in lua_config folder.

Similar Threads

  1. Dedicated server sms_stats fix
    By Brado23 in forum Multiplayer
    Replies: 5
    Last Post: 30-11-2017, 14:37
  2. sms_stats CollisionMagnitude
    By Krampus in forum Multiplayer
    Replies: 1
    Last Post: 16-09-2017, 12:59
  3. Thrustmaster F1 addon menu buttons.
    By Rossi46 (NL) in forum PC - Technical Help & Support
    Replies: 2
    Last Post: 07-10-2016, 18:11
  4. so when will we see any type of WTCC / BTCC addon then??
    By tyl3r99 in forum General Discussion
    Replies: 4
    Last Post: 14-12-2015, 14:28
  5. Lua Addon Scripts Discussion
    By erickgoldner in forum Multiplayer
    Replies: 8
    Last Post: 13-10-2015, 08:02

Posting Permissions

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