Jump to content
Sign in to follow this  
j0e

HowTo/Example ~ My OFP server with statistics

Recommended Posts

Hi Community!

I'm happy to share with you my experience and knowledge on statistics.

At time of writing, my server is down and so I'm sorry if someone would have tested this guideline for real.

Anyway, at j0e.altervista.org you can have an idea of the result.

Used:

° OFP GOTY 1.96 (the start point folders and files for the server);

° OFPR_Server 1.96 (the dedicated executable);

° FWatch 1.0d -by Kegetys- (to extend script capability);

° OFPStat v1.0.23 -by j0e- (the realtime stats collector);

° j0e_pack v1.0.31 -by j0e- (contains also the stats script);

Systems run on:

° Windows XP SP2 (the OFP client);

° Windows Server 2003 SP1 (the OFP server);

Network details:

° bandwidth up/down: 1/1 mbps;

° port forwaded to the server: 2302/UDP, 2303/UDP, 2304/UDP;

Mods/Addons: none;

What "my" missions have/provide:

° the ReviveCoop gameplay;

° a different method to propagate the data (no PublicVariable usage);

° an ingame moderator console;

° an ingame moderator/protected-user login;

° the ReviveDialog spectator interface (a Kegetys like);

° a casualties highlight camera;

° transportable ammocrates;

° scripted patrol and sentry tasks;

° the statistics script (player score and mission progress);

Shortly, how the stats are collected (whole process is in realtime):

° the server is started under the fwatch executable (save/load file capability);

° the program OFPStat monitors the server console (logs the lobby events);

° the ingame scripts (j0e_pack) saves the player score and the mission progress;

° the program OFPStat checks the fwatch folder and looks for just finished sessions;

° the program OFPStat saves scores and lobby events into formatted files;

\fwatch\mdb\j0e_users.inf (moderators and protected-users list)

\fwatch\mdb\<mission>.txt (sample of registered session with scores)

\fwstat\OFPStat.stat (the stats about players and missions)

\fwstat\OFPStat.won (history of won missions)

\fwstat\OFPStat-<date>.log (lobby events)

\fwstat\OFPStat-<date>.err (errors log)

INSTALLATION AND CONFIGURATION OF THE SERVER

1} Copied, as-is, the game folder in the server, in "D:\OFGOTY".

2} Kept only mandatory folders/files for the server executable.

\Addons

\bin

\Dta

\MPMissions (put here "my" missions)

\Res

\Users

\Worlds

ifc22.dll

is3dfx.dll

Preferences.csv

Flashpoint.cfg

Products.cfg

3} Added+/Modified~ files for the server.

+OFPR_Server.exe (the executable)

+OFPR_Server.cfg (gamespy, motd, votation, slots, ..)

~Flashpoint.cfg (bandwidth management)

+OFPR_Server.cmd (batch to start the server, instead of a shortcut)

+ofgoty.reg (used once, only to tell to the game where to find itself)

+player.reg (used once, only to tell to the game its own user)

4} Added FWatch.

\fwatch\data (contains small apps)

\fwatch\mdb (target of the ingame script for the stats)

fwatch.exe

fwatch.dll

5} Added OFPStat.

\fwstat\OFPStat.exe

\fwstat\OFPStat.ini

6} Renamed the server executable so FWatch starts it automatically.

OFPR_Server.exe => FlashpointResistance.exe

7} Configured the firewall (read at the top).

STARTUP OF THE SERVER

1} Exec OFPR_Server.cmd (the server starts under the fwatch executable).

2} Exec OFPStat.exe (monitors the server console).

USEFUL FILES CONTENT

OFPR_Server.cfg

//Password="<server_passwd>";

PasswordAdmin="<admin_passwd>";

Hostname="<your_server_name>";

Motd[]=

{

"",

"",

"Welcome to the <your> server.",

"",

"Currently revised missions: 20 (15/04/2012).",

"",

">> Backup from 22:00 to 23:00 (GMT+1), so expect lag. <<",

"",

"<other_info>"

};

MotdInterval=3;

VoteThreshold=0.40;

ReportingIP="69.10.30.248"; // master.gamespy.com

VoteMissionPlayers=1;

CheckFiles[]={};

KickDuplicate=0;

EqualModRequired=1;

MaxPlayers=9;

Flashpoint.cfg

// This section is added under the already existing options!

// ReviveCoop OFPR 1.96 j0e

MaxMsgSend="256";

MaxSizeGuaranteed="";

MaxSizeNonGuaranteed="256";

MinBandwidth="512000"; // bps->64KB

MaxBandwidth="1024000"; // bps->128KB

MinErrorToSend="0.05"; // R=0.05

MaxCustomFileSize="64000";

OFPR_Server.cmd

@echo off

cd /d D:\OFGOTY

start fwatch.exe -config=OFPR_Server.cfg -nomap -port=2302

ofgoty.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Codemasters\Operation Flashpoint]

"MAIN"="D:\\OFGOTY"

player.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Codemasters]

[HKEY_CURRENT_USER\Software\Codemasters\Operation Flashpoint]

"Player Name"="<server_user>"

Soon, I'll add to my site a download section with:

(Updated on 26/06/2012) On my site is available the download page for:

° the program OFPStat (and its sources);

° the FWatch executable (in the case it's difficult to retrieve elsewhere);

° the useful files (like the detailed ones);

° the missions revised by me (not packed);

° the j0e_pack scripts;

° some samples of already collected statistics (browsable on my site).

Regards,

j0e

Edited by j0e
download page available

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×