Jump to content
Sign in to follow this  
hekut146

Need help to update config cfgMagazine

Recommended Posts

hi, i have problem i have activated 3 addons:

dayz origins 
dayz epoch
my addon

In my addon i need update already used classes CfgMagazines

ItemHeatPack 
ItemPlotDeed
SkinBase

i add in CfgPatches this:

requiredAddons[] = { 
"dayz_code",
"ori_items"
};
and in cfgMagazines i add this:
class CA_Magazine;
class ItemHeatPack : CA_Magazine {
scope = 2;
count = 1;
type = 256;
displayName = "$STR_EQUIP_NAME_42";
model = "\ori\items\game\ori_heatpack.p3d";
picture = "\ori\items\data\ico\equip_ori_heatpack_ca.paa";
descriptionShort = "$STR_EQUIP_DESC_42";
class ItemActions {
class Use {
text="$STR_ACTIONS_HEATPACK";
script="spawn player_useMeds;";
};
};
};
class ItemPlotDeed : CA_Magazine {
scope=2;
count=1;
type=256;
displayName="Plot Deed";
model="\z\addons\dayz_epoch\models\doc_generic.p3d";
picture="\z\addons\dayz_epoch\pictures\equip_doc_generic_ca.paa";
descriptionShort="Deed to a plot of land, similar to a plot pole.";
weight=0.1;
sfx="document";
class ItemActions {
class Crafting {
text="Craft Plot Pole";
script=";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={
"workshop"
};
requiretools[]={
"ItemToolbox"
};
output[]={
{"ItemPlotDeed",1},
{"ItemGoldBar10oz",2}
};
input[]={
{"ItemPlotDeed",1},
{"ItemGoldBar10oz",2}
};
};
};
};
class SkinBase : CA_Magazine {
scope=0;
count=1;
type=256;
displayName="Clothes";
model="\dayz_equip\models\cloth_parcel.p3d";
picture="\dayz_equip\textures\equip_cloth_parcel_ca.paa";
descriptionShort="Clothes Parcel";
weight=1;
class ItemActions {
class Use {
text="$STR_EPOCH_PLAYER_268";
script="spawn player_wearClothes;";
};
class Crafting {
text="$STR_EPOCH_PLAYER_269b";
script=";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={};
requiretools[]={
"ItemToolbox",
"ItemKnife"
};
output[]={
{"ItemCanvas",1}
};
input[]={
{"SkinBase",2}
};
};
class Crafting1 {
text="$STR_EPOCH_PLAYER_269";
script=";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={};
output[]={
{"ItemRags",2}
};
input[]={
{"SkinBase",1}
};
};
};
};

but when game loading i don't have changes, my classes reading first (in my addon) and update original (dayz origins and dayz epoch), maybe arma have priority variable for config.cpp?

Share this post


Link to post
Share on other sites

in rtp logs i see this
Updating base class CA_Magazine->, by z\addons\hapodha9i_coji9ihka_main\config.cpp/CfgMagazines/ItemHeatPack/
Updating base class CA_Magazine->, by z\addons\hapodha9i_coji9ihka_main\config.cpp/CfgMagazines/SkinBase/
and after i see this
Updating base class ->CA_Magazine, by ori\items\config.bin/CfgMagazines/ItemHeatPack/
Updating base class ->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/SkinBase/
and
Updating base class ->CA_Magazine, by z\addons\dayz_code\config.bin/CfgMagazines/ItemPlotDeed/
but don't see my class update this magazine (ItemPlotDeed)?!

Share this post


Link to post
Share on other sites

If your class cfgPatches contains only the requiredAddons[] property, it wouldn't work. The correct syntax of the cfgPatches class is described here. That should do the trick, I hope. :)

Share this post


Link to post
Share on other sites

thx for answer, now i try:

class CfgPatches {
class hapodha9i_coji9ihka_main {
units[] = {};
weapons[] = {};
magazines[] = {
"ItemPlotDeed",
"ItemHeatPack",
"SkinBase",
"Skin_Sniper1_DZ"
};
requiredVersion = 0.1;
requiredAddons[] = {
"ori_items",
"dayz_code", 
"dayz_equip"
};
};
};

and

class CfgAddons {
access = 1;
class PreloadBanks {};
class PreloadAddons {
class hapodha9i_coji9ihka_main {
list[] = {
"ori_items",
"dayz_code",
"dayz_equip",
"hapodha9i_coji9ihka_main"
};
};
};
};

and my changes work, but now i have problem with ori_items i see magazines, but not loading models and icons

problem appeared after changes in cfgaddon and cfgpatches

Share this post


Link to post
Share on other sites

Well, magazines are not in the cfgPatches class (simply put, there's just units[] for the cfgVehicles classes, and weapons{] for cfgWeapons classes). The problem with models/icons is probably caused by wrong paths, or maybe textures are not packed. I can't really tell from what I see here (since it's not even clear what magazines have problems, and where). If you could be more specific, I might be able to find a way how to help. :)

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  

×