[SPQR]The JAckal Posted May 11, 2006 Author Share Posted May 11, 2006 (edited) 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 May 11, 2006 by [SPQR]The JAckal Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted May 11, 2006 Share Posted May 11, 2006 Are you running PHP 5? PHP 4 does not have SimpleXML I don't think.... Quote Link to comment Share on other sites More sharing options...
ROCO*AFZ* Posted May 11, 2006 Share Posted May 11, 2006 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? Quote Link to comment Share on other sites More sharing options...
[SPQR]The JAckal Posted May 11, 2006 Author Share Posted May 11, 2006 Running Easy Php 1.8.01 Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted May 11, 2006 Share Posted May 11, 2006 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.... Quote Link to comment Share on other sites More sharing options...
[SPQR]The JAckal Posted May 11, 2006 Author Share Posted May 11, 2006 http://www.easyphp.org/ We use EasyPhp to use Php and MySQL on our windows server. I have just read that a new version of EasyPhp with php 5 will be released soon, but it was scheduled for XMas 2005 It is not possibile to run your script with php 4? Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted May 11, 2006 Share Posted May 11, 2006 Sorry, see here: http://us3.php.net/simplexml Requires PHP 5. Ahh, I see. It just bundles them all together. I would install Apache, MySQL, and PHP separately. There are LOADS of tutorials online to help you. Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted May 12, 2006 Share Posted May 12, 2006 If anyone has any more of the .xml stats files, either multiple files or from other game modes, can you please email them to me? I would really appreciate it! Thanks. firefly2442 [at] gmail.com Quote Link to comment Share on other sites More sharing options...
[SPQR]The JAckal Posted May 12, 2006 Author Share Posted May 12, 2006 Sorry, see here: http://us3.php.net/simplexml Requires PHP 5. Ahh, I see. It just bundles them all together. I would install Apache, MySQL, and PHP separately. There are LOADS of tutorials online to help you. Sent Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted May 12, 2006 Share Posted May 12, 2006 Thanks. Here's my ToDo list for the next version: -W3C Valid HTML -Parse multiple log files, to MySQL database? -xml uploader application? -Coop .xml files? Anybody have any more suggestions? Quote Link to comment Share on other sites More sharing options...
[SPQR]The JAckal Posted May 12, 2006 Author Share Posted May 12, 2006 Let use it with php4 Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted May 12, 2006 Share Posted May 12, 2006 Hehe, I did try writing it originally without using the XML parser. It's a LOT harder and creates a LOT more code.... basically, you have to search through for specific strings and use substrings... esh... it's a nightmare. Quote Link to comment Share on other sites More sharing options...
Beaver Posted May 12, 2006 Share Posted May 12, 2006 If you need an all-in-one package that easily installs PHP5, MYSQL5 & APACHE 2.xx - then check out - WampServer Its a good, easy to use installer. Apache 2.0.55 PHP 5.1.4 + PECL SQLitemanager MySQL 5.0.21 Phpmyadmin Link: http://www.wampserver.com/en/index.php Quote Link to comment Share on other sites More sharing options...
[GR] Cool K Posted May 12, 2006 Share Posted May 12, 2006 Hmm - I must be missing something here ...do we need to point to a specific stats-file or to the log directory? In case it's a stats-file - then where will I find the file? Quote Link to comment Share on other sites More sharing options...
CSF_Manti Posted May 12, 2006 Share Posted May 12, 2006 (edited) or try the good Uniform Server. All-in-one, don't need installation http://www.uniformserver.com/ Edited May 12, 2006 by CSF_Manti Quote Link to comment Share on other sites More sharing options...
reeper_3d Posted May 12, 2006 Share Posted May 12, 2006 (edited) 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 May 12, 2006 by Reeper_3d Quote Link to comment Share on other sites More sharing options...
[SPQR]The JAckal Posted May 12, 2006 Author Share Posted May 12, 2006 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? Quote Link to comment Share on other sites More sharing options...
LARSA Posted May 12, 2006 Share Posted May 12, 2006 (edited) Cool K' date='May 12 2006, 08:08 AM' post='372814'] Hmm - I must be missing something here ...do we need to point to a specific stats-file or to the log directory? 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 May 12, 2006 by ^BR^LARSA Quote Link to comment Share on other sites More sharing options...
[SPQR]The JAckal Posted May 12, 2006 Author Share Posted May 12, 2006 I have installed your script http://62.149.198.87/grawstats/ but i don't see it as in your demo Quote Link to comment Share on other sites More sharing options...
firefly2442 Posted May 12, 2006 Share Posted May 12, 2006 Cool K' date='May 12 2006, 03:08 AM' post='372814'] Hmm - I must be missing something here ...do we need to point to a specific stats-file or to the log directory? 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. Quote Link to comment Share on other sites More sharing options...
reeper_3d Posted May 12, 2006 Share Posted May 12, 2006 (edited) 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 May 12, 2006 by Reeper_3d Quote Link to comment Share on other sites More sharing options...
reeper_3d Posted May 12, 2006 Share Posted May 12, 2006 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 Quote Link to comment Share on other sites More sharing options...
d0youlikecheese Posted May 12, 2006 Share Posted May 12, 2006 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/ Quote Link to comment Share on other sites More sharing options...
[SPQR]The JAckal Posted May 12, 2006 Author Share Posted May 12, 2006 Download Here: GRAW Php XML Stats Processor v1.2 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 Quote Link to comment Share on other sites More sharing options...
d0youlikecheese Posted May 12, 2006 Share Posted May 12, 2006 (edited) The JAckal' date='May 12 2006, 02:49 PM' post='373187'] Download Here: GRAW Php XML Stats Processor v1.2 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 May 12, 2006 by d0youlikecheese Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.