Jump to content
Sign in to follow this  
hellfire21

Setting Parameters in server.cfg

Recommended Posts

How are the parameter settings used in the server.cfg file? The example I have shows:

param1 =

param2 =

But do I use names like "param1" Or do I use the names as they are used for the given mission. In my case I am setting up a WarfareBE and one of the parameters is Weather and it would enabled or disabled. Time of Day would be in the form of 09:00. Whats the proper syntax for the cfg?

Share this post


Link to post
Share on other sites

Hold on this looks like settings to create the map or scenario, I'm not creating, I just want to set defaults for when the map is launched on the server. As it is now there are different settings I want other than the defaults the author has chosen. End game is I don't want to have to set the parameters every time the map is started.

Edited by Hellfire21

Share this post


Link to post
Share on other sites

You are going to have to understand description.ext to change the most basic settings of a mission.

This would have been better asked in the WarfareBE creator's forums (www.hs-clan.com) if you wanted someone to tell you the specific values.

param1 and param2 were the only parameters you could use before 1.04. The new way using paramsArray can have unlimited parameters.

There's not a readme for the new way on the BIKI except in the beta readme:

http://community.bistudio.com/wiki/Arma_2:_Patch_v1.03.58899_Beta#How_to_add_multiple_parameters_to_your_MP_mission

Edited by tcp

Share this post


Link to post
Share on other sites

Ok, more involved than expected. Benny changes come to frequent to make this worth the effort. Thanks to tcp and jman.

Share this post


Link to post
Share on other sites

Giving up so easily? It takes about 1 minute once you know how to do it.

Unpack the pbo.

Open description.ext

Look for:

class Params
{
  class campsRespawn
  {
     title = "$STR_WF_Gameplay_Camp";
     values[] = {0,1};
     texts[] = {"$STR_WF_Disabled","$STR_WF_Enabled"};
     default = 1;
  };   

Go down the line of every option and pick from the value array that matches the option in text array.

Server.cfg

class Missions {
class Mission01 {
	template = WarfareV2_041Lite.Chernarus;
	difficulty = "Regular"; 
	paramsArray = [1,0,1,1,9,800,1200,30,12,10,1,2,5000,1,1,2,300,1200,1,0,0,0];
}; 
};

Share this post


Link to post
Share on other sites

Anything else i gotta do to the server.cfg or any other files to make this work? I've added all 22 values and no change to the server, it starts up at default every time.

Heres my

paramsArray = [1,0,1,0,5,1600,3600,30,12,10,1,2,5000,1,1,2,300,1200,1,0,0,0];

From what i can read i want no AI and starting time 0500, funds 1600 and supplies at 3600, but no dice... everything else is default

Edited by cri74

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×