Serious Sam 3: BFE
rubregg 2012년 12월 29일 오전 1시 40분
Dedicated Servers - Questions and Answers
First of all: I am not the expert here (the experts are at http://www.seriouszone.com/). I'm figuring out things as I go along myself and while I'm not new to running servers I surely am very new to Sam (instant love). I suspect that many things about Sam3 Servers are very similar to the older Serious Sam games so a lot of this might be utterly obvious to you veterans. But for us newcomers I thought I'd start this topic to keep information on running Serious Sam 3 dedicated servers in one place.

A few things have been popping up here and there, and it's probably better to keep it all together in one topic.

....soooo.....

@ noobs-like-me: Ask away.

@ you-veterans-out-there: Please help us on our way and correct us where we wander astray. Your help is much appreciated.


  • How to install the dedicated server

    Start on the official FAQ[serioussam.com], currently 1.6[serioussam.com] and 1.10[serioussam.com]. If you're running the server on linux, that FAQ also has the link to Valve's SteamCMD instructions (the old installation method via hldsupdatetool is obsolete, you'll have to use SteamCMD now, with appid 41080).

    I also found some useful information here[www.its-p.id.au]; the installation process works different now, but the rest might very well help you on your way. [Note: The daemon script provided there is intended for Debian based systems and might not work if you run a different one.]

    .
  • Check the ReadMe

    You'll find it in the 'Help' folder of your server installation.

    .
  • Starting the server

    Example line to launch your server on linux:
    ./Bin/runSam3_DedicatedServer.sh +exec sam.cfg +gameoptions sam.options.cfg &> Log/Sam3_console.log &
    This will run your server in the background and all console output will be written to ../Log/Sam3_console.log. (If you get errors, some of them might not appear in the server log, only in the console log.)

    .
  • Stopping the server

    I found this information on the site I've already linked to above[www.its-p.id.au], in the Daemon Sam section (this is for Linux).

    If you're running it in the foreground, shut it down with Ctrl-C.
    If you're running it in the background, kill it with signal 2 (SIGINT = Ctrl-C), not signal 15 (SIGTERM).

    .
  • Configuring the server

    Angelo on seriouszone[www.seriouszone.com] has made a very handy Windows tool[forums.seriouszone.com] for creating server config files. If you're running your server on Linux, just copy the config file over to your server (not 100% sure if it's a "must", but having unix-type line endings and UTF-8 encoding can't hurt; if you're editing your config file on Windows you can use, for example, Notepad2[www.flos-freeware.ch] for stuff like that).

    .
  • Server crashing with memory access error - runSam3_DedicatedServer.sh Line 17

    I had lots of them at first. Removing the if clause that checks for the binary name fixed these errors for me (in my case lines 13-17 of runSam3_DedicatedServer.sh , might change with updates). My runSam3_DedicatedServer.sh is now:
    #!/bin/bash # this script will set LD_LIBRARY_PATH so that application can properly load required libraries # to debug application you'll have to manually set LD_LIBRARY_PATH to the path where executable is located scriptdir=$(dirname "${0}") pushd ${scriptdir} > /dev/null basedir=$(pwd -L) export LD_LIBRARY_PATH=${basedir} if []; then ./InstallLibsLinux.sh fi # put exact name of your binary here, case-sensitive ./Sam3_DedicatedServer "$@" popd > /dev/null
    .
  • Running Jewel of the Nile DLC on the server

    Read SGC_Zaphod's post, he has helped me out on this one.

    .
  • Voting to change between normal and DLC campaign

    You cannot do that via vote - change map, you have to use vote - change game mode. Thanks to ChrisW for this.
rubregg 님이 마지막으로 수정; 2012년 12월 29일 오전 1시 57분
< >
45개 댓글 중 1-15개 표시
rubregg 2012년 12월 29일 오전 2시 21분 
I have these here questions at the moment:

Regarding Jewel of the Nile:
DLC_Sam3Extended.dat
DLC3_Models.gro
Are these 2 files required? I copied them over to be on the safe side, but are they needed?

Password protection:
Is there a way to have a password on the server? For the occasional private session or things like that...
I've found net_strConnectPassword but setting it in my config file won't work.

So I'm wondering:
net_strAdminPassword net_strConnectPassword net_strObserverPassword net_strVIPPassword net_iMaxClients <---- vs. ----> gam_ctMaxPlayers net_iMaxObservers net_iVIPReserve
^ what do these do / how do they work?

rubregg 님이 마지막으로 수정; 2012년 12월 29일 오전 2시 37분
Zaphod 2012년 12월 29일 오전 6시 50분 
I have the same question/observation regarding passwords for the server. I have tried numerous things with the commands provided, same as rubregg, and none of them seem to work. I haven't found a use for any of the "net_" settings.

However, one of the guys in our clan figured out how to operate the server in a sort-of private fashion using "reserved slots". In this mode, the first person to join the server occupies "Slot 0" and nobody else can join the server unless they are in the Slot 0 player's friends list (i.e., they have to join via the "Join Game" menu option under the Steam friends list). I will occasionally run mine in that mode to keep the game so only my friends can join. Briefly, you set the value "gam_ctPrivateSlots" to be one less than "gam_ctMaxPlayers". One caveat, if the player who occupies "Slot 0" (Index 0) leaves the game, then the game is no longer in private mode until all players leave and the server restarts.

If you only wanted to do this occasionally, and you have telnet access into your server, you can log in and change the value, then restat the server, without messing with the config file. For example, lets say you have a 16-player server:

Log into your server with your rcon password, then enter the following commands:
>gam_ctPrivateSlots = 15
>gamRestartServer()

When the server restarts, the first one in will now take the public "slot 0" position. To restore it back to "normal" mode you can either log in again and set gam_ctPrivateSlots back to 0 and restart, or else shut down the server and start it up again so it will read your config file.

On the server end, password protection is one of the features I would like to see working; also, I haven't figured out how to effectively ban players from the server. I would think I should be able to telnet in to my own server and ban problem players, and have the ban list written to a file somewhere. Any time I have tried to use this feature it doesn't seem to work.
rubregg 2012년 12월 29일 오후 9시 13분 
Private Slots
Thanks SGC_Zaphod, that's a good work-around to start with seeing how the net_str.....Passwords aren't properly implemented yet. Just for fun I've tried setting gam_ctPrivateSlots = gam_ctMaxPlayers (i.e. all slots are private) and I could still connect onto the empty server. So my guess is that even if all slots are private, anyone can connect to an empty server, but from then on only friends. Haven't had the chance to properly test this yet. If it works like this, that player with the precious spot 0 wouldn't have to stay to keep the game private. Also, I think in a private game it's not only player 0's friends who can join, but friends of any player who is already on the server. I'm pretty sure it's like that on listen servers, could be different on dedicateds.


Bans
You're talking about permanent bans, right? I'd guess that gamBanByIndex / gamBanByName correspond to the voting menu's "Ban for 60 minutes" option, so that's probably all you can do from within the game. It might be possible via execing some sort of LUA script that keeps checking for connecting players and kicks them if they match some criteria - but I'm so new to LUA that I couldn't possibly tell you how to do this. As for permanent IP bans there's always the brute-force method via your server's HOSTS file, but seeing how many providers dish out dynamic IPs you'd probably have to block whole IP ranges .... which feels a bit like spamming cannon balls with friendly fire on... Anyway, permanent bans by SteamID would be a nice feature.


Chat via RCON
Is there a way to send a message to players via RCON (sth like "Warning, server shutting down in 15min for private session")?
chatSay("test") works in-game but not from RCON...


Passwords
SGC_Zaphod님이 먼저 게시:
On the server end, password protection is one of the features I would like to see working
I second that.


EDIT:

Bug in Server List - Details
I just noticed this: in-game, in the server list, if you look at any server's details you'll see the "Private Session" box ticked depending on the client's gam_ctPrivateSlots setting, not the server's. I was toying around with this cvar during testing and suddenly *all* servers on the list were private sessions. ...until I put gam_ctPrivateSlots = 0 into my client's console, then all servers showed as not private.
rubregg 님이 마지막으로 수정; 2012년 12월 29일 오후 9시 37분
Zaphod 2012년 12월 31일 오전 4시 57분 
I agree, bans through Steam ID would be the ideal - just not sure how that would get implemented. On our left4dead servers it's done through sourcemod but since this isn't a source-based game I don't know how that would be done.

I would also like to know how to post a message through RCON. I know the most-recent version of the 'Dedicated Server Runner" has a feature that can post messages on-screen at timed intervals, so I'm guessing there is a way to do it, I just haven't looked into it. When I want to clear out the server, if possible I will join the game and just type a message in chat. I can RCON in and kick one player if I need space to join.

I wasn't aware you could set the private slots = total max slots -- I'll have to mess with that some when I get time. I'm pretty sure when I tried that long ago it made it so NOBODY could join the server, but maybe something was changed on one of the updates? Anyway thanks for the tip!

Also, as regards the files needed to run the DLC - I just now loaded mine up and ran through the first few minutes of the "Jewel" DLC. All I had to copy over was DLC_Sam3Extended.gro. I'm currently running the 174807 "beta" version, and when you opt into that on the server tool, it actually downloads the "DLC_Sam3Extended.dat" and "DLC_Sam3Extended_174807.gro" files for you. Seems to work just fine that way.

ps I'm glad there are a few people interested in sharing information about the SS3 servers!
ChrisW 2012년 12월 31일 오후 12시 16분 
If you need to control the server remotely, you can login to the server through Telnet. Make sure you have Telnet installed, the port open for remote login if you are not on the same network, and the password enabled (rcts_strAdminPassword). Then just login to Telnet with the ip address and password.

If you enable private slots, all slots will be private. You can't enable just a few private slots for some reason.
rubregg 2013년 1월 4일 오후 10시 59분 
Chat via RCON
Had a look at the chat script of the server runner. It's using the chatsay command, so it has to work ...... some way. ...confused...


Private Slots
I've had higly erratic results during testing and I now suspect you shouldn't change priv <--> not-priv on a running server at all. I'm not talking gamRestartServer(), I mean a complete shutdown and restart. Much obliged if anyone could shed a little more light on this.
AlenL 2013년 1월 5일 오전 1시 59분 
Chat via rcon should work. Private slot are all or nothing, yes, you are right about that. Those were not meant to be used on dedicated servers, but on listen servers. But you can use it as described above - where first player locks the server into his friends.

I _think_ there is supposed to be a permaban option, but not sure whether it is for SSHD:TSE or SS3. All bans are by Steam ID, regardless of whether the command is called with name or index. Internally it translates to steam id and bans that.
rubregg 2013년 1월 5일 오전 3시 46분 
Thanks, AlenL.
AlenL님이 먼저 게시:
Private slot are all or nothing, yes, you are right about that. Those were not meant to be used on dedicated servers, but on listen servers.
Thanks for clearing that up. ...and...well, password protection would be really nice for dedicated servers... :))

chatSay("test")
works in the console of a connected client, but does not work on RCON. What exactly would I have to type into RCON to send a chat message?


Update/Edit:
Test today:
gam_ctPrivateSlots = 1 --> others could join
gam_ctPrivateSlots = 7 (one less than total slots) --> worked as should, only friends could join
rubregg 님이 마지막으로 수정; 2013년 1월 5일 오후 2시 34분
gei3r 2013년 1월 30일 오전 9시 14분 
chatSay("test")
works in the console of a connected client, but does not work on RCON. What exactly would I have to type into RCON to send a chat message?

Same Question


AlenL 2013년 1월 31일 오전 7시 01분 
gei3r, This is a genuine bug. It seems it was introduced some time ago. I have filed the bug in our database. Hopefully it will be fixed in one of the next patches.
gei3r 2013년 2월 3일 오전 10시 00분 
thx4info :)

* gamVotePass() - force the current vote to pass
* gamVoteFail() - force the current vote to fail

didnt work too?
AlenL 2013년 2월 4일 오전 1시 36분 
You sure you testing that correctly? The commands are samVotePass() and samVoteFail(), and you must run them on a server not client.
gei3r 2013년 2월 4일 오전 3시 03분 
with sam in place of gam it works!
btw i cut the text from the DedicatedServer_Readme.txt!
AlenL 2013년 2월 5일 오전 5시 54분 
Ah, thanks for the report. Fixed the error in the readme file.
grrrrrrr 2013년 5월 16일 오전 4시 56분 
Thanks for the post, setting up SS3 server is really not a walk in the park. First up, it is not listed among the supported servers, but a google hit came up with the relevant link:
http://steamdb.info/app/41080/

using the appid I was able to install the server through steamcmd. Next up, server configuration files are not documented at all, so it seems all we have is the closed source .Net based gui (which also is missing any documentation). Moreover the gui did not run on a win7 box I have here, and it does not run under wine. Can somebody please post their sam.cfg file so that I get a hint of the syntax?
< >
45개 댓글 중 1-15개 표시
페이지당 표시 개수: 1530 50

게시된 날짜: 2012년 12월 29일 오전 1시 40분
게시글: 45