Tremulous Forum

Community => Servers => Topic started by: HotSoup on April 01, 2007, 12:20:44 am

Title: Guide To Setting Up A Server On A MAC
Post by: HotSoup on April 01, 2007, 12:20:44 am
Ok, so I realized that there are a lot of you guys that have MACs and there's really no guide that tells how to make a server on a MAC. Thus, I have decided to make one. I'm not some Pro-Gamer/Pro-Coder, but I eventually figured this shit out, so here we go.


Go to "Applications", then "Utilities", and then finally, "Terminal"

Once it's opened, copy and paste the follow commands, and press enter after each command...

Code: [Select]
mkdir -p ~/Library/Application\ Support/Tremulous/base/vm
Code: [Select]
cd ~/Library/Application\ Support/Tremulous/base/vm
Code: [Select]
curl -O http://tjw.org/tremulous/game.qvm
Code: [Select]
curl -O http://tjw.org/tremulous/mac/tremded.ub
Code: [Select]
chmod a+x tremded.ub

The next step, 6, can be tricky if you don't exactly know where tremulous is installed. If you don't know where, go to spotlight, type in Tremulous, and when the little Tyrant w/ sunglasses icon comes up, right-click on it, and then click "Get Info". Under the tab "General Info" it says "where" followed by a /list/of/things/with/slashes/ect. This is where tremulous is installed

For step six you need to type the following...

Code: [Select]
cp tremded.ub /the/place/where/tremulous/is/installed

the "/the/place/where/tremulous/is/installed" is what it says under "where" in the "get info" for Tremulous.

For example, on my computer, I installed Tremulous to the Applications folder, so I would type

Code: [Select]
cp tremded.ub /Applications/Tremulous

and then I would press enter.

The next time 7 is similar, the command you enter is

Code: [Select]
cd /the/place/where/tremulous/is/installed

Once, again, its the same place you typed in the last command.

Code: [Select]
cp Tremulous.app/Contents/MacOS/libSDL-1.2.0.dylib .
Code: [Select]
./tremded.ub +set dedicated 2 +exec server.cfg

Ok, there you go, then your server should be up and running! That's how to get it started.

Now close the terminal and quit the process.

Next, in the "Base" folder where tremulous is installed, there is file called "server.cfg"

Right click the file, and select "Open With..." and choose the program "text edit"

This is where you are able to set how many players, the name of your server, /rcon password, ect.

For example, to have a server named "Mac OS X Server" that displays the link for Apple.com when it loads, starts on the map ATCS, has a 16 player max limit, SD is at 35 and game time limit is 55 WITH an /rcon password "butter" the text would look like this...

Observe where it says everything, you change most of the stuff by entering different positive integers.

Code: [Select]
set sv_pure 0

//passwords
set g_needpass 0
//set g_password password   //server password
set rconPassword butter

//loading screen
set sv_hostname "Mac OS X Server"
set g_motd "www.apple.com"

//disallow downloads from the server
set sv_allowdownload 0

//maximum number of clients
//greater than 24 is not recommended from a gameplay point of view
set sv_maxclients 16

//after 35 minutes, all build points are removed
set g_suddenDeathTime 35
//after 55 minutes, the game will end as a draw
set timelimit 55

//forces each team to have a similar number of players
set g_teamForceBalance 1

//following the first map, start this rotation
set g_initialMapRotation rotation1

//misc settings
set pmove_fixed     0
set sv_minRate      5000
set sv_maxRate      15000
set sv_minSnaps     10

//start this map first
map atcs


To change these, all you do is replace the values or name within the quotations.

I'll do one more just so people can see where to change things exactly

This next server is named "L33T Server". It has a 24 max player with a time limit of 25 minutes, with SD at 15 minutes. The /rcon password is 1337. As the game loads, it says "I'm going to eat your children..." The server starts on the map Niveus

Code: [Select]
set sv_pure 0

//passwords
set g_needpass 0
//set g_password password   //server password
set rconPassword 1337

//loading screen
set sv_hostname "L33T Server"
set g_motd "I'm going to eat your children..."

//disallow downloads from the server
set sv_allowdownload 0

//maximum number of clients
//greater than 24 is not recommended from a gameplay point of view
set sv_maxclients 24

//after 15 minutes, all build points are removed
set g_suddenDeathTime 15
//after 25 minutes, the game will end as a draw
set timelimit 25

//forces each team to have a similar number of players
set g_teamForceBalance 1

//following the first map, start this rotation
set g_initialMapRotation rotation1

//misc settings
set pmove_fixed     0
set sv_minRate      5000
set sv_maxRate      15000
set sv_minSnaps     10

//start this map first
map niveus


Just so you don't get confused, look at the two, to see what exactly was changed and what didn't.

After you finish customizing your server, click "Save" and then quit.

Next is the admin.dat files to make administrators on your server.

Click on the following series of files

Finder--->Users--->YourComputerName--->Library--->Application Support--->Tremulous--->Base

Once you are here, keep this open, and then open the "text edit" in "Applications" folder. Save a blank file into the "base" folder you just found. Name the files "admin"

Once it is saved in that file, right click on it, and then click "Get Info"

Under the name and extension category highlight and erase it, and retype "admin.dat", when the message comes up to whether want to use .dat or .rtf, click the one with .dat.

Now all you have to do is open Terminal back up and type the following commands and press enter after each one.

Code: [Select]
cd /the/place/tremulous/is/installed

Code: [Select]
./tremded.ub +set dedicated 2 +exec server.cfg

You're server, fully customized is fully operational and up and running. Whenever you want to run your server, open Terminal and type the last two following commands.

The final step is going into your server, which should appear in the master list. Once you enter the game open console (that happens by pressing the "~" button next to the "1" and by typing the following, you can !setlevel yourself as the operator of the server, and you can be an administrator with !commands.

Code: [Select]
/rcon password !setlevel partofyourname 5

and then you should be admin!

And you can now have a fully operational server.

Notes
To close the server, simply close terminal, and quit the process.

Feel free to copy and paste my sample server.cfgs but I suggest that you change the /rcon password first, this way people can't !setlevel themself.

Some problems...

If your server does not appear in the master list, but instead the LAN list, this means you either

A. Have to change your firewall settings

or

B. You are on a network and need to set up port forwarding with your main router

How to fix this is all situational towards what type of router and system you have. If this is the case, I suggest Google-ing it!

I hope this works, any MAC-heads out there, please tell me if something needs to be changed!
Title: Guide To Setting Up A Server On A MAC
Post by: Stunt on April 01, 2007, 09:14:41 am
Thank you for this!
Title: Re: Guide To Setting Up A Server On A MAC
Post by: benmachine on April 01, 2007, 06:21:22 pm
Quote from: "HotSoup"
If your server does not appear in the master list, but instead the LAN list, this means you either

A. Have to change your firewall settings

or

B. You are on a network and need to set up port forwarding with your main router

How to fix this is all situational towards what type of router and system you have. If this is the case, I suggest Google-ing it!

I dispute this. My server shows up on my LAN list (I connect to it through port 30720 locally) but it shows up on other people's Internet lists (they connect through some other crazy port that I can't really work out). This is down to a router setting called universal Plug and Play, which sorts out port forwarding perfectly for everyone, as if by magic. I appreciate though that for most setups, you're probably right.
(I seriously don't understand it, but your server appearing in the local list doesn't necessarily mean it's not working. Ask someone far far away to connect for confirmation).
Title: Guide To Setting Up A Server On A MAC
Post by: HotSoup on April 01, 2007, 10:53:57 pm
yea I've had a number of people try to connect to the server when it comes up as LAN, didn't work for them though, oh well.
Title: Guide To Setting Up A Server On A MAC
Post by: n00b pl0x on April 01, 2007, 11:02:05 pm
holy crap. that guide makes me really really glad i have windows.
Title: Guide To Setting Up A Server On A MAC
Post by: TinMan on April 01, 2007, 11:39:49 pm
Windows isn't much different, except that your trem server will suck.
Title: Guide To Setting Up A Server On A MAC
Post by: n00b pl0x on April 02, 2007, 12:46:06 am
actually, no.

windows you install tremded.exe to where trem is, the game.qvm into base/vm, and a sample server.cfg. edit the server.cfg the way you want it, then type cmd into run and type cd c:\program files\tremulous then tremded.exe +set dedicated 2 +exec server.cfg

and you have a server...
Title: Guide To Setting Up A Server On A MAC
Post by: HotSoup on April 02, 2007, 02:19:32 am
...which is exactly what my guide does. It just goes into detail.
Title: Wow, this is frustrating!
Post by: GrooveMachine on April 21, 2007, 02:53:09 am
A few nights ago, my server was up and on running on the INTERNET list.  The next day, after I had to quit Terminal overnight, my server wouldn't show up on the INTERNET list, only the LAN list.  The only changes I had made were adding some commands to admin.dat, and trying to figure out a maprotation file.  I tried deleting ever server file I had (except autogen.cfg and server.cfg).  Then I followed the instructions from tjw.org/tremulous/SETUP.txt (which are also on the first post of this thread).  It still won't show up on the INTERNET list.  HELP!
Title: Re: Wow, this is frustrating!
Post by: next_ghost on April 21, 2007, 09:51:13 am
Quote from: "GrooveMachine"
A few nights ago, my server was up and on running on the INTERNET list.  The next day, after I had to quit Terminal overnight, my server wouldn't show up on the INTERNET list, only the LAN list.  The only changes I had made were adding some commands to admin.dat, and trying to figure out a maprotation file.  I tried deleting ever server file I had (except autogen.cfg and server.cfg).  Then I followed the instructions from tjw.org/tremulous/SETUP.txt (which are also on the first post of this thread).  It still won't show up on the INTERNET list.  HELP!


Sorry dude, my crystal ball is broken.
Title: Re: Wow, this is frustrating!
Post by: benmachine on April 21, 2007, 01:23:17 pm
Quote from: "GrooveMachine"
A few nights ago, my server was up and on running on the INTERNET list.  The next day, after I had to quit Terminal overnight, my server wouldn't show up on the INTERNET list, only the LAN list.  The only changes I had made were adding some commands to admin.dat, and trying to figure out a maprotation file.  I tried deleting ever server file I had (except autogen.cfg and server.cfg).  Then I followed the instructions from tjw.org/tremulous/SETUP.txt (which are also on the first post of this thread).  It still won't show up on the INTERNET list.  HELP!

My guess is, something other than the things you mentioned changed overnight. For example, if you had port forwarding set up to that computer before, it's possible that the local IP of your machine changed and so the ports are no longer being forwarded to the server.
Title: Guide To Setting Up A Server On A MAC
Post by: GrooveMachine on April 22, 2007, 11:32:03 pm
Yeah, I hink you're probably right.  How could I fix those?
Title: Guide To Setting Up A Server On A MAC
Post by: David on April 23, 2007, 01:19:00 am
We don't know what the problem is, so cant help you.
Like next_ghost said, we don't have a crystal ball.

If you post logs and the server IP and all the other needed info, then people might be able to help.
Title: Guide To Setting Up A Server On A MAC
Post by: stalefries on April 27, 2007, 06:41:33 pm
Thanks for the guide, worked fine as soon as I realized I had to put the files in my home folder's Aplication Support folder, not the system-wide one.
Title: What ports do the server use?
Post by: fredfredburger on May 04, 2007, 04:08:34 pm
What ports the server use?
Title: Guide To Setting Up A Server On A MAC
Post by: AKAnotu on May 10, 2007, 02:21:51 am
i'm having some problems, my server's not showing up. heres a copy+paste of my terminal
Code: [Select]
Last login: Wed May  9 20:05:00 on ttyp1
Welcome to Darwin!
[172:~] graham% mkdir -p ~/Library/Application\ Support/Tremulous/base/vm
[172:~] graham% cd ~/Library/Application\ Support/Tremulous/base/vm
[172:Tremulous/base/vm] graham% curl -O http://tjw.org/tremulous/game.qvm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  503k  100  503k    0     0  73252      0  0:00:07  0:00:07 --:--:-- 83864
[172:Tremulous/base/vm] graham% curl -O http://tjw.org/tremulous/mac/tremded.ub
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  3 7559k    3  228k    0     0  61371      0  0:02:06  0:00:03  0:02:03 67695ch  4 7559k    4  314k    0     0  66873      0  0:01:55  0:00:04  0:01:51 72226
100 7559k  100 7559k    0     0  79282      0  0:01:37  0:01:37 --:--:-- 83218
[172:Tremulous/base/vm] graham% chmod a+x tremded.ub
[172:Tremulous/base/vm] graham% cp tremded.ub /Users/graham/Desktop/games/Tremulous 20060704
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
[172:Tremulous/base/vm] graham% cd /Users/graham/Desktop/games/Tremulous 20060704
tcsh: cd: Too many arguments.
[172:Tremulous/base/vm] graham% cp Tremulous.app/Contents/MacOS/libSDL-1.2.0.dylib .
cp: Tremulous.app/Contents/MacOS/libSDL-1.2.0.dylib: No such file or directory
[172:Tremulous/base/vm] graham% ./tremded.ub +set dedicated 2 +exec server.cfg
dyld: Library not loaded: @executable_path/libSDL-1.2.0.dylib
  Referenced from: /Users/graham/Library/Application Support/Tremulous/base/vm/./tremded.ub
  Reason: image not found
Trace/BPT trap
[172:Tremulous/base/vm] graham% cd /the/place/tremulous/is/installed
tcsh: /the/place/tremulous/is/installed: No such file or directory.
[172:Tremulous/base/vm] graham% cd /Users/graham/Desktop/games/Tremulous 20060704
tcsh: cd: Too many arguments.
[172:Tremulous/base/vm] graham% ./tremded.ub +set dedicated 2 +exec server.cfg
dyld: Library not loaded: @executable_path/libSDL-1.2.0.dylib
  Referenced from: /Users/graham/Library/Application Support/Tremulous/base/vm/./tremded.ub
  Reason: image not found
Trace/BPT trap
[172:Tremulous/base/vm] graham%


my server.cfg:
Code: [Select]

set sv_pure 0

//passwords
set g_needpass 0
//set g_password password   //server password
set rconPassword nice try :)

//loading screen
set sv_hostname "Test-do not join"
set g_motd "don't join"

//disallow downloads from the server
set sv_allowdownload 0

//maximum number of clients
//greater than 24 is not recommended from a gameplay point of view
set sv_maxclients 16

//after 35 minutes, all build points are removed
set g_suddenDeathTime 35
//after 55 minutes, the game will end as a draw
set timelimit 55

//forces each team to have a similar number of players
set g_teamForceBalance 1

//following the first map, start this rotation
set g_initialMapRotation rotation1

//misc settings
set pmove_fixed     0
set sv_minRate      5000
set sv_maxRate      15000
set sv_minSnaps     10

//start this map first
map atcs
[/code]
Title: Guide To Setting Up A Server On A MAC
Post by: next_ghost on May 10, 2007, 04:58:33 pm
Quote from: "AKAnotu"
Code: [Select]
... lots of commands with wrong arguments ...


Can you read or do I have to mark you the error messages so you can find them? :roll:
Title: Guide To Setting Up A Server On A MAC
Post by: benmachine on May 10, 2007, 07:49:07 pm
In order to cd to a path containing a space you need to either enclose the path in "these" or escape the space with a\ backslash.
So
Code: [Select]
cd /Users/graham/Desktop/games/Tremulous 20060704
becomes
Code: [Select]
cd /Users/graham/Desktop/games/Tremulous\ 20060704
cd "/Users/graham/Desktop/games/Tremulous 20060704"

either will do.

next_ghost: this post did not give me cancer. Being nice isn't so hard, really. Being quiet is even easier. Try one.
Title: Guide To Setting Up A Server On A MAC
Post by: AKAnotu on May 10, 2007, 09:55:40 pm
thanks. i use a mac. i normally don't have to crawl through code. just because i have no idea why theres an argument with tremded not being a picture or whatever, doesn't mean you have to flame. :advmarauder:
Title: Guide To Setting Up A Server On A MAC
Post by: next_ghost on May 10, 2007, 10:20:28 pm
Quote from: "AKAnotu"
thanks. i use a mac. i normally don't have to crawl through code. just because i have no idea why theres an argument with tremded not being a picture or whatever, doesn't mean you have to flame. :advmarauder:


3 hints for you:
1) Tab is a very useful key, try using it in command line
2) UNIX programs ussually say something only when they have a problem, if they do, then read it! It's not code but simple error message.
3) New Macs are UNIX-based
Title: Guide To Setting Up A Server On A MAC
Post by: Samurai.mac on August 13, 2007, 05:08:38 pm
I'm fairly certain you could use Apple script to do all this for you, not quite sure how though, I've never actually used it to write something before.
Title: Guide To Setting Up A Server On A MAC
Post by: GrooveMachine on August 13, 2007, 11:58:15 pm
Hey, if you guys want to set up your server without typing a bit of code, check out my Mac Tremulous Server Setup  shell script, the aptly named "MacTremServ".  It comes with an install script, uninstall script, server start script, and server file cleanup script (for server file errors).  Check it out here:

http://www.divshare.com/download/1573978-90c

It's a 5.3MB download, and you'll want to run it from your Desktop (meaning if if download to your desktop, don't move any files/folders).  Give it a try--it should be perfectly stable (it's in its seventh version).  Also, I have a Tremulous.net board discussing it here:

http://tremulous.net/phpBB2/viewtopic.php?t=5751

Let me know what you would want added to it, and I'll try to include it in the next version.

-GrooveMachine
Title: Re: Guide To Setting Up A Server On A MAC
Post by: GrooveMachine on December 04, 2007, 12:42:03 am
Hey, for those of you who are having trouble with MacTremServ, here's the fixed up version that shouldn't say permission denied (but if it DOES, READ THE README FILE).  Enjoy!

http://www.divshare.com/download/2990592-71b

-Groove
Title: Re: Guide To Setting Up A Server On A MAC
Post by: rankok on December 10, 2007, 05:02:50 am
my server dosnt show up in lan internet or favourites and tremulous wont turn on the screen goes black then it quits
Title: Re: Guide To Setting Up A Server On A MAC
Post by: rankok on December 10, 2007, 05:15:29 am
how do u set it up so it appears in the lan list
Title: Re: Guide To Setting Up A Server On A MAC
Post by: GrooveMachine on December 24, 2007, 08:42:03 pm
Hey guys, after days of testing and fixing, MacTremServ is fully functional.  It truly works now.  I've used it on all of my computers with no problem.  It's the easiest way to get your server up and running.  Download here:

http://www.divshare.com/download/3161522-61d

Coming soon, MacTremServ will include options for modded servers and alternate QVMs.  It may be a while though, because that will require extensive testing and long hours of working.  Thanks for your patience!

-GrooveMachine
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Death On Ice on December 26, 2007, 11:24:02 pm
Quote from: GrooveMachine
...advertising...
::)
Title: Re: Guide To Setting Up A Server On A MAC
Post by: GrooveMachine on December 27, 2007, 09:04:59 am
Well, it is advertising in a sense, but I figured I might as well help them out by informing them of it :)
Title: Help!!!
Post by: hov on March 06, 2008, 09:49:36 pm
??? I followed the code and all in the guide but sometimes when i put the code into the terminal
the terminal says "error:there is no such file"(this usualy happens when there is a code that has "cd" in it).
And then when I try to find my server on the master list it doesnt show up.

can somebody please help me with this??
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Shturts on April 25, 2008, 12:15:31 am
Kay, like rankok said, tremulous doesn't wanna open anymore, the screen goes black like it's loading, but then the black fades and it's back to desktop, help pl0x? =/
Title: Re: Guide To Setting Up A Server On A MAC
Post by: JSPA711 on May 10, 2008, 06:05:38 am
yo i tried to do this and the server is up but it wont let me become the admin... i type /rconpassword (mypassword) !setlevel (myname) 5 and it doesnt let... PLEASE HELP!!
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Death On Ice on May 10, 2008, 06:18:35 am
In the Terminal window in which your server is running, type '!setlevel [yourname] 5'.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: doomagent13 on May 23, 2008, 02:02:56 am
Its just "/rcon <your_rcon_password> !setlevel <your_name> <max_level>", not "/rconpassword".
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bullseye on July 07, 2008, 04:46:39 am
help me soup mine didnt work
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bissig on July 07, 2008, 06:42:19 am
help me soup mine didnt work

This is not a helpful description of your problem at all.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: mooseberry on July 07, 2008, 09:08:35 am
help me soup mine didnt work

This is not a helpful description of your problem at all.

If you want to post a detailed description of why your server doesn't work, please post here, if you do not, must modern computers have a mind reader built into the back of the box, labeled I/O.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 06, 2008, 09:33:26 pm
i just setup mine, and everything went great except that when i go into tremulous the server shows up under local and not under internet where all the other servers r...
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bissig on August 06, 2008, 10:49:54 pm
./tremded.ub +set dedicated 2 +exec server.cfg
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 06, 2008, 10:52:32 pm
what do i do with that???

Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bissig on August 06, 2008, 10:57:31 pm
Reading is difficult isn't it?

Mac:

Guide To Setting Up A Server On A MAC: (that is the thread you posted in FIRST PAGE)

http://tremulous.net/forum/index.php?topic=4124.0

Windows:

http://tremulous.net/forum/index.php?topic=3586.0

Linux:

http://tremulous.net/forum/index.php?topic=8707.0
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 06, 2008, 11:05:11 pm
yea i did all that including the thing u put, and i even got the admin thingy done it just doesnt show up in the right list...
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bissig on August 06, 2008, 11:25:47 pm
yea i did all that including the thing u put, and i even got the admin thingy done it just doesnt show up in the right list...

Then you are still doing it wrong. The only way it happens like you say is when you either start a server WITHIN your tremulous client or when you did not note the BIG BLACK TEXT in my first answer here and indeed set it as "+set dedicated 1" instead of "+set dedicated 2"

Post here from your config file/terminal window what exactly you put in.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 06, 2008, 11:33:45 pm
 ./tremded.ub +set dedicated 2 exec server.cfg
tremulous 1.1.0 macosx-x86 Aug 14 2006
 and thats copy pasted
after i put that in it just goes right up, and then when i go in its in local not interenet


Title: Re: Guide To Setting Up A Server On A MAC
Post by: David on August 06, 2008, 11:36:41 pm
Or, you just have a shit nat, and it will never appear on the internet list for you.
Try pinging it from elsewhere and see if it is really on the web or not.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 06, 2008, 11:40:08 pm
ok well im not at home right now so im gonna close it, and when i get home ill try agaiun

Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 07, 2008, 03:05:56 am
nope still not working

Title: Re: Guide To Setting Up A Server On A MAC
Post by: Rocinante on August 07, 2008, 05:10:09 am
If you have a crappy NAT, as suggested, you will never see the server in anything but "local" because of how the router mangles the packets.  You may or may not have other people able to see the server and/or connect to it, depending on how things work (sometimes changing the client to use a different net_port (I think that's the option) helps here).

If you're running the server on the same machine as the client, same rules apply.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 07, 2008, 09:45:16 pm
ok  well its called the server of the truth(my friend came up wit it) if someone will tell me if it comes up in local or internet
Title: Re: Guide To Setting Up A Server On A MAC
Post by: David on August 07, 2008, 11:54:03 pm
Its not up: http://tremmaster.quakedev.net/
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 08, 2008, 05:06:14 pm
ok well anyone got an idea of something i could do to make it work??
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on August 17, 2008, 12:48:13 am
ok i got mine to work and show up now... but i have one problem, the admin.dat file stays blank and does not fill itself out, should i type in the stuff myself???
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bomb on August 17, 2008, 12:49:36 am
You've already asked that question in this (http://tremulous.net/forum/index.php?topic=8857.0) thread. There's no need to ask it again.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: HotSoup on September 02, 2008, 06:52:13 am
Mmmmm hi, I don't normally come on this thread a whole lot. Professor, judging by your other posts, you shouldn't be anywhere near a computer more or less trying to make a server. Nonetheless, thanks everyone for keeping the MAC server thread alive.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: professor on November 09, 2008, 11:12:54 pm
hmm wow ur a bit late.. yea by now my server pwns and it turns out i was looking in the wrong folder for the admin.dat, and the server just didnt show up in the lan area for a while it fixed it self..
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bissig on November 09, 2008, 11:36:23 pm
hmm wow ur a bit late.. yea by now my server pwns and it turns out i was looking in the wrong folder for the admin.dat, and the server just didnt show up in the lan area for a while it fixed it self..

You are TWO month late, so wtf is the point of your post?
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bulletsjohn on July 23, 2009, 06:28:32 pm
uuuuuuuuh....... I'VE GOT A BIT OF A PROBLEM!!!! when i type in cd /the/place/where/tremulous/is/installed/ (/applications/tremulous 20060704/tremulous in my computer) it says no such file or directory...... WTF? I'M LOOKING DIRECTLY AT IT!!!! what is my problem? i'm doing it exactly how it says.... and IT WON'T WORK! CAN SOMEONE PLEASE TELL ME WHAT MY PROBLEM IS? i cannot find out what my problem is... is it possible that the command was written wrong (i'm talking about the command in the post... cd.... i do not know what it does since i do not know unix code... but maybe it was the wrong command? because this isn't working and if my clan doesn't get a server up ASAP we could crash.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: David on July 23, 2009, 06:33:28 pm
A) Write in English.  Having to decipher your post isn't incentive to spend any time helping you.
B) No one gives a crap about your clan.
C) The file path has a space in it.  Spaces in file names are evil.  Either remove the space, or wrap the path in quotes, eg: cd "/applications/tremulous 20060704/"
D) cd stands for "change directory"
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bulletsjohn on July 23, 2009, 06:42:55 pm
i'm sorry, i'm just a little bit annoyed... i'll try that. and i am speaking clear english... if you really want me to capitalize every sentence, i can do that. but i'm just annoyed that it won't do what i tell it to.

i'm going to be picking up a UNIX code book very soon, but in the mean time, cut me a bit of slack. i'm anything but used to jerking around with the terminal on my mac. i'm scared to death i might screw up something in Tremulous. i tried what you told me to do, and it says (entire line)

-bash: /cd: no such file or directory

is it possible that i need to put a space after the slash? (example: / applications/ tremulous20060704/ tremulous) i know this might sound completely illogical but again, i'm a retard in this kind of thing.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Archangel on July 23, 2009, 07:08:46 pm
Quote
Either remove the space, or wrap the path in quotes, eg: cd "/applications/tremulous 20060704/"

Quote
-bash: /cd: no such file or directory

so who here can't read?
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bulletsjohn on July 23, 2009, 07:18:43 pm
i don't see where you're getting with that post...
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Archangel on July 23, 2009, 08:17:42 pm
Quote
Either remove the space, or wrap the path in quotes, eg: cd "/applications/tremulous 20060704/"

Quote
-bash: /cd: no such file or directory

Quote
cd "/applications/tremulous 20060704/"
even though it's actually /Applications, iirc. it is case sensitive, and space sensitive.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bulletsjohn on July 23, 2009, 08:24:08 pm
i'll try...... although that post still seems ambiguous to me, due to lack of detail. i'll see what i can do.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bulletsjohn on July 23, 2009, 08:41:31 pm
ok, that worked... thank you, but now i have another thing to work out. i got to the point to type in ./tremded.ub +set dedicated 2 +exec server.cfg....

i get this out of my terminal:

dyld: Library not loaded :@executable_path/libSDL-1.2.0.dylb
   Referenced from: /applications/tremulous 20060704/./tremded.ub
   Reason: image not found
Trace/BPT trap

do i need to retrace a step, or what? because obviously either i missed a step, or the person writing the article missed a step.

if you think you can help me, my MSN is john@relw3.net. i would greatly appreciate the help. i can see that you all are not liking that i cloud this thread up with questions (who does?). thank you for the help so far, but with future help, i'd rather not do it here.

here's something you/we should do... make a guide that has as little to do with the terminal as possible. the reason why, is everything that can be done with the terminal, can also be done with dragging, dropping, clicking, and searching. sure, this is an excellent guide for mac users who know UNIX code, but i am not familliar with it, and i'm sure you all will see some more like me who are not familiar with it, and do not know what to do if this doesn't work.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: infestor1 on July 23, 2009, 08:55:34 pm
ok, that worked... thank you, but now i have another thing to work out. i got to the point to type in ./tremded.ub +set dedicated 2 +exec server.cfg....

i get this out of my terminal:

dyld: Library not loaded :@executable_path/libSDL-1.2.0.dylb
   Referenced from: /applications/tremulous 20060704/./tremded.ub
   Reason: image not found
Trace/BPT trap

do i need to retrace a step, or what? because obviously either i missed a step, or the person writing the article missed a step.

if you think you can help me, my MSN is john@relw3.net. i would greatly appreciate the help. i can see that you all are not liking that i cloud this thread up with questions (who does?). thank you for the help so far, but with future help, i'd rather not do it here.

here's something you/we should do... make a guide that has as little to do with the terminal as possible. the reason why, is everything that can be done with the terminal, can also be done with dragging, dropping, clicking, and searching. sure, this is an excellent guide for mac users who know UNIX code, but i am not familliar with it, and i'm sure you all will see some more like me who are not familiar with it, and do not know what to do if this doesn't work.

Well the author didn't miss a step, because this all works fine for me. What was your COMPLETE startup command? Everything you type into Terminal. Because i see that you typed ... so that might indicate that there is more after that...

@ your suggestion about an easier guide: I actually wrote a program with applescript to automatically start up the server. Do you want it? And not ALL of this can be done with JUST dragging and dropping. :D
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bulletsjohn on July 23, 2009, 09:25:41 pm
aww sweet that program sounds excellent... can i try it out? please and thank you so much.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: infestor1 on July 23, 2009, 09:54:35 pm
sure but your trem folder needs to be in /Applications/Tremulous

it will only work then. is it?
Title: Re: Guide To Setting Up A Server On A MAC
Post by: David on July 23, 2009, 10:08:14 pm
dyld: Library not loaded :@executable_path/libSDL-1.2.0.dylb
   Referenced from: /applications/tremulous 20060704/./tremded.ub
   Reason: image not found
Trace/BPT trap

You need to install SDL.  If it didn't come with trem then I have no idea how such stuff would be done on a mac.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Bulletsjohn on July 23, 2009, 10:47:47 pm
sure but your trem folder needs to be in /Applications/Tremulous

it will only work then. is it?

i'll tell you what i have. in applications, i scroll all the way down to find a folder called Tremulous 20060704 (no idea what the number is for) and in that folder is the base folder, some PDF documents (like the readme) and a folder called src. then at the bottom it has the tremulous alias in there.

so if the /applications/tremulous is a folder with the alias in it, yes i have that.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Archangel on July 24, 2009, 12:37:38 am
the tremulous server shouldn't require sdl...
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Laencii on August 28, 2009, 10:28:32 am
I'm new.... my problem is this:

(http://img191.imageshack.us/i/imagen1yzzbdp.png/)
http://img191.imageshack.us/i/imagen1yzzbdp.png/

Why says "Permission denied"?

Sorry for my english, but i'm spanish ^^
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Archangel on August 28, 2009, 10:32:17 am
chmod +x tremded.ub
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Laencii on August 28, 2009, 11:00:32 am
I have been following a guide and put it when he told me

EDIT:

Terminal

(http://img188.imageshack.us/i/imagen1ije.png/)
http://img188.imageshack.us/i/imagen1ije.png/

Help plz  :'(
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Archangel on August 28, 2009, 12:47:22 pm
you need to put a . at the end of the cp line
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Laencii on August 28, 2009, 01:56:28 pm
TKS  ;) :D but see the Terminal

Code: [Select]
TERMINAL ELIMINATED BY LAENCII

EDIT: OK, y server is running, but in LAN

How can I put on the internet?
I have to configure?

EDIT 2:
Despite being admin, I do not have permission to commands.
Apart from that, I can not change the name or description of the server.
And when I put a command in the terminal tells me:
couldn't exec (commandname).cfg
only on: sdmode1/2, unlaggedon/off...
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Archangel on August 28, 2009, 10:37:33 pm
!setlevel your_name 5
g_unlagged 1
g_suddendeathmode 2

you need to set server name and such in server.cfg

it'll show up as LAN from your computer, if you did it right.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Laencii on August 28, 2009, 11:18:47 pm
OK, some errors are already fixed, but when i run a command from the game, said
Permission Denied

In some others commands:

unlaggedon/off
ffon/off
clanmatch/unclanmatch
bffon/off
humanstage1/2/3
alienstage1/2/3
shareon/off
sdmode1/sdmode2
stage1/2/3
mm1on/nomm1

give me this error:
couldn't exec (commandname).cfg

And finally, i can't configure the server.cfg file despite change, I get the same name

Sry for my English

PD: The server sets LAN and Internet
And i'm lvl 6 admin
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Archangel on August 29, 2009, 12:09:59 am
you need to create the files in base/ with those commands inside.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Laencii on August 29, 2009, 09:45:57 am
the error was in the QVM, but it is solved  :D

What I can't change the name and description of the server and always will change from file server.cfg.

The tutorial helped me a lot.

Congratulations!

EDIT:
 
rectified, i can't edit the file server.cfg, nothing
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Eleazar on September 02, 2009, 07:21:53 pm
I just created a script to create a server on the mac it does not set up the server.cfg though (It's very primitive).  Hopefully by this december I should have a full program to install and configure a server.  It is only for the Mac.

http://www.box.net/shared/9u9sercxix
Title: Re: Guide To Setting Up A Server On A MAC
Post by: julespino on October 23, 2009, 12:02:07 pm
ummm it wont let me save an empty admin file in text edit
why ??
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Kiwi on November 19, 2009, 10:40:42 pm
You should be able too.  Most of the time I just open a used .cfg file (there all over the place in your tremulous base) and put what you want in it and save it somewhere else.  This method tends to get most of the extension stuff worked out.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: frazzler on December 29, 2009, 11:00:25 pm
Alright, I need a hand. I'd really like to start a server up, but God hates me. Here's the main problems:
Code: [Select]
mv: tremded.ub: No such file or directory
mv: game.qvm: No such file or directory
cp: Tremulous.app/Contents/MacOS/libSDL-1.2.0.dylib: No such file or directory
mv: maprotation.cfg: No such file or directory
mv: Server Commands: No such file or directory
kl100707s-macbook-pro:~ user-kl707$ /game.qvm
-bash: /game.qvm: No such file or directory
kl100707s-macbook-pro:~ user-kl707$

Although they quite obviously exist, otherwise I would not be able to run Tremulous. They all are in the base folder except for Server Commands. This is from using that 'groove' fellows guide that I downloaded. When using the regular guide in the thread, I follow all the steps successfully until I reach that second CD command with all the +'s in it. In which case This:
Code: [Select]
Last login: Wed Dec 30 02:07:13 on ttys000
kl100707s-macbook-pro:~ user-kl707$ ./tremded.ub +set dedicated 2 +exec server.cfg
-bash: ./tremded.ub: No such file or directory
occurs.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: HotSoup on February 05, 2010, 03:48:10 am
Been awhile since I've been on here or even looked at this post. Thanks to everyone to keeping it alive! I'm not even sure if I remember how to do any of this stuff anymore it's been so long!
Title: Re: Guide To Setting Up A Server On A MAC
Post by: LunaticJames on February 18, 2010, 10:15:56 pm
It won't let me save the server.cfg textedit file. Anyone know what I did wrong?  ???
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Gregstein on July 16, 2010, 09:32:43 pm
Check permissions in the file–if not, make new and replace it.


BTW. I found I cannot start serv on mac. I did as tut says but i recieve this error:

InitGame: \g_suddenDeathTime\15\g_maxGameClients\0\sv_minPing\0\timelimit\25\sv_hostname\L33T Server\sv_maxclients\24\sv_minRate\5000\sv_maxRate\15000\sv_maxPing\0\version\tremulous 1.1.0 macosx-ppc Aug 14 2006\protocol\69\mapname\niveus\sv_privateClients\0\sv_allowDownload\0\g_needpass\0\gamename\base
********************
ERROR: G_ParseSpawnVars: found  when expecting {
********************
----- Server Shutdown (Server crashed: G_ParseSpawnVars: found  when expecting {) -----
==== ShutdownGame ====
ShutdownGame:


What makes this error and how can iI fix it?
Title: Re: Guide To Setting Up A Server On A MAC
Post by: David on July 16, 2010, 09:35:16 pm
You have a mismatched server a game.qvm.  The QVM you're using will probably recommend a server that works.
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Gregstein on July 17, 2010, 11:52:39 am
You have a mismatched server a game.qvm.  The QVM you're using will probably recommend a server that works.

Sorry, I'm alien and I don't understand humanisch. What do you mean mismatched–It's Trem v. GPP1 and I did nothing with .qvm–no bots, no download.

I tried to start server using older version of Trem(the one before GPP) and i recieved error same as earlier. Funny or not.



EDIT: Now I feel like one. Because I've got QVM, but I spend time looking at it and praying.

Edit no 2:Sorry for bothering you. Got Off…
Title: Re: Guide To Setting Up A Server On A MAC
Post by: Gregstein on July 23, 2010, 02:13:56 pm
I tried combination of Lakitu's QVM 5.5 + MG's Tremded.ub.
IT DOES NOT WORK TOO.