What I'm trying to do is add a new storage item (a wooden crate, based on GunRack_DZ) and repack the dayz_code pbo (with the goal of sending a pull request upstream via github). I've started with the github source for 1.0.3.1c, and I've been using binPBO with settings similar to what vbawol mentioned here: https://github.com/vbawol/DayZ-Epoch/issues/914 .
Once compiled, I am deploying the new pbo to my local client and server.
It works somewhat, in that I can:
Create ItemWoodenCrateKit from PartWoodLumber x 6
Use ItemWoodenCrateKit to place WoodenCrate_DZ (movable as a normal construction)
Add items to WoodenCrate_DZ (does not show capacity)
Unfortunately, there are some RPT errors and it is not saved to the hive. I'm not sure what I am doing wrong, I assume it is something on my end with how I am packing the PBO or have defined the classes.
Does anyone have any pointers as to where I have gone off the rails?
Thanks!
arma2oaserver.RPT
13:35:48WarningMessage:No entry 'bin\config.bin/CfgMagazines.ItemWoodenCrateKit'.13:35:48WarningMessage:No entry '.picture'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.scope'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:Error: creating magazine ItemWoodenCrateKitwith scope=private13:35:48WarningMessage:No entry '.displayName'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.displayNameShort'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.nameSound'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.Library'.13:35:48WarningMessage:No entry '.libTextDesc'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.type'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.count'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.maxLeadSpeed'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.initSpeed'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.reloadAction'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.modelSpecial'.13:35:48WarningMessage:'/'isnot a value13:35:48WarningMessage:No entry '.ammo'.13:35:48WarningMessage:'/'isnot a value
dayz_code\Configs\cfgMagazines.hpp
classItemWoodenCrateKit: CA_Magazine
{
scope =2;
count =1;
type =256;
displayName ="Wooden Crate";// Fort_Crate_wood
descriptionShort ="A wooden crate that holds a lot of items.";
model ="\z\addons\dayz_epoch\models\supply_crate.p3d";
picture ="\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
weight =20;classItemActions{classBuild{
text = $STR_ACTIONS_BUILD;
script ="spawn player_build;";require[]={"ItemEtool","ItemToolbox"};
create ="WoodenCrate_DZ";};};};
dayz_code\Configs\cfgMagazines.hpp
classPartWoodLumber: CA_Magazine
{
scope =2;
count =1;
type =256;
displayName ="Lumber";
model ="\z\addons\dayz_epoch\models\planks.p3d";
picture="\z\addons\dayz_epoch\pictures\equip_wood_planks_CA.paa";
descriptionShort ="Lumber: Used for building many structures and can also be used to make plywood.";classItemActions{classCrafting{
text = $STR_EPOCH_PLAYER_254;
script =";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={"sawmill"};
requiretools[]={"ItemToolbox"};
output[]={{"PartWoodPlywood",1}};
input[]={{"PartWoodLumber",2}};};classCrafting1{
text = $STR_EPOCH_PLAYER_255;
script =";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={"workshop"};
requiretools[]={"ItemToolbox"};
output[]={{"bulk_empty",1}};
input[]={{"PartWoodLumber",2},{"PartGeneric",1}};};classCrafting2{
text = $STR_EPOCH_PLAYER_256;
script =";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={"workshop"};
requiretools[]={"ItemToolbox","ItemCrowbar"};
output[]={{"deer_stand_kit",1}};
input[]={{"PartWoodLumber",8},{"PartWoodPile",2}};};classCrafting3{
text = $STR_EPOCH_PLAYER_257;
script =";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={"workshop"};
requiretools[]={"ItemToolbox"};
output[]={{"ItemWoodStairs",1}};
input[]={{"PartWoodLumber",8}};};classCrafting4{
text = $STR_EPOCH_PLAYER_258;
script =";['Crafting4','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={"workshop"};
requiretools[]={"ItemToolbox"};
output[]={{"ItemWoodLadder",1}};
input[]={{"PartWoodLumber",8}};};classCrafting5{
text = $STR_EPOCH_PLAYER_259;Script=";['Crafting5','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={"workshop"};
requiretools[]={"ItemToolbox"};
output[]={{"PartPlankPack",1}};
input[]={{"PartWoodLumber",3}};};classCrafting6{
text = $STR_EPOCH_PLAYER_277;Script=";['Crafting6','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={"workshop"};
requiretools[]={"ItemToolbox"};
output[]={{"ItemGunRackKit",1}};
input[]={{"PartWoodLumber",6}};};classCrafting7{
text ="Craft Wooden Crate";Script=";['Crafting7','CfgMagazines', _id] spawn player_craftItem;";
neednearby[]={};
requiretools[]={"ItemToolbox"};
output[]={{"ItemWoodenCrateKit",1}};
input[]={{"PartWoodLumber",6}};};};};
dayz_code\Configs\cfgVehicles.hpp
classFort_Crate_wood;classWoodenCrate_DZ:Fort_Crate_wood{
scope =2;
destrType ="DestructBuilding";
offset[]={0,2.5,0.5};// What is a good offset?
armor =200;
displayName ="Wooden Crate";
vehicleClass ="Fortifications";
transportMaxMagazines =50;
transportMaxWeapons =5;
transportMaxBackpacks =1;//constructioncount = 5;
removeoutput[]={{"ItemWoodenCrateKit",1}};
nounderground =0;};
Question
Aristoi
Hello all,
Thanks in advance for any help.
What I'm trying to do is add a new storage item (a wooden crate, based on GunRack_DZ) and repack the dayz_code pbo (with the goal of sending a pull request upstream via github). I've started with the github source for 1.0.3.1c, and I've been using binPBO with settings similar to what vbawol mentioned here: https://github.com/vbawol/DayZ-Epoch/issues/914 .
Once compiled, I am deploying the new pbo to my local client and server.
It works somewhat, in that I can:
Unfortunately, there are some RPT errors and it is not saved to the hive. I'm not sure what I am doing wrong, I assume it is something on my end with how I am packing the PBO or have defined the classes.
Does anyone have any pointers as to where I have gone off the rails?
Thanks!
arma2oaserver.RPT
dayz_code\Configs\cfgMagazines.hpp
dayz_code\Configs\cfgMagazines.hpp
dayz_code\Configs\cfgVehicles.hpp
dayz_code\init\variables.sqf
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now