home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


masterserver for quad?

by staffy07 on 06/14/2004 04:29, 20 messages, last message: 05/26/2008 04:14, 4416 views, last view: 05/05/2024 13:01

#1: oss masterserver

by hungerburg on 06/08/2004 13:53 through 80.109.132.21 in General Thread


the oss cube masterserver, announced a week ago in another thread, now is considered production quality. that its an easy thing to do, has often been said here - now it has become even easier for mod authors to provide one :)

the only requirement is a webserver that can execute perl scripts from a cgi-bin directory, ie. almost all there are. other features are realtime status display of a servers players, map names etc, and a simple admin interface. it will not work however if the cube server encrypts its communications.

thanks to aard and all the people on this forum and on the servers, that make cube fun to play.

download http://www.myzel.net/hungerburg/masterserver
try out http://www.myzel.net/cgi-bin/cube/masterserver

Could you make a quad masterserver with this?

   Board Index   

#1: Could you make a quad masterserver with this?

by pushplay on 06/14/2004 05:22

Probably. I don't recall toying with the protocol for talking with the masterserver.

I also released the last of my work to Quad on my site. I'm not positive what state I left it in, but it should be fine.

reply to this message

#2: does not work

by hungerburg on 06/14/2004 18:36

most likely, the protocol value is above 128 - cube then sends two chars, and the perl unpack template does not handle that.

reply to this message

#3: Re: does not work

by pushplay on 06/15/2004 01:59, refers to #2

I added a 0 to the protocol number and started working from there.

reply to this message

#4: Re: does not work

by hungerburg on 06/15/2004 14:35, refers to #3

I rebuilt the quad server with protocol set to 22 and the masterserver displays all right. with -22 the protcol is messed, the other items ok. PROTO set to 129 fails due to cubes network traffic compression algorhythm. this is clearly a shortcoming of the masterserver.

staffy, if you want to host a quad masterserver, I'd advise to change the protocol setting; you would have to recompile anyways to set the masterservers location in the binaries.

reply to this message

#5: quad masterserver

by staffy99 on 06/16/2004 11:50

i'll try and set one up on the holidays.

reply to this message

#6: ..

by gonzo_again on 02/02/2005 20:29

how can i make my server connect to ur test-masterserver ?

reply to this message

#7: ..

by gonzo_again on 02/02/2005 20:58

or is there any good readme or something :)

reply to this message

#8: Re: ..

by Rick-Ubuntu on 02/02/2005 21:53, refers to #7

gonzo: Check the readme, you can set it with a command line option.

I'm actually wondering how you can set up one...

reply to this message

#9: ..

by gonzo_again on 02/02/2005 22:23

doesnt work with
-mhttp://www.myzel.net/cgi-bin/cube/masterserver
as written in cube readme

is there areadme for the masterserver itself

reply to this message

#10: ..

by Rick-Ubuntu on 02/02/2005 22:39

" -mM sets the master server to use for either server (registering) and client (updating) to M. M is the base url of the master server and has to end in a / and without a http:// prefix, the default is wouter.fov120.com/cube/masterserver/. If you want your server to be private and not report to the masterserver, use -mlocalhost."

Does "-mwww.myzel.net/cgi-bin/cube/masterserver/"
works?

reply to this message

#11: ..

by gonzo_again on 02/02/2005 22:57

no doesnt thats my problem :)

reply to this message

#12: ..

by Rick-Ubuntu on 02/03/2005 14:21

What I wanted to say that you have to remove the http part and add a '/' at the end

reply to this message

#13: Own Masterserver

by Silverstar on 09/15/2005 21:03

Hi,
I tried to make my own masterserver using the script out of this thread.
I do ALL out of the instructions, but i get a error:
Software error:
can't open srv.dat: No such file or directory at masterserver.cgi line 212
And no login window, status/reset buttons...
I have it installed on a CGI/Perl enabled webspace, set all chmods right, but no way...
any1 a idea?
~Silverstar

reply to this message

#14: ADD:

by Silverstar on 09/15/2005 21:06

sorry for posting again; no edit function here...
On another webspace i get another error:
Premature end of script headers: masterserver.cgi
Maybe a help for u to help me?!?
~Silverstar

reply to this message

#15: Re: Own Masterserver

by hungerburg on 09/25/2005 19:47, refers to #13

Software error:
can't open srv.dat: No such file or directory at masterserver.cgi line 212

in the same directory, where you put the perl script, also create two files "srv.dat" and "log.txt" and make them writable by the webserver (chmod 666 but only if it doesnt work without that)

peter

reply to this message

#16: Master Server

by TheGreatVirus on 10/29/2005 12:00

Is there a way to make this run under Windows XP IIS?

-TGV-

reply to this message

#17: ..

by TheGreatVirus on 10/29/2005 20:56

Im getting this error:

Error
Unknown Masterserver request: /cgi-bin/cube/masterserver.cgi

reply to this message

#18: ..

by TheGreatVirus on 10/31/2005 01:18

Could someone please tell me why it's saying that? =(

reply to this message

#19: Re: ..

by hungerburg on 11/02/2005 13:47, refers to #18

save below text to "test.pl" in yr. cgi dir:

#!/usr/bin/perl -w

print "Content-type: text/plain\n\n";
foreach $key (sort keys(%ENV)) {
print "$key = $ENV{$key}\n";
}

###### end of script

then point yr. browser at "http://localhost/cgi-bin/test.pl/asdf" and look at the output, esp. where it says "PATH_INFO" - it should be above url with the script name removed ie. "/asdf"! if IIS doesnt remove the leading path, you have to do that yourself in the script (eg. subtract SCRIPT_NAME) or install apache2 on your box, whatever is easier:)

reply to this message

#20: 4 mods

by ACCESS{-}DENIED on 05/26/2008 04:14

BUMP BUMP BUMPTY

might be of use 2 some one

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
53865450 visitors requested 71640596 pages
page created in 0.022 seconds using 10 queries
hosted by Boost Digital