Advertisement
Guest User

lvcfr config

a guest
Dec 20th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.85 KB | None | 0 0
  1. Serious Engine Dedicated Server
  2. ===============================
  3.  
  4. 1. Starting and stopping the dedicated server
  5. ---------------------------------------------
  6.  
  7. You can launch the dedicated server either from the Steam client's Tools tab, or by directly starting its executable file. In either case, a Steam client needs to be running on that machine, though the user logged in doesn't have to actually own the game.
  8.  
  9. In absence of any further configuration, the server will start the first level of the Coop campaign, with all default settings, on the default port.
  10.  
  11. The server will pause immediately after the first level is loaded, and wait for players to join, to conserve the game state. When the first player joins, the game will unpause.
  12.  
  13. When all players disconnect, the server will restart its session from the first level again.
  14.  
  15. To stop the server, press Ctrl+C in its console window and wait until it shuts down.
  16.  
  17. 2. Server ports
  18. ---------------
  19.  
  20. The server will be immediately visible on your LAN, but to make sure it is also visible on the internet, you need to open the port 27016. Note that this is only game enumeration port, as the game traffic port cannot be specified at the moment, thus this will not alleviate the need for NAT punching. I.e. it is not recommended to run a dedicated server behind a NAT/router that doesn't properly support NAT punching, or otherwise all connections to it will have very high pings. We expect the game traffic port to be specifiable in one of the future updates, but it is not currently possible.
  21.  
  22. If you want to allow remote administration (see the section about remote administration below), you need to also forward port 27015 (TCP-only).
  23.  
  24. You can change the port that the server is running on using the command-line option "+port". The server will use the given port for Rcon administration and the given port +1 for game enumeration (see above). So, e.g. if you use "+port 25600", game enumeration will work on port 25601 and rcon on port 25600. When game traffic specification becomes possible, it will be on port 25600 in the example, but this is currently not supported.
  25.  
  26. You can change the network interface that the server will bind to using the command-line option "+ip". This is used both fr Rcon administration and for game enumeration. When game traffic specification becomes possible, it will also use this, but this is currently not supported (game traffic chooses an interface automatically).
  27.  
  28. 3. Command line
  29. ---------------
  30.  
  31. Command line options can be used to modify any cvar using this format:
  32.  
  33. SamHD_DedicatedServer.exe +cvarname1 cvarvalue1 +cvarname2 cvarvalue2 ... +cvarnameN cvarvalueN
  34.  
  35. Quotes are needed around values that contain spaces. Cvar names in the command line can be either short names (e.g. +level "Path/Level") where available, or long names (+gam_strLevel "Path/Level").
  36.  
  37. 4. Configuration scripts
  38. ------------------------
  39.  
  40. When starting, in addition to the command line option, the server will read configuration parameters from the following sources (in this order):
  41. * Content/SeriousSamHD/Config/dedicatedserver.cfg,
  42. * eventual custom script specified via the +exec command line option,
  43. * eventual per-session script specified via the +gameoptions command line option.
  44. The first two are read once on boot, the last one is read on each session start and restart. (When all player's disconnect, the server will load this again before starting the first level.)
  45.  
  46. All of those scripts are fully-featured console scripts (in Lua).
  47.  
  48. Dedicated server does not load or save any .ini files.
  49.  
  50. 5. Most relevant command line options and cvars
  51. -----------------------------------------------
  52. (long name shown in parentheses)
  53. * +gamemode (gam_idGameMode) - Valid values are:
  54. (cooperative group)
  55. Cooperative (this is the default)
  56. CooperativeCoinOp
  57. TeamSurvival
  58. (versus group)
  59. BeastHunt
  60. CaptureTheFlag
  61. Deathmatch
  62. InstantKill
  63. LastManStanding
  64. LastTeamStanding
  65. MyBurden
  66. TeamBeastHunt
  67. TeamDeathmatch
  68. Note that players can vote to change the game mode, but they cannot switch a server from Cooperative modes to Versus modes or vice versa.
  69. IMPORTANT: Changing this option resets all other gam_ options to defaults for that game mode. If you are also customizing other gam_ options from a script or via Rcon, make sure you change gam_idGameMode first, and then change all others!
  70. * +level (gam_strLevel) - Specifies which level to start. Path is relative to the folder the game was installed in. If not specified, the server will start the default first level.
  71. * +maxplayers (gam_ctMaxPlayers) - Max number of players in the session. Cannot be higher than 16.
  72. * +port (prj_uwPort) - Specifies the port number to start the server on. Default is 27015.
  73. * +ip (net_strLocalHost) - Specifies the network interface to start the server on. Default is empty, meaning automatic.
  74. * +fps (prj_iDedicatedFPS) - Specifies the framerate the dedicated server will run in (min 10).
  75. * +exec (prj_strExecCfg) - Specifies the configuration file to execute when the server first starts.
  76. * +gameoptions (prj_strOptionsScript) - Specifies the game options script to execute. It is executed whenever the server (re)starts the first level.
  77. * +sessionname (prj_strMultiplayerSessionName) - Session name that will be displayed in the server browser. If you don't set this, current username from Windows will be shown.
  78. * +rconpass (rcts_strAdminPassword) - Password used to connect to the server via Rcon (see "Remote administration" above).
  79. * +logfile (prj_strLogFile) - Save the DedicatedServer.log into a different file. Useful if you want to run multiple servers from the same installation.
  80.  
  81. NOTE: You can use any of the standard game options like gam_bInifiniteAmmo that customize the gameplay, but note that gam_bCustomizeDifficulty is required for them to take effect!
  82.  
  83. 6. Some other useful console variables and functions
  84. ----------------------------------------------------
  85.  
  86. * gamListPlayers() - print the list of all players to the console in format: 'playerindex: playername'
  87. * gamKickByName() - kick the client with the given player name out of the game
  88. * gamKickByIndex() - kick the client with the given index out of the game
  89. * gamBanByName() - ban the client with the given player name out of the game
  90. * gamBanByIndex() - ban the client with the given index out of the game
  91.  
  92. * gamRestartServer() - restarts the dedicated server (disconnects all players) so any changes to game settings or other server options can take effect
  93. * gamRestartGame() - restart game with new session params without disconnecting players
  94. * samRestartMap() - restart the current map (without disconnecting all players) so any changes to game difficulty and similar options can take effect
  95. * gamStop() - stops the current game
  96. * gamStart() - start game with new session params without disconnecting players
  97. * samVotePass() - force the current vote to pass
  98. * samVoteFail() - force the current vote to fail
  99.  
  100. * ser_iMaxClientBPS - limit the bandwidth used by each individual client on the server. This caps the cli_iMaxBPS on the server side.
  101. * prj_strMapList - Semicolon separated list of maps used for multiplayer map rotation.
  102. * prj_strMapListFile - Path to the file containing a list of maps used for multiplayer map rotation.
  103. * prj_strDefaultMapDir - Default map folder to use for the map list (specified either by prj_strMapList or prj_strMapListFile). To make it posible to specify map names in a short form, if a '#' prefix is used in a map path, the '#' char will be replaced by the value of this cvar.
  104.  
  105. All other cvars and cfuncs can be used, most notable are cvars with "gam_" prefix which can be used to setup difficulty options and similar. To get the list of those or more details about them, use the game client's console with its autocompletion and help.
  106.  
  107. 7. Remote administration (RCon)
  108. -------------------------------
  109.  
  110. Remote administration of Serious Sam HD dedicated servers is implemented via the Telnet protocol. Use any telnet client (e.g. telnet.exe) to connect to the IP and port the server is running on (default is 27015).
  111.  
  112. Example:
  113. C:\> telnet my.server.ip 27015
  114.  
  115. (*) NOTE: On Vista and Win7, the telnet command is not installed by default. You need to enable it using the "Turn Windows features on or off" section of the Control Panel.
  116.  
  117. You need to specify the rcon password (using the +rconpass "password" command-line option) when starting the server, otherwise it won't allow you to connect to it via Rcon. Also make sure the appropriate port is open, as explained above.
  118.  
  119. After entering the correct rcon password, the telnet client will behave similarly to the in-game console (except that SHIFT+TAB combo doesn't work). Additionally you can type a question mark ("?"), followed by a cvar or cfunc to get the help about it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement