Problem setting up dedicated server on OS X

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

Problem setting up dedicated server on OS X

Postby Eureka! » Sun Feb 22, 2009 11:08 pm

Hi, I've read the readme.txt file on setting up a dedicated server for mac and followed the instructions, with support from the FAQ, to the closest detail.

When I run the script that starts the server up, (by typing /Games/Nexuiz/server_mac.sh into the Terminal, right?) everything seems fine. It doesn't give me a success message nor a failure message so I guess that went right. I go to Console and this is what I'm seeing over and over again:

Code: Select all
Nexuiz Mac OS X 09:06:31 May 11 2008
Trying to load library... "libz.dylib" - loaded.
Added packfile /Games/Nexuiz/data/common-spog.pk3 (26 files)
Added packfile /Games/Nexuiz/data/data20080511.pk3 (4076 files)
Trying to load library... "libcurl.4.dylib" - loaded.
Trying to load library... "libvorbis.dylib" - loaded.
Trying to load library... "libvorbisfile.dylib" - loaded.
Trying to load library... "libmodplug.dylib" - loaded.
Trying to load library... "OffscreenGecko.dylib" "/Games/Nexuiz/Nexuiz.app/Contents/MacOS/OffscreenGecko.dylib" - failed.
execing quake.rc
execing default.cfg
execing physicsQBR.cfg
execing newhook.cfg
execing weapons.cfg
execing normal.cfg
execing config.cfg
execing config_update.cfg
execing data/campaign.cfg
couldn't exec autoexec.cfg
Initializing Video Mode: fullscreen 1024x768x32x60hz
Loading OpenGL driver /System/Library/Frameworks/AGL.framework/AGL
Loading OpenGL driver /System/Library/Frameworks/OpenGL.framework/OpenGL
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: NVIDIA NV34MAP OpenGL Engine
GL_VERSION: 1.5 NVIDIA-1.4.18
GL_EXTENSIONS: GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_vertex_blend GL_ARB_window_pos GL_ARB_shader_objects GL_ARB_vertex_shader GL_EXT_multi_draw_arrays GL_EXT_clip_volume_hint GL_EXT_rescale_normal GL_EXT_draw_range_elements GL_EXT_fog_coord GL_APPLE_client_storage GL_APPLE_specular_vector GL_APPLE_transform_hint GL_APPLE_packed_pixels GL_APPLE_fence GL_APPLE_vertex_array_object GL_APPLE_vertex_program_evaluators GL_APPLE_element_array GL_APPLE_flush_render GL_NV_texgen_reflection GL_NV_light_max_exponent GL_IBM_rasterpos_clip GL_SGIS_generate_mipmap GL_ARB_shading_language_100 GL_ARB_imaging GL_ARB_point_parameters GL_ARB_texture_env_crossbar GL_ARB_texture_border_clamp GL_ARB_multitexture GL_ARB_texture_env_add GL_ARB_texture_cube_map GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat GL_ARB_shadow GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_occlusion_query GL_ARB_point_sprite GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_EXT_compiled_vertex_array GL_EXT_framebuffer_object GL_EXT_texture_rectangle GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap GL_EXT_texture_filter_anisotropic GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_APPLE_ycbcr_422 GL_APPLE_vertex_array_range GL_APPLE_texture_range GL_APPLE_float_pixels GL_ATI_texture_float GL_APPLE_pixel_buffer GL_NV_point_sprite GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_blend_square GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_fog_distance GL_NV_depth_clamp GL_NV_multisample_filter_hint GL_NV_fragment_program_option GL_NV_vertex_program2_option GL_ATI_texture_env_combine3 GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
AGL_EXTENSIONS:
Trying to load library... "libjpeg.62.dylib" - loaded.
Trying to load library... "libpng12.0.dylib" - loaded.
Draw_CachePic: failed to load gfx/complete
Draw_CachePic: failed to load gfx/inter
Shader 'textures/Reaptxt/sun' already defined
S_Startup: initializing sound output format: 44100Hz, 16 bit, 2 channels...
Initializing CoreAudio...
   Chunk size = 1024 sample frames
   Hardware format:
    44100 mSampleRate
     lpcm mFormatID
        8 mBytesPerPacket
        1 mFramesPerPacket
        8 mBytesPerFrame
        2 mChannelsPerFrame
       32 mBitsPerChannel
   Initialization successful
Sound format: 44100Hz, 2 channels, 16 bits per sample
CDAudio_Init: No CD in player.
Can't get initial CD volume
CD Audio Initialized
Client using an automatically assigned port
Client opened a socket on address local:2
Client opened a socket on address 0.0.0.0:52452
Fake CD track 1 playing...


To me it looks like it's running the server perfectly. However, when I enter Nexuiz and look for my server on the server list, I cannot see it. Nowhere in sight. It is publicly listed, as I stated in the server.cfg file amongst other things.

What am I doing wrong? Does a port need to be forwarded on my network? If so, how would I do this and with what port? Please help me!

Thanks, Tom.
Eureka!
Member
 
Posts: 23
Joined: Thu Dec 04, 2008 6:04 pm
Location: London

Postby Eureka! » Sun Feb 22, 2009 11:34 pm

I also think it could be a problem with my server.cfg file. Could anybody post an example of what a fully functional, correct server.cfg file would look like? Maybe I've forgotten something.

Thanks again, sorry for the double post, Tom.

EDIT: I've now also gone into my computer's firewall and enable the port stated in the FAQ, so I don't think it's that, unless I have to forward the port through my router?
Eureka!
Member
 
Posts: 23
Joined: Thu Dec 04, 2008 6:04 pm
Location: London

Postby sYm » Mon Feb 23, 2009 8:48 am

i assume you use v2.4.2
starting in terminal is fine. You can try to exec the nexuiz.osx-dedicated by hand.
The log you posted is from your client and of no help at the moment, you can post the log of the dedicated server, right out of your terminal.

When your server is running, assuming your server and client are on the same mac, you can type into your clients console (open with shift-esc) connect localhost You should then connect to your dedicated server.
Do not forget to forward also your router's port, default 26000 UDP.
<edit>If you run your dedicated server and your client on the same mac, you do not need to forward a port, but you need to forward if you want other people play on your server</edit>

Some server.cfgs can be found here, although the default one is well documented
http://delight.vapor.com/ at the bottom
http://peacebrothers.karinskromsnavels. ... php?tid=76

i think there are some more cfgs, posted somewhere of the internet

gl
bye sYm PB

#pb.nexuiz #nexuiz.de @ quakenet.org
sYm
Advanced member
 
Posts: 59
Joined: Sat Dec 30, 2006 4:27 pm

Postby esteel » Mon Feb 23, 2009 9:48 am

I guess you took the files from Nexuiz/Docs/server/ ? the server.cfg from there IS working.. basicly this file does NOTHING unless you edit it and unless someone does that the server will just run at total defaults.

But it would be more helpful if you print the output of the SERVER console (you should see that in the terminal window you started it in). Especially look out for messages telling you that it changed the port. Normally servers that run on the default port 26000 should be automatically found if they run in the same local network (even if nonpublic).

Have you tried to connect to the server 'by hand'? That is to open the console on your client and enter 'connect localhost:port" (replace port with the right port)
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Eureka! » Mon Feb 23, 2009 11:03 am

You can try to exec the nexuiz.osx-dedicated by hand.


How do I do this?

The log you posted is from your client and of no help at the moment, you can post the log of the dedicated server, right out of your terminal.


When I run the server through terminal it just makes a new line and says nothing else, there is no log from my dedicated server there.

you can type into your clients console (open with shift-esc) connect localhost You should then connect to your dedicated server.


Clients console? What is that and where can I find it?

Do not forget to forward also your router's port, default 26000 UDP.


This is pretty straightforward I'll go and do it now.

Some server.cfgs can be found here, although the default one is well documented
http://delight.vapor.com/ at the bottom
http://peacebrothers.karinskromsnavels. ... php?tid=76


My cfg file was all over the place haha, thanks for the examples this should bring me one step closer to getting the server running.

helpful if you print the output of the SERVER console (you should see that in the terminal window you started it in).


What's the server console? I don't get any other info in Terminal, I type the location of the mac server script thing and then it makes a new line, then if I type 'exit' it logs out so I'm sure the script has started it just doesn't say anything anywhere cept in the app Console.

Have you tried to connect to the server 'by hand'? That is to open the console on your client and enter 'connect localhost:port" (replace port with the right port)


If you could possibly go through this procedure in more detail then I will try :)

Thank you for your replies, Tom.
Eureka!
Member
 
Posts: 23
Joined: Thu Dec 04, 2008 6:04 pm
Location: London

Postby esteel » Mon Feb 23, 2009 11:17 am

sorry, but the forum does not like the link..
Code: Select all
http://svn.icculus.org/*checkout*/nexuiz/trunk/server/server_mac.sh
.. Try that file instead of the one you use currently. Thats the one from the development version (which will be released as new version rather soon) and someone made a few fixes to it. That could very well fix the issue at hand (that the server is not starting as it should). But it also shows that mac stuff does not get tested enough.. you are the first to report problems :P

If it does start you will get output in that console window and it should be rather clear then.. Your last post made rather sure the server is not starting up!
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Eureka! » Mon Feb 23, 2009 11:26 am

esteel wrote:sorry, but the forum does not like the link..
Code: Select all
http://svn.icculus.org/*checkout*/nexuiz/trunk/server/server_mac.sh
.. Try that file instead of the one you use currently. Thats the one from the development version (which will be released as new version rather soon) and someone made a few fixes to it. That could very well fix the issue at hand (that the server is not starting as it should). But it also shows that mac stuff does not get tested enough.. you are the first to report problems :P

If it does start you will get output in that console window and it should be rather clear then.. Your last post made rather sure the server is not starting up!


This is what I type in with the new file:

Code: Select all
Tibsys-PowerBook:~ Tom$ /Games/Nexuiz/server_mac.sh


This is what I get:

Code: Select all
-bash: /Games/Nexuiz/server_mac.sh: Permission denied


Any ideas?


This is what my config file looks like now. Is everything alright?


Code: Select all
exec server.cfg
exec server-minsta.passw.cfg

hostname "TeebFrag Minsta"
sv_motd "Welcome to TeebFrag Minstagib!"
minplayers 2
maxplayers 8
port 26000
sv_public 1
log_file server.log

g_dm 1
g_footsteps 1
g_grappling_hook 1
g_balance_minstagib_nex_refire 1
g_fullbrightplayers 1
sv_vote_commands "$sv_vote_commands sv_defaultplayer_fbskin_green sv_defaultplayer_fbskin_red sv_defaultplayer_fbskin_orange sv_defaultplayer_fbskin_off"

g_minstagib 1
g_maplist "aggressor basement bluesky dieselpower dismal downer evilspace farewell reslimed ruiner runningman silvercity skyway soylent starship toxic warfare fragcity"

timelimit_override 20
fraglimit_override 20

bot_number 2
skill 1


*admin-edit* merged the two posts
Eureka!
Member
 
Posts: 23
Joined: Thu Dec 04, 2008 6:04 pm
Location: London

Postby esteel » Mon Feb 23, 2009 12:28 pm

Eureka! wrote:This is what I get:
Code: Select all
-bash: /Games/Nexuiz/server_mac.sh: Permission denied

Any ideas?

The file does not have the execuatable bit set.. i'm sure you can set it via GUI somehow but i have no clue about Mac :)
try: chmod 0755 /Games/Nexuiz/server_mac.sh

The config file looks fine for the most part, next time please use the edit button to edit your previous post and add the info there.. Double posting is gererally not wanted.

However i guess the first two lines are bad in your case. The examples i added to Nexuiz/Docs/server (config files and scripts) use the name server.cfg thus the first line in your script will start a endless loop.. it will load server.cfg and right away load the file.. and again and again.........

However, why don't you just use the example in Nexuiz/Docs/server ? Are they unclear or whats wrong with them?
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Eureka! » Mon Feb 23, 2009 1:46 pm

The file does not have the execuatable bit set.. i'm sure you can set it via GUI somehow but i have no clue about Mac
try: chmod 0755 /Games/Nexuiz/server_mac.sh


This seems to work, I don't recieve the 'Permission Denied' message any longer, but then again it doesn't say anything afterwards.

This is what I type in:

Code: Select all
Tibsys-PowerBook:~ Tom$ chmod 0755 /Games/Nexuiz/server_mac.sh


And I just get the standard blank line ready for a new command:

Code: Select all
Tibsys-PowerBook:~ Tom$


I think I've fucked up a little, would it be too much trouble for you to send me a fresh server.cfg file and I can start over?[/quote]

EDIT: Oh yeah, and I type 'connect localhost' into the client console in Nexuiz and it says waiting 10 seconds for reply then 'Connection Failed'.

Damnit.
Eureka!
Member
 
Posts: 23
Joined: Thu Dec 04, 2008 6:04 pm
Location: London

Postby halogene » Mon Feb 23, 2009 1:57 pm

This command only sets the permissions for the file "server_mac.sh". You need to execute it afterwards of course :wink:

So after the permissions were set with your "chmod" command, then try to execute the "server_mac.sh" command again.

i.e. now try
Code: Select all
Tibsys-PowerBook:~ Tom$ /Games/Nexuiz/server_mac.sh
again.
<Community>: Why was the name "Nexuiz" licensed to IllFonic in a way that allows IllFonic to use the name without any suffix or subtitle for a commercial console game?
<Lee Vermeulen>:
<Community>: http://www.xonotic.org
halogene
Alien trapper
 
Posts: 465
Joined: Fri Jun 20, 2008 8:31 am
Location: http://www.xonotic.org

Next

Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron