[Plugin] Question about InternalsPluginV05 for ISI Plugin API developer

Discussion in 'Third Party Content' started by fazerbox, Oct 29, 2013.

  1. fazerbox

    fazerbox Registered

    Joined:
    Oct 6, 2010
    Messages:
    187
    Likes Received:
    8
    In my TrackMapPlugin for rFactor2 I'm trying to derive my Plugin from InternalsPluginV05 in order to use infos stored ScreenInfoV01 structure passed to

    virtual void RenderScreenBeforeOverlays( const ScreenInfoV01 &info ){} // before rFactor overlays

    I'm able to receive calls to RenderScreenBeforeOverlays but I've seen that always:
    info.mOptionsLocation = 3 ( On track ) Even if I'm on Monitor Page, Setting Page, Garage Page etc.... and
    info.mOptionsPage = "" <Empty string>


    Only when I quit from rFactor2 I found:
    info.mOptionsLocation = 2 ( On Monitor) and
    info.mOptionsPage = "MONITORPAGE"


    Is this a bug of InternalsPluginV05 or code is not yet full implemented?

    Thanks in advance,
    Max.
     
  2. 88mphTim

    88mphTim racesimcentral.net

    Joined:
    Sep 23, 2010
    Messages:
    10,840
    Likes Received:
    314
    Asked.
     
  3. Terence Groening

    Terence Groening Registered

    Joined:
    Oct 13, 2010
    Messages:
    169
    Likes Received:
    0
    I can't duplicate this bug. I am seeing the correct results all the time (I'm looking right at the structure as it is being passed into the plugin), so I'm not really sure why you're not seeing that. What do you mean by "quit from rFactor2" - you mean leaving the track? Are you sure there is not some other issue with however you are displaying the results?
     
  4. fazerbox

    fazerbox Registered

    Joined:
    Oct 6, 2010
    Messages:
    187
    Likes Received:
    8
    Thanks Terence and Tim for the fast response :)

    I'm going to do some new tests in order to be sure I'm doing all in correct way and I'm displaying correct result.

    For "quit from rFactor2" I mean return to Windows Desktop.

    Thanks,
    Max.
     
  5. fazerbox

    fazerbox Registered

    Joined:
    Oct 6, 2010
    Messages:
    187
    Likes Received:
    8
    Ok it was a bit difficult to find this bug, because sometime it works well, sometime not. It is related to Race Settings
    Here the steps to replicate bug ( if bug it is ), with rFactor2 in Window mode
    1) From Race Settings menu set
    Practice Run Session NO
    Qualify Run Session NO
    Race Run Session YES
    2) Click to RACE Button, after track loading you are in Monitor Window
    3) Click Race and wait until Plugins are loaded
    4) Press ESC and return to Monitor Window
    Here a Call to RenderScreenBeforeOverlays( const ScreenInfoV01 &info ) is fired with
    info.mOptionsLocation = 2 ( monitor )
    info.mOptionsPage = "MONITORPAGE"
    5) Now, if I navigate to GARAGE, SETTING, etc... no other Calls to RenderScreenBeforeOverlays( const ScreenInfoV01 &info ) are fired

    Instead if I set Qualify Run Session ON, during Qualify, if I navigate in GARAGE, SETTING etc
    Calls to RenderScreenBeforeOverlays( const ScreenInfoV01 &info ) are fired and mOptionsPage is setted with good values ( RF2_MAIN_SETTINGS_IN_GAME, RF2_GARAGE1 .... )

    I hope to be helfull,
    Please let me know
    Max.
     
    Last edited by a moderator: Nov 1, 2013

Share This Page