Blockland Forums > General Discussion

Out of game Server list

Pages: (1/7) > >>

Scout31:

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.

Blaze0:

FIRST POAST! Nice!

Scout31:

Thanks :D

Ephialtes:

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.
--- End quote ---

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

Scout31:


--- Quote from: Ephialtes on November 15, 2010, 01:36:56 PM ---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.

--- End quote ---
I struggled with this for awhile.

Code 1:

--- Code: ---package exampleOne
{
     function TCPObject::onConnected(%this)
     {
          if(%this.ExampleObjectOne)
               doStuffOne();
          else
               parent::onConnected(%this);
     }
};
activatepackage(exampleOne);
--- End code ---

Code 2:

--- Code: ---package exampleTwo
{
     function TCPObject::onConnected(%this)
     {
          if(%this.ExampleObjectTwo)
               doStuffTwo();
          else
               parent::onConnected(%this);
     }
};
activatepackage(exampleTwo);
--- End code ---

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: ---package exampleOneAndTwo
{
     function TCPObject::onConnected(%this)
     {
          if(%this.ExampleObjectOne)
               doStuffOne();
          else if(%this.ExampleObjectTwo)
               doStuffTwo();
          else
               parent::onConnected(%this);
     }
};
activatepackage(exampleOneAndTwo);
--- End code ---
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'

Pages: (1/7) > >>

Go to full version