Jump to content

Home

Map Cycling configs


Marcus(JSA)

Recommended Posts

Hi:

 

I recently made the following post on the JA+ Forums, noone seems to have responded, so here it is for the LucasForums, to see if theres any experts amongst you who can help:

 

Map Cycles is the latest area I have drifted into, since the server has become so popular and there are a lot of good maps on the server that remain unused I decided to create a map rotation config. I also wanted this config to account for admins changing to a non-listed map so that the rotation would always work. So far I have had no luck. Can someone please explain why this will not work?

 

In my server.cfg I have the following line:

seta g_autoMapCycle 0

 

I also added:

//-----Mod Execution---------------

exec academy.cfg

exec JKAMaps.cfg

 

//-----First Map---------------

map vstr m1

 

 

The JKAMap.cfg is layed out as follows:

 

///// Standard Map Cycle /////

 

seta m1 "map the_academy;seta sv_maxRate ""6000"";seta nextmap vstr m2"

seta m2 "map ragnos;seta sv_maxRate "6000";seta nextmap vstr m3"

seta m3 "map ffa_orbgen;seta sv_maxRate "6000";seta nextmap vstr m4"

seta m4 "map mp/ffa5;seta sv_maxRate "6000";seta nextmap vstr m5"

seta m5 "map sithcouncil;seta sv_maxRate "6000";seta nextmap vstr m6"

seta m6 "map mp/duel6;seta sv_maxRate "6000";seta nextmap vstr m7"

seta m7 "map countryacademy;seta sv_maxRate "6000";seta nextmap vstr m8"

seta m8 "map ffa_mos_eisley_meanstreets;seta sv_maxRate "6000";seta nextmap vstr m9"

seta m9 "map mp/duel5;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m10 "map mp/ffa1;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m11 "map mp/ffa2;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m12 "map mp/ffa3;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m13 "map mp/ffa4;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m14 "map mp/ffa5;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m15 "map mp/ffa_bonus1;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m16 "map mp/ffa_bonus2;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m17 "map mp/ffa_bonus3;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m18 "map mp/ffa_bonus4;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m19 "map mp/duel1;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m20 "map mp/duel2;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m21 "map mp/duel3;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m22 "map mp/duel4;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m23 "map mp/duel7;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m24 "map mp/duel8;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m25 "map mp/duel9;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m26 "map mp/duel10;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m27 "map mp/ctf1;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m28 "map mp/ctf2;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m29 "map mp/ctf3;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m30 "map mp/ctf4;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m31 "map mp/ctf5;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m32 "map mp/duel_bonus1;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m33 "map mp/ctf_bonus1;seta sv_maxRate "6000";seta nextmap vstr m1"

seta m34 "map ctf_dkswg;seta sv_maxRate "6000";seta nextmap vstr m1"

 

vstr m1

 

///// SIEGE Cycle /////

 

seta s1 "map mp/siege_hoth;seta sv_maxRate "15000";set nextmap vstr s2"

seta s2 "map mp/siege_desert;seta sv_maxRate "15000";set nextmap vstr s3"

seta s3 "map mp/siege_korriban;seta sv_maxRate "15000";set nextmap vstr s1"

 

vstr s1

 

/////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////

 

End of JKAMaps.cfg

 

 

As you can see, I have also tried to account for the Server Rate incase Siege is loaded, but later an admin reverts to FFA - this way it should not breach my JediServers contract by remaining on 15000.

 

What has gone wrong, or have I over-complicated this? :(

 

I have already read numerous Forum threads in LucasForums, Gaming Forums, etc but I'm still confused.

 

Link to Thread on JA+ Forums: Map Cycle Thread. There is additional information here if you require it.

Link to comment
Share on other sites

seta m9 "map mp/duel5;seta sv_maxRate "6000";seta nextmap vstr m1"

 

The bold part I think is your problem right there. You start off fine, numbering each map in order, but then you suddenly start putting "m1" at the end of every line. That means it's thinking you're going to start on the first map every time. So it'll never get to the end of the list!

 

What you should do is do it kind of like this (fill in your extra info of course).

 

m2

m3

m4

m5

m6

(etc etc)

m32

m33

(etc)

and on the LAST one, put m1, since it will cycle back to the FIRST option on the list.

 

Fix that and the rest should work, or at least you'll have that problem out of the way. You just have to account for all the maps, you can't put 1 in every line or it will just confuse the server.

 

You also don't seem to account for g_gametype in your list. Remember that by default these will all be FFA maps (very bad for Siege, okay for others if you're into very small maps with no weapons or huge CTF maps with people wandering around looking for each other).

 

Review the gametypes and add those lines into your cycle as needed.

 

Just so you know, all my map rotations work fine (I don't have more than 10 maps per rotation and I don't switch gametypes mid-rotation, but that's just me) and I have g_automapcycle set to "1."

 

It shouldn't really matter but IIRC when I had it set to 0 it just replayed the same map over and over again. So after you get the rotation fixed, you can try that next.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...