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.
° 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);
° bandwidth up/down: 1/1 mbps;
° port forwaded to the server: 2302/UDP, 2303/UDP, 2304/UDP;
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; Spoiler:
\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. Spoiler:
3} Added+/Modified~ files for the server. Spoiler:
+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. Spoiler:
\fwatch\data (contains small apps)
\fwatch\mdb (target of the ingame script for the stats)
5} Added OFPStat. Spoiler:
6} Renamed the server executable so FWatch starts it automatically. Spoiler:
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
"Welcome to the <your> server.",
"Currently revised missions: 20 (15/04/2012).",
">> Backup from 22:00 to 23:00 (GMT+1), so expect lag. <<",
ReportingIP="220.127.116.11"; // master.gamespy.com
// This section is added under the already existing options!
// ReviveCoop OFPR 1.96 j0e
MinBandwidth="512000"; // bps->64KB
MaxBandwidth="1024000"; // bps->128KB
MinErrorToSend="0.05"; // R=0.05
cd /d D:\OFGOTY
start fwatch.exe -config=OFPR_Server.cfg -nomap -port=2302
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).
Last edited by j0e; Jun 26 2012 at 13:02.
Reason: download page available