Tremulous Forum

Community => Servers => Topic started by: xandersears on August 22, 2009, 11:51:19 am

Title: Running a non-dedicated private server
Post by: xandersears on August 22, 2009, 11:51:19 am
Hello, and apologies in advance as despite my searches, I can't see how this could possibly have not already been covered. Please point me in the right direction if it has.
I've been playing Tremulous on and off for a while now (badly) and want to introduce my 4 or 5 of my friends to it, but ideally on a private server. The problem is, the stickied guides seem to relate to creating a dedicated server (am I right?), not just turning my Linux desktop temporarily into a password protected server, and when we're done, turn it back. Is this possible? Wise? Easy? The vanilla server would be fine, at least for a starters. Thanks  :)
Title: Re: Running a non-dedicated private server
Post by: Kiwi on August 22, 2009, 02:22:51 pm
If you would like to create a temporary server, and password protect it it easy easy to do.  Just follow the instructions here (http://tremulous.net/forum/index.php?topic=8707.0) and create a normal server.  But in your server.cfg add this to password protect it:
Code: [Select]
set g_needpass "1"
set g_password "[YourPasswordGoesHere]"
and to unpassword protect it, change your server.cfg by removing the above lines and replacing them with:
Code: [Select]
set g_needpass "0"
et g_password ""
But keep in mind that to password protect your server and unpassword protect it you will have to restart your server.  If you have any questions on setting up your server, just ask  :D
Title: Re: Running a non-dedicated private server
Post by: Archangel on August 22, 2009, 06:35:07 pm
+set dedicated 1 would be a non-public server (doesn't send heartbeats)
Title: Re: Running a non-dedicated private server
Post by: Kiwi on August 22, 2009, 07:44:58 pm
+set dedicated 1 would be a non-public server (doesn't send heartbeats)
Would this mean that it is a LAN server or that you just need to know the ip to connect to it?
Title: Re: Running a non-dedicated private server
Post by: David on August 22, 2009, 07:48:12 pm
You need the IP to connect, but anyone can join.  Basically it's making the IP into a password, which is probably enough.

Title: Re: Running a non-dedicated private server
Post by: xandersears on August 22, 2009, 09:39:56 pm
Thanks for the replies. I'll have a crack at it tomorrow.
+set dedicated 1 would be a non-public server (doesn't send heartbeats)
Would this mean that it is a LAN server or that you just need to know the ip to connect to it?
Sorry, didn't understand a word of that :-\  Do I follow your advice still Kiwi?
Title: Re: Running a non-dedicated private server
Post by: mooseberry on August 22, 2009, 10:37:51 pm
You need the IP to connect, but anyone can join.  Basically it's making the IP into a password, which is probably enough.


Title: Re: Running a non-dedicated private server
Post by: Baconizer on August 23, 2009, 01:14:18 am
Your IP number is your Internet address.

The master server gets the list of servers you see by receiving heartbeats from a server (which they do at dedicated level 2).

At dedicated level 1, the server would not send a heartbeat, and the master server wouldn't detect it. So, someone would need to know your IP address (and that you were playing Tremulous at that moment) to drop in and say hi.

It would probably be better to give your friends your IP address, than have a public, passworded server.
Title: Re: Running a non-dedicated private server
Post by: xandersears on August 23, 2009, 12:13:55 pm
I'm feeling particularly dense and annoying, but I've still got questions :S
Firstly, it sounds like the server asking for an IP address is the way to go, but my question is is that what these instructions (http://tremulous.net/forum/index.php?topic=8707.0 (http://tremulous.net/forum/index.php?topic=8707.0)) detail, or does it require something different?
Also, the aforementioned instructions seem to involve making new user groups and accounts - is this really necessary? Is there no way to have it so it's just a program to run or something.
Title: Re: Running a non-dedicated private server
Post by: David on August 23, 2009, 12:50:48 pm
Adding a new account is good as otherwise when you play on a server that has a fucked-up download it can break your server.
You can run it under the same account, but you will have to change fs_homepath to point to somewhere else so it doesn't have any cross-talk with your client.

For an easy solution, I'd suggest just open a terminal, and run "tremulous +set dedicated 1 +set fs_homepath ~/.tremded +set net_port 30750" and then tell people to /connect yourip:30750.  It'll then dump all the server files in ~/.tremded instead of the usual ~/.tremulous, which your client is using.
Title: Re: Running a non-dedicated private server
Post by: Kiwi on August 23, 2009, 01:02:09 pm
I just wanted to clarify what I said before.

The option bellow will allow your server to appear on the master list so you can see it when you click "get new list" and "refresh list", and it will also give it a password that you need to have to connect to it:
...But in your server.cfg add this to password protect it:
Code: [Select]
set g_needpass "1"
set g_password "[YourPasswordGoesHere]"
and to unpassword protect it, change your server.cfg by removing the above lines and replacing them with:
Code: [Select]
set g_needpass "0"
et g_password ""
But keep in mind that to password protect your server and unpassword protect it you will have to restart your server...

This option bellow will hide your server from the master list, so your friends need to contact you and ask you for your ip adress and port and manuely type /connect ip.ip.ip.ip:port:
Quote from: David
tremulous +set dedicated 1 +set fs_homepath ~/.tremded +set net_port 30750

But, if you start both of the servers including the command "+set fs_homepath ~/.tremded" it will keep you in your tremded directory.
Hope I helped to clear up some confusion,
Kiwi
Title: Re: Running a non-dedicated private server
Post by: Baconizer on August 24, 2009, 08:05:49 am
Yeah, all you should have to do is set 'dedicated' to '1' instead of '2.'

What David said is a good idea, too. What I did was create a user called 'tremserv' and su'd over to it from my main account. Then, start up screen (http://www.gnu.org/software/screen/) and start the tremded. That way, you can still get back to your server if you close your terminal.

Using screen is easy enough:
Ctrl-A, then D = detach your screen
Ctrl-A, then Ctrl-C = create another window in screen
Ctrl-A, then P or N = switch windows in screen
'screen' = start a screen
'screen -r' = reattach screen
'screen -rd' = reattach screen, and, if necessary, detach the already-running instance of it

Of course, it would be best to get an up-to-date tremded (I recommend TremFusion (http://www.tremfusion.net/)), and a new QVM. Lakitu7's QVM (http://projects.mercenariesguild.net/projects/lakitu7-qvm) is the standard, but since it's just you and friends, you'll probably want something else. Something with !slap.  ;)

Some other QVMs:
http://code.google.com/p/p-g-qvm/
http://mysite.verizon.net/johne/rezynqvm.html
http://code.google.com/p/slackers-qvm/