ANTH 0 Posted June 21, 2004 Hi I would like some help on getting server scores transfer to update on to webpage, Kills, Deaths, thats sort of thing just wondering if any one knows how to do it. My goal is to track every single server for this. But need some help doing it. Can anyone help? Share this post Link to post Share on other sites
benu 1 Posted June 21, 2004 I tried to write a perl cgi to do that once, but didn't really finish it. I didn't link to it from the site as it is not yet finished, but you can see the how it looks like at our site. The core part looks like this: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#! /usr/bin/perl -w use strict; use IO::Socket; use CGI::Carp qw(fatalsToBrowser); #default values if no parameters are given my $ARGS_HOSTNAME = 'gdt.game-server.cc'; #queryport defaults to serverport+1 my $ARGS_PORT = '2303'; #holds the response packet and is later used as loop variable for output my $response="bla"; #will hold output data in key/value format my %ausgabe; #holder for stripping off leading slash in response ticket and used as loop my $holder=0; #open socket my $sock = new IO::Socket::INET ( PeerAddr => $ARGS_HOSTNAME, PeerPort => $ARGS_PORT, Proto => 'udp', Blocking => 1, ); die "Could not create socket: $!\n" unless $sock; $sock->autoflush(1); $sock->syswrite("\\status\\"); #data length of 8192 bytes should be enough for about 150 players if ($sock->sysread($response,8192)) { #split off first slash in answer packet ($holder,%ausgabe)= split /\\/,$response; } else { print "Server $ARGS_HOSTNAME:$ARGS_PORT is down"; } Share this post Link to post Share on other sites
ANTH 0 Posted June 22, 2004 looks complicated im not fimliar with pearl :S. But im a very good learner when it comes to computers. I will give it ago. Share this post Link to post Share on other sites
Placebo 29 Posted June 22, 2004 Moving to MP. And ANTH your sig image exceeds the rules, expect a PM Share this post Link to post Share on other sites
ANTH 0 Posted June 22, 2004 pfff some people have nothing better to do. Share this post Link to post Share on other sites
RN Malboeuf 12 Posted June 22, 2004 just ignore the lurker this has all ready been doneb4 http://www.mariks-stats.com/ he stopped doing it, and disapeared, you can still reach him tho the stats listed there now are really out dated too Share this post Link to post Share on other sites
ANTH 0 Posted June 23, 2004 where can i reach him m8 i tried his hotmail but it failed to send? Share this post Link to post Share on other sites
RN Malboeuf 12 Posted June 23, 2004 last time i talked to him was april, the 1/8th squad may know how to reach him, and im told just now on MSN that ETA Squad has most of the coding as well, I'm at work so i dont have any of the squad links handy, but they are listed in these forums under squad forums http://www.flashpoint1985.com/cgi-bin....SF;f=13 I had Mirek (not marik) set this up a few years back Share this post Link to post Share on other sites
NKVD 0 Posted June 24, 2004 here is ETA's OFP Server stat program - http://www.etaserver.com/ServerStat/ServerStat.html requires Windows dedicated server to be run on I also have php script for collecting stats from a server - it requires php hosting and CRON JOBS..you can modify those scripts to make em better if you want - of course it requires knowledge of php... you can see demo here http://flashpoint2.ru/web/modules.php?name=Stats also, this script is only for fun - no way you gonna judge ppl on how good they play based on these stats because 1) script doesn't collect info from all maps, map has to have an end of time (for playing one specific map) variable so script knows when a new map is being played and when to record 2) it doesn't count capped flags and etc because OFP server does not give out such info, only kills, deaths, players, map name, date and stuff. if you need this script I can get it for you in a couple of days. Share this post Link to post Share on other sites
ANTH 0 Posted June 24, 2004 Thanks alot NKVD I would love the script if you could send it to me at Anth@s040.fsnet.co.uk What is cron jobs? Share this post Link to post Share on other sites
RN Malboeuf 12 Posted June 24, 2004 the php script one is simular to mariks, but his is more advanced Share this post Link to post Share on other sites
ANTH 0 Posted June 24, 2004 Yes this is the one i need to track the servers doing it as a project and hopefully i can do it in ofp 2. If anyone would like to help me with this get in contact with me cause im not to hot on my php. Share this post Link to post Share on other sites
sicilian 0 Posted June 25, 2004 if you need this script I can get it for you in a couple of days. Can you please send it to sicilian@web.de too?! Thx a lot Share this post Link to post Share on other sites
benu 1 Posted June 25, 2004 What is cron jobs? Cron jobs are a method of running programs/script on a regular basis. I guess you would use the task scheduler for this i guess. It means you do not only need a webserver, but a server where you can run programs and access the system, not only the webserver content, ie a dedicated server of some kind. Share this post Link to post Share on other sites
ANTH 0 Posted June 25, 2004 Ahh just checked with my weppage provider i have this on my webpage. Share this post Link to post Share on other sites
NKVD 0 Posted June 25, 2004 here is download link http://www.flashpoint2.ru/OFPstats.rar Share this post Link to post Share on other sites
venmaster 0 Posted June 26, 2004 WKK also made a php web stats page program. Â Download it here and read the readme.txt. Â Pretty easy to use. Â =USA= has an example of it =USA= home Share this post Link to post Share on other sites
NKVD 0 Posted June 26, 2004 wkk made a query script, however, it does not record your stats Share this post Link to post Share on other sites
RN Malboeuf 12 Posted June 26, 2004 so guys shooting for CTI stats are pretty much screwed? Share this post Link to post Share on other sites
NKVD 0 Posted June 27, 2004 no I think it's possible to track CTI maps..it's that u will have to come up with something to modify CTI to have some kind of time limit set up...or maybe that stat script would still be able to track CTI..just try it like it is and see if it works.. Share this post Link to post Share on other sites
ANTH 0 Posted July 1, 2004 Hey guys my website is starting to come together im only tracking one atm but here it is My stats and news page Share this post Link to post Share on other sites
RN Malboeuf 12 Posted July 1, 2004 Hey guys my website is starting to come together im only tracking one atm but here it is My stats and news page------- Is this better placebo pff my sig is 120, MAX is 100 pff pathetic. I dont have time to read all fourm rules btw but them 20 pixels must make some kind a difference. where are the stats? dont feel bad i never read the rules once in almost 3 years Share this post Link to post Share on other sites
ANTH 0 Posted July 6, 2004 Stats are at the bottom on the left m8, 4 servers been tracked but i need some help. I want a top 20 players from them 4 servers but havent got a clue how to do it and i would like the players to be purged weekly, like a weekly form check to see who is playing good that week. I also want a clan score total so if any one can help with these two questions please do. Share this post Link to post Share on other sites