Announcement

Collapse
No announcement yet.

Mutators

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mutators

    dose anyone know how to get mutators to work in ur game.ini file? i have a server i rent.
    i dont want a command line for it. i have my server set to tdm for default and want it so if i force it to ctf it will be instagib ctf with no trans. any ideas were to add it.

    #2
    Generally we have never been able to load mutators from a default ini.

    IN UT99 and ut2004 there was a mod called ActorCLP that loaded mutators on start up. I think BDBmapvote and UT2vote also had a mutators loading ability. These mods loaded as server actors and then they called mutators.

    AFAIK there is no way to load mutators from the UT3 ini's at this time. It needs to be done through the command line, or wait until a modder writes something.

    You will need to do it through the commandline, or ingame login as admin and load mutators.

    Comment


      #3
      For ut2004, I used this code for our customers.

      we would start a basic dm server with only this mutator, then it would read the serverstart.ini file that the customers had control over, and restart the server with what they wanted.

      sample startup from our scripts

      ucc.exe server DM-Rankin?Game=XGame.XDeathmatch?Mutator=ServerStart. ServerStart -multihome=??.??.??.?? ini=server.ini userini=user.ini log=Server.log


      sample ini file customer would use

      ServerStart.ini would look like this as an example.

      [ServerStart.ServerStart]
      StartString=DM-Jacuzzi-FE?Game=XGame.xTeamGame?Mutator=UT2Vote48.UT2VoteX

      This is the code, maybe someone can make it work for ut3, if so, I would be nice if it could be released for all, my code worked for linux and windows servers.

      class ServerStart extends Mutator config(ServerStart);

      var config string StartString;

      var bool bInitialized;

      function PreBeginPlay()
      {
      Super.PreBeginPlay();
      saveconfig();
      }

      function PostBeginPlay()
      {
      if (!bInitialized)
      {
      bInitialized = true;
      if (Level.NetMode != NM_Standalone)
      {
      class'Engine.GameEngine'.static.StaticSaveConfig() ;
      Level.ServerTravel(default.StartString, false);
      }
      }
      Super.PostBeginPlay();
      }

      static function FillPlayInfo(PlayInfo PlayInfo)
      {
      Super.FillPlayInfo(PlayInfo);

      PlayInfo.AddSetting("ServerStart", "StartString", "Startup String", 30, 3, "Text", "60",, True,True);
      }

      static event string GetDescriptionText(string PropName)
      {
      switch (PropName)
      {
      case "StartString": return "Startup String";
      }
      return Super.GetDescriptionText(PropName);
      }

      defaultproperties
      {
      StartString="DM-BS-Backyard-2K4?Game=XGame.XDeathMatch?Mutator=BonusPack.MutCr ateCombo,XGame.MutRegen,XGame.MutUDamageReward?Max Lives=0?GoalScore=30?TimeLimit=60?MinPlayers=4?Tra nslocator=True?Weaponstay=True?BalanceTeams=False? ForceRespawn=False?PlayersMustBeReady=True?Tournam ent=0?GameStats=True?GameSpeed=1.00?FF=0?NumBots=8 ?Difficulty=4"
      }

      Comment

      Working...
      X