Jump to content

[Alpha Release] Single Currency 3.0 & Storage DEFAULT HIVE ( No global banking).


Recommended Posts

Hey Zupa. May have a issue. When you put money into a safe, lock it then open it.. the money is reset to 0. could it be from the name change?

 

gonna look at it,, it's because it change of classname, prob know how to fix ^^

Link to comment
Share on other sites

in server pbo

Step C

you said to add

/*ZSC*/
if( count (_intentory) > 3)then{
_object setVariable ["bankMoney", _intentory select 3, true];
}else{
   _object setVariable ["bankMoney", 0, true];
};
/*ZSC*/
 
ABOVE
if (_type in DZE_LockedStorage) then {
// Fill variables with loot
_object setVariable ["WeaponCargo", (_intentory select 0),true];
_object setVariable ["MagazineCargo", (_intentory select 1),true];
_object setVariable ["BackpackCargo", (_intentory select 2),true];
} else {
 
MINE LOOKS LIKE THIS
if (count _intentory > 0) then {
if (_type in DZE_LockedStorage) then {
// Fill variables with loot
_object setVariable ["WeaponCargo", (_intentory select 0),true];
_object setVariable ["MagazineCargo", (_intentory select 1),true];
_object setVariable ["BackpackCargo", (_intentory select 2),true];
} else {
 
do i leave the first line or do i take it out?, which is:     if (count _intentory > 0) then {
Link to comment
Share on other sites

Ok i just went throw re installing  your script. I can not store coins in anything. i am not getting a option to store coin ie vault, storage shed, tents, or vehicles. What do i need to look at. I see the coins on the right side of the screen and they stay there after restart. The other thing is i killed myself and i had no option to get my coins back. 

the only option i get is the normally one for gear

 

 

I think this is the DB am i right?

Link to comment
Share on other sites

i have a problem

 

i can store coins in vehicles etc. but the player seems to have infinit coins the hud field for coins i empty and as soon as i deposit or withdraw something from vehicles it shows scalar in my hud

and i cant find any errors in my rpt

 

 

 

Edit:

Never mind just fixed it.

found 2 files which were edited for the 2.0 version

Link to comment
Share on other sites

Ok i just went throw re installing  your script. I can not store coins in anything. i am not getting a option to store coin ie vault, storage shed, tents, or vehicles. What do i need to look at. I see the coins on the right side of the screen and they stay there after restart. The other thing is i killed myself and i had no option to get my coins back. 

the only option i get is the normally one for gear

 

 

I think this is the DB am i right?

 

see that there is eather my selfaction used in config, Or that u edit your correct one.

Link to comment
Share on other sites

just installed and have a problem. maybe I missed a step or something but...

 

when I get trader menu it does not give buy/sell price

I sold a bloodbag and it said 100 coins

I dont see it anywhere

I goto my safe and show deposite but does not show I have any funds..

 

any quick thoughts of what I missed?

 

I  am going back over install and all seems there...

 

 

edit...

I see the coins icon on left for a few seconds when I first join game then it dissapears.

when I choose money storage on safe I get deposit withdraw but you is blank shows I have no money

I deposite 300 it lets me but still does not show anywhere how much I have

I try deposite 5000 it says I dont have enough 

so all seems good except It does not show actual coins anywhere

trader buy/sell price empty, storage banks empty

coins icon dissapears when first load in game

 

 

 

Error in expression <nt _digits - 1;
_modBase = _digitsCount % _mod;
_numberText = "";


{
_numberText>
  Error position: <% _mod;
_numberText = "";


{
_numberText>
  Error %: Type Script, expected Number
File mpmissions\__CUR_MP.Tavi\ZSC\compiles\numberText.sqf, line 12
Link to comment
Share on other sites

Do i have to do something to the data base? Still can not get an option to store coins.

 

I followed the steps for mission side. In step C I put the ZSC folder in the root of the mission and the server_traders_cherno_17.sqf there also.

Then i followed the steps for the server side.

Still no storing of coins.

Zupa said see that there is eather my selfaction used in config, Or that u edit your correct one.

this is what is in my init.sqf

 

 
//Load in compiled functions
call compile preprocessFileLineNumbers "custom\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
//call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
call compile preprocessFileLineNumbers "custom\snap_pro\compiles.sqf"; //Compile regular functions
 
//COIN
 
call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf";
 
 
progressLoadingScreen 0.5;
 
//COIN
call compile preprocessFileLineNumbers "server_traders_cherno_17.sqf"; //Compile trader configs
 
 
 
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
progressLoadingScreen 1.0;
Link to comment
Share on other sites

I just came out of game and now i see the storage. I used my selfaction with the changes and set yours to false. It does not save the coins after restart. I put 10000 in each item and after i did the restart it was gone, 0 balance. i still had 55000 on me, so it saves to me.

At less i'm making progress.

Link to comment
Share on other sites

Ya but that line somehow fixes when u change cloth that AI still shoots you.

 

It's magic but needed somehow. ( for overwatch skins in overpoch). SO i just put it in there so people don't whine after xD

 

it's the same with creazteVehicel , the location is never correct so u reset the location after again  ^^

Link to comment
Share on other sites

Can u post the inventory field of your character inventory in the database?

[["m16a4_acg","M9SD","ItemMap","ItemHatchet_DZE","ItemRadio","ItemToolbox","EvMoney","ItemKeyBlack1131","ItemKeyGreen1845","ItemGPS"],["ItemPainkiller","ItemEpinephrine","ItemMorphine","ItemWaterbottleBoiled","FoodPistachio","100Rnd_556x45_BetaCMag","100Rnd_556x45_BetaCMag","ItemAntibiotic","ItemEpinephrine","ItemMorphine","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"],1830]

 

 

Im assuming the 1830 is the coins I have so its working, 

It shows the 1830 coins icon on left for a few seconds after loading into game then the coins icon disappears.

does not show anywhere...

 

this is my description.ext

 

class RscTitles
{ 
#include "dzgm\icons.hpp"
class zCamoStatusGUI {
idd = -1;
fadeout=0;
fadein=0;
onLoad = "uiNamespace setVariable ['zCamo_GUI_display', _this select 0]";
duration = 10e10;
name= "zCamoGui";
controlsBackground[] = {};
objects[] = {};
class controls {
class zCamoIcon:RscPictureGUI {
idc = 1;
text="custom\walkamongstthedead\zombie.paa";
x="0.958313 * safezoneW + safezoneX";
y="0.43 * safezoneH + safezoneY";
w=0.059999999;
h=0.079999998;
colorText[]={1,1,1,1};
};
};
};
#include "ZSC\config\ZSChud.hpp"
}; 

 

I also notice  I have two _inventory = [ in my server_updateObjects.sqf

 

_object_inventory = {
private["_inventory","_previous","_key"];
if (typeOf (_object) == "Plastic_Pole_EP1_DZ") then{
    _inventory = _object getVariable ["AddedPUIDS", []]; //We're replacing the inventory with UIDs for this item
} else {
    _inventory = [
getWeaponCargo _object,
getMagazineCargo _object,
getBackpackCargo _object


];
};
/* Get the Inventory of the Vehicle */
_inventory = [
getWeaponCargo _object,
getMagazineCargo _object,
getBackpackCargo _object
/*ZSC*/
, _object getVariable["bankMoney",0]
/*ZSC*/
];

I tried 

, _object getVariable["bankMoney",0]

in both locations (still not showing coins :(

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...