There is a command line option in the latest test patches to do an hlvc check and export a RAF file at 10 Hz.
I'm just providing this information so you can use it as it is, if you want to. I'm sorry but I don't have time to start adding options, such as allowing this for non-hotlap replays and changing the output frequency and whatever else you might think of. I just have too much to do before patch Z so I'll just tell you how it works right now, in case it is of any use to you.
You run LFS with a command line like this :
LFS /hlvc=replay_name
This will run a hotlap SPR replay_name.spr and export a RAF replay_name.raf to your raf folder, if the replay is validated correctly.
The return code from the exe will be one of :
HLVC_UNKNOWN, // 0 - unknown return value
HLVC_OK, // 1 - ok
HLVC_NOT_FOUND, // 2 - replay file not found
HLVC_FUTURE, // 3 - replay from later version
HLVC_OBSOLETE, // 4 - replay from obsolete version
HLVC_NOT_HOTLAP, // 5 - replay file not marked as a hotlap
HLVC_NOT_DEMO, // 6 - LFS not unlocked and track not available in demo
HLVC_NO_TRACK, // 7 - could not load track
HLVC_NO_HLVC, // 8 - no HLVC best lap in header
HLVC_CORRUPTED, // 9 - corrupted or invalid file
HLVC_OOS, // 10 - replay went OOS - probably hacked LFS
HLVC_NO_MATCH, // 11 - real lap time does not match lap time in SPR header
HLVC_FAIL, // 12 - HLVC violation - could be that HLVC rules changed
HLVC_END, // 13 - replay ended before best lap was finished
EDIT :
A bug in Y22 (discussed below) causes LFS to crash if you use the /hlvc command when antialiasing is enabled.
To use /hlvc, either disable antialiasing in graphics options or edit the cfg.txt and sent Antialiasing to zero.