-
1 Attachment(s)
TDP cabal server status script v2.0
Download -> http://www.mediafire.com/?9bvg6hcaarumb43
Quote:
Originally Posted by readme.txt
Cabal server status script v2.0
=================================
An improved server status script following on from VisualEvolution's simple status checker. I thought we could do better xP
Installation
==============
Copy the files to your webserver, e.g. c:\xampp\htdocs\cabal for windows xampp users.
Open status.php, set your page title and mssql connection details. Also change the gamedb name if your is not "gamedb".
Set $maxplayers to the same as MaxUserNum= in your WorldSvr ini files.
Set the login server ip and port. It should be the same as the IP= and PORT= from your client internal.txt.
The channels array needs to be set up like this:
$channels = array(
1=> array("number"=>1, "type"=>0, "name"=>"Channel 1 (Novice)", "ip"=>"127.0.0.1", "port"=>"38111" ),
2=> array("number"=>2, "type"=>0, "name"=>"Channel 2 (Trade)", "ip"=>"127.0.0.1", "port"=>"38112" )
);
number = The channel number (GroupIdx= from WorldSvr ini)
type = The channel type. Used for channel color display.
Channel Types
0 = normal
1 = PK
4 = Premium
8 = War
16908368 = Tierra Gloriosa
name = What to display for the channel name
ip = The external IP of the channel (IPAddress= in the WorldSvr ini)
port = The external port of the channel (top of WorldSvr ini)
For more channels:
$channels = array(
1=> array("number"=>1, "type"=>0, "name"=>"Channel 1 (Novice)", "ip"=>"127.0.0.1", "port"=>"38111" ),
2=> array("number"=>2, "type"=>0, "name"=>"Channel 2 (Trade)", "ip"=>"127.0.0.1", "port"=>"38112" ),
3=> array("number"=>3, "type"=>1, "name"=>"Channel 3 (PK)", "ip"=>"127.0.0.1", "port"=>"38113" ),
4=> array("number"=>4, "type"=>4, "name"=>"Channel 4 (Premium)", "ip"=>"127.0.0.1", "port"=>"38114" ),
5=> array("number"=>5, "type"=>8, "name"=>"Channel 5 (War)", "ip"=>"127.0.0.1", "port"=>"38115" ),
6=> array("number"=>10, "type"=>16908368, "name"=>"Channel 10 (TG)", "ip"=>"127.0.0.1", "port"=>"38116" )
);
Note the first number (1-6) always goes up in sequence and the last entry does not have an , at the end.
-
Re: TDP cabal server status script v2.0
-
Re: TDP cabal server status script v2.0
yahhhh Niceeee!!!
tested and aproved!
:thumbup:
-
Re: TDP cabal server status script v2.0
Chumpy is the greatest yipee thanks for my wish granted...
-
Re: TDP cabal server status script v2.0
Sir Chumpy...
how to put in CabalToolz....
-
Re: TDP cabal server status script v2.0
-
Re: TDP cabal server status script v2.0
-
Re: TDP cabal server status script v2.0
Quote:
Originally Posted by
GhostBaster
Sir Chumpy...
how to put in CabalToolz....
You will need at least some knowledge of PHP to be able to add it. All you really need to do is add an "include('status.php');" whever you want it to appear but where to include it is up to you.
-
Re: TDP cabal server status script v2.0
excelent release, Initially was worried about security with database use and pass right in the status.php file, but with experimentation, i foudn that it works perfectly with the config.php from the cashshop release by just removing the database section and adding 'include('config.php'); near in the place of the removed code.
thank you chumpy for another great release.
-
Re: TDP cabal server status script v2.0
I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
-
Re: TDP cabal server status script v2.0
anyone give me idea how to put this to cabaltoolz......
help me ......
i try still happent...
-
Re: TDP cabal server status script v2.0
Just put a link to it in the menu in templates/header.php. This was never designed to be a cabaltoolz addon and i'm not customizing every copy of cabaltoolz just because people can't learn a little php. If i do it for you then every other person here will ask.
-
Re: TDP cabal server status script v2.0
very good testd and aproved
-
Re: TDP cabal server status script v2.0
working, but doesn't show the online bar increments for me. (ports & max user config synched).
-
Re: TDP cabal server status script v2.0
-
Re: TDP cabal server status script v2.0
anybody can help me how to put this to Cabal Tools at one line in right side Hero rangkings status
i setting ok no problem but still not put to cabaltools size very big out from web...
-
Re: TDP cabal server status script v2.0
Quote:
Originally Posted by
[hidden]
working, but doesn't show the online bar increments for me. (ports & max user config synched).
Make sure your max users is set correctly in the config.php as if it isn't correct the graphs won't go up. If you want to test to make sure it is working then see how many people are online and set the max users to that and the graph should go full.
Quote:
Originally Posted by
GhostBaster
anybody can help me how to put this to Cabal Tools at one line in right side Hero rangkings status
i setting ok no problem but still not put to cabaltools size very big out from web...
The simplest way is to just add it into the menu by adding a link in templates/header.php. I don't really use cabaltoolz so i have not looked into integrating it as it isn't really designed as a cabaltoolz addon.
-
Re: TDP cabal server status script v2.0
already did that (configs are synchronized).
but my system goes through port maps, so probably thats whats causing the values not to show.
-
Re: TDP cabal server status script v2.0
$channels = array(
1=> array("number"=>1, "type"=>0, "name"=>"Channel 1 (Novice)", "ip"=>"127.0.0.1", "port"=>"38111" ),
2=> array("number"=>2, "type"=>0, "name"=>"Channel 2 (Trade)", "ip"=>"127.0.0.1", "port"=>"38112" ),
3=> array("number"=>3, "type"=>1, "name"=>"Channel 3 (PK)", "ip"=>"127.0.0.1", "port"=>"38113" ),
4=> array("number"=>4, "type"=>4, "name"=>"Channel 4 (Premium)", "ip"=>"127.0.0.1", "port"=>"38114" ),
5=> array("number"=>5, "type"=>8, "name"=>"Channel 5 (War)", "ip"=>"127.0.0.1", "port"=>"38115" ),
6=> array("number"=>10, "type"=>16908368, "name"=>"Channel 10 (TG)", "ip"=>"127.0.0.1", "port"=>"38116" )
);
what ip should i enter here? the linux ip? if im just running a network server??
-
Re: TDP cabal server status script v2.0
you must put client ip and port to all ip and client port at same
-
Re: TDP cabal server status script v2.0
Quote:
Originally Posted by
[hidden]
already did that (configs are synchronized).
but my system goes through port maps, so probably thats whats causing the values not to show.
The only thing that port mapping shoudl affect is the "online" display. To get the char counts the script goes directly into the cabal_character_table and checks the ChannelIdx and Login fields to see how many people are on each channel. If the "number" in the array isn't right it would cause the graphs to not go up as well.
Send me a PM with your channels array and i'll check it if you like.
Quote:
Originally Posted by
majidemo
$channels = array(
1=> array("number"=>1, "type"=>0, "name"=>"Channel 1 (Novice)", "ip"=>"127.0.0.1", "port"=>"38111" ),
2=> array("number"=>2, "type"=>0, "name"=>"Channel 2 (Trade)", "ip"=>"127.0.0.1", "port"=>"38112" ),
3=> array("number"=>3, "type"=>1, "name"=>"Channel 3 (PK)", "ip"=>"127.0.0.1", "port"=>"38113" ),
4=> array("number"=>4, "type"=>4, "name"=>"Channel 4 (Premium)", "ip"=>"127.0.0.1", "port"=>"38114" ),
5=> array("number"=>5, "type"=>8, "name"=>"Channel 5 (War)", "ip"=>"127.0.0.1", "port"=>"38115" ),
6=> array("number"=>10, "type"=>16908368, "name"=>"Channel 10 (TG)", "ip"=>"127.0.0.1", "port"=>"38116" )
);
what ip should i enter here? the linux ip? if im just running a network server??
The IP should be the linux LAN IP if the webserver is on the same lan or the wan IP (whatismyip.com) if the weberver is external. The port should be the port the worldsvrs are listening on which is the port right at the top of the worldsvr ini.
-
Re: TDP cabal server status script v2.0
I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
-
Re: TDP cabal server status script v2.0
Only the 1st server and the login server says online on mine. . even though i am running all other servers. . and channels^__^ why is that? did i put wrong ip? i pud my centOS ip in the ip parts^__^ hehhe:?:
-
Re: TDP cabal server status script v2.0
Make sure the ports are correct in the channels array. Each entry should have the port shown at the top of the worldsvr ini file.
-
Re: TDP cabal server status script v2.0
-
Re: TDP cabal server status script v2.0
to many queries.
if u have 8 channels , then that is 8 queries.
why not just do a
Select channelidx, count(*) from cabal_character_table where login =1 group by channelidx
-
Re: TDP cabal server status script v2.0
John_d .....
cabaltoolzbeta2 have TDP for setting Channel, not for Server Status...
-
Re: TDP cabal server status script v2.0
i already had it 2 months ago lolz
-
Re: TDP cabal server status script v2.0
How to setting this....TDP for cabalTools...
Can you Explane how.....i want put this to cabaltoolz web
-
Re: TDP cabal server status script v2.0
very nice keep your hard work.
-
Re: TDP cabal server status script v2.0
-
Re: TDP cabal server status script v2.0
Quote:
Originally Posted by
john_d
to many queries.
if u have 8 channels , then that is 8 queries.
why not just do a
Select channelidx, count(*) from cabal_character_table where login =1 group by channelidx
Yeah i wrote it very quickly for somebody who requested it and didn't really optimise very well. I have re-written most of it in my cash shop to sort the queries out and at some point i will do a standalone v2.1 i think.
-
Re: TDP cabal server status script v2.0
Can't download this files ...
Can you give a ftp url ?
-
Re: TDP cabal server status script v2.0
-
Re: TDP cabal server status script v2.0
this got error :(
Fatal error: Call to undefined function mssql_connect() in /www/zxq.net/c/a/b/cabalasia/htdocs/status.php on line 46
Please tell me how to fix that..
-
Re: TDP cabal server status script v2.0
I have this ERROR
Pls HELP MY
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 84.19.*.* in /opt/lampp/htdocs/chscript/status.php on line 46
Could not connect to MSSQL database.
Cabal Database Script / ip is Correctly , on *unix - Linux is a Workin IP
THANKS FOR HELP
-
Re: TDP cabal server status script v2.0
Activate the mssql extension in php.ini!
-
Re: TDP cabal server status script v2.0
Actually that looks more like a firewall problem. If the extension was missing from php.ini it usually tells you that it doesn't understand what mssql_connect() means.
Check that you can log into SQL on that computer using the management studio/query analyser. I suspect you have sql 2005 and remote connections disabled in the surface area config.
-
Re: TDP cabal server status script v2.0
Hello,
@Chumpy thanks for the Editing my Treahd for the IP!
I have not php.ini ....
I have
Status.css
Status.php
readme
images
LG;ZeroCool123er
-
Re: TDP cabal server status script v2.0
-
Re: TDP cabal server status script v2.0
someone can re-upload this i need this server check so nice :)
-
Re: TDP cabal server status script v2.0
Quote:
Originally Posted by
chumpywumpy
sir champy can you reuplode your link i want to try... and thank you in advance:rolleyes:
-
Re: TDP cabal server status script v2.0
I managed to find a copy in an old SVN backup so I have updated the link. Enjoy!
-
Re: TDP cabal server status script v2.0
i get this error and all are set corected its a new instalation of the xampp can you help me?
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\cabal\status.php on line 46
-
Re: TDP cabal server status script v2.0
That's because now mssql_connect is now deprecated you need to upgrade it to use SQLSRV: PHP: MS SQL Server (PDO) - Manual .