Jump to content

Recommended Posts

So I'm making a custom version of the Combat Patrol mission for the community I'm with but I've run into a bit of a snag. I grabbed the parameters settings from the description.ext of the sample mission and added it into the description.ext I already have. However they don't seem to actually affect the mission in any way, weather and time doesn't change nor does amount of enemies if garrison size is changed. I don't believe it's my description.ext that caused it as the same thing happens on the sample mission itself with no changes.

 

Here is the parameters from the Combat Patrol sample mission that I used. I'm not real good with code so I can't really tell if anything is wrong with it myself.

class Params
{
	class startingDaytime
	{
		title = "Starting time of day";
		values[] = {-1, 0, 1, 2, 3, 4};
		texts[] = {"Random", "Dawn", "Morning", "Afternoon", "Dusk", "Night"};
		default = 1;
	};
	class weather
	{
		title = "Weather";
		values[] = {-1, 0, 1, 2, 3};
		texts[] = {"Random", "Clear", "Semi-cloudy", "Cloudy", "Storm"};
		default = 1;
	};
	class garrison
	{
		title = "Enemy garrison";
		values[] = {0, 1};
		texts[] = {"Standard", "Reinforced"};
		default = 0;
	};
	class reinforcements
	{
		title = "Enemy reinforcements";
		values[] = {0, 1};
		texts[] = {"Standard", "Advanced"};
		default = 0;
	};
	class showInsertion
	{
		title = "Mark insertion position";
		values[] = {1, 0};
		texts[] = {"Yes", "No"};
		default = 0;
	};
	class tickets
	{
		title = "Respawn tickets";
		values[] = {5, 10, 20, 50, 100};
		texts[] = {"5", "10", "20", "50", "100"};
		default = 10;
	};
	class enemyFaction
	{
		title = "Enemy faction";
		values[] = {0, 1, 2};
		texts[] = {"CSAT", "AAF", "Random"};
		default = 2;
	};
	class locationSelection
	{
		title = "Location selection";
		values[] = {0, 1};
		texts[] = {"Manual", "Random"};
		default = 0;
	};
};

 

Share this post


Link to post
Share on other sites

The mission parameters don't need to be executed if you place the module in your mission as the module will execute them. The sample mission does have outdated Parameters though, the "description.ext" from the current update is:

  Reveal hidden contents

 

There are a bunch of things in there that you really don't need, for example our group run it as a single life with no re-spawns so we dumped the ticket counter and respawn templates. Because the Parameter values are string references you might need to launch the mission and check the parameters there to see what they actually do.

 

I have the same problem and it took me a while to figure it out so hopefully this saves you or others some time.

 

  • Like 1

Share this post


Link to post
Share on other sites

If you want to add/remove mission parameters it's also worth looking into the init script file itself.

 

Paramters are initialised like this:

 

if (count (missionNamespace getVariable ["paramsArray", []]) == 0) then {
    paramsArray = [1, 1, 0, 0, 0, 10, 2, 0, -1];
};
_parent = missionConfigFile >> "Params";
_paramsClasses = "TRUE" configClasses _parent;
_defaults = [
    "BIS_CP_startingDaytime",     1,
    "BIS_CP_weather",             1,
    "BIS_CP_garrison",             0,
    "BIS_CP_reinforcements",     0,
    "BIS_CP_showInsertion",     0,
    "BIS_CP_tickets",             20,
    "BIS_CP_enemyFaction",         0,
    "BIS_CP_locationSelection", 0,
    "BIS_CP_objective",         -1,
    "Revo_CP_camouflage",        0,
    "BIS_CP_votingTimer",        0
];

As you can see I added "Revo_CP_camouflage" and "BIS_CP_votingTimer"

Share this post


Link to post
Share on other sites

@Stelarch @R3vo wow, thanks guys. Haven't had a chance to look at this thread in a bit but thanks for the help, will look into fixing mine right away! On another note has anyone figured out if it's possible to use different factions other than CSAT or AAF and if so how?

Share this post


Link to post
Share on other sites
  On 6/26/2017 at 2:18 AM, Eogos said:

@Stelarch @R3vo wow, thanks guys. Haven't had a chance to look at this thread in a bit but thanks for the help, will look into fixing mine right away! On another note has anyone figured out if it's possible to use different factions other than CSAT or AAF and if so how?

Follow this topic.

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

×