Jump to content

[PROJECT] Gold Coin based Single Currency & Banking System


Recommended Posts

@Zupa, I'm getting an error when people trade something (buy or sell), please see below:

 

 

14:56:38 "EPOCH SERVERTRADE: Player: Playername (0000000000000000) sold a Coins in/at Any for <null>x <null>"

14:56:38 Error in expression <urrency = _this select 5;
_qty = _this select 6;
_clientID = owner _player;
_p>
14:56:38   Error position: <select 6;
_clientID = owner _player;
_p>
14:56:38   Error Zero divisor
14:56:38 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 9
Link to comment
Share on other sites

Well i wrote that at 2 am (People really wanted it). Tired as fuck cus i work 8-9 hours a day, so , 10hours @ company. Driving 40 min there, driving 40 minuts back ^^. 

Dude, I totally understand,and btw really appreciate your work. Just sayin, when you get time if you could perphas clean up install instructions for those of use who don't program for a living :) Just like MGM here, am really looking forward to this mod, and will def be donating to you if I can get it working. 

 

For those of you who have got it working, right on, more power to you.  I too want these cool mods for my playerbase too, i just don't have the techspertise to integrate it with the instructions given.  It just doesn't work.  My server gets stuck after authenticating at 10, and the lobby has AI in red for each slot as well as a low quality AI green computer.  Weird as hell.

Link to comment
Share on other sites

Ok cool, everything does seem to run fine. I just don't like seeing errors ;)

If you could make it actually log correctly, show what they're trading for how many coins that would be perfect.

Take your time though, I'm in no rush...loving what you've done so far.

Link to comment
Share on other sites

Hey Awesome Mod by the way.

 

 

I was looking over some files here https://github.com/EpochSC/SingleCurrencyBanking999/blob/master/A.Installation_Method_%231_Add_to_a_new_Epoch_server_quickly/B.Mission_File/DayZ_Epoch_11.Chernarus/CfgServerTrader/Category/OWAcrVariants.hpp

and noticed the Classname: class FHQ_ACR_SNW_G55_SD_F should be class FHQ_ACR_SNW_G33_SD_F

this is the same for all G33 guns they are named 55

Link to comment
Share on other sites

I for one think you've done a fantastic job Zupa. I was watching on twitch last night and you were doing great. 

As for the instructions, if you know what's going on, then getting it working is actually pretty easy.

 

I had to change things around slightly since I have other mods installed, for instance, plot pole for life uses a few files that you modify, but it's hardly an issue.

Just merge your changes and it works.

 

Hehe, ya i got that aswel, i even extended thatt ^^

 

Totally not * cough* borrowed 50% from ccg(a)

 

Ty2G8Wc.jpg

Link to comment
Share on other sites

Dont very often post in here,but thought i will to say a HUGE thanks to Zupa for the work he's done here,got it working lovely,also i have a little fix for those of you using Epoch Admin Tools not working by defualt,you need to edit your admintools/dialog.hpp to look like this,and it works as normal. :)

.

///////////////////////////////////////////////////////////////////////////
/// Styles
///////////////////////////////////////////////////////////////////////////

// Control types


class AdminDialog
{
	idd = -1;
	movingenable = 0;

	class Controls {
		class RscText_1000: RscTextT
		{
			idc = 1000;
			x = 0.283646 * safezoneW + safezoneX;
			y = 0.22492 * safezoneH + safezoneY;
			w = 0.432709 * safezoneW;
			h = 0.55016 * safezoneH;
			colorBackground[] = {0,0,0,0.7};
		};
		class RscText_1001: RscTextT
		{
			idc = 1001;
			text = "Pick a vehicle or select a category";
			x = 0.295498 * safezoneW + safezoneX;
			y = 0.235917 * safezoneH + safezoneY;
			w = 0.170212 * safezoneW;
			h = 0.0166935 * safezoneH;
		};
		class RscListbox_1500: RscListbox
		{
			idc = 13000;
			x = 0.290407 * safezoneW + safezoneX;
			y = 0.268674 * safezoneH + safezoneY;
			w = 0.419186 * safezoneW;
			h = 0.447636 * safezoneH;
		};
		class RscShortcutButton_1700: RscShortcutButton
		{
			idc = -1;
			text = "Temp";
			x = 0.297168 * safezoneW + safezoneX;
			y = 0.720556 * safezoneH + safezoneY;
			w = 0.0651391 * safezoneW;
			h = 0.0590864 * safezoneH;
			onButtonClick = "TempDialogSelected = (lbCurSel 13000); ((ctrlParent (_this select 0)) closeDisplay 9000);";
		};
		class RscShortcutButton_1701: RscShortcutButton
		{
			idc = -1;
			text = "Perm";
			x = 0.37154 * safezoneW + safezoneX;
			y = 0.720556 * safezoneH + safezoneY;
			w = 0.0651391 * safezoneW;
			h = 0.0590864 * safezoneH;
			onButtonClick = "PermDialogSelected = (lbCurSel 13000); ((ctrlParent (_this select 0)) closeDisplay 9000);";
		};
		class RscShortcutButton_1702: RscShortcutButton
		{
			idc = 12004;
			text = "Air";
			x = 0.485168 * safezoneW + safezoneX;
			y = 0.218000 * safezoneH + safezoneY;
			w = 0.0651391 * safezoneW;
			h = 0.0590864 * safezoneH;
			onButtonClick="[""Air""] call LoadSpecificList;";
		};
		class RscShortcutButton_1704: RscShortcutButton
		{
			idc = 12005;
			text = "Land";
			x = 0.55954 * safezoneW + safezoneX;
			y = 0.218000 * safezoneH + safezoneY;
			w = 0.0651391 * safezoneW;
			h = 0.0590864 * safezoneH;
			onButtonClick="[""LandVehicle""] call LoadSpecificList;";
		};
		class RscShortcutButton_1705: RscShortcutButton
		{
			idc = 12006;
			text = "Sea";
			x = 0.633912 * safezoneW + safezoneX;
			y = 0.218000 * safezoneH + safezoneY;
			w = 0.0651391 * safezoneW;
			h = 0.0590864 * safezoneH;
			onButtonClick="[""Ship""] call LoadSpecificList;";
		};
		class RscShortcutButton_1710: RscShortcutButton
		{
			idc = -1;
			text = "Close";
			x = 0.633912 * safezoneW + safezoneX;
			y = 0.720556 * safezoneH + safezoneY;
			w = 0.0651391 * safezoneW;
			h = 0.0590864 * safezoneH;
			onButtonClick = "((ctrlParent (_this select 0)) closeDisplay 9000);";
		};
	};
};
Link to comment
Share on other sites

 

Good work cyber!

 

Does anyone know what file adds Zupas trader cities to the server?

I want to add the traders and barricades he has on his mission file, but dont know what file it actually is :S

 

bankzones in the hive.

 

 

 

Also Zupa is possible to change the bank variable that you used for the hud to display the money that you have on you and not whats in your bank?

Link to comment
Share on other sites

are you using an overwatch server? i dont think those hive's are compatible.

 

Seems u have an acces violation hmm.

 

If you cant get this sorted, i'll help u after my job ( in 8 hours).

Overpoch, I just haven't changed the name of the folders.

What does the access violation mean? I've unblocked the DLLs and all that. Weird :P

Link to comment
Share on other sites

Good work cyber!

 

Does anyone know what file adds Zupas trader cities to the server?

I want to add the traders and barricades he has on his mission file, but dont know what file it actually is :S

easy to do:

 

in your init change

// Add trader citys
_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";

to

// Add trader citys
_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_17.Chernarus\mission.sqf";

number 11 to 17. to be precise, thats it.

Link to comment
Share on other sites

Does anyone know how to move the information in the white text that shows your balance etc. as my infistar debug monitor is covering it up.

 

in missionsfiles /addons/playerhup/hud.hpp

	class AsReMixhud_Status:w_RscText
		{
			idc = hud_status_idc;
			type = CT_STRUCTURED_TEXT;
			size = 0.040;
                        x = safezoneX + (safezoneW -0.35) ;
	                y = safezoneY + 0.10 * safezoneW;
			w = 0.35; h = 0.35;
			colorText[] = {1,1,1,1};
			lineSpacing = 3;
			colorBackground[] = {0,0,0,0};
			text = "";
			shadow = 2;
			class Attributes {
				align = "right";
			};
		};

x and y is the location.

Link to comment
Share on other sites

Alright guys if you are having an issues with trader menus not showing up then you need to replace mission in the hive with the one Zupa is using.

I found out he uses different npcs for his traders which is why your current ones don't work.

 

Currently getting the regular npcs to work with Zupa's traders.

Will post when done.

Link to comment
Share on other sites

Alright guys if you are having an issues with trader menus not showing up then you need to replace mission in the hive with the one Zupa is using.

I found out he uses different npcs for his traders which is why your current ones don't work.

 

Currently getting the regular npcs to work with Zupa's traders.

Will post when done.

 

This is all you have to do in order to get Zupas traders.

 

 

in your init change

// Add trader citys
_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";

to

// Add trader citys
_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_17.Chernarus\mission.sqf";

number 11 to 17. to be precise, thats it.

Link to comment
Share on other sites

This is all you have to do in order to get Zupas traders.

I have already made it so that it will work on Chernarus 11 and 17

 

This one is for Chernarus 11

// DayZ Epoch TRADERS for 11
serverTraders = ["US_Soldier_Pilot_EP1", "RU_Functionary1","RU_Citizen3","Rocker4","Profiteer4","Rita_Ensler_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","TK_GUE_Soldier_5_EP1","GUE_Soldier_MG","Worker2","Worker3","Soldier_GL_M16A2_PMC","Woodlander1","UN_CDF_Soldier_Pilot_EP1","RU_WorkWoman1","Dr_Annie_Baker_EP1","RU_Citizen4","RU_WorkWoman5","RU_Citizen1","RU_Villager3","TK_CIV_Takistani04_EP1","Pilot_EP1","RU_Profiteer4","Woodlander3","Dr_Hladik_EP1","Doctor","HouseWife1","GUE_Woodlander2"];
// Hero Vendor
menu_RU_Functionary1 = [
	[["Ammunition",478],["Clothes",575],["Helicopter Armed",493],["Military Armed",562],["Trucks Armed",479],["Weapons",477],["Money",700]],
	[],
	"hero"
];
// Ammunition neutral
menu_RU_Citizen3 = [
	[["Assault Rifle Ammo",609],["Light Machine Gun Ammo",610],["Pistol Ammo",611],["Shotguns and Single-shot Ammo",613],["Sniper Rifle Ammo",614],["Submachine Gun Ammo",612],["Overwatch Pistol Ammo",1012],["Overwatch Gun Ammo",1013]],
	[],
	"neutral"
];
// Weapons neutral
menu_Rocker4 = [
	[["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns and Single-shot",641],["Sniper Rifle",640],["Submachine Guns",642],["Overwatch VIL",1002],["Overwatch TAR",1003],["Overwatch Sniper",1011],["Overwatch SCAR",1004],["Overwatch sidearm",1001],["Overwatch MAS",1007],["Overwatch HK417",1009],["Overwatch HK416",1008],["Overwatch HK416",1008],["Overwatch DMR",1010],["Overwatch ACR",1005]],
	[],
	"neutral"
];
// neutral Vehicles
menu_Profiteer4 = [
	[["Bikes and ATV",587],["Buses and Vans",588],["Cargo Trucks",586],["Fuel Trucks",589],["Military Unarmed",598],["Trucks",590],["Used Cars",520],["Utility Vehicles",591],["Overwatch SP-Car",1015],["Overwatch S-Car",1016]],
	[],
	"neutral"
];
// General Store
menu_Rita_Ensler_EP1 = [
	[["Backpacks",496],["Clothes",497],["Cooked Meats",580],["Drinks",498],["Packaged Food",579]],
	[["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Copper Bar",101]],
	"neutral"
];
// Weapons neutral
menu_CIV_EuroMan01_EP1 = [
	[["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns and Single-shot",641],["Sniper Rifle",640],["Submachine Guns",642],["Overwatch VIL",1002],["Overwatch TAR",1003],["Overwatch Sniper",1011],["Overwatch SCAR",1004],["Overwatch sidearm",1001],["Overwatch MAS",1007],["Overwatch HK417",1009],["Overwatch HK416",1008],["Overwatch G3",1006],["Overwatch DMR",1010],["Overwatch ACR",1005]],
	[],
	"neutral"
];
// Ammunition Neutral
menu_CIV_EuroMan02_EP1 = [
	[["Assault Rifle Ammo",609],["Light Machine Gun Ammo",610],["Pistol Ammo",611],["Shotguns and Single-shot Ammo",613],["Sniper Rifle Ammo",614],["Submachine Gun Ammo",612],["Overwatch Pistol Ammo",1012],["Overwatch Gun Ammo",1013]],
	[],
	"neutral"
];
// Neutral Building/Parts
menu_TK_GUE_Soldier_5_EP1 = [
	[["Building Supplies",508],["Toolbelt Items",510],["Vehicle Parts",509],["Money",700]],
	[],
	"neutral"
];
// Bandit Trader
menu_GUE_Soldier_MG = [
	[["Ammunition",577],["Clothing",575],["Helicopter Armed",512],["Military Armed",569],["Trucks Armed",534],["Weapons",627],["Money",700]],
	[],
	"hostile"
];
// Aircraft Dealer
menu_Worker2 = [
	[["Airplanes",517],["Helicopter Unarmed",519],["Overwatch Camel",1014]],
	[],
	"neutral"
];
// Vehicles Neutral
menu_Worker3 = [
	[["Bikes and ATV",587],["Buses and Vans",588],["Cargo Trucks",586],["Fuel Trucks",589],["Military Unarmed",598],["Trucks",590],["Used Cars",520],["Utility Vehicles",591],["Overwatch SP-Car",1015],["Overwatch S-Car",1016]],
	[],
	"neutral"
];
// Black Market Vendor
menu_GUE_Woodlander2 = [
	[["Black Market Ammo",527],["Black Market Weapons",526],["Explosives",529]],
	[],
	"neutral"
];
// neutral Building/Parts
menu_Woodlander1 = [
	[["Building Supplies",508],["Toolbelt Items",510],["Vehicle Parts",509],["Money",700]],
	[],
	"neutral"
];
// neutral Vehicles 2
menu_UN_CDF_Soldier_Pilot_EP1 = [
	[["Bikes and ATV",587],["Buses and Vans",588],["Cargo Trucks",586],["Fuel Trucks",589],["Military Unarmed",598],["Trucks",590],["Used Cars",520],["Utility Vehicles",591],["Overwatch SP-Car",1015],["Overwatch S-Car",1016]],
	[],
	"neutral"
];
// General Store 2
menu_RU_WorkWoman1 = [
	[["Backpacks",496],["Clothes",497],["Cooked Meats",580],["Drinks",498],["Packaged Food",579]],
	[["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Copper Bar",101]],
	"neutral"
];
// Medical Supplies
menu_Dr_Annie_Baker_EP1 = [
	[["Chem-lites/Flares",669],["Medical Supplies",670],["Smoke Grenades",671]],
	[["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
	"neutral"
];
// Weapons neutral 2
menu_TK_CIV_Takistani04_EP1 = [
	[["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns and Single-shot",641],["Sniper Rifle",640],["Submachine Guns",642],["Overwatch VIL",1002],["Overwatch TAR",1003],["Overwatch Sniper",1011],["Overwatch SCAR",1004],["Overwatch sidearm",1001],["Overwatch MAS",1007],["Overwatch HK417",1009],["Overwatch HK416",1008],["Overwatch G3",1006],["Overwatch DMR",1010],["Overwatch ACR",1005]],
	[],
	"neutral"
];
// Ammunition neutral 2
menu_Pilot_EP1 = [
	[["Assault Rifle Ammo",609],["Light Machine Gun Ammo",610],["Pistol Ammo",611],["Shotguns and Single-shot Ammo",613],["Sniper Rifle Ammo",614],["Submachine Gun Ammo",612],["Overwatch Pistol Ammo",1012],["Overwatch Gun Ammo",1013]],
	[],
	"neutral"
];
// East Wholesaler
menu_RU_Citizen4 = [
	[["Wholesale",636]],
	[],
	"neutral"
];
// General Store 3
menu_RU_WorkWoman5 = [
	[["Backpacks",496],["Clothes",497],["Cooked Meats",580],["Drinks",498],["Packaged Food",579]],
	[["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Copper Bar",101]],
	"neutral"
];
// West Wholesaler
menu_RU_Citizen1 = [
	[["Wholesale",636]],
	[],
	"neutral"
];
// Boat Vendor
menu_RU_Villager3 = [
	[["Boats Armed",673],["Boats Unarmed",672]],
	[],
	"neutral"
];
// Weapons neutral 2
menu_TK_CIV_Takistani04_EP1 = [
	[["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns and Single-shot",641],["Sniper Rifle",640],["Submachine Guns",642],["Overwatch VIL",1002],["Overwatch TAR",1003],["Overwatch Sniper",1011],["Overwatch SCAR",1004],["Overwatch sidearm",1001],["Overwatch MAS",1007],["Overwatch HK417",1009],["Overwatch HK416",1008],["Overwatch G3",1006],["Overwatch DMR",1010],["Overwatch ACR",1005]],
	[],
	"neutral"
];
// Ammunition Neutral 2
menu_Pilot_EP1 = [
	[["Assault Rifle Ammo",609],["Light Machine Gun Ammo",610],["Pistol Ammo",611],["Shotguns and Single-shot Ammo",613],["Sniper Rifle Ammo",614],["Submachine Gun Ammo",612],["Overwatch Pistol Ammo",1012],["Overwatch Gun Ammo",1013]],
	[],
	"neutral"
];
// Vehicles Neutral 2
menu_RU_Profiteer4 = [
	[["Bikes and ATV",587],["Buses and Vans",588],["Cargo Trucks",586],["Fuel Trucks",589],["Military Unarmed",598],["Trucks",590],["Used Cars",520],["Utility Vehicles",591],["Overwatch SP-Car",1015],["Overwatch S-Car",1016]],
	[],
	"neutral"
];
// Neutral Building/Parts
menu_Woodlander3 = [
	[["Building Supplies",508],["Toolbelt Items",510],["Vehicle Parts",509],["Money",700]],
	[],
	"neutral"
];
// Medical Supplies 2
menu_Dr_Hladik_EP1 = [
	[["Chem-lites/Flares",669],["Medical Supplies",670],["Smoke Grenades",671]],
	[["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
	"neutral"
];
// Medical Supplies 3
menu_Doctor = [
	[["Chem-lites/Flares",669],["Medical Supplies",670],["Smoke Grenades",671]],
	[["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
	"neutral"
];
// Boat Trader 2
menu_HouseWife1 = [
	[["Boats Armed",673],["Boats Unarmed",672]],
	[],
	"neutral"
];

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...