Rick Jansen
Registered
Hi, Currently I'm building my own plugin based on the Example plugin where it writes telemetry to a text file. I've added some extra data to write to the text like current time. I'm able to build the plugin, release x64, and it works with rFactor2 (you can see it in the plugin overview and the text file is been created).
Still I've got a few issues and not sure where it goes wrong.
1) Sometimes it isn't getting the telemetry data at all
2) It only gets the first 6 seconds of data then it stops writing. It seems not to be an issue with writing to the text file as I've done the writing every frame or each 10th frame.
Start:
-STARTUP- (version 11.108)
--STARTSESSION--
CurrentTime= 2017-05-26.11:25:24
Lap= 0
Vehicle= Formula ISI 2012 #11
SpeedLimiter= 0
Pos= (-232.191,19.859,376.344)
DT= 0.0100 ET= 1.0000
Gear= 0
RPM= 0.0
RevLimit= 18000.0
Water= 63.5 Oil=63.5
Fuel= -536870912
Speed= 0.0 KPH
Speed= 0.0 MPH
Pitch= -0.5 deg, Roll= -0.2 deg
End:
CurrentTime= 2017-05-26.11:25:30
Lap= 0
Vehicle= Formula ISI 2012 #11
SpeedLimiter= 1
Pos= (-235.517,19.869,379.679)
DT= 0.0100 ET= 7.0125
Gear= 2
RPM= 2807.2
RevLimit= 18000.0
Water= 71.7 Oil=73.7
Fuel= 536870912
Speed= 21.2 KPH
Speed= 13.1 MPH
Pitch= -0.3 deg, Roll= -0.5 deg
I hope you can help me out.
Still I've got a few issues and not sure where it goes wrong.
1) Sometimes it isn't getting the telemetry data at all
2) It only gets the first 6 seconds of data then it stops writing. It seems not to be an issue with writing to the text file as I've done the writing every frame or each 10th frame.
Start:
-STARTUP- (version 11.108)
--STARTSESSION--
CurrentTime= 2017-05-26.11:25:24
Lap= 0
Vehicle= Formula ISI 2012 #11
SpeedLimiter= 0
Pos= (-232.191,19.859,376.344)
DT= 0.0100 ET= 1.0000
Gear= 0
RPM= 0.0
RevLimit= 18000.0
Water= 63.5 Oil=63.5
Fuel= -536870912
Speed= 0.0 KPH
Speed= 0.0 MPH
Pitch= -0.5 deg, Roll= -0.2 deg
End:
CurrentTime= 2017-05-26.11:25:30
Lap= 0
Vehicle= Formula ISI 2012 #11
SpeedLimiter= 1
Pos= (-235.517,19.869,379.679)
DT= 0.0100 ET= 7.0125
Gear= 2
RPM= 2807.2
RevLimit= 18000.0
Water= 71.7 Oil=73.7
Fuel= 536870912
Speed= 21.2 KPH
Speed= 13.1 MPH
Pitch= -0.3 deg, Roll= -0.5 deg
I hope you can help me out.