The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.28 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.28 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.28 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.28 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
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 website
It'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
    _SERIALIZE_(s, track);
    _SERIALIZE_(s, cartype);
    _SERIALIZE_(s, carpaint);
    _SERIALIZE_(s, carfile);
    _SERIALIZE_(s, carcolor_r);
    _SERIALIZE_(s, carcolor_g);
    _SERIALIZE_(s, carcolor_b);
    s.Serialize("inputframes", newinputframes);//std::vector <INPUTFRAME> 90 fps
    s.Serialize("stateframes", newstateframes);//std::vector <STATEFRAME> 1 fps
Look into REPLAY::RecordFrame(const std::vector <float> & inputs, CAR & car).

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.