Jump to content

Server Stats Script?


Recommended Posts

I don't know, we are running graw in a dedicated server.

I have just installed your (fantastic) script in our ded. server where we run GRAW, but I have this error:

Fatal error: Call to undefined function: simplexml_load_file() in d:\web_server\graw_stats\index.php on line 39

link to website --> http://62.149.198.87/graw_stats/

Edited by [SPQR]The JAckal
Link to comment
Share on other sites

  • Replies 140
  • Created
  • Last Reply

Top Posters In This Topic

As a question... this will mean we have to have php installed on our game server which is not used for web serving?

Now we can load it to our webserver which has php but i wouldn't want to up the bandwidth being used every round to move the files.

Next solution would be to incorporate a mini webserver on the gr server, that either would process it or upload it after adding the stats together each round via ftp?

Link to comment
Share on other sites

No, you wouldn't have to have PHP installed on the game server. Someone could make an app that checks every so often and upload the latest xml file to the server. I would think you would want the actual processing to happen on the webserver, but maybe not...

@The JAckal - Can you try getting PHP 5 on there? I've never even heard of Easy PHP....

Link to comment
Share on other sites

Or you can use my script which is compatible with ALL Php versions. It also allows for integration into an existing site without hassle. The code is all commented and easy to understand ... for the most part.

GrawXMLProcessorv1:

GrawXMLProcessorv1.uha

GrawXMLProcessorv1.zip

GrawXMLProcessorv1.rar

Demo: GrawXMLProcessorv1.2

Edited by Reeper_3d
Link to comment
Share on other sites

Or you can use my script which is compatible with ALL Php versions. It also allows for integration into an existing site without hassle. The code is all commented and easy to understand ... for the most part.

GrawXMLProcessorv1:

GrawXMLProcessorv1.uha

GrawXMLProcessorv1.zip

GrawXMLProcessorv1.rar

Demo: GrawXMLProcessorv1

Does your script take stats from a single xml file or from a directory FULL of xml files?

Link to comment
Share on other sites

Cool K' date='May 12 2006, 08:08 AM' post='372814']

Hmm - I must be missing something here :wall:

...do we need to point to a specific stats-file or to the log directory? :wacko:

In case it's a stats-file - then where will I find the file?

There is no stats.xml file.

The game stats are saved in C:\Program Files\Ubisoft\Ghost Recon Advanced Warfighter\logs as domination_0.xml, domination_1.xml, domination_2.xml and so on.

One file for each round played.

Edited by ^BR^LARSA
Link to comment
Share on other sites

Cool K' date='May 12 2006, 03:08 AM' post='372814']

Hmm - I must be missing something here :wall:

...do we need to point to a specific stats-file or to the log directory? :wacko:

In case it's a stats-file - then where will I find the file?

You need to point to the stats .xml file. It doesn't work with multiple .xml files... yet. That would be next. ;)

Link to comment
Share on other sites

Originaly I intended for my script just to do what you see on your demo as the demo shows you howto process and access all the information. The first version is better if you want to integrate it into something of your own.

If you would like to have a fully operating and skinned version you can go ahead and download this version which has all the images, css, and code.

Note to everyone, I have modified the copyright notices. Currently if you use the standard index.php there is a copyright in the header image along with an html comment at the top of the page with copyright information. If you use the standard index.html you CANNOT remove either copyright, I have included psd source files for that reason, you must keep both copyrights intact. If you choose to use the index.php from the tutorial directory then you will have to design or integrate it into your own page, BUT you will not have a visible copyright notice and will only be required to keep the html comment copyright intact.

Download Here:

GRAW Php XML Stats Processor v1.2

Edited by Reeper_3d
Link to comment
Share on other sites

Thanks. Here's my ToDo list for the next version:

-Parse multiple log files, to MySQL database?

Anybody have any ideas on how this should work?

Would you prefer just log files stored as text in the database or actualy creating player entries and global scores. The problem I forsee is spoofing, people can change their names and ruin peoples scores on purpose which would be kinda gay if we are tracking stats.

Its upto you guys Ill write any script if you give some details on what it should do

Link to comment
Share on other sites

Thanks. Here's my ToDo list for the next version:

-Parse multiple log files, to MySQL database?

Anybody have any ideas on how this should work?

Would you prefer just log files stored as text in the database or actualy creating player entries and global scores. The problem I forsee is spoofing, people can change their names and ruin peoples scores on purpose which would be kinda gay if we are tracking stats.

Its upto you guys Ill write any script if you give some details on what it should do

welll looks pretty nice on my site

http://www.clan-fys.com/graw/

Link to comment
Share on other sites

The JAckal' date='May 12 2006, 02:49 PM' post='373187']

Good Job, it seem to run on our server http://62.149.198.87/grawstats/ , but it takes stats only from a signle xml file. I'd like it take stats from all xml files stored in the directory C:\Programs\Ubisoft\Ghost3\logs

I had mine edited to make links on the side to pull other xmls for now gonna work on parsing them later..

http://www.clan-fys.com/graw

Edited by d0youlikecheese
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...