Jump to content
Sign in to follow this  
weedkiller

final score to a log file on server

Recommended Posts

Looking to make missions that have a timer and would like the final time and scores put to a log file on the server, can anyone tell me how to do this?

Share this post


Link to post
Share on other sites

Any idea where the Scores are stored and how to ref them ? as i would like to store them as well ?!

Have searched but could not find anything (:

Share this post


Link to post
Share on other sites
Any idea where the Scores are stored and how to ref them ? as i would like to store them as well ?!

Have searched but could not find anything (:

the score is stored in your server.log at the end of the mission.

it looks something like this,

class Session {
   mission="foo"
   gametype="bar"
   duration"100000"
   class Player1 
  {
       name="Dude1"
       ....
       ....
   };
   class .....
};

to stor them you have to manualy go in and get the score for each player and store them in your score/stat file.

afik. Customscore is the score that is added by addscore.

Share this post


Link to post
Share on other sites

Thanks Nuxil,

So there is no way to Automaticaly store them after the end of a mission ?

So would need to go into the server.log and manually extract them to another file to use them ?

Thanks

Share this post


Link to post
Share on other sites

What do you mean with score? Kills? Or rating?

Share this post


Link to post
Share on other sites

psvialli not by default. all is stored in the server.log file

but i think you maybe can use jaylib.

i do belive it has sqlite support not sure tho.

if so you could use it to generate a sqlite file after each round. altho im not verry femilliar with jaylib.

or if you have python installed you can use this experimental code of mine. i started working on a few weeks ago and forgot all about until i saw this thread.

you use if like python stats.py -f Server.log

altho it can also uploade it to your webserver by ftp. if so use it like.

stats.py -f Server.log -a ftp://youradd.com -d MissionStats -u theDude -p thePassword

http://pastebin.com/p1HG0y1H

this code was writted for py2.6

next thing you need it to extract the data from the sqlite file. php should do the trick.

something like this,

http://pastebin.com/Gs3G80HQ

css code not included

all this is verry experimental. and should be run manualy after each round or put on a cron job or a some sort of service that runs example each 1 houer or so.

http://forums.bistudio.com/showpost.php?p=1856828&postcount=2

Happy Stating ;p

Edited by nuxil

Share this post


Link to post
Share on other sites

@ PVP the Kills that show on the scorecard is what i am after. as i would like to keep track of mission and total kills etc..

Thanks Nuxil ill strat working my way though that :) and get back to you !

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  

×