Notice to server admins - mapcycle.scriptcfg is old

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Last Man Standing Coop Forum Index -> Beta 0.35 Tech Support and Feedback
View previous topic :: View next topic  
Author Message
AO
Mod Team Member


Joined: 29 Oct 2004
Posts: 745
Location: Norway

PostPosted: Fri May 27, 2005 5:33 pm    Post subject: Notice to server admins - mapcycle.scriptcfg is old Reply with quote

The mapcycle script has not been updated causing server to stop because some maps can not be found. Here's the proper mapcycle script cycling all 14 LMS maps.
Code:
/*
Last Man Standing map cycle script

map cycling script sample - select with g_mapCycle

the script is purged and reloaded at each map restart
  which happens on map change, but also when hitting GAMEON
  for persistance, you need to use the {get,set}Persistant functions

files with .scriptcfg extension can be loaded outside of pure paks
*/

namespace mapcycle {

   void cycle() {
      // config
      float cycle_maps = 1;
      // cycle maps
      float replay_count = sys.getPersistantFloat( "replay_count" );
      string si_map = sys.getcvar( "si_map" );
      if ( replay_count <= 0 ) {
         // restart n times before next map
         replay_count = sys.strToFloat(sys.getcvar("si_maprestarts"));
      }
      replay_count--;
      sys.setPersistantArg( "replay_count", replay_count );
      if ( replay_count <= 0 ) {
         // restart n times before next map         
         sys.setPersistantArg( "replay_count", sys.strToFloat(sys.getcvar("si_maprestarts")) );

         if ( cycle_maps > 0 ) {
            if ( si_map == "def_fortcomp" ) {
               sys.setcvar( "si_map", "def_kaiser3" );
            } else if ( si_map == "def_kaiser3" ) {
               sys.setcvar( "si_map", "kf_bunker" );
            } else if ( si_map == "kf_bunker" ) {
               sys.setcvar( "si_map", "kf_chambers" );
            } else if ( si_map == "kf_chambers" ) {
               sys.setcvar( "si_map", "kf_commandoattack" );
            } else if ( si_map == "kf_commandoattack" ) {
               sys.setcvar( "si_map", "kf_kaiser2" );
            } else if ( si_map == "kf_kaiser2" ) {
               sys.setcvar( "si_map", "kf_loading_dock" );
            } else if ( si_map == "kf_loading_dock" ) {
               sys.setcvar( "si_map", "kf_lockedin" );
            } else if ( si_map == "kf_lockedin" ) {
               sys.setcvar( "si_map", "kf_trapped" );
            } else if ( si_map == "kf_trapped" ) {
               sys.setcvar( "si_map", "kf_labyrinth" );
            } else if ( si_map == "kf_labyrinth" ) {   
               sys.setcvar( "si_map", "kf_tunnel" );
            } else if ( si_map == "kf_tunnel" ) {
               sys.setcvar( "si_map", "prog_hangar" );
            } else if ( si_map == "prog_hangar" ) {
               sys.setcvar( "si_map", "prog_kaiser1" );
            } else if ( si_map == "prog_kaiser1" ) {
               sys.setcvar( "si_map", "kf_ancientruins" );
            } else {
               sys.setcvar( "si_map", "def_fortcomp" );
            }
         }
      } else {
         sys.say( "map cycle: restarting current map " + replay_count + " more time(s)" );
      }
   }
}
Back to top
View user's profile Send private message Visit poster's website
calimer
Mod Team Member


Joined: 27 Aug 2004
Posts: 1949

PostPosted: Fri May 27, 2005 8:59 pm    Post subject: Reply with quote

If you don't mind, can you add a little more information as to how we make the mod use this mapcycle instead of the one included in the pk4? Thanks for posting the proper mapcycle. Take care.
-calimer
_________________
Want to make your own 3D Games for Free? Free And Easy To Use Game Creation Software!! - Platinum Arts Sandbox Free 3D Game Maker
Head Organizer of Last Man Standing Coop
Check out our business page
Sign up for our newsletter!
Come and talk to us on IRC
Visit our Moddb Page
Back to top
View user's profile Send private message Send e-mail MSN Messenger
AO
Mod Team Member


Joined: 29 Oct 2004
Posts: 745
Location: Norway

PostPosted: Fri May 27, 2005 9:48 pm    Post subject: Reply with quote

Put the text in first post in a file named mapcycle.scriptcfg and place it in lms_beta035 folder.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Last Man Standing Coop Forum Index -> Beta 0.35 Tech Support and Feedback All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Empty or InValid Ad file




Mod Database Top 100

Doom 3 Coop Mod Last Man Standing Coop .:. Copyright Platinum Arts LLC

Powered by phpBB © 2001, 2002 phpBB Group