Eve Server Status mod for EDK4

Discuss/Upload mods to the EVE-Dev Killboard.
DorianRamius
Noob
Posts: 9
Joined: Fri Dec 09, 2011 05:35

Re: Eve Server Status mod for EDK4

Post by DorianRamius » Sat Dec 24, 2011 08:51

Imuniser wrote:Very nice mod. Thank you!

Just a quick question ... the killboard is not allowing registration; how do I show the mod to visitors?
I'm not sure what you mean by not allowing registration.

Imuniser
Greenhorn
Posts: 10
Joined: Sat Jun 14, 2008 20:24

Re: Eve Server Status mod for EDK4

Post by Imuniser » Sat Dec 24, 2011 18:16

I've solved it.

The killboard is set to deny registration and the mod was only showing as a registered (authenticated user) but I've set the killboard to open killboard and now the mod shows up even if you visit as guest (unauthenticated).

Thank you for the reply!

Drak65
Apprentice
Posts: 56
Joined: Fri Oct 19, 2012 18:20

Re: Eve Server Status mod for EDK4

Post by Drak65 » Wed Oct 24, 2012 21:45

Oh dear, Ive done something really stupid!!!

Fatal error: Cannot redeclare class serverstatus in /home/content/44/9966244/html/killboard/common/includes/class.serverstatus.php on line 6

installed mod and activated. Now I get this?

Help

ConradSyld
Greenhorn
Posts: 19
Joined: Mon Aug 22, 2011 01:01

Re: Eve Server Status mod for EDK4

Post by ConradSyld » Wed Oct 24, 2012 23:16


Drak65
Apprentice
Posts: 56
Joined: Fri Oct 19, 2012 18:20

Re: Eve Server Status mod for EDK4

Post by Drak65 » Thu Oct 25, 2012 00:11

I've checked the file and its ok. Strange thing is when I deactivate this mod everything runs fine

idun
Developer
Posts: 152
Joined: Tue Mar 16, 2010 06:30

Re: Eve Server Status mod for EDK4

Post by idun » Wed Feb 13, 2013 22:59

Repost from eve-id.net forums (23 Jan 2013) by SPEC1AL1ST:
Working version
Attachments
server_status.7z
Working version for EDK 4.0.4
And set Display test server: NO
(3.21 KiB) Downloaded 291 times

thewizard
Noob
Posts: 2
Joined: Fri Apr 24, 2015 02:09

Re: Eve Server Status mod for EDK4

Post by thewizard » Fri Apr 24, 2015 02:44

help

when enabling the mod i get, running version 4.2.8.0

Code: Select all

ata = null; $this->ip = $server_ip; $this->port = $server_port; } public function getLastErrorString() { return $this->lasterrorstr; } public function getLastErrorNo() { return $this->lasterrorno; } public function read() { $handle = @fsockopen($this->ip,intval($this->port), $this->lasterrorno,$this->lasterrorstr); $this->data = ''; if(!$handle) { return false; } $this->data = fread($handle, 8192); fclose($handle); } // quick hack http://www.eveonline.com/ingameboard.asp?a=topic&threadID=722567 public function getPlayerCount() { if($this->data == null) return false; if (strlen($this->data) > 21) { switch (hexdec(bin2hex(substr($this->data,19,1)))) { case 4: $userbytes = 4; break; case 5: $userbytes = 2; break; case 6: $userbytes = 1; break; } $multiplyer = 1; for($i=0;$i<$userbytes;$i++) { $players = hexdec(bin2hex(substr($this->data,20+$i,1))) * $multiplyer ; $cplayers += $players; $multiplyer *= 256; } return $cplayers; } return false; } } ?>

anchorhead
Someday Author
Posts: 89
Joined: Thu May 16, 2013 12:48

Re: Eve Server Status mod for EDK4

Post by anchorhead » Tue Feb 16, 2016 19:54

Hello,

Since i have upgrade debian 7 to debian 8 i have the following error on my kb when this mod is enable, an idea please ?

data = null; $this->ip = $server_ip; $this->port = $server_port; } public function getLastErrorString() { return $this->lasterrorstr; } public function getLastErrorNo() { return $this->lasterrorno; } public function read() { $handle = @fsockopen($this->ip,intval($this->port), $this->lasterrorno,$this->lasterrorstr); $this->data = ''; if(!$handle) { return false; } $this->data = fread($handle, 8192); fclose($handle); } // quick hack http://www.eveonline.com/ingameboard.as ... dID=722567 public function getPlayerCount() { if($this->data == null) return false; if (strlen($this->data) > 21) { switch (hexdec(bin2hex(substr($this->data,19,1)))) { case 4: $userbytes = 4; break; case 5: $userbytes = 2; break; case 6: $userbytes = 1; break; } $multiplyer = 1; for($i=0;$i<$userbytes;$i++) { $players = hexdec(bin2hex(substr($this->data,20+$i,1))) * $multiplyer ; $cplayers += $players; $multiplyer *= 256; } return $cplayers; } return false; } } ?>


Fatal error: Call to undefined method API::API() in /var/www/xxxxx/mods/server_status/class.serverstatus.php on line 22

User avatar
Salvoxia
Developer
Posts: 1531
Joined: Wed Feb 22, 2012 12:11

Re: Eve Server Status mod for EDK4

Post by Salvoxia » Tue Feb 16, 2016 22:00

Hi,

if you see this entire text on the killboard

Code: Select all

data = null; $this->ip = $server_ip; $this->port = $server_port; } public function getLastErrorString() { return $this->lasterrorstr; } public function getLastErrorNo() { return $this->lasterrorno; } public function read() { $handle = @fsockopen($this->ip,intval($this->port), $this->lasterrorno,$this->lasterrorstr); $this->data = ''; if(!$handle) { return false; } $this->data = fread($handle, 8192); fclose($handle); } // quick hack http://www.eveonline.com/ingameboard.as ... dID=722567 public function getPlayerCount() { if($this->data == null) return false; if (strlen($this->data) > 21) { switch (hexdec(bin2hex(substr($this->data,19,1)))) { case 4: $userbytes = 4; break; case 5: $userbytes = 2; break; case 6: $userbytes = 1; break; } $multiplyer = 1; for($i=0;$i<$userbytes;$i++) { $players = hexdec(bin2hex(substr($this->data,20+$i,1))) * $multiplyer ; $cplayers += $players; $multiplyer *= 256; } return $cplayers; } return false; } } ?>
it might be that your PHP setting "short_open_tag" is set to off (the file class.readstatus.php begins with "<?" instead of "<?php"). You can choose which to change.


This error

Code: Select all

Fatal error: Call to undefined method API::API() in /var/www/xxxxx/mods/server_status/class.serverstatus.php on line 22
is most likely the result of the killboard's compatibility changes for PHP7.
You can fix that by opening the mod's class.serverstatus.php and replacing the line

Code: Select all

parent::API();
with

Code: Select all

parent::__construct();
Best Regards,
Salvoxia

anchorhead
Someday Author
Posts: 89
Joined: Thu May 16, 2013 12:48

Re: Eve Server Status mod for EDK4

Post by anchorhead » Tue Feb 16, 2016 22:09

Salvoxia wrote:
Tue Feb 16, 2016 22:00
Hi,

if you see this entire text on the killboard

Code: Select all

data = null; $this->ip = $server_ip; $this->port = $server_port; } public function getLastErrorString() { return $this->lasterrorstr; } public function getLastErrorNo() { return $this->lasterrorno; } public function read() { $handle = @fsockopen($this->ip,intval($this->port), $this->lasterrorno,$this->lasterrorstr); $this->data = ''; if(!$handle) { return false; } $this->data = fread($handle, 8192); fclose($handle); } // quick hack http://www.eveonline.com/ingameboard.as ... dID=722567 public function getPlayerCount() { if($this->data == null) return false; if (strlen($this->data) > 21) { switch (hexdec(bin2hex(substr($this->data,19,1)))) { case 4: $userbytes = 4; break; case 5: $userbytes = 2; break; case 6: $userbytes = 1; break; } $multiplyer = 1; for($i=0;$i<$userbytes;$i++) { $players = hexdec(bin2hex(substr($this->data,20+$i,1))) * $multiplyer ; $cplayers += $players; $multiplyer *= 256; } return $cplayers; } return false; } } ?>
it might be that your PHP setting "short_open_tag" is set to off (the file class.readstatus.php begins with "<?" instead of "<?php"). You can choose which to change.


This error

Code: Select all

Fatal error: Call to undefined method API::API() in /var/www/xxxxx/mods/server_status/class.serverstatus.php on line 22
is most likely the result of the killboard's compatibility changes for PHP7.
You can fix that by opening the mod's class.serverstatus.php and replacing the line

Code: Select all

parent::API();
with

Code: Select all

parent::__construct();


Best Regards,
Salvoxia
ok i will try this, thanks Salvoxia for your very fast support !!
Edit : it works fine, thanks again !

Post Reply

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 14 guests