BF2

Come in! Have a margarita or root beer? How about some fresh trout? :)

Moderator: Moderators

Post Reply
DarkKnife
Inmate
Posts: 155
Joined: Fri Dec 17, 2004 11:40 am

BF2

Post by DarkKnife »

Okay Its been driving me nutz and I gotta ask. HOW DO YOU RECORD in BF2?!?
I know there is a special setup to view and the fact that is is not recording a pure video file but I cannot find the right button anywheres. I pulled off a sweet bombing run the other night and I wanna be able to have proof dammit.
User avatar
XMEN Iceman
Moderator
Posts: 2386
Joined: Thu Nov 18, 1999 1:25 pm

Post by XMEN Iceman »

Recording a Demo:
This can be done in-game, at any time. You will have to be the server of the game, so either start up a single-player match with bots, or start a multiplayer map with a few friends. You can also source a Battle Recorder file from a server that has it enabled, but then you are limited to a demo of the entire game instead of a section that you choose.

Once the game has started, and you're at the point where you want to start recording, open the console ("`") and type:

demo.recordDemo

The demo will start recording at that point. Wait until you have enough footage, and then in the console, type:

demo.stopRecording (pretty simple huh?)

You will now have 2 files saved in the gamedir\mods\bf2\Demos directory, .bf2demo and -def.bf2cam. The second file is a camera file that is recorded for you of the view from about a foot behind the players head. Well, that's when you're moving, otherwise it tends to be right inside your head.

Now that you have the demo files, its time to record your camera movements.

Recording Camera Movements:
Right, now the power of demo.cmd comes into play. This file has been kindly written by EA and performs a bunch of commands for you. Effectively it builds a demo.tmp file that tells the game what actions to perform.

First, start a shell and navigate to your gamedir. Just for interest, run demo.cmd to see the help.

To see what the default camera looks like, try the following:
demo.cmd sample sample-def
This plays back sample.bf2demo, with the sample-def.bf2cam camera file.

I would suggest getting familiar with the following camera commands in your demo first by executing:
demo.cmd
This starts playback of your demo with no camera, giving you the oppurtunity to have a play.

Now, to record a better camera track for your new demo, type:
demo.cmd +c
The game will load, and the demo will be paused. This give you a chance to get your camera into position before recording. Just for reference, here is a copy of the controls available to you in demo mode (courtesy of the BF2 readme.txt file.)

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.

So get your camera into position, and start the demo playback. I would suggest a slower speed (25%) as it gives you more time to move the camera around. I would also check to see what effect holding the Shift key has on your system. On my system where I have always-run set on, the shift key actually slows the camera movement down, making for better camera motions. Also note that you can pause the playback, move the camera elsewhere, and continue the playback again to cut around the battlefield.

When the demo is over, it should pause. If it crashes out of Battlefield 2 at the end of the demo (or before where the end *should* have been) then the demo file is corrupt and you will need to re-record the demo from scratch. Give the game a few seconds, then bring the console down and type "quit".

Congratulations, you have now successfully recorded your camera file. It has been saved into the gamedir\mods\bf2\Demos directory along with the demo itself. You can view your masterpiece by typing:
demo.cmd

For example, to view the sample demo type:
demo.cmd sample sample

Now you're probably wondering exactly what graphics settings is the game using to display the game in demo playback? Thats detailed in the next section.

Demo Playback Video Settings:
The demo playback uses settings from the default profiles located at:
My Documents\Battlefield 2 Demo\Profiles\Default

In particular, it uses the video.con file located there for its rendering options. Well, *most* of its options. It actually picks up its resolution from parameters you supply to demo.cmd, for example:
demo.cmd sample sample - rendered in normal size at 800x600 (the default)
demo.cmd +w sample sample - rendered in wide size at 1620x405
demo.cmd +m sample sample - rendered in mini size at 400x300

Initial testing however shows that the game *might* be using the monitor frequency set in the video.con file.

I've also added new +width and +height parameters which can be used like:
demo.cmd +width 1280 +height 1024 sample sample

Another thing to note is that when you save your settings in your own profile, the game updates the default profiles settings too. Why? Because those are the settings the game uses when it first starts up and goes to the profile selection screen. It's figured that that happens, then the player will most likely always choose the same profile and therefore the game will already have all the right settings loaded.

Right, back to the other options. If you execute the supplied "BF2 Video Config Generator.exe" (small program whipped up by me to make video settings easy) then you can modify the video settings of the default profile. First thing the application does is read in the settings from the video.con file already there. When you click Generate, it overwrites the video.con file with a new one containing your new settings.

As per usual, no warranty implied for any damages blah blah blah, run the application at your own risk etc etc. But it doesn't do much other than modify those settings for you in a familiar environment and without you have to start Battlefield 2 or know exactly what numbers match which options in the file.

So, to summarise, set your video settings for demo playback using "BF2 Video Config Generator.exe" and proceed to the next step.
Post Reply