SOLVED Receive the viewed driver in the Plugin API

Discussion in 'Wish Lists' started by Gerald Jacobson, May 13, 2014.

  1. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    It should be very useful to have the currently viewed driver

    Exemple:
    - with camera "TV cockpit", "cockpit", "nosecam", "sideman", "onboard xxx"..... -> the mID of the driver
    - with camera "track" -> the mID of the tracked driver
    - with camera fixed -> -1 for the mID
     
    Last edited by a moderator: May 13, 2014
  2. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    That is already in there. Look at UpdateGraphics. It returns the current viewed mID and mCameraType. You can also use WantsToViewVehicle to set the mID and mCameraType. You can even seek timecodes now (for replays).

    The cameratypes are like this:
    // 0 = TV cockpit
    // 1 = cockpit
    // 2 = nosecam
    // 3 = swingman
    // 4 = trackside (nearest)
    // 5 = onboard000
    // :
    // :
    // 1004 = onboard999
    // 1005+ = (currently unsupported, in the future may be able to set/get specific trackside camera)


    Maybe I don't understand your post.
     
  3. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Ooops i used only graphicInfo for setting the camera not to know the viewed driver.
    Thanks i will try.
     
  4. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,010
    Likes Received:
    1,071
    Something to be used for TV overlays maybe?
     
  5. MaD_King

    MaD_King Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,827
    Likes Received:
    611
    Yes
     
  6. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Thanks Noel Hibbard , i missed that :)

    Works perfectly
     
  7. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    If and when you get to the replay stuff I can share what I have learned about it. It took a while to get that working correctly. But it opens a lot of new possibilities for broadcasting.
     
  8. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Sure, i'm very interrested. I stopped that cause i was stuck on decrypting time event header.
     
    Last edited by a moderator: May 14, 2014

Share This Page