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!
Battlefield 2 Recorder File Format
-
wuschel
- Posts: 225
- Joined: 2008-10-21 19:19
Battlefield 2 Recorder File Format
Patient-Bear says
-
CTRifle
- Retired PR Developer
- Posts: 1056
- Joined: 2011-01-03 14:57
Re: Battlefield 2 Recorder File Format
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
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


-
wuschel
- Posts: 225
- Joined: 2008-10-21 19:19
Re: Battlefield 2 Recorder File Format
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.CTRifle wrote: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
Cheers!
Patient-Bear says
-
BloodyDeed
- Retired PR Developer
- Posts: 4452
- Joined: 2008-05-07 17:43
-
AncientMan
- Retired PR Developer
- Posts: 5111
- Joined: 2007-05-22 07:42
Re: Battlefield 2 Recorder File Format
.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 

-
wuschel
- Posts: 225
- Joined: 2008-10-21 19:19
Re: Battlefield 2 Recorder File Format
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.. (:
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.. (:
Last edited by wuschel on 2013-01-12 11:44, edited 1 time in total.
Patient-Bear says
-
pheanex
- Posts: 1
- Joined: 2013-07-17 13:30
Re: Battlefield 2 Recorder File Format
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)
@ancientman how do you know it is zlib compressed?
I dont recognize "785e" as a magic-number (the first 2 bytes of bf2demo files)

