Jump to content
seba1976

Replacement config doesn't work. Help!!!!

Recommended Posts

Why this doesn't change vanilla unit's loadout?

class CfgPatches {

	class SAC_R_NATORECON_with_BIS_WDL_H {
	
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {};
	};

};

class CfgVehicles {

    class B_Soldier_recon_base;
	class B_recon_F : B_Soldier_recon_base {
		linkedItems[] = {"V_PlateCarrier1_rgr", "H_HelmetB_light", "ItemGPS", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "NVGoggles"};
		respawnLinkedItems[] = {"V_PlateCarrier1_rgr", "H_HelmetB_light", "ItemGPS", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "NVGoggles"};
	};
	
};


I've stumbled upon this silly problem and tested everything I could for the past 3 hours to no avail.

 

Share this post


Link to post
Share on other sites

I understand, but I thought that wasn't needed if no 3rd party addons were used. I don't know what mod to put in the required section, when all I need is Arma default set.

Share this post


Link to post
Share on other sites

Got it. "A3_Characters_F_BLUFOR" did the trick. Thanks a lot man, I was going crazier :) .

Share this post


Link to post
Share on other sites

Cool man.  glad you got it sorted   :)

 

If it helps, I wrote a small script that scans CfgPatches and puts them all in a huge array.  Then I copypasta into the reqdaddons array and it makes sure the whole vanilla game is loaded before my config adjustments are applied (it looks ridiculous but works as it should - also note that if BIS make adjustments, which they seem to do a lot of the time, then you should really update as well).  Personally, I like to let the vanilla game load up, and then mess with the configs. It's a bit more hassle if some new bis re-organisation happens, but it's still ok to sort out.

 

Here it is:

 

_cfgPatches = configFile / "CfgPatches";
for "_i" from 0 to count _cfgPatches - 1 do {
_cfgEntry = _cfgPatches select _i;
_name = configName _cfgEntry;
if (_i == count _cfgPatches - 1) then {
diag_log format ["%1", _name];
} else {
diag_log format ["%1,", _name];
};
};

 

 
Sorry for formatting.  It's shit on this forum at the moment.

 

Share this post


Link to post
Share on other sites

Yeah I struggled with the formatting too. Thanks! BTW, I was using this http://www.ofpec.com/forum/index.php?topic=35236.0 to dump the entire config file, but it's throwing some array limit errors since 1.54. Can you confirm? Any other way to do it? It fails even if I reduce the dump to the cfgVehicles only.

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

×