dslreports logo
 
    All Forums Hot Topics Gallery
spc
Search similar:


uniqs
2219

Chillybott
Understands Marx And Lenin
Premium Member
join:2002-02-15
MHV, NY, USA

Chillybott

Premium Member

server config: map rotation question (SoF2/Q3 eng)

hey,

I am trying to get a dedicated Lx Soldier of Fortune 2 server up and running, and I have been messing with my server.cfg all night.

my problem lies in actually setting the map rotation

I went to gameadmin.com and checked out what they had to say, and like all that I could find by Googling, the only configurations I found were for Q3, RTCW....none for SoF2, but I figured they should be similar...same engine and all, so this is what I have:

set m1 "g_gametype ctf; map mp_pra2; set nextmap vstr m2"
set m2 "g_gametype ctf; map mp_shop2; set nextmap vstr m3"
set m3 "g_gametype ctf; map mp_hos1; set nextmap vstr m4"
set m4 "g_gametype ctf; map mp_hk2; set nextmap vstr m5"
set m5 "g_gametype ctf; map mp_col2; set nextmap vstr m6"
set m6 "g_gametype ctf; map mp_kam5; set nextmap vstr m7"
set m7 "g_gametype ctf; map mp_air1; set nextmap vstr m1"

and in my sof2ded command, I end the command line with '+vstr m1' which I read was supposed to get teh rotation started

when I perform the /nextmap command on the server, I see vstr m2 as a result, but if I try and vote to roll to next map (as a client), the server tells me that there is no map cycle set up....

any hints as to what I am doing wrong please?

thanks
Chillybott

Chillybott

Premium Member

Re: server config: map rotation question (SoF2/Q3

ok this was really hard to find anywhere, so I figure I'll post it here now that I found what to do:

(answer was given to me courtest of a heckuva nice fella over at gameadmins.com)

-------------------------------------------------------
//put the following in your server.cfg (or equivalent) file

seta sv_mapcycle "my.mapcycle"
mapcycle

//and your my.mapcycle map should look basically like this

// Begin SOF 2 Mapcycle (Generated by SOF2 Runner)
mapcycle
{
map1
{
Command "map mp_pra2;set g_gravity 800"cvars
{
g_gametype "ctf"
g_roundstartdelay "20"
g_timeextension "20"
//you can put other g_ variable inhere too, like g_motd, g_speed, etc
}
}
map2
{
Command "map mp_shop2;set g_gravity 800"cvars
{
g_gametype "ctf"
g_roundstartdelay "20"
g_timeextension "20"
}
}
//and so on
}
//EOF

so if you find this useful, serve away!!!

(btw - for some reason I have not yet learned, the nextmap does not work in SoF2 servers....if I figure out why, I'll post it)