BF2:Battle Recorder

From BattleWiki

clialeltace bodelcnat Unfortunately, most servers are not running with demo recording enabled. If you play a round on a server which has this enabled, you'll be able to grab the demo from the "Community" tab of the game, under battlerecorder bookmarks, if the server admin has set it up correctly. It would be great if at least ONE of the shack servers would enable this feature (perhaps one of the less-used ones?).

The biggest problem with BattleRecorder is it seems to be very network intensive. A server that normally uses 6-7Mbit/sec for 64 players will use 50-60Mbit/sec with BattleRecorder on. It also becomes quite laggy. The only time it has been tried on bf2.shackbattles.com the server was set as a LAN server with no bandwidth cap. It would be interesting to set it as internet type and see how the bandwidth usage was.

From http://www.shacknews.com/ja.zz?id=10234743 :

You can run a dedicated server on the same machine if you want but you can use the battlerecorder without it if you just want to play around.

BattleRecorder Auto Round Record setup (non-dedicated):

Download and Install the dedicated server files. Copy the adminutils directory from the server distribution to the normal BF2 demo directory Enter the Game / Start a Match (either SP / or host non-dedicated MP) Enter the Console and enable autorecord:

sv.demoQuality X (where x is a number between 1-10 / 10 is best, higher filesize) sv.autoRecord 1

This will record a demo for each round played. Note once you turn it on, it is always on. So if you don't want to record any more rounds, set autorecord off. sv.autoRecord 0

Alternatively you can just Start Recording at anytime with these console commands: demo.recordDemo demoname demo.stopRecording

Demos are saved to: \Battlefield 2 Demo\mods\bf2\Demos

To play them back you need to place them in: \My Documents\Battlefield 2 Demo\Profiles\Default\demos

It MUST be the Profiles\Default\demos Directory.. NOT your profile directory.

Also, a BF2 community update:

http://www.eagames.com/official/battlefield/battlefield2/us/editorial.jsp?src=communityupdate_061005_02


For Admins:

============================================================

BATTLE RECORDER

============================================================

USAGE

The BattleRecorder allows a round to be recorded and distributed. The system is very flexible, and the current implementation can be easily changed. We recommend you have a good knowledge of Python before you edit the scripts used here.


There are two components to BattleRecorder. First is the Dedicated Server Launcher.

The Dedicated Server Launcher requires the following information: - AutoRecord

 Set AutoRecord to on to enable the BattleRecorder. Every round played
 on the server will now be recorded to a file.

- DemoDownloadURL <http://YourServer.com/YourDirectory/>

 This is the URL that will be passed to all the connected clients at the
 end of the round. This is the URL that the Battlefield 2 front end will
 try and download the demo file from when the user selects 'download'.
 The demo file must be in the directory specified in the URL, or the
 demo download will fail.

- AutoDemoHook <adminutils/demo/Your_Script.exe>

 The server runs this script at the end of every round where AutoRecord
 is enabled.

- DemoQuality <value>

 You can control the quality of the recording made by the
 BattleRecorder. '1' is the default setting, and we recommend this is
 used for internet games. '10' is the highest setting, using this will
 increase the size of the file by around a factor of 8.
 Higher settings will also increase the load on the server.


The second component to BattleRecorder is the script that is run when a round ends. This script can be rewritten or replaced as needed. The Battlefield 2 server will simply attempt to execute the script specified in AutoDemoHook at the end of each round.

The default script, called auto_rotate, was written in Python and then built in to an executable.

The Python script can be found here \adminutils\demo\rotate_demo.py

The script will move a BattleRecorder file from the server to a new local location, or to an FTP site. You can also specify the number of files to keep archived.

The script is configured using a configuration file, called 'auto_rotate.cfg', found in the root of the Battlefield 2 installation root directory.

In this file you can configure:

- file_limit = <value>

 Use this value to set the number of BattleRecorder files you would like
 to keep available. The default is 30. Once the limit is reached, a new
 file will replace the oldest one.

- target_root = <local directory path>

 If you intend to transfer to a local directory, enter the path here.

- use_ftp = <bool>

 Set this to 1 if you wish to FTP the DemoRecorder file to a new
 location.

- ftp_target_dir = <path to webroot demos>

 Enter the path on the FTP site where you want the DemoRecording
 transferred to.

- ftp_server = <server URL or IP>

 Enter the URL or IP of your FTP server.

- ftp_user = <FTP login username>

 Enter your FTP sites login username.

- ftp_password = <password>

 Enter the password for your login account.


NOTES

- BattleRecorder will significantly increase your server's load.

 Therefore we do not support 64 player games with the BattleRecorder
 feature enabled.

- BattleRecorder files become larger as you increase the number of

 players and the ticket allocation. For a round with 64 players with
 250 tickets on each side, you should expect a file size of around
 10-12 Mb.

- When you download a BattleRecorder file, using the 'Community' function

 in the Battlefield 2 front end, it is saved in:

\My Documents\Battlefield 2 Demo\Profiles\Default\Demos\

 Every profile on your computer will save BattleRecorder files to this
 location.
 It is possible to download BattleRecorder files from a friend or
 website and copy them into the BattleRecorder directory above. They
 will then appear on the 'Community' page for you to play.


PLAYBACK

As well as using the 'Q' and 'T' keys to control the playback of a recording, you can also use a set of keyboard shortcuts:

- Keys 1 - 9

 Change the playback speed.

- Toggle Free Camera / Player Camera

 Alt Fire Key. By default this is the Right Mouse Button.

While in free camera mode:

- W, A, S, D

 Move forwards, backwards, strafe left and right.

- Double Tap W

 Move camera quickly. Alternatively you can hold the Sprint key.

- Crouch / Prone

 Move camera up and down.

- Mouse

 Rotate camera.

While in the player follow camera mode:

- Space bar

 Next / previous player.

- W and A or the mouse scroll wheel

 Zoom camera in and out.

- Crouch / Prone

 Tilt the camera up and down.

- Mouse

 Rotate camera around the player.