PDA

View Full Version : MOHSTATS need some help please...


Forsaken
12-02-2002, 08:41 AM
Hey guys;

Don’t know if this is in the right forum, but I need some help. I am trying to install mohstats. I changed the config file, uploaded all files and directory to my website, but what’s next? By the doc I can’t figure out what is the next step to implement this?

Anyone running mohstats that can offer some help? :oops:

tomoxm
12-02-2002, 09:47 AM
pls post the link where i can download mohaa stats thx

Forsaken
12-02-2002, 11:56 AM
Sure thing, here is the download site...

http://stats.clanfx.com

Batcha
12-18-2002, 10:36 AM
The next step (as long as you have PHP installed, and cgi turned on in that directory) is to run the PHP file. This can be done by opening command prompt and using this command:
c:\PHP\php.exe -q mohstats.php F:\pathtolog\qconsole.log
This is assuming you have php installed in php directory and you have access to the log, it should create the output in the output folder. To automate, you might want to put this in a batch file. It took me a little while to figure this part out and dealing with the logs (daily restart, combining logs, etc.) are an issue too, but the program works great once it's set up. :D

Green_Falcon
12-19-2002, 04:32 PM
hello, i tried to use mohstats, but i found that i prefered AESTATs much better, it was very easy to use, first of all to get the stats to work you need to make sure your log file is outputting frags, if so then aestats is very easy i will add a link to there site just read the quick start section and it will be pretty simple.
http://www.planetquake.com/aeons/aestats/
if you want to see what aestats looks like so you can get a feel for what it does check out my site and go to the stats page for an example
www.tombraiders.web1000.com
if you need any help please just write back cause i was able to get mine to work
one thing first, if you are not getting frags to output you need to do 2 things
in your command line enter
set developer 2
and in your cfg file use this command
set logfile 3 or you can use set logfile 2 either one works for me but i prefer 3 because it outputs less junk
later
Green Falcon

ReDrUm
12-27-2002, 04:35 PM
We use AEstats on our server "thefiberpipe" but it is a pain in the butt to update stats on a regular basis. Is there anyone out there who knows how to set it up so it can update every 3 hours or so on its own. I have heard of a few servers out there that have it do this.

Thanks,

redrum

Green_Falcon
12-27-2002, 09:23 PM
OOOO that would be the best, it is a pain, i have to boot to my win 98 drive to use aestats, is there any way to run it automatic??? anyone on a timed scedual???? that would be awsome.

Batcha
12-28-2002, 12:31 PM
What worked for me when I tested AEstats was to create a batch file to run the program and scheduled tasks to run it every hour or whenever you want it to run. To do this open a text file and name it something like update.bat

In the batch file you can use something like:
<pre>
F:\aestats\preAEs.exe -moh F:\aestats\logs\qconsole.log
F:\aestats\AEstats.exe F:\aestats\logs\qconsole.mlg
Exit
</pre>


Save the .bat file and run it by double clicking it. If you want to see what's going on while it's being run you can change exit to pause and it will stop it so you can see if there any errors. You might want to create batch files to copy the logfiles from the Moh Main directory to this directory but to do this I created two seperate batch files
1. combine old log with the current active log
2. combine logs before you restart the server to create new "old log"
Thas to be done because when you restart the server the logfile gets wiped out and you will lose data. It may be a little confusing and I think there may be better ways to do this like time stamping the log files and running running them using aestats, but this works for me.
To run windows scheduler just open control panel and set it up in Scheduled Tasks.

Green_Falcon
01-04-2003, 07:53 PM
is there any way for this to work on a server that you rent

Batcha
01-08-2003, 12:11 AM
If you have ftp access you can probably write a batch script to download the server log files to run the aestats on your local pc and use a batch script to upload the results to your web server. Otherwise you would need access to a scheduler program to run the batch file on the rented server.