Author Topic: Out of game Server list  (Read 1905 times)

Simple PHP script I made while I was bored to view and join servers out of game. Its easier to see than http://blockland.us/browse.php, due to the fact that it shows the same information as ingame, not just the name and picture.


Enjoy.


Kalphiter, just go away.



Er - this was done a long time ago.

http://forum.returntoblockland.com/serverBrowser.php

And just looking around ...

Quote
Because of the way RTB and BuB work, I created a system mixing the two TCP packages together to get
them to work.
If Ephialtes is changing the normal RTB package, I want to have that updated and ready
to use when BuB releases.

Don't do this. I'm not going to let you post anything that screws up RTB.

Er - this was done a long time ago.

http://forum.returntoblockland.com/serverBrowser.php

And just looking around ...

Don't do this. I'm not going to let you post anything that screws up RTB.
I struggled with this for awhile.

Code 1:
Code: [Select]
package exampleOne
{
     function TCPObject::onConnected(%this)
     {
          if(%this.ExampleObjectOne)
               doStuffOne();
          else
               parent::onConnected(%this);
     }
};
activatepackage(exampleOne);

Code 2:
Code: [Select]
package exampleTwo
{
     function TCPObject::onConnected(%this)
     {
          if(%this.ExampleObjectTwo)
               doStuffTwo();
          else
               parent::onConnected(%this);
     }
};
activatepackage(exampleTwo);

Only the most recently activated package on that function will be used, so only doStuffTwo(); will be called. So, what my solution was to do this:


Code: [Select]
package exampleOneAndTwo
{
     function TCPObject::onConnected(%this)
     {
          if(%this.ExampleObjectOne)
               doStuffOne();
          else if(%this.ExampleObjectTwo)
               doStuffTwo();
          else
               parent::onConnected(%this);
     }
};
activatepackage(exampleOneAndTwo);
Nothing modifying the way RTB works.




EDIT: Also, I've never seen the RTB server list have 'Join Server' before. Guess thats new.




Unrelated to post EDIT 2:
I added 'Servers active' and 'The most popular server is ____ with __ players'
« Last Edit: November 15, 2010, 01:52:03 PM by Scout31 »

It's good, but the lack of sorting in player order or alphabetically makes it kinda annoying, especially since it's all text.

Added a Server Preview for the most popular server, ability to sort by players, and made the code a bit more efficient.



My server is in red!
That's probably good!


What does the color tell you.

I'm a blind forget and didn't notice.

Firefox can't find the server at backupblockland.us.

lol

Firefox can't find the server at backupblockland.us.

lol
Webserver is down.