Yellow Flag issues

miltec

Hello All,
Could someone shed some light on the conditions that dictate when a Yellow flag is shown?
They don't show up on replays from our server, but after an incident in our last league race we need to know if it happened under yellow flags or not? How can we tell?

Cheers
 
could you check the yellow lap information in the race xml file under the userdata\results folder.. there you will find the accident information too, so you can see if this happend after/during/before the yellow flag.
 
You must look to something like this

Code:
<Race>
<DateTime>1347343268</DateTime>
<TimeString>2012/09/11 03:01:08</TimeString>
<Laps>14</Laps>
<Minutes>60</Minutes>
<Stream>
[B]<Score et="69.5">Yellow flag state 0->1</Score>
<Score et="238.2">Yellow flag state 1->2</Score>[/B]
 
The flag was fired manually using the console or by the game itself ?
 
By the game it's self, one car had a spin into a wall, a few seconds ahead of a pair of cars, the second of the pair drove into the stricken car.
 
Oh, probably not a full course yellow then.. no, local yellow flags per sector are not stored in the session log :/
 
I'm not aware of anything already available at this moment.

It could be done with a custom InternalsPlugin. The ScoringInfoV2 structure has information about local sector yellow flags:
signed char mSectorFlag[3]; // whether there are any local yellows at the moment in each sector (not sure if sector 0 is first or last, so test)

If you get recording that value, it is a good idea to also save the status of mGamePhase and mYellowFlagState, as this variable will inform you about full course yellows too.

To be able to cross this information with the results xml file, you need to record these values and associate them to the session elapsed time. I can't confirm if this value is already set at the mCurrentET member of that ScoringInfoV2 struct.
 

Back
Top