Need help to update config cfgMagazine

hekut146

Well-Known Member
hi, i have problem i have activated 3 addons:
Code:
dayz origins
dayz epoch
my addon
In my addon i need update already used classes CfgMagazines:
Code:
ItemHeatPack
ItemPlotDeed
SkinBase
i add in CfgPatches this:
Code:
requiredAddons[]={
"dayz_code",
"ori_items"
};
and in cfgMagazines i add this:
Code:
class CA_Magazine;
classItemHeatPack: 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";
classItemActions{
classUse{
text="$STR_ACTIONS_HEATPACK";
script="spawn player_useMeds;";
};
};
};
classItemPlotDeed: 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";
classItemActions{
classCrafting{
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}
};
};
};
};
classSkinBase: 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;
classItemActions{
classUse{
text="$STR_EPOCH_PLAYER_268";
script="spawn player_wearClothes;";
};
classCrafting{
text="$STR_EPOCH_PLAYER_269b";
script=";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={};
requiretools[]={
"ItemToolbox",
"ItemKnife"
};
output[]={
{"ItemCanvas",1}
};
input[]={
{"SkinBase",2}
};
};
classCrafting1{
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?
 
Last edited:
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)?!
 
this sounds more like a question to ask on the BIS forums ... most people here are just doing scripts and have little or no experience with addons. I know I have no solution for you and if @FallingSheep or @ebay doesnt reply then you will be out of luck here.
 
addons compiling and config when game loading, problem not in misson, i loading @ori;@epoch;@myAddon, but myAddon reupdated ori and epoch
 
but vehicles normal updating, i added new upgrades at car, and adding new classes to magazines (epoch and ori) work too
 
when messing with addons i found it easier to take the existing dayzcode's cfgMagazines (the whole file that contains it) and then edit it from there. this is how i was doing endgame...before epoch died in the ass :)
 
Back
Top