Results 1 to 4 of 4

Thread: Issues qhen reading sms_stats_data.son with pcars2-stats-master by m1ndgames

  1. #1
    Kart Driver
    Join Date
    Jan 2019
    Location
    Barcelona
    Posts
    7
    Platform
    PC

    Issues qhen reading sms_stats_data.son with pcars2-stats-master by m1ndgames

    Hi,

    I have strange issues when reading my sms_stats_data.json files with filldb.pl inside pcars2-stats-master (github (dot) com/m1ndgames/pcars2-stats).

    The main issue is that it seems the "members" arrays of each session are not always complete and I can't find a pattern. Sometimes the full array is empty... Only "participants" array has actual driver data in it, but it has not the same information nor structure, and sometimes the key of each driver entry is present, sometimes it is not.

    I managed to upload correctly to my DDBB the practice laptimes, as well as the driver names, car IDs and livery IDs from the "participants" subarray when it's not available in the "members" one, but the setup each driver uses is not present in the "participants" array, so I cannot extract the "RaceStatFlags".

    Is this normal? Have any of you found this issue as well? I have read every post I've found regarding sms_stats_data and its potential issues, and don't know where else to look.

  2. #2
    WMD Member satco1066's Avatar
    Join Date
    May 2015
    Location
    Graz, Austria
    Posts
    1,950
    Platform
    PC
    never heared of that app before
    seems like an old and abandoned project by someone who writes "Beware! I didnt know any PHP and Javascript, so its hacky and ugly..."
    Sounds not amazing
    Every car could be a race car, as long as you have the balls to drive it like that !

    System ASUS B550 | CPU Ryzen 9-5900x | RAM 32GB DDR4 | GPU RTX2080ti 11GB | OS Win 10 pro | Screen Samsung KU6179 4k 49"
    Base SIMAGIC M10 | Rim TM Sparco, DimSim DIY Rim | Pedals DC-Simracing | Gearshifter VNM V1 | Button Box BBJ SimRacing 30F pro series
    HMD HP Reverb / Quest 2 | Motion Next Level Motion V3
    Devil's Core - Drivers Club ( german language )
    Closed Facebook Group: https://www.facebook.com/groups/devilscoredriversclub/

  3. #3
    Kart Driver
    Join Date
    Jan 2019
    Location
    Barcelona
    Posts
    7
    Platform
    PC
    It's the only way I have managed to get working periodic uploads from sms_stats_data.json to a database, to present a hotlaps table in my website.

    Anyway, the question is still the same, and is not regarding this app, but the sms_stats_data.json file instead. From file inspection, I find it is not consistent as not all drivers are stored in "members" subarray. Does anyone here use any solution to upload times to a website in a customized way?

  4. #4
    Kart Driver
    Join Date
    Jan 2018
    Posts
    10
    Platform
    PC
    Quote Originally Posted by satco1066 View Post
    never heared of that app before
    seems like an old and abandoned project by someone who writes "Beware! I didnt know any PHP and Javascript, so its hacky and ugly..."
    Sounds not amazing
    Yes! Old and abandoned (i just found this post by accident)

    The php code is just simple sql queries, but i had a hard time with the js hence the warning. The magic is mostly in the perl script that parses the json and pushes it into a sql database. I guess i should have documented it better, but last time i used it, it was infact working.
    I suspect the json changed and thats why it broke?!

Similar Threads

  1. pcars2 simsteering 2 assignment issues
    By moss_611 in forum Technical Help & Support (PC)
    Replies: 7
    Last Post: 21-07-2018, 15:18
  2. Thrust master TMX issues after crashing any car
    By monz in forum Project CARS on Xbox One
    Replies: 13
    Last Post: 16-08-2017, 03:45
  3. sms_stats_data.json question
    By Zincau in forum Multiplayer
    Replies: 0
    Last Post: 07-06-2017, 12:29
  4. Stats Issues when Viewing as Spectator (Map freezing + Tire Heat is 0)
    By RaceSim1 in forum XB1 - Technical Help & Support
    Replies: 2
    Last Post: 24-10-2016, 14:25
  5. Issues with game reading laps correctly
    By cababerdeen in forum General Discussion
    Replies: 0
    Last Post: 21-02-2016, 17:26

Posting Permissions

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