Page 1 of 1
Battlefield 2 Recorder File Format
Posted: 2013-01-10 17:14
by wuschel
Hello,
I was wondering what the format of the BF2 Recorder File is. Binary? Some sort of XML derivative? Are there any libraries to read a game round data set in except for the BF2 game software?
If one had access to the files, one could make some nice tactical replays and interesting data mining.
I could not check it out, for I do not have BF2/PR installed right now - still need to buy a new key and then getting my system (Lenovo X61, 1024*768 XGA with Intel X3100) to run it.
Cheers!
Re: Battlefield 2 Recorder File Format
Posted: 2013-01-10 18:07
by CTRifle
Use a program called Battledirector, it takes the bf format and converts it to .avi , you can explore the game ect getting angles
Battlefield 2 | Files | The Sir. Community - BF2/BF2142 BattleDirector v1. | Miscellaneous | Tools and Utilities | Game Front. Idk if that one is the most up to date or not, look
On google for tuts
Re: Battlefield 2 Recorder File Format
Posted: 2013-01-11 00:24
by wuschel
Thanks for the information. I should have asked in a more precise way: I wonder if it is possible to parse the file with an external program - e.g. like a browser parses a HTML page - to generate number based statistics.
Cheers!
Posted: 2013-01-11 21:41
by BloodyDeed
There are ways to get informations like map and server afaik.
But I don't know exactly how to get them.
Re: Battlefield 2 Recorder File Format
Posted: 2013-01-12 00:08
by AncientMan
.bf2demo files are zlib compressed, so just uncompress them, then you've got the binary file there ready for parsing. There's a bunch of stuff in the header like server name, map name, map list, players, etc. Then there's the actual data about what's going on. Don't know how it's formatted, but I'd assume it'd be something like the player id, their position, their rotation, their stance, if they're firing, etc etc... Have fun figuring it out

Re: Battlefield 2 Recorder File Format
Posted: 2013-01-12 11:28
by wuschel
Thanks!
I will have a look at data, although I have the feeling that AncientMan is right: The data will be somehow connected with the engine for playback purposes and thus be coded in some sort of quixotic format.. (:
Re: Battlefield 2 Recorder File Format
Posted: 2013-07-17 13:41
by pheanex
Any updates on the file format wuschel?
@ancientman how do you know it is zlib compressed?
I dont recognize "785e" as a magic-number (the first 2 bytes of bf2demo files)