Jedi Knight Galaxies is an immersive, competitive and innovative multiplayer shooter, played out in the Star Wars universe. Currently a full conversion mod (soon to go standalone), the project was originally based on and modified from Raven Software’s Jedi Knight: Jedi Academy. Jedi Knight Galaxies is available completely free of charge. We aim to develop the project into a Large Multiplayer Online game, crossing traditional RPG (role playing game) elements with the fast paced excitement of an FPS (first person shooter). The game is supported by its community and developers, contribution is encouraged and newbies are welcome. The current development team comes from a variety of backgrounds, countries, and age, united by our desire to make a great game. Welcome to Jedi Knight Galaxies, where we break the limits!

Report article RSS Feed Setting up a Map Rotation for your server

This tutorial will teach you how to set up a simple map rotation for your server using a configuration file.

Posted by silverfang22 on Dec 17th, 2012
Basic Server Tools.

To set up a map rotation is a very simple process. In your server.cfg that came with your serverside download, find this section:
 

set g_autoMapCycle "0" //set to "1" to start auto map cycle - leave at "0" to use custom cycle
set m0 "vstr tffaOn; map JKG_CTF_Bespin; set nextmap vstr m1"
set m1 "vstr ctfOn; map JKG_CTF_Bespin; set nextmap vstr m0"
 

// --==-- Start server --==-- // Now we can load up the planet!
vstr m0
// --==-- END OF CONFIGURATION --==--
 
 
The first section controls everything related to the gametype. It makes simple settings for a vstr to use for all the gametypes. Note that currently, only TFFA is actually supported, but we felt we might as well set defaults for everything while we're at it. 

 The next section deals with map rotation. Each string there sets a map, then sets the map after it. When the match ends, the next map will be loaded. It goes in a circle, and you can repeat any map by simply having it occur more than once in the rotation. The last map should simply say that the next map is the first one in the list.

  Finally, vstr m0 loads the m0 map when the server is started. If you have g_autoMapCycle set to 0 (1 does automatic cycling, custom is obviously much better) then it will load the maps in the order you gave it. 

An good example map rotation would look like this: 
set m0 "vstr tffaOn; map JKG_Spaceport_FFA; set nextmap vstr m1"
set m1 "vstr tffaOn; map JKG_CTF_Bespin; set nextmap vstr m2"
set m2 "vstr tffaOn; map JKG_Coruscant_Lower; set nextmap vstr m3" 
set m3 "vstr tffaOn; map JKG_Nightfall; set nextmap vstr m4"
set m4 "vstr tffaOn; map JKG_Arena_Tatooine; set nextmap vstr m0"     

Post comment Comments
ADTeam™
ADTeam™ Dec 17 2012, 7:45pm says:

Nice tutorial, thank you silverfang!

+1 vote     reply to comment
silverfang22
silverfang22 Dec 17 2012, 9:51pm replied:

Pande actually wrote this, I just posted it.

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Star Wars: Jedi Academy Icon
Platform
Windows
Developer
JKG Team
Contact
Send Message
Official Page
Jkgalaxies.com
Release Date
Released Sep 15, 2012
Mod Watch
Track this mod
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Mods
Jedi Knight Galaxies (Star Wars: Jedi Academy)
Jedi Knight Galaxies Star Wars: Jedi Academy - Multiplayer Role Playing
Related Games
Star Wars: Jedi Academy
Star Wars: Jedi Academy Single & Multiplayer First Person Shooter
Related Groups
JKG Team
JKG Team Developer & Publisher with 17 members