Starting a dedicated server on a Mac
|
06-28-2009, 03:49 PM
Post: #1
|
|||
|
|||
Starting a dedicated server on a Mac
I moved the server_mac.sh file to the Nexuiz folder and changed some of the settings in server.cfg (by deleting the '\\' in front then changing what I needed to). Then I copy/pasted server.cfg to the Nexuiz\data folder. Lastly, I ran the Nexuiz-osx-dedicated executable and here is what it said:
badmilk101, proud to be a member of Nexuiz Ninjaz - Practicing the Ninja Art of Nexuiz since Jun 2009.
$ /Applications/Nexuiz/nexuiz-osx-dedicated ; exit; Nexuiz Mac OS X 12:37:34 May 1 2009 - release Trying to load library... "libz.dylib" - loaded. WARNING: base gamedir data/ not found! Trying to load library... "libcurl.4.dylib" - loaded. couldn't exec quake.rc couldn't exec default.cfg execing config.cfg couldn't exec autoexec.cfg SpawnServer: no map file named maps/start.bsp I tried moving the whole Nexuiz folder to my home directory, but still no dice. I don't understand, if I can load & play the game & it can find the data folder, why can't the Nexuiz-osx-dedicated find the data folder? It's right there! The error output is very minimal, so I am not sure what is going on exactly. Does anyone have any thoughts? Thanks! |
|||
06-29-2009, 11:03 AM
Post: #2
|
|||
|
|||
RE: Starting a dedicated server on a Mac
No help...
badmilk101, proud to be a member of Nexuiz Ninjaz - Practicing the Ninja Art of Nexuiz since Jun 2009.
I was wondering if the server script itself is incorrect (for mac). I suppose I could get Ubuntu and try the Linux script, but that seems like a lot of work just to play a game of Nexuiz w/my friends! |
|||
06-29-2009, 09:20 PM
(This post was last modified: 06-29-2009 09:21 PM by -z-.)
Post: #3
|
|||
|
|||
RE: Starting a dedicated server on a Mac
try running it with the the config and basedir flags like such:
Inspire your neighbor, they'll inspire you back../nexuiz-osx-dedicated +serverconfig server.cfg -basedir /path/to/nexuiz [url=http://maps.nexuizninjaz.com]maps.nn[/url] | [url=http://pics.nexuizninjaz.com]pics.nn[/url] | [url=http://chat.nexuizninjaz.com]chat.nn[/url] | [url=http://toolz.nexuizninjaz.com/cvar]2.5 cvar browser[/url] |
|||
06-29-2009, 11:08 PM
Post: #4
|
|||
|
|||
RE: Starting a dedicated server on a Mac
(06-29-2009 09:20 PM)-z- Wrote: try running it with the the config and basedir flags like such:Thanks for the reply -z-. I first tried what you suggested, and got a similar error. However, before I was attempting to run the nexuiz-osx-dedicated script by double-clicking on it, which would open up a terminal window with the error I gave before. For some unknown reason, I had different (much better) luck opening the nexuiz-osx-dedicated script from the terminal itself (as opposed to doubling clicking on it). [Why would this make a difference!?] So, I typed "./nexuiz-osx-dedicated" from the terminal while in the Nexuiz folder, and it worked! (Well, at first I had some issues with the 'server.cfg' file, because my Mac decided to add a hidden '.txt' suffix to the file since I opened it up with textedit. Grr... fixed it.) Everything seems to have gone smoothly, except for a few things: (1) Some various warnings (although I don't think warnings are necessarily bad ... am I wrong?): Warning: Could not expand $r_showsurfaces Warning: Could not expand $gl_finish Warning: Could not expand $v_kicktime Warning: Could not expand $qport in alias if_dedicated Warning: Could not expand $r_dynamic in alias _update_generic couldn't exec autoexec.cfg (2) It seems to be using the IP address 0.0.0.0:26000 (I'm assuming that's bad). I left the "//net_address 0.0.0.0" commented out in the server.cfg file. Should I figure out what my IP address is and change it to this in the server.cfg file? Here is the terminal output that involved my IP address: Server listening on address 0.0.0.0:26000 (3) For now, my server is public, but I can't see my server in the list of servers when I play multiplayer Nexuiz with my other computer. I expected this since it is using the IP address 0.0.0.0 Again, any help would be appreciated. I feel like I'm almost there... Thanks again! --------------------------------- Just in case it helps, here is all of my terminal output after running the nexuiz-osx-dedicated script: ./nexuiz-osx-dedicated Nexuiz Mac OS X 12:37:34 May 1 2009 - release Trying to load library... "libz.dylib" - loaded. Added packfile data/common-spog.pk3 (26 files) Added packfile data/data20090501.pk3 (7532 files) Trying to load library... "libcurl.4.dylib" - loaded. execing quake.rc execing default.cfg execing defaultNexuiz.cfg execing physics25.cfg execing newhook.cfg execing ctfscoring-div0.cfg execing weapons.cfg execing normal.cfg Warning: Could not expand $r_showsurfaces Warning: Could not expand $gl_finish Warning: Could not expand $v_kicktime Warning: Could not expand $qport in alias if_dedicated execing turrets.cfg execing unit_machinegun.cfg execing unit_hk.cfg execing unit_hellion.cfg execing unit_mlrs.cfg execing unit_flac.cfg execing unit_fusreac.cfg execing unit_plasma.cfg execing unit_plasma2.cfg execing unit_tesla.cfg execing unit_phaser.cfg execing unit_walker.cfg execing unit_ewheel.cfg execing config.cfg execing data/campaign.cfg execing config_update.cfg Warning: Could not expand $r_dynamic in alias _update_generic couldn't exec autoexec.cfg Server using port 26000 Server listening on address 0.0.0.0:26000 Loading csprogs.dat server detected csqc progs file "csprogs.dat" with size 424328 and crc 2826 Compressing csprogs.dat Deflated: 72.9949% execing server.cfg Game type successfully switched to dm "sv_gravity" changed to "700" Server using port 26000 Server listening on address 0.0.0.0:26000 Loading csprogs.dat server detected csqc progs file "csprogs.dat" with size 424328 and crc 2826 Compressing csprogs.dat Deflated: 72.9949% Loading csprogs.dat server detected csqc progs file "csprogs.dat" with size 424328 and crc 2826 Compressing csprogs.dat Deflated: 72.9949% "fraglimit" changed to "30" "timelimit" changed to "20" ...And then there is a blinking cursor after the last line. I am assuming that normally the terminal continues to output server info, like when people join, etc. And then to shut down the server I hit command-period (on a mac), like usual. |
|||
06-30-2009, 10:01 AM
Post: #5
|
|||
|
|||
RE: Starting a dedicated server on a Mac
Ok, you need to uncomment the net_address, and the server output looks completely normal. Try uncommenting the address, and see what you get....
[url=http://dojov2.nexuizninjaz.com][img]http://dojov2.nexuizninjaz.com/css/img/signature.png[/img][/url]
Also, if you have a firewall, you need to open up port 26000 on it. |
|||
06-30-2009, 09:21 PM
(This post was last modified: 06-30-2009 09:22 PM by -z-.)
Post: #6
|
|||
|
|||
RE: Starting a dedicated server on a Mac
and sv_public 1
Inspire your neighbor, they'll inspire you back.You can post your config [url=http://toolz.nexuizninjaz.com/pb]here[/url] if you want us to review it. [url=http://maps.nexuizninjaz.com]maps.nn[/url] | [url=http://pics.nexuizninjaz.com]pics.nn[/url] | [url=http://chat.nexuizninjaz.com]chat.nn[/url] | [url=http://toolz.nexuizninjaz.com/cvar]2.5 cvar browser[/url] |
|||
07-01-2009, 10:50 AM
Post: #7
|
|||
|
|||
RE: Starting a dedicated server on a Mac
Thanks for everyone's help.
badmilk101, proud to be a member of Nexuiz Ninjaz - Practicing the Ninja Art of Nexuiz since Jun 2009.
The main problem was that when I kept reading that I needed my firewall to not block port 26000, I thought it meant just my computer's personal firewall. I didn't realize that my router would be blocking that port from coming to my computer. After much reading on the web, I found out what to do & how to do it: I told my router to forward port 26000 to my computer's internal IP address (not my router's internal IP). In addition to this, I added the following to the top of server.cfg: IP <my external IP> port 26000 I'm not sure if the 2nd thing helped or not, but it couldn't have hurt because it works now. One strange thing is that when I set sv_public to '1', I still didn't see my server on the list (but outsider's could join by manually typing in my IP & port). After all this, I set sv_public back to '0' to make it private. However, after I did this, then random outsiders [i]were[/i] joining my server (and told me they [i]did[/i] see it on the list). I think that setting sv_public to '1' simply didn't take immediately, but after it eventually did get on the server list, setting sv_public to '0' simply meant I was no longer requesting to be on the list. Setting sv_public to '0' doesn't make sure that the server is off the list, it just doesn't put it on it. But I could be wrong... Thanks again for the help (I got especially good help on irc chat). |
|||
07-02-2009, 07:37 AM
Post: #8
|
|||
|
|||
RE: Starting a dedicated server on a Mac
sv_public 1 has to tell the master server that it's online. So there could be some delay in the first time your server comes online to the outside.
Inspire your neighbor, they'll inspire you back.There are two other values: [url]http://toolz.nexuizninjaz.com/cvar/index.php?search=sv_public[/url] [url=http://maps.nexuizninjaz.com]maps.nn[/url] | [url=http://pics.nexuizninjaz.com]pics.nn[/url] | [url=http://chat.nexuizninjaz.com]chat.nn[/url] | [url=http://toolz.nexuizninjaz.com/cvar]2.5 cvar browser[/url] |
|||
« Next Oldest | Next Newest »
|