Jump to content
Sign in to follow this  
sagarasousuke

missionConfigFile Help

Recommended Posts

Use missionConfigFile, CfgMusic want to get a list of classes.

However, count value becomes zero.

Bugs? How wrong or what?

missionConfigFile results hint to the output, it seems that the path can be acquired.

C: \ Users \ (user) \ Documents \ ArmA 2 Other Profiles \ (ARMA2 User) \ missions \ dancesmoke.Desert_E \ description.ext

single mission

description.ext

class CfgMusic
{
trackes[]={music1,music2};
class music1
{
	name="music1";
	sound[]={"music\music1.ogg", db+20, 1.0};
};
class music2
{
	name="music2";
	sound[]={"music\music2.ogg", db+20, 1.0};
};
};

Addon config.cpp

count (getArray (missionConfigFile >> "cfgfunctions" ));

Share this post


Link to post
Share on other sites

1. There's typo in your description.ext: trackes[] -> tracks[]

2. Try this:

count getArray (missionConfigFile >> "CfgMusic" >> "tracks");

Share this post


Link to post
Share on other sites
1. There's typo in your description.ext: trackes[] -> tracks[]

2. Try this:

count getArray (missionConfigFile >> "CfgMusic" >> "tracks");

Thank you. Worked successfully.

What I should have an array that all?

For example, CfgFunctions is that there is no description of the array,

http://community.bistudio.com/wiki/Functions_Library

BIS script there were such a description.

for "_t" from 0 to 2 do {
_pathConfig = [configfile,campaignconfigfile,missionconfigfile] select _t;
_pathFile = ["ca\modules\functions","functions","functions"] select _t;

_cfgFunctions = (_pathConfig >> "cfgfunctions");

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  

×