PDA

View Full Version : vstr rotation


OutlawSZ
07-01-2004, 02:56 AM
ok, searching the forums...but i dont see it spelled out lamens...and im a bt noob..so thats out of the way.

now, do i just enter that as the map rotation in the server.cfg file and the maps would then rotate accordingly...or is it not as easy as that? theres my hangup...we want to run mixed maps as well...i see the threads here about how to fix the vstr errors...but i didnt see anything regarding setting up a vstr rotation..prolly cuz im a nub or something. heres what my confg looks like with the vstr rotation

// Server Name
// Name that will appear on the server browser
sv_hostname "|[d2]| Delta Dragons Breakthrough - Come get ownt! [Jersey]"
set rconpassword "xxxxxxxxx"

// Game Type
// 1 Free for All
// 2 Team Based
// 3 Round Based
// 4 Objective
// 5 Of War
// 6 Liberation
set g_gametype 2

// Health Drop
// When enabled players will drop a health pack when killed
set g_healthdrop 1

// Realism
// Toggles reaslistic mode
set g_realismmode 0

// Fast Run Speed
// When checked, the speed at which players can run through levels is increased.
// Leaving it unchecked defaults to Medal of Honor Allied Assault's original run speed
set sv_dmspeedmult 1.000000

// Team Damage
// Toggles friendly fire
set g_teamdamage 1

// Heal Rate
// Determines how fast players heal when they use a health pickup
set g_healrate 10

// Max Players
set sv_maxclients 20

// Time Limit
// This sets the elapsed time at which the game ends, the winner being the player with the highest score at that time.
timelimit 15

// Frag Limit
// The score at which the player or team will win the current map
fraglimit 0

// Map Rotation Time
// This sets the maximum amount of time in minutes players will spend in a particular map.
maprotationtime 15

// Team Spawn Delay
// This sets a delay in seconds between spawns. This is useful if you would like the
// player spawned in batches, rather than one at a time
set sv_team_spawn_interval 5

// Round Reset Time
// This sets how long each round will take, in minutes. This can be smaller than the map rotation time, but not larger.
roundlimit 0

// Inactive Spectate
// This sets the time in seconds after which an inactive player becomes a spectator. To save server bandwidth, 60 seconds is default.
set g_inactivespectate 120

// Inactive Kick
// This sets the time in seconds after which an inactive player is kicked out of the game. 900 (15 minutes) seconds is default.
set g_inactivekick 900

// Use Gamespy
// To use GameSpy gaming service for internet-based multiplayer games.
set sv_gamespy 1


// Pure
// Verifies that the files on the client are the same as those on the server.
set sv_pure 1

// Allow Vote
// Enables players to call a vote.
set g_allowvote 0

// Flood Protect
// Limits amount of text a player can typeset sv_floodprotect 1

// Force Team Spectate
set g_forceteamspectate 1
set dmflags 67895296
set g_forceready 0
set g_forcespawn 1

// Invulnerable Time
// Amount of time a player is invulnerable for after spawning
set sv_invulnerabletime 3

// Team Kill Warning
// Amount of team kills before the player is warned
set g_teamkillwarn 2

// Team Kill Kick
// Amount of team kills before the player is kicked off the server.
set g_teamkillkick 4

// Team Switch Delay
// Frequency at which you can switch teams
set g_teamswitchdelay 5

// Gravity
set sv_gravity 800.000000

// Allow Join Time
set g_allowjointime 30

// Private Clients
// Clients that require a password to join
set sv_privateclients 0

// Password
// Allows you to set a password for the server
set sv_privatepassword ""

// Keywords
// Keywords which allow browsers to filter servers.
set sv_keywords ""

// Net Port
set net_port 12203

// Minimum Ping
set sv_minping 0

// Maximum Ping
set sv_maxping 0

// Maximum Rate
set sv_maxrate 0

// Map
// Starting map on the rotation.
map "DM/mp_bahnhof_dm"

// Map Rotation List
sv_maplist ""
set x1 "set g_gametype 5; timelimit 15; map obj/mp_montecassino_tow; set nextmap vstr x2"
set x2 "set g_gametype 6; timelimit 15; map lib/mp_anzio_lib; set nextmap vstr x3"
set x3 "set g_gametype 4; timelimit 15; map obj/obj_team1; set nextmap vstr x4"
set x4 "set g_gametype 3; timelimit 15; map dm/mohdm3; set nextmap vstr x5"
set x5 "set g_gametype 5; timelimit 15; map obj/mp_kasserine_tow; set nextmap vstr x6"
set x6 "set g_gametype 6; timelimit 15; map lib/mp_bizerteharbor_lib; set nextmap vstr x7"
set x7 "set g_gametype 4; timelimit 15; map obj/obj_team2; set nextmap vstr x8"
set x8 "set g_gametype 3; timelimit 15; map dm/mohdm2; set nextmap vstr x9"
set x9 "set g_gametype 5; timelimit 15; map obj/mp_montebattaglia_tow; set nextmap vstr x10"
set x10 "set g_gametype 6; timelimit 15; map lib/mp_tunisia_lib; set nextmap vstr x11"
set x11 "set g_gametype 4; timelimit 15; map obj/obj_team3; set nextmap vstr x12"
set x12 "set g_gametype 3; timelimit 15; map dm/mohdm6; set nextmap vstr x13"
set x13 "set g_gametype 5; timelimit 15; map obj/mp_flughafen_tow; set nextmap vstr x14"
set x14 "set g_gametype 6; timelimit 15; map lib/mp_ship_lib; set nextmap vstr x15"
set x15 "set g_gametype 4; timelimit 15; map obj/obj_team4; set nextmap vstr x16"
set x16 "set g_gametype 3; timelimit 15; map dm/mohdm7; set nextmap vstr x17"
set x17 "set g_gametype 4; timelimit 15; map obj/mp_palermo_obj; set nextmap vstr x18"
set x18 "set g_gametype 3; timelimit 15; map dm/mp_gewitter_dm; set nextmap vstr x19"
set x19 "set g_gametype 1; timelimit 8; map dm/mohdm1; set nextmap vstr x20"
set x20 "set g_gametype 4; timelimit 15; map obj/mp_bologna_obj; set nextmap vstr x21"
set X21 "set g_gametype 2; timelimit 10; map dm/mp_stadt_dm; set nextmap vstr x22"
set x22 "set g_gametype 4; timelimit 15; map obj/mp_castello_obj; set nextmap vstr x23"
set x23 "set g_gametype 1; timelimit 8; map dm/mp_unterseit_dm; set nextmap vstr x24"
set x24 "set g_gametype 4; timelimit 15; map obj/mp_bizertefort_obj; set nextmap vstr x25"
set x25 "set g_gametype 2; timelimit 10; map dm/mp_verschneit_dm; set nextmap vstr x1"
vstr x1

// Optimize Net Settings
set sv_netoptimize 0



so...does this look right to you? i have had this bt server now for just over an hour..so im brand spanking new to the vstr map rotation format. too scared to put it in...haha...but maybe a trained eye can quikly tell me if this would work. im worried about the vstr rotation itself as well as the maplist ""'s. are they proper or does the whole vstr rotation go in btween maplist quotes like you normally would have it?


ok..lots of typing..sorry about that. thanks for reading all that bullpucky and thanks for any advice or help!

=3VIL=Kampfer
07-01-2004, 12:13 PM
i have a separate config called rotation.cfg.
in the server.cfg add this: exec rotation.cfg

this is my rotation.cfg file:

set sv_maplist " "

set m01 "g_gametype 2; map dm/mp_Brest_dm; set nextmap vstr m02"
set m02 "g_gametype 2; map dm/mohdm5; set nextmap vstr m03"
set m03 "g_gametype 5; map obj/mp_MonteBattaglia_tow; set nextmap vstr m04"
set m04 "g_gametype 2; map dm/mp_Verschneit_dm; set nextmap vstr m05"
set m05 "g_gametype 2; map obj/mp_Bologna_obj; set nextmap vstr m06"
set m06 "g_gametype 2; map dm/mp_Stadt_dm; set nextmap vstr m07"
set m07 "g_gametype 2; map dm/mp_Bahnhof_dm; set nextmap vstr m08"
set m08 "g_gametype 4; map obj/obj_team3; set nextmap vstr m09"
set m09 "g_gametype 2; map obj/mp_BizerteFort_obj; set nextmap vstr m10"
set m10 "g_gametype 2; map dm/mohdm7; set nextmap vstr m11"
set m11 "g_gametype 2; map lib/mp_BizerteHarbor_lib; set nextmap vstr m12"
set m12 "g_gametype 2; map dm/mohdm4; set nextmap vstr m13"
set m13 "g_gametype 5; map obj/mp_Flughafen_tow; set nextmap vstr m14"
set m14 "g_gametype 2; map dm/mp_Bazaar_dm; set nextmap vstr m15"
set m15 "g_gametype 2; map dm/mohdm3; set nextmap vstr m16"
set m16 "g_gametype 2; map dm/mp_Gewitter_dm; set nextmap vstr m17"
set m17 "g_gametype 2; map lib/mp_Tunisia_lib; set nextmap vstr m18"
set m18 "g_gametype 5; map obj/mp_Kasserine_tow; set nextmap vstr m19"
set m19 "g_gametype 2; map dm/mohdm2; set nextmap vstr m20"
set m20 "g_gametype 2; map dm/mp_Holland_dm; set nextmap vstr m01"

vstr m01

OutlawSZ
07-01-2004, 09:55 PM
so what did you do with the map rotation listed in the server.cfg? did you take that out completely and added the rotation.exe in its place?

GaSplat
07-01-2004, 11:49 PM
Off the top what you have will work fine. Just comment out or delete the following line (you have it before the rotation):

map "DM/mp_bahnhof_dm"

You are just slowing down the start up by loading a map that is about to get dumped anyway. Here is why. All those set m1 "blah blah" lines are creating new cvars called m1, m2, etc. Then you do the line "vstr m01". Vstr is a command that basicly says "take the value of this cvar, and treat it like it was typed in as a command". So vstr m01 then sets the gametype, loads Brest, and sets nextmap to "vstr m02". The map plays, and when it is time to rotate, the game executes nextmap. Since nextmap is vstr m02, it goes and does everything in m02, including setting nextmap to vstr m03. When that map is done, it executes what is in nextmap (vstr m03), and the cycle keeps going. So the way you start this rotation off is by calling vstr m01 at the end of defining all the mXX cvars. That is why the stand alone map command is not needed.

You can leave your rotation just as it is in the server.cfg. If instead you put it in another config file and then execute that file from your main server.cfg, you should not leave it in the server.cfg - you are aobut to overwrite those values with what is in your rotation.cfg. Not only that, but your "vstr m01" will have launched the map loading and started the server, just in time to execute rotation.cfg which is just going to change everything and exxecute its first map. There can be advantages to putting rotations into separate files (mainly so rcons can exec them without having to restart everything) but until you are comfortable with managing a more complex set up, I would just leave everything in the server.cfg so you know where everything is. Just remove the

map "DM/mp_bahnhof_dm"

line you have and it should work fine. That line won't break anything, it just wastes time on initial start up by loading a map that is about to get dumped anyway.

GaSplat
07-01-2004, 11:50 PM
Maybe this weekend I will get off my lazy butt and write that vstr guide Snype suggested to me - heh. ;)

OutlawSZ
07-02-2004, 03:01 AM
Thanks a ton for all your input on this. Im off and running. Thanks again.

SNYPE
07-02-2004, 10:57 AM
Maybe this weekend I will get off my lazy butt and write that vstr guide Snype suggested to me - heh. ;)
hehehe...what did I tell ya??????