BattleRecorder

2 messaggi Β· aperta da ITALIANO il 7 ago 2006

ITALIANO#1
per anubis

(scusate se non gli mando un pm ma dato che diventera un po' lungo il mess e che devo aggiungere dei pezzi successivamente è meglio il forum) non arrabbiatevi, altrimenti poi vi cecchino in game ed anubis puo' confermare quanto io sia pericoloso 😁 😁 😁

allora

mi hanno risposto dei ragazzi di Bfworld, ma la cosa non Γ¨ ancora chiarissima per il momento ho trovato questo:

da un altra parte, il tutto dovrebbe essere possibile per server ranked ed unranked


Ciao a tutti,
dietro insistenti (e insopportabili :p) insistenze di alcuni su MSN (:asd:) ecco una "guida veloce e indolore" per avere il battle-recorder sul proprio server.

Il battlerecorder praticamente registra la partita come i classici replay di Granturismo, quindi possiamo cambiare visuale e muoverci sul campo di battaglia, seguendo un player, seguendo una flag, e visualizzando (anche dall'alto) lo svogimento della battaglia.
Devo dire che il risultato e' molto suggestivo, e aggiungo che dall'alto sembra di vedere Command&Conquer :asd:

Bando alle ciancie: come funziona?
La configurazione si effettua intervenendo su due files:
- rotate_demo.cfg
- serversettings.con

rotate_demo.cfg
Questo file contiene le coordinate hardware dove il server piazza i replay mentre li registra.
Ci sono due possibilita': usare il server di gioco come "deposito" dei files; o affidarsi al server FTP esterno che ospita il sito del nostro clan (consigliatissimo).

Il file si presenta in questo modo:


# set the number of demo files to keep in rotation
file_limit =

# for local web server; edit this path and make it match the one in serversettings.con
target_root =

# set to 1 to enable ftp uploading
use_ftp = 1

# set to the target directory on the ftp server
ftp_target_dir =

# login information for the ftp server goes here
ftp_server =
ftp_user =
ftp_password =


La prima possibilita' la escludo a priori, visto che la totalita' dei clan italiani si appoggia a servizi di hosting.
Quindi la prima cosa da fare e' aprire il nostro fidato FTP, loggare nello spazio web del sito del clan, e creare una cartella (che chiamiamo "battlerecorder") dove verranno depositate le demo registrate.
Dopodiche' passiamo al file di configurazione del server:

- abilitare la modalita' di upload FTP, quindi

# set to 1 to enable ftp uploading
use_ftp = 1


- inserire la cartella FTP dove depositare i files (path ASSOLUTO, quindi occhio che con Aruba dovete prima mettere nomedominio/battlerecorder), quindi:

# set to the target directory on the ftp server
ftp_target_dir = /battlerecorder/


- inserire i dati d'accesso al nostro serverello FTP, quindi (per esempio):

# login information for the ftp server goes here
ftp_server = ftp.spaccaculiclan.it
ftp_user = trattoreanale
ftp_password = vasellina


Fase 1 COMPLETATA

Ora tocca al serversettings.con.
Il file in questione ha al suo interno una sfilza di dati, tra cui un "blocco" che contiene queste informazioni:

sv.autoRecord 0
sv.demoIndexURL
sv.demoDownloadURL
sv.autoDemoHook "adminutils/demo/rotate_demo.py"
sv.demoQuality 1


Le righe in questione indicano:

- abilitare o no l'autorecord (comodo per gli amanti delle RCON)

sv.autoRecord 1


- impostare la directory "root" che contiene tutte le demo (vedi nota1)

sv.demoIndexURL http://www.spaccaculiclan.it/


- impostare la directory che contiene le demo registrate

sv.demoDownloadURL http://www.spaccaculiclan.it/battlerecorder/


- impostare la qualita' delle registrazioni (default 1, ho messo a 2, boh)

sv.demoQuality 1


Ecco fatto, salvate, uppate, resettate il server e teoricamente dovreste ritrovarvi il file nel sito appena e' finito il round. Per scaricarlo si puo' tranquillamente andare su "community" e da li' selezionare e scaricare le demo salvate.

NOTA1
il sistema prevede la creazione di varie cartelle, da usare per match fun, clanwar o amichevoli, o nel caso si usi lo stesso spazio FTP per ospitare le demo di piu' server. Nel nostro caso basta lasciarlo cosi'.

NOTA2
la guida e' intesa "as is", chiunque d'ora in poi mi scrivera' in PVT o mi cerchera' via MSN per chiedermi aiuto verra' bannato a vita da NGI :asd:
Usiamo il thread per ulteriori info πŸ˜‰

GL e GG, da adesso in poi potrete fare anche i Pro (vi riguardate le tattiche in tv e vedete se c'e' fuorigioco :look:).
Ciao πŸ™‚



ho trovato altre cose ma in inglese:

The following commands can be used to control the game replay and camera in a recorded demo. (Note: the term "Demo" depicts the recording itself)

Q – opens the Playback Rose. Move the mouse to highlight the desired playback option and press the Left Mouse Button to select. Options available here that are not bound to separate keys include "Restart" and "Quit".
T – opens the Camera Rose. Choose the camera option or cycle through the available players.
1 – Pause the playback (also available in the Playback Rose).
2 – Playback recorded session at normal speed (also available in the Playback Rose).
3 – Playback recorded session at 5% of normal speed (also available in the Playback Rose).
4 – Playback recorded session at 25% of normal speed (also available in the Playback Rose).
5 – Playback recorded session at 50% of normal speed (also available in the Playback Rose).
6 – Playback recorded session at normal speed (also available in the Playback Rose).
7 – Playback recorded session at 150% of normal speed (also available in the Playback Rose).
8 – Playback recorded session at 300% of normal speed (also available in the Playback Rose).
Spacebar – cycle between players.
Right Mouse Button – cycle between free camera and player camera.
Mouse wheel – zoom camera in and out when locked onto a player.
W, A, S, D, Ctrl and Shift – move free camera around map, forward, left, backwards, right, down and up.
Mouse look – aim free camera.

Basic Rendering Instructions
Playing back a demo outside the client and recording your camera movements

* This mode lets you record a camera path to go with a demo recording so that they can be played back together. The camera works exactly as described in the instructions above but all movements you make are recorded.
o If working from the machine that recorded the demo, drop the demo.cmd file provided with this update (click here to download the demo.cmd file) into the root of the Battlefield 2 install folder.
o If working from a client that has downloaded a demo from the game’s front end:
o Create a "Demos" folder in the root of the game install folder.
o Move the demos you wish to render from into the demos folder from their normal location in you’re my Documents folder.
o Drop the demo.cmd folder found below into the root of the game install folder.
* Launch the demo recording as follows
o Launch the Command Prompt and browse to the game’s install directory.
o E.g. type "cd c:\Program Files\EA Games\Battlefield 2" and hit ENTER
* Type "demo.cmd +c " and press enter.
o E.g. "demo.cmd +c mydemo mydemocam" will record a Demos\mydemocam.bf2cam for demo Demos\mydemo.bf2demo
o Before quitting the game, wait for the message 'camera file closed' in the console or the camera file will be broken.

Playing back a demo with pre-recorded camera movements

* This mode combines the previous steps and shows you a take with both the demo and camera tracks active.
o Launch the game as follows: demo.cmd
o To watch the demo with the default recorded camera use: demo.cmd -def

Rendering images to disk

* This mode writes out an AVI file to disk based on a demo file and a recorded camera file.
o Launch the game as follows: demo.cmd +r
o A dialog box pops up where you can select encoder (Xvid or Divx is recommended) and the quality settings for that encoder.
+ If you want to stop rendering before the end of the demo, press 'R'

Capturing sound

* This mode tries to set up an ideal environment for recording sound.
o Launch the game as follows: demo.cmd +s
o Use external recording software to capture the sound from the playback.

Information for Server Admins

Impact on server performance The Battle recorder feature can impact server performance in two ways:

* A bandwidth hit (if the demos are uploaded on the same machine that is running the game server.) We strongly recommend that you do not run battlerecorder on the same server you are using to host gameplay. Instead, set up a separate ftp server to host demo files.
* A performance hit - dependant on the demo quality setting, which is found on the BF 2 server launcher UI. The demo quality setting can range from the default setting of 1 (lowest quality / minimal performance hit) to 10 (maximum quality / biggest performance hit.) Depending on the server specifications, you'll want to set your demo quality appropriately. We recommend no more than quality 5, the highest quality was built in for users that are creating movies / trailers with the Battlefield 2 engine. Due to the demands even the lowest setting of quality can have, we do not recommend running Battlerecorder on any server that is configured for 64-players.

Requirements

* FTP server (only if using a separate machine from the server to host demos.)
* Web server - our in game downloading system requires http transfers, and does not support ftp downloading.

How To Set It Up
To activate the BF2 Battle Recorder using the BF2 Server Launcher UI the admin must:

* Enable the AutoRecord option.
* Input the address where users can download demo files (this has to be in the format of an http: address, as the Battlefield 2 front end does not support ftp downloads.) IMPORTANT - at the end of the address (i.e. 123.456.7.8/demos/) make sure you include the final slash, or the demo download url won't parse correctly in the Battlefield 2 front end, and clients won't be able to download your demo.
* If the FTP server is password protected (which we strongly recommend) the admin must use a text editor to make changes to the rotate_demo.cfg file located in the c:\Program Files\EA GAMES\Battlefield 2 Server folder to contain the proper server address, user login and user password.

The section of the file you must edit is shown in its default state here:
# login information for the ftp server goes here
ftp_server = my.ftp.server
ftp_user = my_user
ftp_password = my_password

Make sure to enter the full address for the ftp server as shown below:
# login information for the ftp server goes here
ftp_server = ftp:\\1.2.1.1
ftp_user = user
ftp_password = userpassword

Inside the rotate_demo.cfg file, you will also be able to set the maximum number of demo files to keep in the rotation, before older demo recordings are overwritten.

Once the above steps have been completed correctly the server will post a recording of the action to the specified server at the end of each round.


poi aggiungo le nuove che mi diranno, spero di essere stato utile ciao ci vediamo sta sera
Anubis#2
o bravo finalmente ti rendi utile :/

hai fatto bene a postarlo sul forum che cosi nn perdo tempo a mandarlo a karl πŸ™„

← Torna a Discussioni generali

↑