Jump to content

Recommended Posts

Solved! :)

I will be posting the solution shortly and will probably make a submission to the BIS Wiki for future reference. There are some strict rules that need to be followed when using CfgMods.

Hello,

Has anybody had any luck using CfgMods in their configs in Arma 3?

There is this previous thread for Arma 2, but ive had no luck in Arma 3:

http://forums.bistudio.com/showthread.php?101621-CfgMods-config-entry-for-modmakers&highlight=CfgMods

This Wiki article says it was non functional, but now it is. See Bull A's note at the bottom of the page:

https://community.bistudio.com/wiki/Mod.cpp/bin_File_Format

I would really like to get away from using mod.cpp if possible, Especially when using the steam workshop.

Edited by Benargee
SOLVED!

Share this post


Link to post
Share on other sites

CfgMods works. It's a bit of a fiddle but is working correctly. I find that best practice is to use both a mod.cpp and a CfgMods class. The CfgMods (to my knowledge -- feel free to correct me) will overwrite the mod.cpp with any missing values. To get the CfgMods working correctly you must name the class within CfgMods the same as the @Addon folder or use the dir attribute to point to the @Addon folder.

Here is some config I have from an early stage from a project that is currently in developmental testing

class CfgMods
{
class Typhon
{
	dir = "@Typhon";
	name = "Typhon";
	picture = "a3\data_f_typhon\Logo\arma3_typhon_logo_ca.paa";
	logo = "a3\data_f_typhon\Logo\arma3_typhon_icon_ca.paa";
	logoOver = "a3\data_f_typhon\Logo\arma3_typhon_iconOver_ca.paa";
	tooltip = "Arma 3 Typhon";
	//action = "https://cerberus.radiandevelopment.com";
	overview = "";
};
};

APL.png

Please read the Arma 3 APL. This code is currently in development and is not allowed to implemented without the authors consent

Hope this helps,

Bull

Share this post


Link to post
Share on other sites

It seems since a later update there where some changes done in cfgMods

 

as the example of the Wiki does not contin the currently ruling cfgMods class (date is 17. July 2017)

 

Currently it is also possible to implement an entry in the field manual:

 

example (from the current currator cfgMods class):

fieldManualTopicAndHint[]=
		{
			"Curator",
			"Curator"
		};

Give the mod a color with an array (decimal RGBA Color code):

[Inside the DLC Browser Window visible]

dlcColor[]={0.31,0.77999997,0.77999997,1};

attach a video:

[Inside the DLC Browser Window visible on Mouseover of the Picture]

video="\A3\Data_F_Curator\Video\preview_curator.ogv";

 

[Inside the DLC Browser Window visible below the description]

class Multiplayer
		{
			class GameMaster
			{
				displayName="$STR_A3_moduleMPTypeGameMaster";
				description="$STR_A3_moduleMPTypeGameMaster_overviewText";
				overviewPicture="\a3\Missions_F_curator\data\img\mp_zgm_m11_overview_ca.paa";
			};
			class Defend
			{
				displayName="$STR_A3_moduleMPTypeDefense";
				description="$STR_A3_MP_COOP_04_overviewText";
				overviewPicture="\a3\Missions_F_curator\data\img\mp_coop_m05_overview_ca.paa";
			};
			class Seize
			{
				displayName="$STR_A3_moduleMPTypeSeize";
				description="$STR_A3_MP_COOP_06_overviewText";
				overviewPicture="\a3\Missions_F_curator\data\img\mp_coop_m06_overview_ca.paa";
			};
			class SectorControl
			{
				displayName="$STR_A3_moduleMPTypeSectorControl";
				description="$STR_A3_MP_ZSC_m10_overviewText";
				overviewPicture="\a3\Missions_F_curator\data\img\mp_zsc_m10_overview_ca.paa";
			};
		};

Also it is possible to enter some features to your mod with:

[Inside the DLC Browser Window below the desciption]

class Features
		{
			class Curator
			{
				displayName="$STR_A3_Curator";
				description="$STR_A3_DLC_CURATOR_DESCRIPTION";
				overviewPicture="\a3\Ui_F_Curator\Data\Logos\arma3_curator_eye_512_ca.paa";
			};
		};

 

When inside the config-viewer there are also some more subclasses possible as shown in other dlc's

 

so far i saw:

class SinglePlayer {};
class Assets {};

[All this is visible Inside the DLC Browser Window]

Share this post


Link to post
Share on other sites

I just can't get the cfgMods to work.
I searched the deepest and darkest crevices of the internets, found few threads and the wiki page, but none of it was helpful.
Can somebody please show me how would a correct cfgMods class look like for the following PBO and folder structure?

Arma 3\!Workshop\@my mods\addons\main package.pbo

 

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

×