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.
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?
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.
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.