J-S wrote:Yes but No ! That it's during compilation of php but after i have enable GD, look at low of the phpinfo :Code: Select all
gd GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.5 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
ASECO plugin: ServerStats with graph output
Moderators: Flo, f*ckfish, Assembler Maniac, TM-Patrol
-
- Pit Crew
- Posts: 1493
- Joined: 03 Jun 2006 13:24
- Owned TM-games: TMU
- Contact:
Re: ASECO plugin: ServerStats with graph output
If you have it disabled during compile, I don't think you can use it later. Try compiling with gd support and see if it works then (can't hurt).
Re: ASECO plugin: ServerStats with graph output
Strange, I haven't really been using PHP for that long, but, at least on both my Windows and Linux box, functions are not case sensitive.Assembler Maniac wrote:It's not ImageFontWidth, it's imagefontwidth. I know php is case sensitive, so it might be looking for a function that it can't find based on case.
Take a look at this : http://gaming.gladblad.dk/winfo.php (And this is on Linux, which is normally very strict about case sensitivity)
I am running php5.2.6 also, and I have done nothing special with my install, GD is 2.0.34 compatible.Assembler Maniac wrote:edit: I just tried this plugin myself and regardless of case, it can't find the imagefontwidth function. I'm running php 5.2.6 so I know it's pretty current. Anyone else have any idea why it can't be found?
Last edited by FlyveHest on 28 May 2008 06:44, edited 1 time in total.
Re: ASECO plugin: ServerStats with graph output
Just to clarify, development of the plugin was done on a Win2003 box, with a fresh PHP 5.2.6 install, and my server is running on a Linux box, with PHP 5.2.6 also. (You can see the graph on http://gaming.gladblad.dk)
I don't really know if I can give any sort of constructive input about whats happening here (maybe except for BlaHitis time problem, which very well may be because of date formatting on differente locale settings), because actually, this plugin and writing stuff for ASECO is actually the first time i've really done any serious work in PHP (I normally use other languages, and I am employed as a developer by day
)
But, seeing that it works on both Windows and Linux (for me), suggests that it must be a local setting thats in play, and as suggested, it might be a good idea to compare phpinfo()
This i the one for my TM server, running on Linux: http://gaming.gladblad.dk/pinfo.php
And this is from my development server, running Win2003: http://www.gladblad.dk/pinfo.php
I don't really know if I can give any sort of constructive input about whats happening here (maybe except for BlaHitis time problem, which very well may be because of date formatting on differente locale settings), because actually, this plugin and writing stuff for ASECO is actually the first time i've really done any serious work in PHP (I normally use other languages, and I am employed as a developer by day

But, seeing that it works on both Windows and Linux (for me), suggests that it must be a local setting thats in play, and as suggested, it might be a good idea to compare phpinfo()
This i the one for my TM server, running on Linux: http://gaming.gladblad.dk/pinfo.php
And this is from my development server, running Win2003: http://www.gladblad.dk/pinfo.php
Re: ASECO plugin: ServerStats with graph output
Thats at least right about Linux, i'm not really sure about Windows (but, I think everything is compiled into the downloadable Windows PHP executable from start, as compiling things on Windows is not a very common occurence)Assembler Maniac wrote:If you have it disabled during compile, I don't think you can use it later. Try compiling with gd support and see if it works then (can't hurt).
On Linux, if GD was not compiled into PHP, it must be recompiled to be added.
-
- Pit Crew
- Posts: 1493
- Joined: 03 Jun 2006 13:24
- Owned TM-games: TMU
- Contact:
Re: ASECO plugin: ServerStats with graph output
Ok, I have more info on this, might be helpful to someone.
1. If you're running on windows, you MUST enable the gd2 extension. Open php.ini, search for gd2, un-comment the extension line. (extension=php_gd2.dll, remove ; at beginning of line)
2. If you're running the serverstats for the very first time, you CANNOT enable the graphing, it will crash with div/0 errors because there's no data to work with. (this is fixable)
FlyveHest: You need to add an if statement to see if $maxValue is 0 and set it to 1 so it won't crash on first run.
It's now running ok for me and can find all of the functions that it needs to run.
1. If you're running on windows, you MUST enable the gd2 extension. Open php.ini, search for gd2, un-comment the extension line. (extension=php_gd2.dll, remove ; at beginning of line)
2. If you're running the serverstats for the very first time, you CANNOT enable the graphing, it will crash with div/0 errors because there's no data to work with. (this is fixable)
FlyveHest: You need to add an if statement to see if $maxValue is 0 and set it to 1 so it won't crash on first run.
It's now running ok for me and can find all of the functions that it needs to run.
- oliverde8
- solid chaser
- Posts: 1135
- Joined: 07 Oct 2006 07:03
- Owned TM-games: TMU
- Manialink(s): oliverde8
- Location: Turkey
- Contact:
Re: ASECO plugin: ServerStats with graph output
Did it as can be seeAssembler Maniac wrote:Ok, I have more info on this, might be helpful to someone.
1. If you're running on windows, you MUST enable the gd2 extension. Open php.ini, search for gd2, un-comment the extension line. (extension=php_gd2.dll, remove ; at beginning of line)

HOw long must it work. I have it on work without graphic and opening graphic makes still same mistakeAssembler Maniac wrote: 2. If you're running the serverstats for the very first time, you CANNOT enable the graphing, it will crash with div/0 errors because there's no data to work with. (this is fixable)
FlyveHest: You need to add an if statement to see if $maxValue is 0 and set it to 1 so it won't crash on first run.
It's now running ok for me and can find all of the functions that it needs to run.

- oliverde8
- solid chaser
- Posts: 1135
- Joined: 07 Oct 2006 07:03
- Owned TM-games: TMU
- Manialink(s): oliverde8
- Location: Turkey
- Contact:
Re: ASECO plugin: ServerStats with graph output
Okay works now
Had two php.ini and Wamp was changing a bad one
here is it

Thanks to AssemblerManiac

Had two php.ini and Wamp was changing a bad one
here is it

Thanks to AssemblerManiac
Re: ASECO plugin: ServerStats with graph output
HeheAssembler Maniac wrote:FlyveHest: You need to add an if statement to see if $maxValue is 0 and set it to 1 so it won't crash on first run

I will fix this for the next release, that will also have some other improvements. (and hopefully a fix for Blahitis 24h+ graph problem)
But, that will be early next week, as I am heading to Bremen for a long weekend vacation tomorrow morning

-
- happy cruiser
- Posts: 152
- Joined: 07 Sep 2007 15:01
- Owned TM-games: TMUF, Canyon
- Location: The Netherlands
Re: ASECO plugin: ServerStats with graph output
Write something inhere:J-S wrote:Personnally i have no errors ... I don't understand why the png isn't generateJ-S wrote:Hi everybody !
i have a problem with the generation of the graph. My graph don't be generate by the plugin
Look my serverstats.xml :
Code: Select all
<?xml version="1.0" encoding="utf-8" ?> <settings> <entriesprhour>12</entriesprhour> <!-- Number of log entries per hour, must be larger than 0, and less than or equal to 60 (one entry/minute) --> <retentiontime>24</retentiontime> <!-- Maximum age of stats, in hours --> <extendedinfo>1</extendedinfo> <!-- If 1, will also update the serverstats_extended table with further stats --> <verboselogging>0</verboselogging> <!-- If 1, will output more info in the ASECO logfile --> <graph> <enabled>1</enabled> <!-- If 1, graph output is enabled --> <graphdirectory>/</graphdirectory> <!-- Path to the graph output, must be writeable by user running ASECO. REMEMBER! trailing / or \ --> <graphfilename>tmstats.png</graphfilename> <!-- Filename of graph (Plugin outputs a PNG, so should end with .png) --> <graphwidth>590</graphwidth> <!-- Width of the graph, in pixels --> <graphheight>120</graphheight> <!-- Width of the graph, in pixels --> <graphservername># SHARKTEAM #</graphservername> <!-- Text to appear top-left in the graph --> </graph> </settings>
Look my phpinfo() (the GD module is enable) :
Have you got any ideas for my problem ?Code: Select all
GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.5 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
Thanks
Regards
Code: Select all
<graphdirectory>/</graphdirectory> <!-- Path to the graph output, must be writeable by user running
Remove the # from: <graphservername># SHARKTEAM #</graphservername>
From what I saw is that when you use it the first time in aseco I had to set this to 1:
<verboselogging>0</verboselogging>
Then I closed aseco, set it back to 0, and all works fine
I hope it helps you...
-
- happy cruiser
- Posts: 152
- Joined: 07 Sep 2007 15:01
- Owned TM-games: TMUF, Canyon
- Location: The Netherlands
Re: ASECO plugin: ServerStats with graph output
After a reboot of my server (made no changes) the graph is not working anymore.
I see the picture but it doesn't show the line anymore.
There are people connected to my server.
I tried all things mentioned in this topic, I have also changed settings and put it back to how it was.
Any idea?
I see the picture but it doesn't show the line anymore.
There are people connected to my server.
I tried all things mentioned in this topic, I have also changed settings and put it back to how it was.
Any idea?
- J-S
- happy cruiser
- Posts: 149
- Joined: 24 Apr 2008 18:20
- Owned TM-games: TMN,TMUF,TMO,TMS
- Manialink(s): shark
- Location: Grenoble - France
- Contact:
Re: ASECO plugin: ServerStats with graph output
Thanks, i debug my config with the debugmode and it's work nowOuwe wrote:Write something inhere:J-S wrote:Personnally i have no errors ... I don't understand why the png isn't generateJ-S wrote:Hi everybody !
i have a problem with the generation of the graph. My graph don't be generate by the plugin
Look my serverstats.xml :
Code: Select all
<?xml version="1.0" encoding="utf-8" ?> <settings> <entriesprhour>12</entriesprhour> <!-- Number of log entries per hour, must be larger than 0, and less than or equal to 60 (one entry/minute) --> <retentiontime>24</retentiontime> <!-- Maximum age of stats, in hours --> <extendedinfo>1</extendedinfo> <!-- If 1, will also update the serverstats_extended table with further stats --> <verboselogging>0</verboselogging> <!-- If 1, will output more info in the ASECO logfile --> <graph> <enabled>1</enabled> <!-- If 1, graph output is enabled --> <graphdirectory>/</graphdirectory> <!-- Path to the graph output, must be writeable by user running ASECO. REMEMBER! trailing / or \ --> <graphfilename>tmstats.png</graphfilename> <!-- Filename of graph (Plugin outputs a PNG, so should end with .png) --> <graphwidth>590</graphwidth> <!-- Width of the graph, in pixels --> <graphheight>120</graphheight> <!-- Width of the graph, in pixels --> <graphservername># SHARKTEAM #</graphservername> <!-- Text to appear top-left in the graph --> </graph> </settings>
Look my phpinfo() (the GD module is enable) :
Have you got any ideas for my problem ?Code: Select all
GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.5 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
Thanks
RegardsFor example: <graphdirectory>C:/usbTMFserver2.1\Root</graphdirectory>Code: Select all
<graphdirectory>/</graphdirectory> <!-- Path to the graph output, must be writeable by user running
Remove the # from: <graphservername># SHARKTEAM #</graphservername>
From what I saw is that when you use it the first time in aseco I had to set this to 1:
<verboselogging>0</verboselogging>
Then I closed aseco, set it back to 0, and all works fine
I hope it helps you...

-
- happy cruiser
- Posts: 152
- Joined: 07 Sep 2007 15:01
- Owned TM-games: TMUF, Canyon
- Location: The Netherlands
Re: ASECO plugin: ServerStats with graph output
Don't know why but suddenly it works again...Ouwe wrote:After a reboot of my server (made no changes) the graph is not working anymore.
I see the picture but it doesn't show the line anymore.
There are people connected to my server.
I tried all things mentioned in this topic, I have also changed settings and put it back to how it was.
Any idea?
Didn't do nothing
Re: ASECO plugin: ServerStats with graph output
FlyveHest look what i have done with fusion chart and your plugin easily : http://chti2.ath.cx/
-
- happy cruiser
- Posts: 152
- Joined: 07 Sep 2007 15:01
- Owned TM-games: TMUF, Canyon
- Location: The Netherlands
Re: ASECO plugin: ServerStats with graph output
Is there anybody here who got this working for XAseco?
I saw that Willa made a start and I tried also but without succes.
Please help me.
I saw that Willa made a start and I tried also but without succes.
Please help me.
Re: ASECO plugin: ServerStats with graph output
Hi,
Yeah, I would also very much like to get this working for XASECO, I don't know any PHP and at the moment I don't have the time to learn either. I really appreciate the work that people do on their spare time, I can really see the efford now that I hardly have any myself
So if someone would make the efford I can contribute with what I am capable of, bug reporting, testing and what not. Sounds like I get the better end of the deal though
Cheers,
Gerry
Yeah, I would also very much like to get this working for XASECO, I don't know any PHP and at the moment I don't have the time to learn either. I really appreciate the work that people do on their spare time, I can really see the efford now that I hardly have any myself

So if someone would make the efford I can contribute with what I am capable of, bug reporting, testing and what not. Sounds like I get the better end of the deal though

Cheers,
Gerry