The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.28 (Linux)
|
data format of replay file (vdr) - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5) +--- Thread: data format of replay file (vdr) (/showthread.php?tid=1516) |
data format of replay file (vdr) - alexwillzhj - 06-20-2011 Hi, I am confused with the data format of the replay file (*.vdr), which is useful for me to get the historical data of the game. But I did not find the file structure in the website. And when I check the cpp source code, no detail commends are provided. So, may I ask if anyone could help to explain the data format of the *vdr files? Thanks~ - NaN - 06-20-2011 Quote:did not find the file structure in the websiteIt's an internal format. I don't think it was ever meant to be used outside of vdrift. The format should be clear if you look into the Serialize functions of the involved classes. Something like: Code: version_info.Save(outstream); //REPLAYVERSIONING If you are interested in certain parameters I think the driver-training branch has some advanced logging facilities, I've not looked into the code though. A Question About VDrift Replay Files - Zahra - 06-28-2011 Hi, There is a problem, In replays folder, there are some files by the name of 1.vdr. Inside of the file: there are some text commands related to the type of car and some binary codes that it seems to be related to the actions of the drivers during the game, for instance: the timing of the stop or turn to right or left or ... I want to open these binary code and convert them to meaningful value. would you please help me about that ? Best - NaN - 06-30-2011 Please read the post above yours. Use the REPLAY class to read/write vdr files. |