dedicated server help!

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

Moderators: Nexuiz Moderators, Moderators

Tue Apr 28, 2009 4:37 am

  • Hey guys I hope I am in the right place :) I am pretty new to the game and linux. I want to run a decicated server on linux and i'm using fedora 10. The problem i'm having is I don't know where to set the ip for it in the server.cfg. When I run "server_linux.sh it says my ip is 0.0.0.0:2600 listening on. I have read the readme.txt and help.txt in the server folder of nexuiz over and over again. Even if i changed the port it still said I was listening on port 26000.....

    You will need to copy the right script<<<<<< what is the right script?

    I got past the permissions by enabling root login and logged in as root until the changes were made.

    and have adjusted the config file you

    can start the server by running the server script. <<< is this the server_linux.sh??? and do you edit this in a text editor?? Whoever wrote the readme.txt did an awesome job, but it is quite cryptic to me.


    Nexuiz Linux 08:02:20 Apr 2 2009 8846 release
    Trying to load library... "libz.so.1" - loaded.
    Added packfile data/common-spog.pk3 (26 files)
    Added packfile data/data20090403.pk3 (7489 files)
    Trying to load library... "libcurl.so.4" - 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
    couldn't exec config.cfg
    couldn't exec 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
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26000
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26001
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26002
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26003
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26004
    Server listening on address 0.0.0.0:26005
    Loading csprogs.dat
    server detected csqc progs file "csprogs.dat" with size 403140 and crc 50721
    Compressing csprogs.dat
    Deflated: 73.0277%
    execing server.cfg
    Server using port 26000
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26000
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26001
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26002
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26003
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26004
    Server listening on address 0.0.0.0:26005
    Loading csprogs.dat
    server detected csqc progs file "csprogs.dat" with size 403140 and crc 50721
    Compressing csprogs.dat
    Deflated: 73.0277%
    Loading csprogs.dat
    server detected csqc progs file "csprogs.dat" with size 403140 and crc 50721
    Compressing csprogs.dat
    Deflated: 73.0277%
    "fraglimit" changed to "30"
    "timelimit" changed to "20"

    Thanks in advance for any help.
    Jiggs
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Tue Apr 28, 2009 4:49 am

  • the cvar is "net_address"

    add

    net_address 127.0.0.1

    to your server.cfg

    replacing 127.0.0.1 with your real IP.
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Tue Apr 28, 2009 5:07 am

  • thank you very much that was very fast! Do I put my internal address from my router or my gateway IP from comcast? I would imagine putting my internal ip address and then use port forwarding ?

    Is there a "full" tutorial on how to setup a server.cfg?? It makes me wonder if that is the only other thing that was missing was the net_address ? I've tried looking for fully functional server.cfg's online, but I couldn't find one with the 2.5 Nexuiz. If someone has one and could post it with ip settings and edit it with a local loopback like he did >127.0.0.1?
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Tue Apr 28, 2009 6:00 am

  • I tried testing it with my internal ip and it still seems to be looking for this "non-existent" ip of 0.0.0.0.

    Here is what it does now.

    Nexuiz Linux 08:02:20 Apr 2 2009 8846 release
    Trying to load library... "libz.so.1" - loaded.
    Added packfile data/common-spog.pk3 (26 files)
    Added packfile data/data20090403.pk3 (7489 files)
    Trying to load library... "libcurl.so.4" - 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
    couldn't exec 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
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26000
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26001
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26002
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26003
    Server listening on address 0.0.0.0:26004
    Loading csprogs.dat
    server detected csqc progs file "csprogs.dat" with size 403140 and crc 50721
    Compressing csprogs.dat
    Deflated: 73.0277%
    execing server.cfg
    maxplayers can not be changed while a server is running.
    It will be changed on next server startup ("map" command).
    "maxplayers" set to "16"
    Server using port 26000
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 192.168.0.38:26000
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 192.168.0.38:26001
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 192.168.0.38:26002
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 192.168.0.38:26003
    Server listening on address 192.168.0.38:26004
    Loading csprogs.dat
    server detected csqc progs file "csprogs.dat" with size 403140 and crc 50721
    Compressing csprogs.dat
    Deflated: 73.0277%
    Loading csprogs.dat
    server detected csqc progs file "csprogs.dat" with size 403140 and crc 50721
    Compressing csprogs.dat
    Deflated: 73.0277%
    "fraglimit" changed to "30"
    "timelimit" changed to "20"

    here is my actual cfg.:
    // A setting needs to be surrounded with " if it contains special

    // characters like space, semicolon (seperates commands) or starts

    // with // (begins a comment for the rest of the line or next

    // semicolon). While just "" means 'no/empty setting".



    /////////////////////////////////////////////////////////////////////

    // Everything has some sensible defaults so you do NOT really need to

    // change anything. But here are some settings you SHOULD change to

    // make it 'YOUR' server. IF so remove the // from the line start and

    // change them to your liking.

    net_address 192.168.0.38

    sv_public 1 // 0 if the server should not be on the public servers list

    sv_status_privacy 0 // 1 hides IP addresses from "status" replies shown to clients, 0 shows them. Enables players to identify wellknown punks on your server OR is a thread to anonymity.. depending on your point of view :)

    hostname "Jiggs Nexuiz Server" // this name will appear on the server list

    //sv_motd "" // this message (unless "") is displayed to players on connect

    maxplayers 16 // number of players allowed on the server

    port 26000 // the port used by the server

    //log_file server.log // server console output will also be copied to this file



    // List of maps to play on the server. Set to "" to autodetect (which would enumerate ALL maps. Maps that don't support the current game mode will be skipped, so you don't need to remove them here.

    //g_maplist "accident aggressor aneurysm basement basementctf bleach bloodprison bloodprisonctf bluesky darkzone desertfactory dieselpower dismal downer eggandbacon evilspace farewell final_rage ons-reborn racetrack reslimed ruiner runningman runningman_1on1remix runningmanctf silvercity skyway slimepit soylent starship stormkeep strength toxic warfare"

    //g_maplist_shuffle 1 // 0 always selects the next map out of g_maplist (but then better set g_maplist_votable 0 below to prevent repetitive votes), 1 will select random maps each time

    //g_maplist_mostrecent_count 3 // number of maps that have to be played before a map can be repeated



    // LIMITS: how long a match will last before the next map starts (-1 means use the map default, 0 = unlimited, please note that the variables fraglimit/timelimit can NOT be globally used for this but only DURING a match is being played)

    //timelimit_override -1 // global timelimit for all maps and gametypes

    //fraglimit_override -1 // global frag/point limit for all maps and gametypes

    //g_ctf_capture_limit -1 // frag/capture limit for CTF

    //capturelimit_override -1 // capture limit for CTF

    //g_domination_point_limit -1 // frag/point limit for DOM

    //g_runematch_point_limit -1 // frag/point limit for RUNE

    //g_keyhunt_point_limit -1 // frag/point limit for KH

    //g_lms_lives_override -1 // lives for LMS



    //g_ctf_win_mode 0 // CTF win mode: 0 = caps only, 1 = caps + points as tie breaker, 2 = points only

    //g_ctf_ignore_frags 1 // set to 1 to ignore kills except for FC kills



    // TEAMS for key hunt (change this to 2, 3, 4 to set a fixed keyhunt style)

    //g_keyhunt_teams_override -1 // teams for KH



    // GAME MODE: what type of server do you want to host?

    // possible values: dm (deathmatch), tdm (team deathmatch), dom (domination), ctf (ctf), rune (runematch), lms (last man standing), arena (arena), kh (keyhunt), as (assault), ons (onslaught), race (race)

    //gametype dm





    // enable some mutators you'd like

    //g_cloaked 0 // set to 1 for transparent hard to see players

    //g_footsteps 0 // set to 1 to enable footsteps

    g_grappling_hook 1 // set to 1 to enable the hook

    //g_laserguided_missile 0 // set to 1 for laser guided missiles in the RL

    //g_midair 0 // set to 1 to make only midair damage count

    //g_vampire 0 // set to 1 to give players the damage they cause as health

    //sv_gravity 800 // for low gravity, set this somewhere between 50 and 400



    // select AT MOST one of these arena mutators

    //g_minstagib 0 // set to 1 for MinstaGib

    //g_nixnex 0 // set to 1 for No Items Nexuiz

    //g_nixnex_with_laser 0 // set to 1 to always give players the laser in NixNex

    //g_rocketarena 0 // set to 1 to make the rocket launcher the only weapon



    /////////////////////////////////////////////////////////////////////

    // Some settings you MIGHT want to change. Again IF so remove the //

    // from the line start and change them to your liking.



    //rcon_password "" // you can use rcon if this password is set. you need to set the same password in your client if you want to issue rcon commands

    //rcon_restricted_password "" // put here the password for a "restricted" rcon user (see below)



    bot_number 4 // number of bots to add

    skill 6 // the bots skill level

    minplayers 4 // add bots if less then that number of players playing. MAKE SURE ITS LESS THEN maxplayers or people will get blocked by bots!

    //bot_prefix [BOT] // prepend this to all botnames

    //bot_suffix "" // append this to all botnames

    //g_maplist_check_waypoints 0 // set this to 1 to skip maps without waypoints if there aren't enough players to play without bots



    //g_maplist_votable 5 // number of maps to vote between. set to 0 to disable the map voting screen (please enable g_maplist_shuffle above when this is enabled, or votes will be repetitive)

    //g_maplist_votable_suggestions 2 // number of suggestions to accept using the suggestmap command

    //g_maplist_votable_abstain 0 // when 1, people get a "don't care" selection in the vote screen

    //g_maplist_votable_nodetail 1 // when 1, people can't see how many voted for what (to thwart abusive "influential" first votes)



    //sv_vote_commands "restart fraglimit chmap gotomap endmatch reducematchtime extendmatchtime allready kick cointoss movetoteam_auto" // players can vote for those commands or use them if they are masters. You canm also add 'g_grappling_hook' for hook voting, and 'sv_defaultplayer_fbskin_green sv_defaultplayer_fbskin_red sv_defaultplayer_fbskin_orange sv_defaultplayer_fbskin_off' for fbskin voting.

    //sv_vote_master_commands "movetoteam_red movetoteam_blue movetoteam_yellow movetoteam_pink" // add commands masters can use if logged in or elected. You may want to put 'kickban' here, so masters can keep out punks. It may be good to also put "sv_status_privacy 0" then...

    //rcon_restricted_commands "restart fraglimit chmap gotomap endmatch reducematchtime extendmatchtime allready kick kickban \"sv_cmd bans\" \"sv_cmd unban\" status \"sv_cmd teamstatus\" movetoteam_red movetoteam_blue movetoteam_yellow movetoteam_pink" // commands for the (stronger) rcon restricted



    //sv_vote_call 1 // 0 will disable the normal voting

    //sv_vote_master 1 // 0 will disable voting to become master, good if you prefer to use the master password instead

    //sv_vote_master_password "" // when set, vlogin PWD will allow people to become master to run master commands directly using vdo

    //sv_vote_majority_factor 0.5 // 0.666 will require a 2/3 majority instead of a regular 1/2 one

    //sv_vote_simple_majority_factor 0 // 0.666 will win votes by a 2/3 majority of the VOTERS (not the players!)

    //note: to JUST support simple majorities, set these two factors equal



    /////////////////////////////////////////////////////////////////////

    // Some more advanced settings. You probably are not interested in changing them at all.



    // select one of these:

    //g_balance_rocketlauncher_detonatedelay 0 // rocket detonation at any time

    //g_balance_rocketlauncher_detonatedelay 0.2 // rocket detonation at least 0.2s after it was shot (reduces rocket boosting)

    //g_balance_rocketlauncher_detonatedelay -1 // rocket detonation only if the rocket is out of range of the owner (prevents rocket boosting, makes rockets "safer")



    //sv_ready_restart 0 // 1 to allow players to restart the map when all of them press the ready button

    //sv_autoscreenshot 0 // 1 will force a screenshot for all clients when the map ends. Useful for competitions or the ladder.



    //g_antilag 2 // 0 to disable the antilag feature, 1 and 2 use different methods



    //sys_ticrate 0.05 // how long a server frame is. 0.05 = 20 fps, 0.02 = 50 fps. Lower settings makes things smoother but create much more traffic

    //sv_maxrate 1000000 // limits client connections to this rate in bytes/seconds



    // see Docs/mapdownload.txt for more info

    //sv_curl_defaulturl http://www.nexuiz.com/contentdownload/getmap.php?file= //fallback download URL



    //sv_defaultcharacter 0 // 1 will force a specific model for all players

    //sv_defaultplayermodel models/player/nexus.zym // this model will be used

    //sv_defaultplayerskin 0 // this skin number will be forced for all players

    //g_fullbrightplayers 0 // 1 to make players fullbright

    //g_fullbrightitems 0 // 1 to make items fullbright



    //g_balance_teams 1 // 0 will show players the team selection menu after joining instead of automaticly putting them on the smaller team

    //g_balance_teams_force 0 // 1 to automaticly balance teams even during a game


    I also can't find the server when i'm looking for it in game :( , but i'm not stopping here :)
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Tue Apr 28, 2009 7:30 am

  • Heh, i thought the server/readme.txt was rather clear :P There are 6 scripts to start the server.. one to start as plain Nexuiz and one to start as Havoc server and that for all of the three supported systems (windows, linux, mac) 2 * 3 = 6 ... 'The right script' means that i can't know which system the potential new serveradmin is on nor which one of the two flavors he wants to run.... ( one of those: server_havoc_linux.sh server_havoc_mac.sh server_havoc_windows.bat server_linux.sh server_mac.sh server_windows.bat )
    I guess you picked the server_linux.sh one and copied it over to your main Nexuiz path. That should be ok. And yes, running the server script means the one you picked.. in this case server_linux.sh from the Main Nexuiz path.
    Usually its not needed to edit that file in an editor. (You only would have to do that if you want to change the NAME of the config file.. like some people run SEVERAL servers on one machine and thus need several different config files..)


    Also '0.0.0.0:26000' IS FINE it just means the server is listening on ALL interfaces (network cards) and does NOT has anything to do with your IP.. its possible to restrict the server to only listen to connections on lets say the internal network (like if you want run a LAN) but usually 0.0.0.0 is correct.


    I think one of your main problems is that either your have already several Nexuiz servers running or some other program(s) use the same ports. Look at your first post:
    Code: Select all
    Server using port 26000
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26000
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26001
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26002
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26003
    LHNET_OpenSocket_Connectionless: bind returned error: Address already in use
    Server failed to open socket on address 0.0.0.0:26004
    Server listening on address 0.0.0.0:26005

    The server tries to use the default port of 26000 and can't allocate it as its in use already... then it tries higher ports and also fails till it gets port 26004. Please check via ps or some other process manager to see if you have more then one nexuiz server running. Or try
    Code: Select all
    netstat | grep 2600
    to find out which program is using those ports. I guess there are still nexuiz server processes running from previous tries..

    When you have started a server and still have access to its console you can use 'quit' to shut it down.

    i never used net_address, it should only be needed for some special occations that involve several network cards in one computer and trying to use only one of them..

    if you do not see the server i guess something is not right with the port forwarding. I suppose you set it up to forward to port 26000 (which is used by some application already as the above message shows) so i'd advice to clean up that mess first and then try again :) I guess you basicly did everything right, just some app is already using that port and thus the forward to your server is not working. As i said, i think the readme.txt is good enough, but on the other hand i'm familar with nexuiz and might be missing something..
    Please take your time and explain how i can improve that file so that we can help others with improvements!!! Actually i slightly changed that file for the upcoming 2.5.1 release.. you find the current version here: http://svn.icculus.org/nexuiz/trunk/ser ... iew=markup
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Apr 28, 2009 4:18 pm

  • Thanks for the help and awesome job with the game if you coded it i like it a lot. I did the grep and it didn't do anything- this is after rebooting.

    [Jiggs@localhost ~]$ netstat | grep 2600
    [Jiggs@localhost ~]$ su
    Password:
    [root@localhost Jiggs]# netstat | grep 2600
    ^^ i thought maybe it should say something so i tried as su.

    Then you brought to mind I do have two nics on my board (onboard) I did ifconfig:

    [root@localhost Jiggs]# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:18:F3:99:51:19
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:22 Base address:0x4000

    eth1 Link encap:Ethernet HWaddr 00:18:F3:99:6A:07
    inet addr:192.168.0.38 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::218:f3ff:fe99:6a07/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:937 errors:0 dropped:0 overruns:0 frame:0
    TX packets:897 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:521453 (509.2 KiB) TX bytes:122778 (119.9 KiB)
    Interrupt:21 Base address:0xa000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:12 errors:0 dropped:0 overruns:0 frame:0
    TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:800 (800.0 b) TX bytes:800 (800.0 b)
    Does this mean I have to use net address Maybe that is why i'm getting 0.0.0.0. I have to forward the ports in two places as well :( I have ipcop running and then my router, so I have to forward ports locally and for external access. Do you think this may be my problem? I go in game and type : connect 192.168.0.38, i connect, but none of my settings are there. Is that because at that point it is not dedicated? How do i verify my dedicated server and connect to it?
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Tue Apr 28, 2009 4:37 pm

  • I just figure i would post my specs maybe that will help as well

    asus m2n sli deluxe mobo
    4 gigs ram ddr2 6400
    amdx2 5200+ @ 2.6 ghz
    8800gts 640mb
    sound blaster x-fi fatality champion series
    700 watt oczxtream psu
    hauppage wintv hvr-1800
    I think that is all that would matter.
    Running fedora 10 64 bit
    Again thanks in advance,

    Jiggs
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Tue Apr 28, 2009 5:21 pm

  • No, the default of 0.0.0.0 is correct for most cases.. in your case i THINK it should still work. But using
    Code: Select all
    net_addresse 192.168.0.38
    should not hurt at all and might help..

    Can you please check if the server can now use port 26000 in the log file?
    On the other hand, the first log files you posted seem to indicate that the server is reading its settings just fine..
    Code: Select all
    execing server.cfg
    maxplayers can not be changed while a server is running.
    It will be changed on next server startup ("map" command).
    "maxplayers" set to "16"

    What makes you think its NOT working? If you can connect and play i think the server started :P

    So i think the remaining problem is enabling the forwarding and maybe telling your local firewall (ipcop) to open that port for connects from the outside..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Apr 28, 2009 6:07 pm

  • Well last night I did run the script many times :) LOL Now it is working on port 26000:

    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 403140 and crc 50721
    Compressing csprogs.dat
    Deflated: 73.0277%
    execing server.cfg
    maxplayers can not be changed while a server is running.
    It will be changed on next server startup ("map" command).
    "maxplayers" set to "16"
    Server using port 26000
    Server listening on address 192.168.0.38:26000
    Loading csprogs.dat
    server detected csqc progs file "csprogs.dat" with size 403140 and crc 50721
    Compressing csprogs.dat
    Deflated: 73.0277%


    It wasn't working because none of the bots came in and the max player said 8 which i set to 16. Now the question is do you think I should leave the net_address in there? Here's the deal when I forward the port I need an ip to associate it with, 0.0.0.0 won't work. I guess the next thing is to get the server viewable in the server list. I was able to connect using connect 192.168.0.38:26000 and right away bots came in and i was owning :)
    [BOT]Frosty was gunned by PlayerJiggs
    [BOT]Dominator was gunned by [BOT]Spellbinder
    [BOT]Spellbinder was riddled full of holes by [BOT]Hellfire
    [BOT]Dominator has been vaporized by PlayerJiggs
    [BOT]Hellfire has been vaporized by PlayerJiggs
    PlayerJiggs has 3 frags in a row
    PlayerJiggs made a TRIPLE FRAG :twisted:


    Is there somewhere that shows the commands for doing things in the terminal? Or is it best to try to get the rcon to work?
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Tue Apr 28, 2009 6:55 pm

  • Well i guess yesterday some 'first try' server with default settings was listening on port 26000.. and thus you got that impression.

    Heh, no you should NOT set port forwarding to 0.0.0.0 that will not work. That 'ip-address' is just a way to say the server is listening on all the available network cards. But you should still setup port forwarding to 192.168.0.38:26000 as thats the internal ip/port of your server!
    Using net_address set to 192.168.0.38 might help if you still have problems but first try without net_address. Using a specific net_address will stop the server from listening on all network cards and just use the specified one.

    I'm not sure how to setup your firewall/router but routers usually are simple to setup and maybe someone else uses ipcop around here..

    What commands do you want? For Nexuiz? try cmdlist and cvarlist.. both print all the available commands/variables also i think in the ouns wiki (ouns.nexuizninjaz.com) have some lists. and the ninjaz also host some variable/command search tool..

    Well when you can connect to your server rcon will simple work :P You just need to set the same password on the server and client..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Apr 28, 2009 7:06 pm

  • Ok i understand now about the 0.0.0.0 is listening on all nics. I was wondering what nic it was associated with :)

    Outgoing:
    udp/26000 - game server
    udp/27950 - master server

    I found this in another thread here. Does this mean I have to forward the port 27950 for it to be viewable in-game on the server list? Is there any other ports I have to forward besides the 2600 is what i'm wondering i guess :lol:

    For Nexuiz? try cmdlist and cvarlist.. both print all the available commands/variables also i think in the ouns wiki (ouns.nexuizninjaz.com) have some lists. and the ninjaz also host some variable/command search tool..

    ^^^ yes for Nexuiz. commands like map <map name> that might not be a bad idea to throw in the readme.txt for other users. Maybe a link to a site that shows all commands that you can do in the terminal? Also many servers have multiple nics and wouldn't be a bad idea to put the //net_address into the server.cfg?

    maybe something like:
    //net_address 127.0.0.1 //If using multiple network cards you can specify which IP to associate the game server to

    Just a suggestion
    Thanks,

    Jiggs
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Wed Apr 29, 2009 9:18 am

  • Well in the case of Nexuiz it would be 'chmap NAME' .. the command 'map NAME' will drop all the connected players :P But i can't remember i ever did that on a running server. Usually when you have players on the server you use a vote.
    Now that Nexuiz/server is somewhat usable i'm trying to find time to change my old server guide into one that will give such tips and tricks for server admins..

    I'll think about adding net_address.. can't hurt for sure.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Fri May 01, 2009 3:03 am

  • hello,

    I am still having some difficulty finding my server in the server list. I can connect using my local ip (using the console with connect ....... But what's weird is that when i'm in game on the server i type: hostname in the console. It says PlayerJiggs Nexuiz server [Nexuiz Server]. That isn't what it is even in the cfg. Is there any reason that would be doing that? The server name should be Jiggs Nexuiz Server. I thought that might have something to do with it not showing up. I also got rid of ipcop for now to see if it was that. Now I have set the "virtual server" in my router config for the port 26000. Does it take some time to get on the list or should it show up right away?

    I think also the hostname changes to just Nexuiz server when I remove the net_address command. If it was windows i think I would get it faster but i'm newer with linux. Do I have to set a rule like an exception in the firewall on the OS itself too? Thanks

    Jiggs

    Edit : heartbeat
    net_refresh
    Sending new requests to master servers
    Unable to query master servers, no suitable network sockets active.
    No network
    Listening for replies...

    I think i'm getting further.... But does anyone know what this means and why?
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Fri May 01, 2009 11:01 am

  • Actually if you take a close look it does say: "PlayerJiggs Nexuiz Server" ["Nexuiz Server"]
    The part in [ ] is the default value for hostname. Its displayed for convenience and to see changes..

    Well i'm not familiar with ipcop.. and if its disabled i'd guess no firewall rules are active anymore. But what have you done for that 'virtual server'? Normally you would have to enter at least three infos.. the sourceport on the router (26000) and the destination ip and port on the 'real' server (192.168.0.38 and 26000 ) oh and please make sure that ip does not change :)

    "I think also the hostname changes to just Nexuiz server when I remove the net_address command." basicly that impossible :P

    "heartbeat
    net_refresh"
    I wonder why net_refresh is actually working on the server.. as far as i know its only a client command to RETRIEVE the serverlist from the master server. And heartbeat is right, that will send an info to the masterserver that your server is up and running (like it does automatically if started as sv_public 1)

    An other thing.. have you tried to have someone connect to your server? connect YOUR_EXTERNAL_IP:26000
    If that works your router is bad and changes the port when the server tries to conntact the master server.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Sat May 02, 2009 1:25 am

  • esteel wrote:"I think also the hostname changes to just Nexuiz server when I remove the net_address command." basicly that impossible :P


    :twisted: hahaha. I really appreciate taking the time and effort to help me out. To be honest I don't know what actually made it work. I was trying to connect to the server from the server machine. I think that was the problem, or either that or the heartbeat command did the trick.... I'm running fedora 10 and it has a firewall as well, so i enabled the 26000 port and 27950. As previously stated I disabled ipcop, then setup the "virtual server" in my router. Basically it just forwards ports but it's easier, because you can pick both tcp, and udp or just one. After I did the heartbeat command, and the query on the dpmaster server, it still wasn't showing up, (connecting from the server computer) I fired up my laptop and then it was in the server list. I left the net_address command in there too. I also know it's working because on the dpmaster "real time" server listing it is there and some other people have connected. It's called {DeV} Nexuiz Server. I also understand why you left out more commands when I looked into the server.txt (your help file) it was much more understanding after jumping through hoops :P . I found the commands to show what commands are available. I now have setup my first dedicated server on a Linux box :) Thanks to your guy's help
    8)
    Jiggs: Solved!
    Jiggs224u
    Member
     
    Posts: 11
    Joined: Tue Apr 28, 2009 4:24 am

Sat May 02, 2009 9:41 am

  • You're welcome! Hope people can enjoy your server. But you do not need to open the port 27950. Thats the port the serverserver is running on.. and you nexuiz client only tries to contact it to say 'hello, here i am' :-) Usually outgoing stuff is not blocked by firewalls. When you open ports you do that for ports on YOUR server and only 26000 (or what ever you configured) is needed there.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am



Return to Nexuiz - Support / Bugs




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest