ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Multiplayer improvements
A more complete dedicated server guide

1 2 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  22:52:30  12 April 2007
profilee-mailreply Message URLTo the Top
i365|zoldson
(Novice)
 
On forum: 04/03/2007
 

Message edited by:
i365|zoldson
05/11/2007 19:12:56
Messages: 20
A more complete dedicated server guide (v1.0003)

Questions keep coming up in the "Dedicated server instructions" thread, so I think it's time for a fresh post with some more complete information. This guide starts with a fresh S.T.A.L.K.E.R. installation and assumes you want to host a dedicated server on a machine you have only remote access to. I even included a lame attempt at a table of contents.
[pre]
SOC01: What files do I need to upload?
SOC01a - The file list
SOC01b - Updating a remote install from 1.0001 to 1.0003
SOC02: Registry entries you will need.
SOC02a - Using the command line
SOC02b - Using a registry file
SOC03: How do I configure my server?
SOC03a - Specify the paths: fsgame.ltx
SOC03b - Managing bans: banned.ltx
SOC03c - The map list: maprot_list.ltx
SOC03d - The cvars: user.ltx
SOC03e - Cvar reference
SOC04: How do I start the dedicated server?
SOC04a - Command line syntax
SOC04b - Parameters
SOC04c - Maps and gametypes
SOC04d - Recommended Settings
SOC04e - Setting reference
[/pre]


--------------------------------------------------------------------------------
:: SOC01 - What files do I need to upload? ::

All files needed can be found in a normal S.T.A.L.K.E.R. installation. You do not need to install the game on the machine you are going to host the server, you can simply upload the files I list. There is no special dedicated server program around that isn't beta, and there are no keys needed.

Before doing anything, update your S.T.A.L.K.E.R. installation to the current version (1.0003). Download either the 1.0000 to 1.0003 or the 1.0001 to 1.0003 patch depending on the version you currently have. Both are available here: [link]http://www.stalker-zone.com/index.php[/link] (quick, free registration required).

After updating, open your favorite file browser and go to the directory the game is installed. By default, this is C: \Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl. If you didn't realize yet these files weigh in at 5.49GB, however you can easily compress these down to 3GB or less to save some time uploading. You only need the files in bold, though it won't hurt anything to include all the files. On the server you upload these to, you can change X: \Path\To\S.T.A.L.K.E.R.\ to whatever you want, but keep the sub directories intact.


--------------------------------------------------
-- SOC01a - The file list

X: \Path\To\S.T.A.L.K.E.R.\
FirewallInstallHelper.dll
fsgame.ltx - This file needs to be edited, read below
gamedata.db1
gamedata.db2
gamedata.db3
gamedata.db4
gamedata.db5
gamedata.db6
gamedata.db7
gamedata.db8
gamedata.db9
gamedata.dba
gamedata.dbb
gamesite.url
License.txt
Patch-0-1.txt
Patch-1-3.txt
publisher.url
ReadMe.txt
register.url
setup-bp.exe
stalker.ico
StalkerUserManual.pdf
unins000.dat
unins000.exe
uninstall.ixo

X: \Path\To\S.T.A.L.K.E.R.\bin\
BugTrap.dll
d3dx9_31.dll
dbghelp.dll
eax.dll
msvcp71.dll
msvcr71.dll
ode.dll
OpenAL32.dll
wrap_oal.dll
XR_3DA.exe
xrCDB.dll
xrCore.dll
xrCPU_Pipe.dll
xrD3D9-Null.dll
xrGame.dll
xrGameSpy.dll
xrLUA.dll
xrNetServer.dll
xrParticles.dll
xrRender_R1.dll
xrRender_R2.dll
xrSound.dll
xrXMLParser.dll

X: \Path\To\S.T.A.L.K.E.R.\bin\dedicated\
XR_3DA.exe


--------------------------------------------------
-- SOC01b - Upgrading a remote install from 1.0001 to 1.0003

If you only need to upgrade, here are the new files that need to be uploaded to your server. The provided patch still requires a working installation.

X: \Path\To\S.T.A.L.K.E.R.\
gamedata.dbb
Patch-1-3.txt

X: \Path\To\S.T.A.L.K.E.R.\bin\
ode.dll
XR_3DA.exe
xrCDB.dll
xrCore.dll
xrCPU_Pipe.dll
xrD3D9-Null.dll
xrGame.dll
xrGameSpy.dll
xrLUA.dll
xrNetServer.dll
xrParticles.dll
xrRender_R1.dll
xrRender_R2.dll
xrSound.dll
xrXMLParser.dll

X: \Path\To\S.T.A.L.K.E.R.\bin\dedicated\
XR_3DA.exe

You also need to edit your registry entries. Remember, 64-bit and 32-bit windows have different keys.

64-bit
[pre]REG ADD "HKLM\SOFTWARE\Wow6432Node\GSC Game World\STALKER-SHOC" /v InstallVers /t REG_SZ /d "1.0003"[/pre]
32-bit
[pre]REG ADD "HKLM\SOFTWARE\GSC Game World\STALKER-SHOC" /v InstallVers /t REG_SZ /d "1.0003"[/pre]
- OR -

If you want to just fake the S.T.A.L.K.E.R. installation and run the patch provided, you can add a few keys to do this.
Replace *SOURCE* with your proper value:
US version: stk-for-pack-noprot-efis
WW version: stk-for-pack-securom-keydisk-efis
    Thanks, J.S.J!
Direct download: ???

64-bit
[pre]REG ADD "HKLM\SOFTWARE\Wow6432Node\GSC Game World\STALKER-SHOC" /v InstallLang /t REG_SZ /d "en"
REG ADD "HKLM\SOFTWARE\Wow6432Node\GSC Game World\STALKER-SHOC" /v InstallPath /t REG_SZ /d "X: \Path\To\S.T.A.L.K.E.R."
REG ADD "HKLM\SOFTWARE\Wow6432Node\GSC Game World\STALKER-SHOC" /v InstallSource /t REG_SZ /d "*SOURCE*"[/pre]
32-bit
[pre]REG ADD "HKLM\SOFTWARE\GSC Game World\STALKER-SHOC" /v InstallLang /t REG_SZ /d "en"
REG ADD "HKLM\SOFTWARE\GSC Game World\STALKER-SHOC" /v InstallPath /t REG_SZ /d "X: \Path\To\S.T.A.L.K.E.R."
REG ADD "HKLM\SOFTWARE\GSC Game World\STALKER-SHOC" /v InstallSource /t REG_SZ /d "*SOURCE*"[/pre]




--------------------------------------------------------------------------------
:: SOC02 - Registry entries you will need. ::

You will need a few registry entries for the game to run properly. These are the bare minimum, the other ones found in a normal S.T.A.L.K.E.R. installation might serve some purpose but I haven't seen the lack of them effect the server in any way, so I won't list them. The values can be changed to whatever you want, they just have to be present. Yes, you can specify the version that displays in the server list, but who knows what effects that might have.

64-bit and 32-bit windows have different keys. If you don't know which you are running, you probably shouldn't be hosting a dedicated server for anything.


--------------------------------------------------
-- SOC02a - Using the command line

You can copy and paste the following commands into a Windows command console instead of making a file and importing it. (Start -> Run.. -> cmd)

64-bit
[pre]REG ADD "HKLM\SOFTWARE\Wow6432Node\GSC Game World\STALKER-SHOC"
REG ADD "HKLM\SOFTWARE\Wow6432Node\GSC Game World\STALKER-SHOC" /v InstallVers /t REG_SZ /d "1.0003"
REG ADD "HKLM\SOFTWARE\Wow6432Node\GSC Game World\STALKER-SHOC" /v InstallUserName /t REG_SZ /d "Stalker"[/pre]
32-bit
[pre]REG ADD "HKLM\SOFTWARE\GSC Game World\STALKER-SHOC"
REG ADD "HKLM\SOFTWARE\GSC Game World\STALKER-SHOC" /v InstallVers /t REG_SZ /d "1.0003"
REG ADD "HKLM\SOFTWARE\GSC Game World\STALKER-SHOC" /v InstallUserName /t REG_SZ /d "Stalker"[/pre]


--------------------------------------------------
-- SOC02b - Using a registry file

If you want to make a registry file instead of using the commands, open your favorite text editor and paste the proper entry from below. Save this file as whatever.reg. You can then double click the file, or right click it and select "Merge".

64-bit
[pre]Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeGSC Game World]

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeGSC Game WorldSTALKER-SHOC]
"InstallVers"="1.0003"
"InstallUserName"="Stalker"[/pre]
32-bit
[pre]Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREGSC Game World]

[HKEY_LOCAL_MACHINESOFTWAREGSC Game WorldSTALKER-SHOC]
"InstallVers"="1.0003"
"InstallUserName"="Stalker"[/pre]




--------------------------------------------------------------------------------
:: SOC03 - How do I configure my server? ::

There are four files that you can edit to tell S.T.A.L.K.E.R. how to run, three of these were not listed as files to be copied. These three files will be created with default values by the game if they do not exist. If you want to copy the files from your installation, they can be found at C: \Documents and Settings\All Users\Documents\STALKER-SHOC (Which displays as "Shared Documents" in Windows Explorer for whatever reason).


--------------------------------------------------
-- SOC03a - Specify the paths: fsgame.ltx

If you ask me, the config files are stored in a weird location. You can change this, and I recommend doing so. Create a sub directory where you uploaded your files to, such as X: \Path\To\S.T.A.L.K.E.R.\data\ Now open up X: \Path\To\S.T.A.L.K.E.R.\fsgame.ltx in any text editor, notepad works magic. You only need to change the line with $app_data_root$, which specifies where configs and logs get stored. Note that there is a | between the drive and path, as well as a trailing backslash.

Example:
[pre]$app_data_root$=true|false|X: \|Path\To\S.T.A.L.K.E.R.\data\
$game_data$ = false| true| $fs_root$| gamedata\
$game_ai$ = true| false| $game_data$| ai\
$game_spawn$ = true| false| $game_data$| spawns\
$game_anims$ = true| true| $game_data$| anims\
$game_levels$ = true| false| $game_data$| levels\
$game_meshes$ = true| true| $game_data$| meshes\
$game_dm$ = true| true| $game_data$| meshes\
$game_shaders$ = true| true| $game_data$| shaders\
$game_sounds$ = true| true| $game_data$| sounds\
$game_textures$ = true| true| $game_data$| textures\
$game_scripts$ = true| false| $game_data$| scripts\
$game_config$ = true| false| $game_data$| config\
$level$ = false| false| $game_levels$
$game_saves$ = true| false| $app_data_root$| savedgames\
$logs$ = true| false| $app_data_root$| logs\
$screenshots$ = true| false| $app_data_root$| screenshots\
$downloads$ = false| false| $app_data_root$| downloads\[/pre]


--------------------------------------------------
-- SOC03b - Managing bans: banned.ltx
Located where you specified in fsgame.ltx, such as X: \Path\To\S.T.A.L.K.E.R.\data\. This file should be created if and when a user is banned from the server. The syntax is simple, one ban entry per line using the player's IP. Note that S.T.A.L.K.E.R. uses the Unix line breaks, which some text editors (such as notepad) will display as a random character depending on the font you use instead of separate lines. I don't believe it matters which type of line break is used. You can also type these commands at the console to add them to the file.

Example:
[pre]sv_banplayer_ip 256.0.0.96
sv_banplayer_ip 256.0.0.32
[/pre]


--------------------------------------------------
-- SOC03c - The map list: maprot_list.ltx
Located where you specified in fsgame.ltx, such as X: \Path\To\S.T.A.L.K.E.R.\data\. Much like the banned.ltx, this file has one entry per line. You can also type these commands at the console to add them to the file. If this file does not exist, the map will never change from the one the server is told to start on. This file is checked at the end of every round, so you should be able to edit this without restarting the server.

Example:
[pre]sv_addmap testers_mp_agroprom
sv_addmap testers_mp_atp
sv_addmap testers_mp_darkvalley
sv_addmap testers_mp_factory
sv_addmap testers_mp_lost_village
sv_addmap testers_mp_military_1
sv_addmap testers_mp_pool
sv_addmap testers_mp_railroad
sv_addmap testers_mp_rostok
sv_addmap testers_mp_workshop
[/pre]


--------------------------------------------------
-- SOC03d - The cvars: user.ltx

Located where you specified in fsgame.ltx, such as X: \Path\To\S.T.A.L.K.E.R.\data\. This file can have two purposes. For one, it has all the default single player configurations in it. They aren't really used, but the dedicated server connects to itself and will create this file if it doesn't exist. I wouldn't think tweaking anything will increase performance, but I haven't tested it. Second, this file can hold all the server cvars that also get created with their defaults.

Example user.ltx:
[pre]_preset Default
ai_use_torch_dynamic_lights on
unbindall
bind left kLEFT
bind right kRIGHT
bind up kUP
bind down kDOWN
bind jump kSPACE
bind crouch kLCONTROL
bind accel kLSHIFT
bind sprint_toggle kX
bind forward kW
bind back kS
bind lstrafe kA
bind rstrafe kD
bind llookout kQ
bind rlookout kE
bind cam_zoom_in kADD
bind cam_zoom_out kSUBTRACT
bind torch kL
bind night_vision kN
bind wpn_1 k1
bind wpn_2 k2
bind wpn_3 k3
bind wpn_4 k4
bind wpn_5 k5
bind wpn_6 k6
bind artefact k7
bind wpn_next kY
bind wpn_fire mouse1
bind wpn_zoom mouse2
bind wpn_reload kR
bind wpn_func kV
bind wpn_firemode_prev k9
bind wpn_firemode_next k0
bind pause kPAUSE
bind drop kG
bind use kF
bind scores kTAB
bind chat kCOMMA
bind chat_team kPERIOD
bind screenshot kF12
bind quit kESCAPE
bind console kGRAVE
bind inventory kI
bind buy_menu kB
bind skin_menu kO
bind team_menu kU
bind active_jobs kP
bind map kM
bind contacts kH
bind vote_begin kF5
bind vote kF6
bind vote_yes kF7
bind vote_no kF8
bind speech_menu_0 kC
bind speech_menu_1 kZ
bind use_bandage kRBRACKET
bind use_medkit kLBRACKET
bind quick_save kF6
bind quick_load kF7
cam_inert 0.7
cam_slide_inert 0.25
cl_cod_pickup_mode 1
cl_dynamiccrosshair on
g_always_run on
g_autopickup off
g_backrun off
g_corpsenum 10
g_eventdelay 0
g_game_difficulty gd_master
hud_crosshair on
hud_crosshair_dist off
hud_info on
hud_weapon on
mm_mm_net_srv_dedicated off
mm_net_con_publicserver off
mm_net_con_spectator 20
mm_net_con_spectator_on off
mm_net_srv_gamemode st_deathmatch
mm_net_srv_maxplayers 32
mm_net_srv_name "testing"
mm_net_srv_reinforcement_type 1
mm_net_weather_rateofchange 100.
mouse_invert off
mouse_sens 0.12
net_cl_icurvesize 0
net_cl_icurvetype 0
net_cl_interpolation 0.
net_cl_log_data off
net_dbg_dump_export_obj 0
net_dbg_dump_import_obj 0
net_dbg_dump_update_read 0
net_dbg_dump_update_write 0
net_dedicated_sleep 5
net_sv_log_data off
net_sv_pending_lim 2
net_sv_update_rate 30
ph_frequency 100.00000
ph_iterations 18
r1_dlights on
r1_dlights_clip 30.
r1_glows_per_frame 16
r1_lmodel_lerp 0.1
r1_pps_u 0.
r1_pps_v 0.
r1_ssa_lod_a 64.
r1_ssa_lod_b 48.
r1_tf_mipbias 0.
r2_aa off
r2_aa_break 0.800000,0.100000,0.000000
r2_aa_kernel 0.5
r2_aa_weight 0.250000,0.250000,0.000000
r2_allow_r1_lights off
r2_gi off
r2_gi_clip 0.001
r2_gi_depth 1
r2_gi_photons 16
r2_gi_refl 0.9
r2_gloss_factor 1.
r2_ls_bloom_fast off
r2_ls_bloom_kernel_b 0.7
r2_ls_bloom_kernel_g 3.3
r2_ls_bloom_kernel_scale 1.
r2_ls_bloom_speed 10.
r2_ls_bloom_threshold 0.3
r2_ls_depth_bias -0.0001
r2_ls_depth_scale 1.00001
r2_ls_dsm_kernel 0.7
r2_ls_psm_kernel 0.7
r2_ls_squality 1.
r2_ls_ssm_kernel 0.7
r2_mblur 0.5
r2_parallax_h 0.02
r2_slight_fade 1.
r2_ssa_lod_a 48.
r2_ssa_lod_b 32.
r2_sun on
r2_sun_depth_far_bias 0.
r2_sun_depth_far_scale 1.
r2_sun_depth_near_bias -0.00004
r2_sun_depth_near_scale 1.00001
r2_sun_details off
r2_sun_focus off
r2_sun_lumscale 1.
r2_sun_lumscale_amb 1.
r2_sun_lumscale_hemi 1.
r2_sun_near 12.
r2_sun_near_border 0.66
r2_sun_tsm off
r2_sun_tsm_bias -0.05
r2_sun_tsm_proj 0.18
r2_tf_mipbias 0.
r2_tonemap off
r2_tonemap_adaptation 5.
r2_tonemap_amount 0.5
r2_tonemap_lowlum 0.001
r2_tonemap_middlegray 0.25
r2_wait_sleep 0
r2_zfill off
r2_zfill_depth 0.1
r2em 0.
r__detail_density 0.3
r__geometry_lod 1.
r__supersample 1
r__tf_aniso 4
renderer renderer_r1
rs_c_brightness 1.
rs_c_contrast 1.
rs_c_gamma 1.
rs_fullscreen on
rs_refresh_60hz off
rs_stats off
rs_v_sync off
rs_vis_distance 1.
snd_acceleration on
snd_cache_size 16
snd_efx on
snd_targets 16
snd_volume_eff 1.
snd_volume_music 0.7
sv_anomalies_enabled 1
sv_anomalies_length 3
sv_artefact_respawn_delta 30
sv_artefact_stay_time 3
sv_artefacts_count 10
sv_auto_team_balance 0
sv_auto_team_swap 1
sv_bearercantsprint 1
sv_client_reconnect_time 60
sv_console_update_rate 1
sv_dedicated_server_update_rate 100
sv_dmgblockindicator 0
sv_dmgblocktime 0
sv_forcerespawn 0
sv_fraglimit 10
sv_friendly_indicators 1
sv_friendly_names 1
sv_friendlyfire 0.
sv_hail_to_winner_time 7000
sv_pda_hunt 1
sv_pending_wait_time 10000
sv_reinforcement_time 0
sv_remove_corpse 1
sv_remove_weapon 1
sv_returnplayers 1
sv_rpoint_freeze_time 0
sv_shieldedbases 1
sv_spectr_firsteye 1
sv_spectr_freefly 0
sv_spectr_freelook 1
sv_spectr_lookat 1
sv_spectr_teamcamera 1
sv_statistic_collect 1
sv_statistic_save_auto 0
sv_timelimit 0
sv_vote_enabled 0
sv_vote_participants 0
sv_vote_quota 0.25
sv_vote_time 1.
sv_warm_up 3
texture_lod 0
vid_mode 1024x768[/pre]

Optional: You can store all the dedicated server cvars in a separate file, which makes maintaining the file a lot easier. You can also have multiple files that hold different configurations that can be executed from the console or specified when you launch the dedicated server.

Example server.ltx:
[pre]sv_anomalies_enabled 1
sv_anomalies_length 3
sv_artefact_respawn_delta 30
sv_artefact_stay_time 3
sv_artefacts_count 10
sv_auto_team_balance 0
sv_auto_team_swap 1
sv_bearercantsprint 1
sv_client_reconnect_time 60
sv_console_update_rate 1
sv_dedicated_server_update_rate 100
sv_dmgblockindicator 0
sv_dmgblocktime 0
sv_forcerespawn 0
sv_fraglimit 10
sv_friendly_indicators 1
sv_friendly_names 1
sv_friendlyfire 0.
sv_hail_to_winner_time 7000
sv_pda_hunt 1
sv_pending_wait_time 10000
sv_reinforcement_time 0
sv_remove_corpse 1
sv_remove_weapon 1
sv_returnplayers 1
sv_rpoint_freeze_time 0
sv_shieldedbases 1
sv_spectr_firsteye 1
sv_spectr_freefly 0
sv_spectr_freelook 1
sv_spectr_lookat 1
sv_spectr_teamcamera 1
sv_statistic_collect 1
sv_statistic_save_auto 0
sv_timelimit 0
sv_vote_enabled 0
sv_vote_participants 0
sv_vote_quota 0.25
sv_vote_time 1.
sv_warm_up 3[/pre]


--------------------------------------------------
-- SOC03d - Cvar reference

cvar_name: Cvar description. (Min - Max; Default)
For cvars that can only bet set to 0 or 1;
0 means no, false, disabled, or off.
1 means yes, true, enabled, or on.

sv_anomalies_enabled: Allow anomalies. (0,1; Default: 1)
sv_anomalies_length: Sets the duration anomalies are active in minutes. A setting of 0 makes them persistent. (0 - 180; Default: 3)
sv_artefact_respawn_delta: In Artefact Hunt mode; Sets the Artefact respawn delay in seconds. (0 - 600; Default: 30)
sv_artefact_stay_time: In Artefact Hunt mode; Sets the Artefact life in minutes. A setting of 0 makes them persistent. (0 - 180; Default: 3)
sv_artefacts_count: In Artefact Hunt mode; Sets the amount of Artefacts to spawn before the map changes. (1 - 100; Default: 10)
sv_auto_team_balance: Enable auto team-balancing. (0,1; Default: 0)
sv_auto_team_swap: Enable auto team-swap. (0,1; Default: 1)
sv_bearercantsprint: In Artefact Hunt mode; Disables sprinting for the player carrying an Artefact. (0,1; Default: 1)
sv_client_reconnect_time: How many minutes to save a player's stats after they disconnect. If they reconnect within this time, their stats are not lost. A setting of 0 disables this. (0 - 60; Default: 60)
sv_console_update_rate*: Set how often to update the console. (1 - 100; Default: 1)
sv_dedicated_server_update_rate*: Set how often to update the server console. (1 - 1000; Default: 1)
sv_dmgblockindicator: Enable spawn protection. (temporary invincibility) (0,1; Default: 0)
sv_dmgblocktime: Spawn protection time in seconds. (0 - 600; Default: 0)
sv_forcerespawn: Sets the time to wait before forcing a player respawn, in seconds. (0 - 3600; Default: 0)
sv_fraglimit: Maximum number of frags allowed before the map is changed. A setting of 0 disables the limit. (0 - 100; Default: 0)
sv_friendly_indicators: Enable team's icon above the character model of teammates. (0,1; Default: 0)
sv_friendly_names: Setting this to 1 and friendly names are toggled with Caps Lock. Setting this to 0 shows names only when Caps Lock is pressed. (0,1; Default: 0)
sv_friendlyfire: Sets the friendly fire ratio. 1.5 = 150% damage. (0.0 - 1.9; Default: .0)
sv_hail_to_winner_time: Sets the time in milliseconds to praise the round winner. A setting of 0 disables this. (0 - 60000; Default: 7000)
sv_pda_hunt: Enable PDA bonus. (0,1; Default: 1)
sv_pending_wait_time: Time to wait for players to connect before starting the round in Team Deathmatch, in seconds. A setting of 0 disables this (0 - 60000; Default: 10000)
sv_reinforcement_time: The reinforcement timeout in team play modes, in seconds. A setting of -1 disables reinforcements until the end of the round. (-1 - 3600; Default: 20)
sv_remove_corpse: Remove player corpses. A setting of -1 disables this. A setting of 0 removes them at the end of the round. (-1 - 1; Default: 1)
sv_remove_weapon: Removes dropped weapons. A setting of -1 disables this. A setting of 0 removes them at the end of the round. (-1 - 1; Default: 1)
sv_returnplayers: In Artefact Hunt mode; Return players to their base after the end of a round. (0,1; Default: 1)
sv_rpoint_freeze_time*: ??? (0 - 60000; Default: 0)
sv_shieldedbases: In Artefact Hunt mode; When enabled, players are shielded in their base. (0,1; Default: 1)
sv_spectr_firsteye: Spectator setting: Enable first-person view. (0,1; Default: 1)
sv_spectr_freefly: Spectator setting: Free camera. (0,1; Default: 0)
sv_spectr_freelook: Spectator setting: Free-locked. (0,1; Default: 1)
sv_spectr_lookat: Spectator setting: Enable third-person view. (0,1; Default: 1)
sv_spectr_teamcamera: Spectator setting: View team only. (0,1; Default: 1)
sv_statistic_collect: Enable player statistics. (0,1; Default: 1)
sv_statistic_save_auto: Enable automatic statistic saving. (0,1; Default: 0)
sv_timelimit: Round time limit, in minutes. A setting of 0 disables this. (0 - 180; Default: 0)
sv_vote_enabled: Enable the voting menu. (0,1; Default: 1)
sv_vote_participants: Hide player votes. (0,1; Default: 0)
sv_vote_quota: The quota required for a vote to pass. 0.50 = 50% required to pass a vote. (0.00 - 1.00; Default: .51)
sv_vote_time: Length of time to run a vote, in minutes. 1.75 = 1 minute 45 seconds. (0.50 - 10.00; Default: 1.00)
sv_warm_up: Warm-up round length, in minutes. A setting of 0 disables this. (0 - 3600; Default: 0)
*: Some of these cvars, I'm not entirely sure what they are for. If anyone knows, feel free to let everyone know.




--------------------------------------------------------------------------------
:: SOC04 - How do I start the dedicated server? ::

There is quite a bit of information you can pass to the dedicated server binary to start it with. Most of it is not really needed, unless you need to keep some options from being changed by people you give config file access. I'll start by breaking down a basic example.

Note: For the server to run correctly, the working directory must be X: \Path\To\S.T.A.L.K.E.R.\bin\. Do this in a command console by typing cd X: \Path\To\S.T.A.L.K.E.R.\bin\.


--------------------------------------------------
-- SOC04a - Command line syntax

Basic syntax: dedicated\XR_3DA.exe <parameters> server(<map>/<gametype>/<settings>) client(localhost/<settings>)

<parameters> can only be passed to the dedicated server through the command line and cannot be modified while the dedicated server is running. <map> is apparently optional, as it can be pulled from the maprot_list.ltx file. Personally, I use this option. <gametype> is game type for this server to run. <settings> are in the format of setting=value, and are separated by a /. Most of these can be set in the config file. Let's jump right into an example.

Example:
[pre]dedicated\XR_3DA.exe -start server(testers_mp_rostok/artefacthunt/hname=S.T.A.L.K.E.R./maxplayers=32/public=1)
client(localhost/name=Admin)[/pre]

This will start up a public, 32 player server on the map "Rostok" factory playing Artefact Hunt mode with a hostname of S.T.A.L.K.E.R.. This will use whatever cvars are in the user.ltx in the folder that is specified in the fsgame.ltx.


--------------------------------------------------
-- SOC04b - Parameters

dedicated\XR_3DA.exe <parameters> server(<map>/<gametype>/<settings> ) client(localhost/<settings> )

Parameters can only be passed when starting the dedicated server. There may be more, and some that I use I'm not sure if they actually apply to anything. Please note that -start is required.

parameter: effect

-i*: Ignores input devices (a dedicated server doesn't need to know what the mouse is doing)
-ltx <file>: Use this if you need to pass console commands to the server upon start. The only useful console command I can think of us check_for_updates(). Can also contain cvars for the server to use. <file> should be similar to X: \Path\To\S.T.A.L.K.E.R.\file.ltx
-nointro: Stops intro movies from playing (client only?)
-nosound*: Disables sound for the server
-overlaypath <path>: This adds <path> to everything used by the server. If used with -ltx or -svcfg, do not specify a path.
-silent_error_mode*: Should the dedicated server crash, it will exit without any alert. Use this in conjunction with a process monitoring daemon that can restart it for you automatically.
-svcfg <file>*: <file> should be similar to X: \Path\To\S.T.A.L.K.E.R.\file.ltx
*: Recommended

The following I found mentioned in one place or another, but I am uncertain of their validity or use
-external: ?
-nocache: Does not cache any data
-xclsx: ?

Example:
[pre]dedicated\XR_3DA.exe -i -nosound -silent_error_mode -svcfg X: \Path\To\S.T.A.L.K.E.R.\data\server.ltx -start
server(testers_mp_rostok/artefacthunt/hname=S.T.A.L.K.E.R./maxplayers=32/public=1) client(localhost/name=Admin)[/pre]

This will start up a public, 32 player server on the map "Rostok" factory playing Artefact Hunt mode with a hostname of S.T.A.L.K.E.R.. This will use cvars in server.ltx, ignore input devices, not play any sounds, and exit immediately should it crash.


--------------------------------------------------
-- SOC04c - Maps and gametypes

dedicated\XR_3DA.exe <parameters> server(<map>/<gametype>/<settings> ) client(localhost/<settings> )

map: Name (Recommended players)

testers_mp_agroprom: "Agroprom" factory (8-16)
testers_mp_atp: Vehicle station (4-8)
testers_mp_darkvalley: Dark valley
testers_mp_factory: "Yantar" factory (8-16)
testers_mp_lost_village: Desolated village (8-16)
testers_mp_military_1: Military warehouses (8-32)
testers_mp_pool*: Pool (8-32)
testers_mp_railroad: Railway station (8-32)
testers_mp_rostok: "Rostok" factory (8-16)
testers_mp_workshop: Deserted factory (8-16)
*: This map cannot be played in Artefact Hunt mode, it seems to crash the server.

gametype: Name - Description

deathmatch: Deathmatch - Free for all, most frags wins
teamdeathmatch: Team deathmatch - Team based, most frags wins
artefacthunt: Artefact hunt - Team based, most artefacts obtained and returned base wins


--------------------------------------------------
-- SOC04d - Settings

dedicated\XR_3DA.exe <parameters> server(<map>/<gametype>/<settings>) client(localhost/<settings>)

Settings are enclosed within the server() and client() parameters. Most can be altered through cvars, but a few must be passed to the command line. Any settings you pass to the server cannot be altered with cvars, so you can essentially lock some settings from being altered.

Note: portcl, portgs, and portsv must be specified if you plan on running multiple dedicated servers. The default S.T.A.L.K.E.R. port is 5445. For ease, use an offset for each port type. For example; portsv=5445, portgs=6445, portcl=7445.

For server():
estime=: Sets the game time, this determines the weather. (0:00 - 23:59)

---QUOTATION---
Clear = 09:00
Cloudy = 13:00
Rain = 16:00
Night = 01:00
---END QUOTATION---


etimef=: How fast the weather changes (0 - 100)
hname=: This is the server's hostname. Note that if you are manually running this from the command line, you cannot use a single | in the name. (Creating a batch file to launch the server should remedy this)
maxplayers=: Maximum players allowed in the server (32 is the max)
portgs=: Port to run the server on
portsv=: Port used for GameSpy
psw=: Require a password to join the server
public=: Set this to 1 for a public server. 0 means only people on your local network will see the server.
spectrmds=: Max amount of spectators allowed (0 - 32)

For client():
name=: Set the name for the client
portcl=: Port used for the server's client

Example:
[pre]dedicated\XR_3DA.exe -i -nosound -silent_error_mode -svcfg X: \Path\To\S.T.A.L.K.E.R.\data\server.ltx -start
server(testers_mp_rostok/artefacthunt/hname=S.T.A.L.K.E.R./maxplayers=32/portsv=5445/portgs=6445/estime=16:00
/etimef=0.0/psw=Locked/public=1
)
client(localhost/name=Admin/portcl=7445)[/pre]

This will start up a public, 32 player server using port 5445, sending data to GameSpy on port 6445 playing on the map "Rostok" factory at 4:00pm (Rainy weather) that doesn't change (0.0) playing Artefact Hunt mode with a hostname of S.T.A.L.K.E.R. and a password of Locked. This will use cvars in server.ltx, ignore input devices, not play any sounds, and exit immediately should it crash. It will connect to itself using the name Admin on port 7445


--------------------------------------------------
-- SOC04d - Setting reference

setting=: cvar
Refer to SOC03e - Cvar reference for further information

abalance=: sv_auto_team_balance
ans=: sv_anomalies_enabled
anslen=: sv_anomalies_length
anum=: sv_artefact_count
ardelta=: sv_artefact_respawn_delta
astime=: sv_artefact_stay_time
aswap=: sv_auto_team_swap
dmbi=: sv_dmgblockindicator
dmgblock=: sv_dmgblocktime
ffire=: sv_friendlyfire
fi=: sv_friendly_indicator
fn=: sv_friendly_names
fraglimit=: sv_fraglimit
frcrspwn=: sv_forcerespawn
pdahunt=: sv_pda_hunt
reinf=: sv_reinforcement_time
rpfrz=: sv_rpoint_freeze_time
timelimit=: sv_timelimit
vote=: sv_vote_enabled
warmup=: sv_warm_up
  02:02:06  13 April 2007
profilee-mailreply Message URLTo the Top
kaliq
(Novice)
 
On forum: 03/22/2007
Messages: 31

---QUOTATION---
A more complete dedicated server guide

Questions keep coming up in the "Dedicated server instructions" thread, so I think it's time for a fresh post with some more complete information. This guide starts with a fresh S.T.A.L.K.E.R. installation and assumes you want to host a dedicated server on a machine you have only remote access to. I even included a lame attempt at a table of contents.
[pre]
SOC01: What files do I need to upload?
SOC01a - The file list
SOC02: Registry entries you will need.
SOC02a - Using the command line
SOC02b - Using a registry file
SOC03: How do I configure my server?
SOC03a - Specify the paths: fsgame.ltx
SOC03b - Managing bans: banned.ltx
SOC03c - The map list: maprot_list.ltx
SOC03d - The cvars: user.ltx
SOC03e - Cvar reference
SOC04: How do I start the dedicated server?
SOC04a - Command line syntax
SOC04b - Parameters
SOC04c - Maps and gametypes
SOC04d - Recommended Settings
SOC04e - Setting reference
[/pre]


--------------------------------------------------------------------------------
:: SOC01 - What files do I need to upload? ::

All files needed can be found in a normal S.T.A.L.K.E.R. installation. You do not need to install the game on the machine you are going to host the server, you can simply upload the files I list. There is no special dedicated server program around that isn't beta, and there are no keys needed.

Before doing anything, update your S.T.A.L.K.E.R. installation to the current version (1.0001). A quick google search for "stalker 1.0001" should bring up mirrors for the download. Or for lazy people like me, it can be found here: [link]http://www.fileshack.com/file.x/10335/S.T.A.L.K.E.R. 1.0001 Patch - US[/link]

After updating, open your favorite file browser and go to the directory the game is installed. By default, this is C: Program FilesTHQS.T.A.L.K.E.R. - Shadow of Chernobyl. If you didn't realize yet these files weigh in at 5.49GB, however you can easily compress these down to 3GB or less to save some time uploading. You only need the files in bold, though it won't hurt anything to include all the files. On the server you upload these to, you can change X: PathToS.T.A.L.K.E.R. to whatever you want, but keep the sub directories intact.


--------------------------------------------------
-- SOC01a - The file list

X: PathToS.T.A.L.K.E.R.
FirewallInstallHelper.dll
fsgame.ltx - This file needs to be edited, read below
gamedata.db1
gamedata.db2
gamedata.db3
gamedata.db4
gamedata.db5
gamedata.db6
gamedata.db7
gamedata.db8
gamedata.db9
gamedata.dba
gamedata.dbb
gamesite.url
License.txt
Patch-0-1.txt
publisher.url
ReadMe.txt
register.url
setup-bp.exe
stalker.ico
StalkerUserManual.pdf
unins000.dat
unins000.exe
uninstall.ixo

X: PathToS.T.A.L.K.E.R.bin
BugTrap.dll
d3dx9_31.dll
dbghelp.dll
eax.dll
msvcp71.dll
msvcr71.dll
ode.dll
OpenAL32.dll
wrap_oal.dll
XR_3DA.exe
xrCDB.dll
xrCore.dll
xrCPU_Pipe.dll
xrD3D9-Null.dll
xrGame.dll
xrGameSpy.dll
xrLUA.dll
xrNetServer.dll
xrParticles.dll
xrRender_R1.dll
xrRender_R2.dll
xrSound.dll
xrXMLParser.dll

X: PathToS.T.A.L.K.E.R.bindedicated
XR_3DA.exe




--------------------------------------------------------------------------------
:: SOC02 - Registry entries you will need. ::

You will need a few registry entries for the game to run properly. These are the bare minimum, the other ones found in a normal S.T.A.L.K.E.R. installation might serve some purpose but I haven't seen the lack of them effect the server in any way, so I won't list them. The values can be changed to whatever you want, they just have to be present. Yes, you can specify the version that displays in the server list, but who knows what effects that might have.

64-bit and 32-bit windows have different keys. If you don't know which you are running, you probably shouldn't be hosting a dedicated server for anything.


--------------------------------------------------
-- SOC02a - Using the command line

You can copy and paste the following commands into a Windows command console instead of making a file and importing it. (Start -> Run.. -> cmd)

64-bit
[pre]REG ADD "HKLMSOFTWAREWow6432NodeGSC Game WorldSTALKER-SHOC"
REG ADD "HKLMSOFTWAREWow6432NodeGSC Game WorldSTALKER-SHOC" /v InstallVers /t REG_SZ /d "1.0001"
REG ADD "HKLMSOFTWAREWow6432NodeGSC Game WorldSTALKER-SHOC" /v InstallUserName /t REG_SZ /d "Stalker"[/pre]
32-bit
[pre]REG ADD "HKLMSOFTWAREGSC Game WorldSTALKER-SHOC"
REG ADD "HKLMSOFTWAREGSC Game WorldSTALKER-SHOC" /v InstallVers /t REG_SZ /d "1.0001"
REG ADD "HKLMSOFTWAREGSC Game WorldSTALKER-SHOC" /v InstallUserName /t REG_SZ /d "Stalker"[/pre]


--------------------------------------------------
-- SOC02b - Using a registry file

If you want to make a registry file instead of using the commands, open your favorite text editor and paste the proper entry from below. Save this file as whatever.reg. You can then double click the file, or right click it and select "Merge".

64-bit
[pre]Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeGSC Game World]

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeGSC Game WorldSTALKER-SHOC]
"InstallVers"="1.0001"
"InstallUserName"="Stalker"[/pre]
32-bit
[pre]Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREGSC Game World]

[HKEY_LOCAL_MACHINESOFTWAREGSC Game WorldSTALKER-SHOC]
"InstallVers"="1.0001"
"InstallUserName"="Stalker"[/pre]




--------------------------------------------------------------------------------
:: SOC03 - How do I configure my server? ::

There are four files that you can edit to tell S.T.A.L.K.E.R. how to run, three of these were not listed as files to be copied. These three files will be created with default values by the game if they do not exist. If you want to copy the files from your installation, they can be found at C: Documents and SettingsAll UsersDocumentsSTALKER-SHOC (Which displays as "Shared Documents" in Windows Explorer for whatever reason).


--------------------------------------------------
-- SOC03a - Specify the paths: fsgame.ltx

If you ask me, the config files are stored in a weird location. You can change this, and I recommend doing so. Create a sub directory where you uploaded your files to, such as X: PathToS.T.A.L.K.E.R.data Now open up X: PathToS.T.A.L.K.E.R.fsgame.ltx in any text editor, notepad works magic. You only need to change the line with $app_data_root$, which specifies where configs and logs get stored. Note that there is a | between the drive and path, as well as a trailing backslash.

Example:
[pre]$app_data_root$=true|false|X: |PathToS.T.A.L.K.E.R.data
$game_data$ = false| true| $fs_root$| gamedata
$game_ai$ = true| false| $game_data$| ai
$game_spawn$ = true| false| $game_data$| spawns
$game_anims$ = true| true| $game_data$| anims
$game_levels$ = true| false| $game_data$| levels
$game_meshes$ = true| true| $game_data$| meshes
$game_dm$ = true| true| $game_data$| meshes
$game_shaders$ = true| true| $game_data$| shaders
$game_sounds$ = true| true| $game_data$| sounds
$game_textures$ = true| true| $game_data$| textures
$game_scripts$ = true| false| $game_data$| scripts
$game_config$ = true| false| $game_data$| config
$level$ = false| false| $game_levels$
$game_saves$ = true| false| $app_data_root$| savedgames
$logs$ = true| false| $app_data_root$| logs
$screenshots$ = true| false| $app_data_root$| screenshots
$downloads$ = false| false| $app_data_root$| downloads[/pre]


--------------------------------------------------
-- SOC03b - Managing bans: banned.ltx
Located where you specified in fsgame.ltx, such as X: PathToS.T.A.L.K.E.R.data. This file should be created if and when a user is banned from the server. The syntax is simple, one ban entry per line using the player's IP. Note that S.T.A.L.K.E.R. uses the Unix line breaks, which some text editors (such as notepad) will display as a random character depending on the font you use instead of separate lines. I don't believe it matters which type of line break is used. You can also type these commands at the console to add them to the file.

Example:
[pre]sv_banplayer_ip 256.0.0.96
sv_banplayer_ip 256.0.0.32
[/pre]


--------------------------------------------------
-- SOC03c - The map list: maprot_list.ltx
Located where you specified in fsgame.ltx, such as X: PathToS.T.A.L.K.E.R.data. Much like the banned.ltx, this file has one entry per line. You can also type these commands at the console to add them to the file. If this file does not exist, the map will never change from the one the server is told to start on. This file is checked at the end of every round, so you should be able to edit this without restarting the server.

Example:
[pre]sv_addmap testers_mp_agroprom
sv_addmap testers_mp_atp
sv_addmap testers_mp_darkvalley
sv_addmap testers_mp_factory
sv_addmap testers_mp_lost_village
sv_addmap testers_mp_military_1
sv_addmap testers_mp_pool
sv_addmap testers_mp_railroad
sv_addmap testers_mp_rostok
sv_addmap testers_mp_workshop
[/pre]


--------------------------------------------------
-- SOC03d - The cvars: user.ltx

Located where you specified in fsgame.ltx, such as X: PathToS.T.A.L.K.E.R.data. This file can have two purposes. For one, it has all the default single player configurations in it. They aren't really used, but the dedicated server connects to itself and will create this file if it doesn't exist. I wouldn't think tweaking anything will increase performance, but I haven't tested it. Second, this file can hold all the server cvars that also get created with their defaults.

Example user.ltx:
[pre]_preset Default
ai_use_torch_dynamic_lights on
unbindall
bind left kLEFT
bind right kRIGHT
bind up kUP
bind down kDOWN
bind jump kSPACE
bind crouch kLCONTROL
bind accel kLSHIFT
bind sprint_toggle kX
bind forward kW
bind back kS
bind lstrafe kA
bind rstrafe kD
bind llookout kQ
bind rlookout kE
bind cam_zoom_in kADD
bind cam_zoom_out kSUBTRACT
bind torch kL
bind night_vision kN
bind wpn_1 k1
bind wpn_2 k2
bind wpn_3 k3
bind wpn_4 k4
bind wpn_5 k5
bind wpn_6 k6
bind artefact k7
bind wpn_next kY
bind wpn_fire mouse1
bind wpn_zoom mouse2
bind wpn_reload kR
bind wpn_func kV
bind wpn_firemode_prev k9
bind wpn_firemode_next k0
bind pause kPAUSE
bind drop kG
bind use kF
bind scores kTAB
bind chat kCOMMA
bind chat_team kPERIOD
bind screenshot kF12
bind quit kESCAPE
bind console kGRAVE
bind inventory kI
bind buy_menu kB
bind skin_menu kO
bind team_menu kU
bind active_jobs kP
bind map kM
bind contacts kH
bind vote_begin kF5
bind vote kF6
bind vote_yes kF7
bind vote_no kF8
bind speech_menu_0 kC
bind speech_menu_1 kZ
bind use_bandage kRBRACKET
bind use_medkit kLBRACKET
bind quick_save kF6
bind quick_load kF7
cam_inert 0.7
cam_slide_inert 0.25
cl_cod_pickup_mode 1
cl_dynamiccrosshair on
g_always_run on
g_autopickup off
g_backrun off
g_corpsenum 10
g_eventdelay 0
g_game_difficulty gd_master
hud_crosshair on
hud_crosshair_dist off
hud_info on
hud_weapon on
mm_mm_net_srv_dedicated off
mm_net_con_publicserver off
mm_net_con_spectator 20
mm_net_con_spectator_on off
mm_net_srv_gamemode st_deathmatch
mm_net_srv_maxplayers 32
mm_net_srv_name "testing"
mm_net_srv_reinforcement_type 1
mm_net_weather_rateofchange 100.
mouse_invert off
mouse_sens 0.12
net_cl_icurvesize 0
net_cl_icurvetype 0
net_cl_interpolation 0.
net_cl_log_data off
net_dbg_dump_export_obj 0
net_dbg_dump_import_obj 0
net_dbg_dump_update_read 0
net_dbg_dump_update_write 0
net_dedicated_sleep 5
net_sv_log_data off
net_sv_pending_lim 2
net_sv_update_rate 30
ph_frequency 100.00000
ph_iterations 18
r1_dlights on
r1_dlights_clip 30.
r1_glows_per_frame 16
r1_lmodel_lerp 0.1
r1_pps_u 0.
r1_pps_v 0.
r1_ssa_lod_a 64.
r1_ssa_lod_b 48.
r1_tf_mipbias 0.
r2_aa off
r2_aa_break 0.800000,0.100000,0.000000
r2_aa_kernel 0.5
r2_aa_weight 0.250000,0.250000,0.000000
r2_allow_r1_lights off
r2_gi off
r2_gi_clip 0.001
r2_gi_depth 1
r2_gi_photons 16
r2_gi_refl 0.9
r2_gloss_factor 1.
r2_ls_bloom_fast off
r2_ls_bloom_kernel_b 0.7
r2_ls_bloom_kernel_g 3.3
r2_ls_bloom_kernel_scale 1.
r2_ls_bloom_speed 10.
r2_ls_bloom_threshold 0.3
r2_ls_depth_bias -0.0001
r2_ls_depth_scale 1.00001
r2_ls_dsm_kernel 0.7
r2_ls_psm_kernel 0.7
r2_ls_squality 1.
r2_ls_ssm_kernel 0.7
r2_mblur 0.5
r2_parallax_h 0.02
r2_slight_fade 1.
r2_ssa_lod_a 48.
r2_ssa_lod_b 32.
r2_sun on
r2_sun_depth_far_bias 0.
r2_sun_depth_far_scale 1.
r2_sun_depth_near_bias -0.00004
r2_sun_depth_near_scale 1.00001
r2_sun_details off
r2_sun_focus off
r2_sun_lumscale 1.
r2_sun_lumscale_amb 1.
r2_sun_lumscale_hemi 1.
r2_sun_near 12.
r2_sun_near_border 0.66
r2_sun_tsm off
r2_sun_tsm_bias -0.05
r2_sun_tsm_proj 0.18
r2_tf_mipbias 0.
r2_tonemap off
r2_tonemap_adaptation 5.
r2_tonemap_amount 0.5
r2_tonemap_lowlum 0.001
r2_tonemap_middlegray 0.25
r2_wait_sleep 0
r2_zfill off
r2_zfill_depth 0.1
r2em 0.
r__detail_density 0.3
r__geometry_lod 1.
r__supersample 1
r__tf_aniso 4
renderer renderer_r1
rs_c_brightness 1.
rs_c_contrast 1.
rs_c_gamma 1.
rs_fullscreen on
rs_refresh_60hz off
rs_stats off
rs_v_sync off
rs_vis_distance 1.
snd_acceleration on
snd_cache_size 16
snd_efx on
snd_targets 16
snd_volume_eff 1.
snd_volume_music 0.7
sv_anomalies_enabled 1
sv_anomalies_length 3
sv_artefact_respawn_delta 30
sv_artefact_stay_time 3
sv_artefacts_count 10
sv_auto_team_balance 0
sv_auto_team_swap 1
sv_bearercantsprint 1
sv_client_reconnect_time 60
sv_console_update_rate 1
sv_dedicated_server_update_rate 100
sv_dmgblockindicator 0
sv_dmgblocktime 0
sv_forcerespawn 0
sv_fraglimit 10
sv_friendly_indicators 1
sv_friendly_names 1
sv_friendlyfire 0.
sv_hail_to_winner_time 7000
sv_pda_hunt 1
sv_pending_wait_time 10000
sv_reinforcement_time 0
sv_remove_corpse 1
sv_remove_weapon 1
sv_returnplayers 1
sv_rpoint_freeze_time 0
sv_shieldedbases 1
sv_spectr_firsteye 1
sv_spectr_freefly 0
sv_spectr_freelook 1
sv_spectr_lookat 1
sv_spectr_teamcamera 1
sv_statistic_collect 1
sv_statistic_save_auto 0
sv_timelimit 0
sv_vote_enabled 0
sv_vote_participants 0
sv_vote_quota 0.25
sv_vote_time 1.
sv_warm_up 3
texture_lod 0
vid_mode 1024x768[/pre]

Optional: You can store all the dedicated server cvars in a separate file, which makes maintaining the file a lot easier. You can also have multiple files that hold different configurations that can be executed from the console or specified when you launch the dedicated server.

Example server.ltx:
[pre]sv_anomalies_enabled 1
sv_anomalies_length 3
sv_artefact_respawn_delta 30
sv_artefact_stay_time 3
sv_artefacts_count 10
sv_auto_team_balance 0
sv_auto_team_swap 1
sv_bearercantsprint 1
sv_client_reconnect_time 60
sv_console_update_rate 1
sv_dedicated_server_update_rate 100
sv_dmgblockindicator 0
sv_dmgblocktime 0
sv_forcerespawn 0
sv_fraglimit 10
sv_friendly_indicators 1
sv_friendly_names 1
sv_friendlyfire 0.
sv_hail_to_winner_time 7000
sv_pda_hunt 1
sv_pending_wait_time 10000
sv_reinforcement_time 0
sv_remove_corpse 1
sv_remove_weapon 1
sv_returnplayers 1
sv_rpoint_freeze_time 0
sv_shieldedbases 1
sv_spectr_firsteye 1
sv_spectr_freefly 0
sv_spectr_freelook 1
sv_spectr_lookat 1
sv_spectr_teamcamera 1
sv_statistic_collect 1
sv_statistic_save_auto 0
sv_timelimit 0
sv_vote_enabled 0
sv_vote_participants 0
sv_vote_quota 0.25
sv_vote_time 1.
sv_warm_up 3[/pre]


--------------------------------------------------
-- SOC03d - Cvar reference

cvar_name: Cvar description. (Min - Max; Default)
For cvars that can only bet set to 0 or 1;
0 means no, false, disabled, or off.
1 means yes, true, enabled, or on.

sv_anomalies_enabled: Allow anomalies. (0,1; Default: 1)
sv_anomalies_length: Sets the duration anomalies are active in minutes. A setting of 0 makes them persistent. (0 - 180; Default: 3)
sv_artefact_respawn_delta: In Artefact Hunt mode; Sets the Artefact respawn delay in seconds. (0 - 600; Default: 30)
sv_artefact_stay_time: In Artefact Hunt mode; Sets the Artefact life in minutes. A setting of 0 makes them persistent. (0 - 180; Default: 3)
sv_artefacts_count: In Artefact Hunt mode; Sets the amount of Artefacts to spawn before the map changes. (1 - 100; Default: 10)
sv_auto_team_balance: Enable auto team-balancing. (0,1; Default: 0)
sv_auto_team_swap: Enable auto team-swap. (0,1; Default: 1)
sv_bearercantsprint: In Artefact Hunt mode; Disables sprinting for the player carrying an Artefact. (0,1; Default: 1)
sv_client_reconnect_time: How many minutes to save a player's stats after they disconnect. If they reconnect within this time, their stats are not lost. A setting of 0 disables this. (0 - 60; Default: 60)
sv_console_update_rate*: Set how often to update the console. (1 - 100; Default: 1)
sv_dedicated_server_update_rate*: Set how often to update the server console. (1 - 1000; Default: 1)
sv_dmgblockindicator: Enable spawn protection. (temporary invincibility) (0,1; Default: 0)
sv_dmgblocktime: Spawn protection time in seconds. (0 - 600; Default: 0)
sv_forcerespawn: Sets the time to wait before forcing a player respawn, in seconds. (0 - 3600; Default: 0)
sv_fraglimit: Maximum number of frags allowed before the map is changed. A setting of 0 disables the limit. (0 - 100; Default: 0)
sv_friendly_indicators: Enable team's icon above the character model of teammates. (0,1; Default: 0)
sv_friendly_names: Setting this to 1 and friendly names are toggled with Caps Lock. Setting this to 0 shows names only when Caps Lock is pressed. (0,1; Default: 0)
sv_friendlyfire: Sets the friendly fire ratio. 1.5 = 150% damage. (0.0 - 1.9; Default: .0)
sv_hail_to_winner_time: Sets the time in milliseconds to praise the round winner. A setting of 0 disables this. (0 - 60000; Default: 7000)
sv_pda_hunt: Enable PDA bonus. (0,1; Default: 1)
sv_pending_wait_time: Time to wait for players to connect before starting the round in Team Deathmatch, in seconds. A setting of 0 disables this (0 - 60000; Default: 10000)
sv_reinforcement_time: The reinforcement timeout in team play modes, in seconds. A setting of -1 disables reinforcements until the end of the round. (-1 - 3600; Default: 20)
sv_remove_corpse: Remove player corpses. A setting of -1 disables this. A setting of 0 removes them at the end of the round. (-1 - 1; Default: 1)
sv_remove_weapon: Removes dropped weapons. A setting of -1 disables this. A setting of 0 removes them at the end of the round. (-1 - 1; Default: 1)
sv_returnplayers: In Artefact Hunt mode; Return players to their base after the end of a round. (0,1; Default: 1)
sv_rpoint_freeze_time*: ??? (0 - 60000; Default: 0)
sv_shieldedbases: In Artefact Hunt mode; When enabled, players are shielded in their base. (0,1; Default: 1)
sv_spectr_firsteye: Spectator setting: Enable first-person view. (0,1; Default: 1)
sv_spectr_freefly: Spectator setting: Free camera. (0,1; Default: 0)
sv_spectr_freelook: Spectator setting: Free-locked. (0,1; Default: 1)
sv_spectr_lookat: Spectator setting: Enable third-person view. (0,1; Default: 1)
sv_spectr_teamcamera: Spectator setting: View team only. (0,1; Default: 1)
sv_statistic_collect: Enable player statistics. (0,1; Default: 1)
sv_statistic_save_auto: Enable automatic statistic saving. (0,1; Default: 0)
sv_timelimit: Round time limit, in minutes. A setting of 0 disables this. (0 - 180; Default: 0)
sv_vote_enabled: Enable the voting menu. (0,1; Default: 1)
sv_vote_participants: Hide player votes. (0,1; Default: 0)
sv_vote_quota: The quota required for a vote to pass. 0.50 = 50% required to pass a vote. (0.00 - 1.00; Default: .51)
sv_vote_time: Length of time to run a vote, in minutes. 1.75 = 1 minute 45 seconds. (0.50 - 10.00; Default: 1.00)
sv_warm_up: Warm-up round length, in minutes. A setting of 0 disables this. (0 - 3600; Default: 0)
*: Some of these cvars, I'm not entirely sure what they are for. If anyone knows, feel free to let everyone know.




--------------------------------------------------------------------------------
:: SOC04 - How do I start the dedicated server? ::

There is quite a bit of information you can pass to the dedicated server binary to start it with. Most of it is not really needed, unless you need to keep some options from being changed by people you give config file access. I'll start by breaking down a basic example.

Note: For the server to run correctly, the working directory must be X: PathToS.T.A.L.K.E.R.bin. Do this in a command console by typing cd X: PathToS.T.A.L.K.E.R.bin.


--------------------------------------------------
-- SOC04a - Command line syntax

Basic syntax: dedicatedXR_3DA.exe <parameters> server(<map>/<gametype>/<settings>) client(localhost/<settings>)

<parameters> can only be passed to the dedicated server through the command line and cannot be modified while the dedicated server is running. <map> is apparently optional, as it can be pulled from the maprot_list.ltx file. Personally, I use this option. <gametype> is game type for this server to run. <settings> are in the format of setting=value, and are separated by a /. Most of these can be set in the config file. Let's jump right into an example.

Example:
[pre]dedicatedXR_3DA.exe -start server(testers_mp_rostok/artefacthunt/hname=S.T.A.L.K.E.R./maxplayers=32/public=1)
client(localhost/name=Admin)[/pre]

This will start up a public, 32 player server on the map "Rostok" factory playing Artefact Hunt mode with a hostname of S.T.A.L.K.E.R.. This will use whatever cvars are in the user.ltx in the folder that is specified in the fsgame.ltx.


--------------------------------------------------
-- SOC04b - Parameters

dedicatedXR_3DA.exe <parameters> server(<map>/<gametype>/<settings> ) client(localhost/<settings> )

Parameters can only be passed when starting the dedicated server. There may be more, and some that I use I'm not sure if they actually apply to anything. Please note that -start is required.

parameter: effect

-i*: Ignores input devices (a dedicated server doesn't need to know what the mouse is doing)
-ltx <file>: Use this if you need to pass console commands to the server upon start. The only useful console command I can think of us check_for_updates(). Can also contain cvars for the server to use. <file> should be similar to X: PathToS.T.A.L.K.E.R.file.ltx
-nointro: Stops intro movies from playing (client only?)
-nosound*: Disables sound for the server
-overlaypath <path>: This adds <path> to everything used by the server. If used with -ltx or -svcfg, do not specify a path.
-silent_error_mode*: Should the dedicated server crash, it will exit without any alert. Use this in conjunction with a process monitoring daemon that can restart it for you automatically.
-svcfg <file>*: <file> should be similar to X: PathToS.T.A.L.K.E.R.file.ltx
*: Recommended

The following I found mentioned in one place or another, but I am uncertain of their validity or use
-external: ?
-nocache: Does not cache any data
-xclsx: ?

Example:
[pre]dedicatedXR_3DA.exe -i -nosound -silent_error_mode -svcfg X: PathToS.T.A.L.K.E.R.dataserver.ltx -start
server(testers_mp_rostok/artefacthunt/hname=S.T.A.L.K.E.R./maxplayers=32/public=1) client(localhost/name=Admin)[/pre]

This will start up a public, 32 player server on the map "Rostok" factory playing Artefact Hunt mode with a hostname of S.T.A.L.K.E.R.. This will use cvars in server.ltx, ignore input devices, not play any sounds, and exit immediately should it crash.


--------------------------------------------------
-- SOC04c - Maps and gametypes

dedicatedXR_3DA.exe <parameters> server(<map>/<gametype>/<settings> ) client(localhost/<settings> )

map: Name (Recommended players)

testers_mp_agroprom: "Agroprom" factory (8-16)
testers_mp_atp*: Vehicle station (4-8)
testers_mp_darkvalley: Dark valley
testers_mp_factory: "Yantar" factory (8-16)
testers_mp_lost_village: Desolated village (8-16)
testers_mp_military_1: Military warehouses (8-32)
testers_mp_pool: Pool (8-32)
testers_mp_railroad: Railway station (8-32)
testers_mp_rostok: "Rostok" factory (8-16)
testers_mp_workshop: Deserted factory (8-16)
*: This map cannot be played in Artefact Hunt mode, it seems to crash the server.

gametype: Name - Description

deathmatch: Deathmatch - Free for all, most frags wins
teamdeathmatch: Team deathmatch - Team based, most frags wins
artefacthunt: Artefact hunt - Team based, most artefacts obtained and returned base wins


--------------------------------------------------
-- SOC04d - Settings

dedicatedXR_3DA.exe <parameters> server(<map>/<gametype>/<settings>) client(localhost/<settings>)

Settings are enclosed within the server() and client() parameters. Most can be altered through cvars, but a few must be passed to the command line. Any settings you pass to the server cannot be altered with cvars, so you can essentially lock some settings from being altered.

Note: portcl, portgs, and portsv must be specified if you plan on running multiple dedicated servers. The default S.T.A.L.K.E.R. port is 5445. For ease, use an offset for each port type. For example; portsv=5445, portgs=6445, portcl=7445.

For server():
estime=: Sets the game time, this determines the weather. (0:00 - 23:59)
Clear = 09:00
Cloudy = 13:00
Rain = 16:00
Night = 01:00
etimef=: How fast the weather changes (0 - 100)
hname=: This is the server's hostname. Note that if you are manually running this from the command line, you cannot use a single | in the name. (Creating a batch file to launch the server should remedy this)
maxplayers=: Maximum players allowed in the server (32 is the max)
portgs=: Port to run the server on
portsv=: Port used for GameSpy
psw=: Require a password to join the server
public=: Set this to 1 for a public server. 0 means only people on your local network will see the server.
spectrmds=: Max amount of spectators allowed (0 - 32)

For client():
name=: Set the name for the client
portcl=: Port used for the server's client

Example:
[pre]dedicatedXR_3DA.exe -i -nosound -silent_error_mode -svcfg X: PathToS.T.A.L.K.E.R.dataserver.ltx -start
server(testers_mp_rostok/artefacthunt/hname=S.T.A.L.K.E.R./maxplayers=32/portsv=5445/portgs=6445/estime=16:00
/etimef=0.0/psw=Locked/public=1
)
client(localhost/name=Admin/portcl=7445)[/pre]

This will start up a public, 32 player server using port 5445, sending data to GameSpy on port 6445 playing on the map "Rostok" factory at 4:00pm (Rainy weather) that doesn't change (0.0) playing Artefact Hunt mode with a hostname of S.T.A.L.K.E.R. and a password of Locked. This will use cvars in server.ltx, ignore input devices, not play any sounds, and exit immediately should it crash. It will connect to itself using the name Admin on port 7445


--------------------------------------------------
-- SOC04d - Setting reference

setting=: cvar
Refer to SOC03e - Cvar reference for further information

abalance=: sv_auto_team_balance
ans=: sv_anomalies_enabled
anslen=: sv_anomalies_length
anum=: sv_artefact_count
ardelta=: sv_artefact_respawn_delta
astime=: sv_artefact_stay_time
aswap=: sv_auto_team_swap
dmbi=: sv_dmgblockindicator
dmgblock=: sv_dmgblocktime
ffire=: sv_friendlyfire
fi=: sv_friendly_indicator
fn=: sv_friendly_names
fraglimit=: sv_fraglimit
frcrspwn=: sv_forcerespawn
pdahunt=: sv_pda_hunt
reinf=: sv_reinforcement_time
rpfrz=: sv_rpoint_freeze_time
timelimit=: sv_timelimit
vote=: sv_vote_enabled
warmup=: sv_warm_up
---END QUOTATION---



thanks
  14:49:48  28 April 2007
profilee-mailreply Message URLTo the Top
Stev0
(Novice)
 
On forum: 04/10/2007
 

Message edited by:
Stev0
04/28/2007 14:51:38
Messages: 37
Very confused,I have gone through this many times.
I am doing this with a full install of Stalker.
I have created a .bat with this in it.

dedicatedXR_3DA.exe -i -nosound -silent_error_mode -svcfg C rogram FilesTHQS.T.A.L.K.E.R. - Shadow of Chernobyldataserver.ltx -start server(testers_mp_lost_village/deathmatch/hname=BlkWtch/maxplayers=32/portsv=5445/portgs=6445/estime=16:00
/etimef=0.0/psw=Locked/public=0)
client(localhost/name=Admin/portcl=7445)

changed the fsgame.ltx to reflect the data path

$app_data_root$=true|false|C Program FilesTHQS.T.A.L.K.E.R. - Shadow of Chernobyldata
$game_data$ = false| true| $fs_root$| gamedata
$game_ai$ = true| false| $game_data$| ai
$game_spawn$ = true| false| $game_data$| spawns
$game_anims$ = true| true| $game_data$| anims
$game_levels$ = true| false| $game_data$| levels
$game_meshes$ = true| true| $game_data$| meshes
$game_dm$ = true| true| $game_data$| meshes
$game_shaders$ = true| true| $game_data$| shaders
$game_sounds$ = true| true| $game_data$| sounds
$game_textures$ = true| true| $game_data$| textures
$game_scripts$ = true| false| $game_data$| scripts
$game_config$ = true| false| $game_data$| config
$level$ = false| false| $game_levels$
$game_saves$ = true| false| $app_data_root$| savedgames
$logs$ = true| false| $app_data_root$| logs
$screenshots$ = true| false| $app_data_root$| screenshots
$downloads$ = false| false| $app_data_root$| downloads

and also created the data folder in my S.T.A.L.K.E.R. - Shadow of Chernobyl folder with all the contents of STALKER-SHOC copied across to it and a server.ltx put inside the data folder with this in it.

sv_anomalies_enabled 1
sv_anomalies_length 3
sv_artefact_respawn_delta 30
sv_artefact_stay_time 3
sv_artefacts_count 10
sv_auto_team_balance 0
sv_auto_team_swap 1
sv_bearercantsprint 1
sv_client_reconnect_time 60
sv_console_update_rate 1
sv_dedicated_server_update_rate 100
sv_dmgblockindicator 0
sv_dmgblocktime 0
sv_forcerespawn 0
sv_fraglimit 10
sv_friendly_indicators 1
sv_friendly_names 1
sv_friendlyfire 0.
sv_hail_to_winner_time 7000
sv_pda_hunt 1
sv_pending_wait_time 10000
sv_reinforcement_time 0
sv_remove_corpse 1
sv_remove_weapon 1
sv_returnplayers 1
sv_rpoint_freeze_time 0
sv_shieldedbases 1
sv_spectr_firsteye 1
sv_spectr_freefly 0
sv_spectr_freelook 1
sv_spectr_lookat 1
sv_spectr_teamcamera 1
sv_statistic_collect 1
sv_statistic_save_auto 0
sv_timelimit 0
sv_vote_enabled 0
sv_vote_participants 0
sv_vote_quota 0.25
sv_vote_time 1.
sv_warm_up 3

When I run the .bat it starts a console window for a few seconds then just shuts down,no text appears in the window before shutting down.
Can anyone please explain where I am going wrong.
  18:05:17  30 April 2007
profilee-mailreply Message URLTo the Top
i365|zoldson
(Novice)
 
On forum: 04/03/2007
Messages: 20
Everything as you described looks to be fine. Just to make sure the game is able to read the directory properly, open your fsgame.ltx file and change the app_data_root to data2 instead of data, see if the folder is created with all the defaults when you run your .bat

Also, does this generate any error logs, either through Stalker itself or in the Windows event viewer?
  17:30:56  6 May 2007
profilee-mailreply Message URLTo the Top
saazm
(Novice)
 
On forum: 05/06/2007
 

Message edited by:
saazm
05/06/2007 17:43:11
Messages: 2
Think your batch file may be wrong, using this guide and made a batch file on my desktop looking like this;

X:
cd X:(your path) Stalker bin
start /high* X:Stalker bin dedicated XR_3DA.exe -i -nosound -silent_error_mode -svcfg X: (your path) Stalker data server.ltx -start server(testers_mp_agroprom/teamdeathmatch/hname=your servers name/maxplayers=24/portsv=5445/portgs=6445/estime=16:00/etimef=40/psw=(your password)/public=1) client(localhost/name=Admin/portcl=7445)[/pre]

*/high give the server higer cpu priority, don't use it if you don't have the cpu power for it.


And use the "  to include your "C: Program Files.."



How the h**l do I write a backslash here?
  21:45:33  10 May 2007
profilee-mailreply Message URLTo the Top
i365|zoldson
(Novice)
 
On forum: 04/03/2007
 

Message edited by:
i365|zoldson
05/10/2007 21:47:11
Messages: 20

---QUOTATION---
How the h**l do I write a backslash here?
---END QUOTATION---



Use \\ - The forum uses \ as an escape character. It's a silly forum
  11:02:46  11 May 2007
profilee-mailreply Message URLTo the Top
J.S.J
(Senior)
 
On forum: 04/17/2007
 

Message edited by:
J.S.J
05/11/2007 12:38:10
Messages: 121
1.0001 - 1.0003 World Wide Patch Update

To add reg to WW version you only need to replace 1 part from the US.
Just replace the "stk-for-pack-noprot-efis" with "stk-for-pack-securom-keydisk-efis" to make it work.

Here is the WW Reg install:

64-bit
REG ADD "HKLMSOFTWAREWow6432NodeGSC Game WorldSTALKER-SHOC" /v InstallLang /t REG_SZ /d "en"
REG ADD "HKLMSOFTWAREWow6432NodeGSC Game WorldSTALKER-SHOC" /v InstallPath /t REG_SZ /d "X: PathToS.T.A.L.K.E.R."
REG ADD "HKLMSOFTWAREWow6432NodeGSC Game WorldSTALKER-SHOC" /v InstallSource /t REG_SZ /d "stk-for-pack-securom-keydisk-efis"

32-bit
REG ADD "HKLMSOFTWAREGSC Game WorldSTALKER-SHOC" /v InstallLang /t REG_SZ /d "en"
REG ADD "HKLMSOFTWAREGSC Game WorldSTALKER-SHOC" /v InstallPath /t REG_SZ /d "X: PathToS.T.A.L.K.E.R."
REG ADD "HKLMSOFTWAREGSC Game WorldSTALKER-SHOC" /v InstallSource /t REG_SZ /d "stk-for-pack-securom-keydisk-efis"
  22:55:39  11 May 2007
profilee-mailreply Message URLTo the Top
TJ72
Senior Resident
 

 
On forum: 03/23/2007
Messages: 199
I hope someone can help me with this one.

I've been through this guide many times and have all ports open required on both firewall and Router (I think) but keep getting this error message when trying to run server-

Error while adding this server to the master list - No challenge value was recieved from the master server..

Does anyone know how to cure this?
  18:56:36  14 May 2007
profilee-mailreply Message URLTo the Top
i365|zoldson
(Novice)
 
On forum: 04/03/2007
 

Message edited by:
i365|zoldson
05/14/2007 18:57:07
Messages: 20

---QUOTATION---
...

Error while adding this server to the master list - No challenge value was recieved from the master server..

Does anyone know how to cure this?
---END QUOTATION---



I had this problem a few times, and it was a false error. It still showed up in the server list. Check that first, and if it really isn't showing up;

What command are you using to start the server? Would you be able to run a netstat and show us what ports are open and listening? Feel free to email me the info instead of posting here if you would prefer it.
  10:57:09  13 August 2007
profilee-mailreply Message URLTo the Top
Dade
Senior Resident
 

 
On forum: 08/13/2007
Messages: 226
Very nice info Zoldson, I were founding this all over the Web and it was there in front of my nose.

I think now is time to try see wich commands can make the server run faster. Just a question, does STALKER have an automatic messaging system that sends messages automatically each time?

I mean something as:
Admin>> Welcome on our servers
And then suddenly, automatically, there appears a message saying:
Remember that setting the command net_cl_interpolation in to 0.5 decreases lag in game
And then, another text like:
Move that Ass and stop camping!!!

It can be done now, or probably I"ve to request it in the forum?

Thanks for all this great work, have fun,
Dade
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Multiplayer improvements
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2017 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.