home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Forcing connection on a private server

by maddog39 on 07/30/2007 05:12, 11 messages, last message: 07/31/2007 16:35, 1038 views, last view: 04/01/2024 15:07

Hello all,

Okay well I have a server and this is becoming very agrivating. There are some individuals who come on the server and make it private and our entire clan cant get into the server.

So I\'ve been digging through the sauer source code looking for the function which handles the server connections. I found the connects() and gets2c() functions in \'engine/client.cpp\' but they dont seem to help me much. I also looked at serverslice() in \'engine/sever.cpp\' and that doesnt help either.

Basically what I\'m trying to do is modify the sauerbraten server (and possibly client, if need be) to allow either connections from local IPs or via an extra parameter on /connect with the server password, regardless of the game mode.

I am a C programmer and am willing to do the work if someone could point me in the right direction.

Thanks!
-maddog39

   Board Index   

#1: ..

by eihrul on 07/30/2007 06:21

Just use -o1 on the command-line to disable locked/private mastermodes.

reply to this message

#2: Re: ..

by demosthenes_ on 07/30/2007 06:56, refers to #1

Sounds more like he wants himself and other clan members to be able to create locked sessions, but not for guests of the server to be able to.

Or he at least wants to be able to enter and disrupt the guests' closed session so the clan members can use their server.

reply to this message

#3: Re: ..

by eihrul on 07/30/2007 07:03, refers to #2

That kind of defeats the point of the server being public in the first place.

On the CVS version you can use -o1, and then get a special master status that lets you override it with a password, though.

reply to this message

#4: Special master

by Qconorkirk03pattrickdcfasfsdf0909090Q on 07/30/2007 07:15

eihrul: is this like Admin on AssualtCube?

reply to this message

#5: Re: Special master

by eihrul on 07/30/2007 07:30, refers to #4

It's similar, but not the same.

reply to this message

#6: Re..

by }TC{noob on 07/30/2007 10:54

An easy solution:

1. Use the command-line -o1.
2. Use the command-line -pX (X for your adminpassword)
3. Edit the fpsserver.h. Go to the function parsepacket(...) and modify the case SV_MASTERMODE. Add here the right to enable the mastermode 2 and 3 for the admin status.

reply to this message

#7: Re: Re..

by noerrorsfound! on 07/30/2007 17:38, refers to #6

Modded servers aren't supposed to register with the official master server. Eihrul would need to approve of this.

reply to this message

#8: ..

by SanHolo on 07/30/2007 18:46

I still think that a command is needed which lets you directly connect as master, IF you give the right password.

That would solve a lot of problems people tend to have.

reply to this message

#9: Re: Re..

by ATIRULE on 07/30/2007 19:37, refers to #7

who cares what Eihrul thinks =/ most of the good servers are modded IE,TC,COe,HyperFragg

The Mod's add good things like ban list reset's server messages,ect ,ect
personaly I think some of of the mods should have been in sauer a LONG TIME AGO IE RESETBAN list

reply to this message

#10: ..

by maddog39 on 07/31/2007 06:34

Wow, thanks for all the great feedback. My clan members and I do not want to 'disrupt' what other guests are doing, infact we are more likely to simply help them out (since our server is a coopedit server), but atleast one of us needs to be able to get in there, we allow private sessions and want them, but not at mastermode 3, as that prevents others from connecting, we encourage mastermode 2 and below.

reply to this message

#11: Re: Re..

by noerrorsfound! on 07/31/2007 16:35, refers to #9

He is the one running the master server.

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
53865212 visitors requested 71640358 pages
page created in 0.020 seconds using 10 queries
hosted by Boost Digital