Jump to content
Sign in to follow this  
(GSG) Az

Custom Items via Mission File

Recommended Posts

Hey guys,

I have had a search through the forum's and I am yet to see an actual answer why something like this would not work, so I thought I would overview what I am trying to achieve, how I have implemented it, and the issue I am facing.

I'm trying to add custom inventory items (Inheriting CA_Magazine) via the mission file. I dont need to use new textures nor new models - I just need to modify the class name so it becomes a unique item.

I have created the following file and imported it via description.ext:

*cfgMagazines2.hpp*

class CfgMagazines {
class CA_Magazine;	// External class reference

class WM_Master : CA_Magazine {
	scope = public;
	count = 1;
	type = 256;
	displayName = "Generic";
	descriptionShort = "Generic";
	model = "\dayz_equip\models\cloth_parcel.p3d";
	picture = "\dayz_equip\textures\equip_cloth_parcel_ca.paa";
};

};

This works all good and well with no errors until I spawn the item in (Problem isnt with this - I have spent hours trying every possible combination of "addMagazineCargo").

Warning Message: No entry 'bin\config.bin/CfgMagazines.WM_Master'.
Warning Message: No entry '.picture'.
Warning Message: '/' is not a value
Warning Message: No entry '.scope'.
Warning Message: '/' is not a value
Warning Message: Error: creating magazine WM_Master with scope=private

And so on and so on.

So I can establish that this is purely client side - as the server RPT doesnt log these errors.

Is it a restriction of the engine that it will always search the config.bin for this information instead of where the class is actually declared? Is there no way to override this?

Share this post


Link to post
Share on other sites

You can't define CfgMagazines classes in description.ext.

The only attributes you can use in description.ext are listed here.

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  

×