[SOLVED] ServerPlugin: Methode called when driver leaves the track/game

Discussion in 'Plugins' started by MerlinC, Jan 11, 2015.

  1. MerlinC

    MerlinC Registered

    Joined:
    Nov 3, 2012
    Messages:
    282
    Likes Received:
    1
    Does anyone know what API method is called by the dedicated server when a driver leaves a track?
     
    Last edited by a moderator: Jan 11, 2015
  2. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    7,354
    Likes Received:
    3,060
    None. If you keep a list of drivers you can work out who's joined and left from that on each scoring update.
     
  3. MerlinC

    MerlinC Registered

    Joined:
    Nov 3, 2012
    Messages:
    282
    Likes Received:
    1
    After spending again some hours - and looking for the failure I'm making - I just did a quick and very simple API function call logger which allows to analyse in a spreadsheet whether functions are being called or not and how frequently they are called.

    It's really easy so don't expect too much - but was quite annoying typing ;-)

    Did spend some time to tweak the compiler/linker settings to have an Visual Studio project which really compiles and links Win32 and x64 versions in debug and release mode. There are still two warnings but no issue at all.

    If you want to use just the DLL's feel free. DLL's and source code available at Git: https://github.com/MerlinCooper/rF2_API_Logger
     
  4. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    28
    You could monitor mResultsStream for the join part messages but like Lazza said, you could just track the drivers on your own via UpdateScoring.
     

Share This Page