[REL] Live timing

Discussion in 'Other' started by Gerald Jacobson, Jul 31, 2014.

  1. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    New Version Available
    - Fix a bug when there was IA befoe Player in ranking

    - Component Updated: GRLiveTiming.php & GRLiveTiming-json.php

    IMPORTANT: Do not have the plugin running in the dedicated server and in the client (Seems that in this case the flag identifying the AI, is different from the client and the server - i think this can explain why sometimes you seems to have a driver who disepear and re-appear.
     
  2. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    New Version Available
    - Fix bug in the java server after running a long time (driver diseppear/reappear of the list)
     
  3. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    New Version Available
    - Add the possibility to persist each lap

    Component updated:
    - New MySQL table script: grlv_persisted_lap.sql
    - Updated rF2 plugin : GRLiveTimingPlugin.dll & GRLiveTimingPlugin_x64.dll
    - Udate Java Server : GRLiveTimingServer.jar & GRLiveTimingServer.properties

    To activate the feature, set "Persist.Laps=1" in the java server properties

    NOTE: There is no HMI (php page) to consul this table. This feature is mainly intended for League admin, so they will use data in this new table to query it as they need.
     
  4. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    Second version for today

    New Version Available
    - Add lap distance, world x y and z position in the session timing table

    Component updated:
    - Update MySQL table script: grlv_session_timing.sql
    - Update rF2 plugin : GRLiveTimingPlugin.dll & GRLiveTimingPlugin_x64.dll
    - Update Java Server : GRLiveTimingServer.jar
    - Update JSON : GRLiveTiming-json.php (to include those 4 values)

    If you have the live timing already installed, you can add the new fields using
    Code:
    ALTER TABLE  `grlv_session_timing` ADD  `lapDist` double NOT NULL DEFAULT '0';
    ALTER TABLE  `grlv_session_timing` ADD  `pos_x` double NOT NULL DEFAULT '0';
    ALTER TABLE  `grlv_session_timing` ADD  `pos_y` double NOT NULL DEFAULT '0';
    ALTER TABLE  `grlv_session_timing` ADD  `pos_z` double NOT NULL DEFAULT '0';
    
     
    Last edited by a moderator: Sep 19, 2014
  5. Jeepy

    Jeepy Registered

    Joined:
    Dec 25, 2011
    Messages:
    97
    Likes Received:
    0
    Hi Gerald
    Great job you're doing as always.
    Just something I noticed. There are 3 sectors in the table: S1, S2 and S3. The problem is that S3 does not correspond to the sector 3 timing but to the complete lap.
    S3 should only show the time of the sector 3.

    Pour être plus clair, le temps indiqué dans la colonne S3 correspond au temps du tour complet alors qu'il devrait juste donner le temps du secteur 3. Je sais que le plugin rF2 ne donne pas le temps S3 directement, il faut le calculer par rapport aux 2 autres secteurs. BIK3R avait déjà ce souci avec son live timing, c'est pour ça que je le sais ;)
     
  6. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    I take the S1 S2 and S3 for rF2 and it is the laptime at the split.

    But i can update the php queries to show only sector time
     
  7. Jeepy

    Jeepy Registered

    Joined:
    Dec 25, 2011
    Messages:
    97
    Likes Received:
    0
    Well, in real racing it is as I described. See picture attached.
    It's also much easier to compare the sectors with the other racers.

    View attachment 14300
     
  8. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    I will add an configurable parameter to allow the two way
     
  9. Jimmi Allison

    Jimmi Allison Member Staff Member

    Joined:
    Apr 2, 2011
    Messages:
    363
    Likes Received:
    253
    We have issues with the liveview is blinking - i´ve shared a video, not sure if you have seen it?
    This is a known bug right?
     
  10. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    Normally, it was fixed one of the the last version.
    You had the lastest version ? Plugin & Java server? -> (at lest version of my post #22)
     
    Last edited by a moderator: Sep 29, 2014
  11. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    28
    I don't think we were current but we are now and I am not seeing the flashing anymore.

    Now another question... When mapping the categories does it go like this?:
    [<vehicleClass>]
    category=<WhatEverYouWant>
     
  12. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    Yes. But if you ask, it mean it does not work ? :)
     
  13. WiZPER

    WiZPER Member

    Joined:
    Oct 5, 2010
    Messages:
    1,510
    Likes Received:
    178
    Thanks for yet another great plugin, Gerald. I was wondering if it would be possible to add a "Last Pitstop (Lap)" og "Current Stint (Laps)" ?
     
  14. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    28
    Gerald, thanks for adding lapDist but I forgot this value was in meters. It isn't all that helpful without knowing the length of the track. So could you store the lapDist as a decimal, 0.0 being the start of the lap and 1.0 being the end? Or maybe it would be better to just throw the track length in grlv_session_info and I can calculate it on my own.
     
  15. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    28
    Also, I am guessing your car number logic assumes teams are named like this. "Team Name #100". We name our teams like this "#100 Team Name". So when it parses for the number it results in "100 T". Could you change the logic to split on the space so it doesn't pick up the "T"? Otherwise I am going to need to make a bunch on entries in the INI file to map them all.
     
  16. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    28
    Man... I have a bunch of requests. Hahaha. Could we add the speed to the live timing and also could you create another column that does something like this abs(mPathLateral/mTrackEdge). This should produce a decimal that indicates when a car has driven off track. 0 being dead center of the track and 1.0 being right on the left or right edge of the track and anything over 1.0 means the car is past the edge. I can then highlight a car if this value goes seems to be off the track.
     
  17. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    Ok, will work on it this week-end
     
  18. WiZPER

    WiZPER Member

    Joined:
    Oct 5, 2010
    Messages:
    1,510
    Likes Received:
    178
    Also, could we get it to show "Rain %" instead of "Humidity", which is not really implemented yet, please ?
     
  19. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    The rain intensity is already in the database (as well as the cloudiness but it it always equals to 0 - data not updated by plugin API - waiting a fix)
     
  20. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    10
    New Version Available

    Component updated:
    • rF2 Plugin -> v1.9
      • GRLiveTimingPlugin.dll
      • GRLiveTimingPlugin_x64.dll
    • Java Server
      • GRLiveTimingServer.jar
    • Web site updated
      • GRLiveTiming.php -> v1.8
      • GRLiveTiming-json.php -> v1.9
    • Database updated :
      • grlv_session_info.sql
      • grlv_session_timing.sql
    Change Log:
    - fix a bug when retrieving car number from team named like "#99 Team Name"
    - Track distance added in grlv_session_info
    - "lapDistPct" (integer from 0 to 100) added in the GRLiveTiming-json.php
    - new "Dist" table column added in GRLiveTiming.php to display this percentage
    - "speed" added in grlv_session_timing (in m/s)
    - "pathOffset" added in grlv_session_timing (0 mean center path, 1 mean in the track edge, >1 mean off road -- relative to car center)
    - "raining" (integer from 0 to 100) added in the GRLiveTiming-json.php
    - new info "Raining: x%" added in GRLiveTiming.php to display the current raining intensity

    NOTE: if you have already the previous version installed, you can update the database using
    Code:
    ALTER TABLE  `grlv_session_info` ADD  `mLapDist` double NOT NULL DEFAULT  '1';
    ALTER TABLE  `grlv_session_timing` ADD  `speed` double NOT NULL DEFAULT '0';
    ALTER TABLE  `grlv_session_timing` ADD  `pathOffset` double NOT NULL DEFAULT '0';
    
     

Share This Page