home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Master server php

by sff2 on 07/03/2006 10:44, 14 messages, last message: 07/10/2006 12:04, 1797 views, last view: 05/05/2024 17:02

Est ce que c'est possible d'afficher la liste des serveurs via le master server comme c'était le cas il y a quelques temps?

   Board Index   

#1: ..

by Max of S2D [Fr] on 07/03/2006 18:22

Euh... update la liste des serveurs :)

Y'a des fois ou ca peut freezer, le MASTER server est indispo, mais c'est rare.

=) voila.

reply to this message

#2: Re: ..

by sff2 on 07/03/2006 23:21, refers to #1

non je veux dire sur cette page comme il y a quelques temps:


http://www.cubeengine.com/servers.html


Ca affichait la liste des serveurs, plus maintenant. Y a t'il un moyen?

reply to this message

#3: Master server php

by Conan the Libarian on 07/04/2006 12:44

its your own choice, but continuing
the discussing in English wil probably
get you a lot more feedback from other users.



reply to this message

#4: ..

by Max of S2D [Fr] on 07/04/2006 13:47

I think the "servers" page only work when the master server is down.

reply to this message

#5: Re: ..

by MeatROme on 07/04/2006 17:31, refers to #4

no the servers page does not "work" at all; it tells you to use the in-game server-browser - this is the only way to see map/mode and players on that server.
You /could/ call the same URI that the game calls to update it's server list,
but I doubt that this is what you want since it is only a list of IPs.
UTSL to find out what URI this is ;-)

For the current _previous release_ (meaning 2006-04-26) I did a client MOD that enabled you to view the currently available servers on your console - without firing up the whole game ... but I haven't come round to doing it for this release (2006-06-11) ... probably I'll only find time to do it for the _next_ release too :-/

watch http://www.quadropolis.us
for any upcoming releases of the "ServerMonitor" MOD ...

reply to this message

#6: Re: ..

by sff2 on 07/05/2006 14:26, refers to #5

ServerMonitor in php?

reply to this message

#7: Re: ..

by MeatROme on 07/05/2006 15:36, refers to #6

no. not PHP.
it is a client MOD.

see http://www.quadropolis.us/node/233
for details, but this version only works with the 2006-04-26 release of sauerbraten (because of protocol ... new version new protocol => each release needs own ServerMonitor)

You _/could/_ hitch this up with your webserver to run the monitor on the call of a PHP page, but your webserver would have to be able to run a sauerbraten client (libraries etc. required) ... since the MOD is a client MOD.
It just doesn't fire up the graphics stuff, simply does the master-server update routine, loops the server-resolver-thread a couple of times and then outputs the results to the console ... like what you see in the in-game serverbrowser, just as text ...

I originaly wrote this MOD to enable an IRC bot I was running at the time to output current server states to the channel.

reply to this message

#8: Re: ..

by sff2 on 07/05/2006 18:04, refers to #7

In php is possible?

reply to this message

#9: no

by MeatROme on 07/05/2006 18:09, refers to #8

in pure PHP - no it isn't possible

reply to this message

#10: Re: no

by sff2 on 07/05/2006 23:34, refers to #9

A cette page : http://www.cubeengine.com/servers.html

C'était du php qui était utilisé?

reply to this message

#11: Re: no

by MeatROme on 07/06/2006 00:44, refers to #10

The BabelFish (http://babelfish.altavista.com/tr) tells me you asked the following :
<SNIP>
With this page: http://www.cubeengine.com/servers.html It was php which was used?
</SNIP>

Well my guess would be : no again, since the extension is html ... that is no evidence but it is a strong suggestion.

Why are you so fixed on PHP?

If you want to see a web-interface you'd have to be either running the (or better "a") master-server and could then utilize a database in the background to achieve your goal - but only for those servers which use your master-server.

Since the master-server script (which is probably written in perl (like it was for cube) [before you ask if it is PHP]) is _not_ puplicly available I cannot help you with that.

It would be easy to run the ServerMonitor (for the appropriate sauerbraten version) from a PHP page (with "exec", or "system" or some such PHP command) then you'd be able to do it from and for any server.

I don't think any such feature will be officially implemented any time soon - since the in-game browser works fine.

reply to this message

#12: Maybe this will help ;-)

by MeatROme on 07/07/2006 07:47

Well, you got me going ...
... I've gone and done the update for the current version ... get it as long as it's valid [=before next release] ;-)

http://www.quadropolis.us/node/277

reply to this message

#13: ..

by virtualblackfox on 07/09/2006 11:43

The master server seem to be in written java (Or running on top of a JVM it could be written in Jython) as at least once i have seen a stack trace answered when my server registered itself.

For doing a serverbrowser in PHP it could be done using a query script called by http://www.webcron.org and a display page.
But you will have to re-write getint and sgetstr in PHP, have the right to use socket_create() and look at enet_* functions in sauer code to see how they work.

De toute façon celui qui est in-game est suffisant pourquoi vouloir en faire un sur le web ?

reply to this message

#14: Re: ..

by sff2 on 07/10/2006 12:04, refers to #13

C'est pour en mettre un sur mon site web

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53872991 visitors requested 71648196 pages
page created in 0.018 seconds using 10 queries
hosted by Boost Digital