Web Hosting Talk







View Full Version : Receiving scores from a game.. automated


ilyash
05-26-2003, 12:43 AM
the game is medal of honor allied assault
i know it is possible bcz there is a third party "autokick" utility
which shows all the stats of a current game
for example:
how can i receive these values n stick them into a db
(i know how to put them into a db and all.. the trouble i have is to get them)
Thanks alot,

CChard
05-26-2003, 01:31 AM
Depends what the output of the script is.

You can use: http://www.php.net/manual/en/function.ereg.php

Or: http://www.php.net/manual/en/function.preg-match.php

ilyash
05-27-2003, 05:16 PM
huh? i need a completed script

StingRay2k01
05-29-2003, 01:56 AM
Where does it "Show all the stats of the game"? Does it post the data to a website? Does it show on a Windows Form? Does it save the stats to a file?

Knowing that would help determine how to "recieve" them.

ilyash
05-29-2003, 08:59 PM
in a window.. i need it saved in a txt or a db

StingRay2k01
05-29-2003, 10:31 PM
I don't know PHP-GTK well enough to know if you can access a running Windows text box. That's all I can think of.

Otherwise you would have to get the people who made this program to add in the ability to save the stats to a file.

fshost
05-30-2003, 01:08 AM
Search for psycostats for it, could give you an alternative.

TalonKarrde
05-30-2003, 01:56 AM
I thought Psychostats was only for CS and a few other HL mods? Oh well, been a while since I admined a server running PS, so Ionno.

It just depends on how the server logs are exported and how you parse them. It can be a lot of work, depending on how much is logged.

ilyash
05-31-2003, 04:26 PM
psychostats is only for CS
anybody know any for mohaa?
im sure you gameserver hosts would know