Jump to content
  • 0

Single currency and advanced traders - not able to buy but can sell


Dayzguy

Question

Hi all,

 

really happy to see such an abundance of information for scripting Day Epoch.

Just got into playing DayZ Epoch a few weeks ago and now had to rent my own server :-)

I´m running Epoch 1.0.5.1 and have so far managed to get tow and lift, money storage, WAI, admin menu, fun menu, (advance trading), (single currency) and a debug monitor showing blood, weapon, fps etc. working.

Well, sort of working.

The problem I´m facing right now with Zupa´s advance trading 2.1 and Zupa´s  single currency is this:

If I want to buy a weapon from the same trader, I can choose it and when I hit "buy", I get a message saying it cost xxxx coins, even though I have enough coins. I don´t get the weapon.

With the black market trader in Stary I don´t even get a trader menu. Not the advanced one nor the normal one.

Basically, all the item/vehicle/weapon/ammo lists are messed up somehow and I can´t buy or sell stuff except my trusty old makarov. I even get the money when I sell it, hey!

 

I have searched the forum for "item list", "price list" "setup+standard+trader+single+currency" , "setup trader", "price list setup" and that kinda stuff but could`t find anything that would help me.

I don`t understand where all the bits and pieces are that make this work correctly.

 

Any help is appreciated.

Cheers

 

Link to comment
Share on other sites

24 answers to this question

Recommended Posts

  • 0
1 hour ago, Dayzguy said:

Hi all,

 

really happy to see such an abundance of information for scripting Day Epoch.

Just got into playing DayZ Epoch a few weeks ago and now had to rent my own server :-)

I´m running Epoch 1.0.5.1 and have so far managed to get tow and lift, money storage, WAI, admin menu, fun menu, (advance trading), (single currency) and a debug monitor showing blood, weapon, fps etc. working.

Well, sort of working.

The problem I´m facing right now with Zupa´s advance trading 2.1 and Zupa´s  single currency is this:

If I want to buy a weapon from the same trader, I can choose it and when I hit "buy", I get a message saying it cost xxxx coins, even though I have enough coins. I don´t get the weapon.

With the black market trader in Stary I don´t even get a trader menu. Not the advanced one nor the normal one.

Basically, all the item/vehicle/weapon/ammo lists are messed up somehow and I can´t buy or sell stuff except my trusty old makarov. I even get the money when I sell it, hey!

 

I have searched the forum for "item list", "price list" "setup+standard+trader+single+currency" , "setup trader", "price list setup" and that kinda stuff but could`t find anything that would help me.

I don`t understand where all the bits and pieces are that make this work correctly.

 

Any help is appreciated.

Cheers

 

*first you can try open your server_monitor.sqf and change all words called "intentory" by "inventory"..

*Also in MPMissions\DayZ_Epoch_11.Chernarus\zupa\advancedTrading\config.sqf

check this lines:

Z_AT_FolderLocation = 'zupa\advancedTrading';
Z_VehicleDistance = 30; // Distance that a vehicle needs to be to see it's content or to sell it.
Z_SingleCurrency = true; // Does your server use a single currency system.
Z_AllowTakingMoneyFromBackpack = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your backpack.
Z_AllowTakingMoneyFromVehicle = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your vehicle.
Z_MoneyVariable = "cashMoney"; // If using a Single currency system, change this to whatever currency you are using.

 

 

Link to comment
Share on other sites

  • 0

Hi Juandayz,

 

thanks for your quick response. I have replaced all "intentories" and checked the switches for using single currency in the config.sqf.

Still I`m getting really weird behaviour. At the moment I`m not even getting the advanced trader menu anymore :-(

I might pull a fresh copy of advance trade and single currency and start from scratch. 

Do you have any recommendations on what package works well with Chernarus Epoch 1.0.5.1?

 

Thanks again! 

Link to comment
Share on other sites

  • 0
6 hours ago, Dayzguy said:

Hi Juandayz,

 

thanks for your quick response. I have replaced all "intentories" and checked the switches for using single currency in the config.sqf.

Still I`m getting really weird behaviour. At the moment I`m not even getting the advanced trader menu anymore :-(

I might pull a fresh copy of advance trade and single currency and start from scratch. 

Do you have any recommendations on what package works well with Chernarus Epoch 1.0.5.1?

 

Thanks again! 

take a look on this

 

Link to comment
Share on other sites

  • 0

Hi Juandayz,

 

I now have the advance trading menue show up, but it is empty, No itemas at all.

When I go to the normal trader menue I see all items including the Overwatch items at the gun trader in the tent in Stary and the vehicle trader.

The black market trader seems to be normal.

The advanced trading menu doesn't show any items at all. 

 

As I want to use ZUPAs single currency and  storage I changed all code to reflect that. 

I see the coin symbol and "0 Coins".

From the normal trading menu I can buz all items even though I have no coins!?

When I sell items through the normal trading menu I don`t get any coins for them.

Also I can only buy and sell items from normal traders menu.

this works without needing any coins and I don't get any coins when I sell.

 

Any help is appreciated.


Thanks!

 

The server log shows thiis:

 

Strange convex component81 in zero_buildings\models\housev_3i3_i.p3d:geometryFire
Strange convex component288 in warehouse\models\warehouse.p3d:geometry
Strange convex component289 in warehouse\models\warehouse.p3d:geometry
Strange convex component290 in warehouse\models\warehouse.p3d:geometry
Strange convex component291 in warehouse\models\warehouse.p3d:geometry
Strange convex component292 in warehouse\models\warehouse.p3d:geometry
Strange convex component293 in warehouse\models\warehouse.p3d:geometry
Strange convex component294 in warehouse\models\warehouse.p3d:geometry
Strange convex component295 in warehouse\models\warehouse.p3d:geometry
Strange convex component296 in warehouse\models\warehouse.p3d:geometry
Strange convex component297 in warehouse\models\warehouse.p3d:geometry
Strange convex component298 in warehouse\models\warehouse.p3d:geometry
Strange convex component299 in warehouse\models\warehouse.p3d:geometry
Strange convex component300 in warehouse\models\warehouse.p3d:geometry
Strange convex component301 in warehouse\models\warehouse.p3d:geometry
Strange convex component302 in warehouse\models\warehouse.p3d:geometry
Strange convex component303 in warehouse\models\warehouse.p3d:geometry
Strange convex component304 in warehouse\models\warehouse.p3d:geometry
Strange convex component305 in warehouse\models\warehouse.p3d:geometry
Strange convex component306 in warehouse\models\warehouse.p3d:geometry
Strange convex component307 in warehouse\models\warehouse.p3d:geometry
Strange convex component308 in warehouse\models\warehouse.p3d:geometry
Strange convex component309 in warehouse\models\warehouse.p3d:geometry
Strange convex component310 in warehouse\models\warehouse.p3d:geometry
Strange convex component311 in warehouse\models\warehouse.p3d:geometry
Strange convex component312 in warehouse\models\warehouse.p3d:geometry
Strange convex component313 in warehouse\models\warehouse.p3d:geometry
Strange convex component314 in warehouse\models\warehouse.p3d:geometry
Strange convex component315 in warehouse\models\warehouse.p3d:geometry
Strange convex component316 in warehouse\models\warehouse.p3d:geometry
Strange convex component317 in warehouse\models\warehouse.p3d:geometry
Strange convex component252 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component253 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component254 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component255 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component256 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component257 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component258 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component259 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component260 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component261 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component262 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component263 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component264 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component265 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component266 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component267 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component268 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component269 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component270 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component271 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component272 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component273 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component274 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component275 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component276 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component277 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component278 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component279 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component280 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component281 in warehouse\models\warehouse.p3d:geometryFire
Strange convex component249 in warehouse\models\warehouse.p3d:geometryView
Strange convex component250 in warehouse\models\warehouse.p3d:geometryView
Strange convex component251 in warehouse\models\warehouse.p3d:geometryView
Strange convex component252 in warehouse\models\warehouse.p3d:geometryView
Strange convex component253 in warehouse\models\warehouse.p3d:geometryView
Strange convex component254 in warehouse\models\warehouse.p3d:geometryView
Strange convex component255 in warehouse\models\warehouse.p3d:geometryView
Strange convex component256 in warehouse\models\warehouse.p3d:geometryView
Strange convex component257 in warehouse\models\warehouse.p3d:geometryView
Strange convex component258 in warehouse\models\warehouse.p3d:geometryView
Strange convex component259 in warehouse\models\warehouse.p3d:geometryView
Strange convex component260 in warehouse\models\warehouse.p3d:geometryView
Strange convex component261 in warehouse\models\warehouse.p3d:geometryView
Strange convex component262 in warehouse\models\warehouse.p3d:geometryView
Strange convex component263 in warehouse\models\warehouse.p3d:geometryView
Strange convex component264 in warehouse\models\warehouse.p3d:geometryView
Strange convex component265 in warehouse\models\warehouse.p3d:geometryView
Strange convex component266 in warehouse\models\warehouse.p3d:geometryView
Strange convex component267 in warehouse\models\warehouse.p3d:geometryView
Strange convex component268 in warehouse\models\warehouse.p3d:geometryView
Strange convex component269 in warehouse\models\warehouse.p3d:geometryView
Strange convex component270 in warehouse\models\warehouse.p3d:geometryView
Strange convex component271 in warehouse\models\warehouse.p3d:geometryView
Strange convex component272 in warehouse\models\warehouse.p3d:geometryView
Strange convex component273 in warehouse\models\warehouse.p3d:geometryView
Strange convex component274 in warehouse\models\warehouse.p3d:geometryView
Strange convex component275 in warehouse\models\warehouse.p3d:geometryView
Strange convex component276 in warehouse\models\warehouse.p3d:geometryView
Strange convex component277 in warehouse\models\warehouse.p3d:geometryView
Strange convex component278 in warehouse\models\warehouse.p3d:geometryView
"DayZ Epoch: PRELOAD Functions\init [[<No group>:0 (FunctionsManager)],any]"
"DayZ Epoch: MPframework inited"
Strange convex component93 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component94 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component95 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component96 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component99 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component100 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component101 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component102 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component103 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component104 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component105 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component106 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component107 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component108 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component109 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component110 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component111 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component112 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component113 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component114 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component115 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component116 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component117 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component118 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component119 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component120 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component121 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component122 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component123 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component124 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component125 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component126 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component127 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component128 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component129 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component130 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component131 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component132 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component133 in zero_buildings\models\mil_house_i.p3d:geometryView
Strange convex component134 in zero_buildings\models\mil_house_i.p3d:geometryView
"Admin Tools: config.sqf loaded"
"Admin Tools: variables.sqf loaded"
"Res3tting B!S effects..."
"HIVE: Starting"
"HIVE: trying to get objects"
"\z\addons\dayz_code\system\REsec.sqf:Monitoring Remote Exe..."
Warning: z\addons\dayz_communityassets\models\compass.p3d:0 Error while trying to generate ST for points: 863, 853, 852
"HIVE: found 389 objects"
"HIVE: Commence Object Streaming..."
Error in expression <83,1.526e-04]],[[[],[]],[[],[]],[[],[]],any],[],0.997,0.0]>
  Error position: <any],[],0.997,0.0]>
  Error Undefined variable in expression: any
"HIVE: got 61 Epoch Objects and 328 Vehicles"
AH6X_DZ: FLIR_turret - unknown animation source FLIR_turret
AH6X_DZ: FLIR_gun - unknown animation source FLIR_gun
UH1Y_DZE: ObsTurret - unknown animation source ObsTurret
UH1Y_DZE: ObsGun - unknown animation source ObsGun
Cannot create non-ai vehicle 350z_city,
"HIVE: Vehicle Spawn limit reached!"
"HIVE: Spawning # of Debris: 500"
"HIVE: Spawning # of Ammo Boxes: 3"
"HIVE: Spawning # of Veins: 50"
"Total Number of spawn locations 5"
"EPOCH EVENTS INIT"
"DEBUG: Too many at [6796.47,2670.36]"
"DEBUG VEIN: Too many objects at [6763.5,13463.9]"
"DEBUG VEIN: Too many objects at [5160.8,9132.99]"
"DEBUG VEIN: Too many objects at [5157.95,9128.66]"
Server: Object 3:6 not found (message 94)
"TIME SYNC: Local Time set to [2013,8,3,12,43]"
Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\stp\non\non\amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon_end.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon_end
Server: Object 3:12 not found (message 98)
Server: Object 3:13 not found (message 91)
Server: Object 3:15 not found (message 91)
Server: Object 3:14 not found (message 99)
Server: Object 3:17 not found (message 91)
Server: Object 3:16 not found (message 99)
Server: Object 3:19 not found (message 70)
Server: Object 3:18 not found (message 70)
Server: Object 3:20 not found (message 70)
Server: Object 3:21 not found (message 94)
Server: Object 3:25 not found (message 91)
Server: Object 3:24 not found (message 99)
Server: Object 3:22 not found (message 70)
Server: Object 3:23 not found (message 70)
Server: Object 3:27 not found (message 91)
Server: Object 3:26 not found (message 98)
Server: Object 3:28 not found (message 94)
Server: Object 3:29 not found (message 94)
Server: Object 3:33 not found (message 70)
Server: Object 3:35 not found (message 70)
Server: Object 3:32 not found (message 94)
Server: Object 3:34 not found (message 70)
Server: Object 3:30 not found (message 94)
Server: Object 3:31 not found (message 70)
Server: Object 3:37 not found (message 98)
Server: Object 3:36 not found (message 94)
Server: Object 3:38 not found (message 91)
Server: Object 3:39 not found (message 99)
Server: Object 3:40 not found (message 91)
Server: Object 3:41 not found (message 70)
Server: Object 3:42 not found (message 94)
Server: Object 3:44 not found (message 91)
Server: Object 3:43 not found (message 98)
Server: Object 3:45 not found (message 98)
Server: Object 3:46 not found (message 91)
Server: Object 3:48 not found (message 94)
Server: Object 3:47 not found (message 70)
Server: Object 3:49 not found (message 99)
Server: Object 3:50 not found (message 91)
Server: Object 3:52 not found (message 94)
Server: Object 3:51 not found (message 94)
Server: Object 3:54 not found (message 94)
Server: Object 3:53 not found (message 94)
Server: Object 3:55 not found (message 98)
Server: Object 3:56 not found (message 91)
Warning: z\addons\dayz_communityassets\models\razor.p3d:0 Error while trying to generate ST for points: 214, 349, 208
Warning Message: Script z\addons\dayz_server\WAI\customsettings.sqf not found
"WAI: AI Config File Loaded"
"WAI: AI Monitor Started"
"WAI: Initialising missions"
"EPOCH SERVERTRADE: Player: G3NO (76561197967969428) bought a G36C in/at trader city Stary for 60000x Coins"
"EPOCH SERVERTRADE: Player: G3NO (76561197967969428) sold a G36C in/at trader city Stary for 20000x Coins"
"WAI: [Mission:[Hero] Mayors Mansion]: Starting... [5238.83,8810.14,0]"
"WAI: Spawned a group of 4 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned a group of 4 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned a group of 4 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned a group of 4 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned a group of 1 AI (Bandit) at [5238.83,8810.14,0]"
"WAI: Spawned in 2 M2StaticMG"

Link to comment
Share on other sites

  • 0

 @Dayzguy

mmm seem like a ZSC issue not advanced trade.

but also you can try it: open config.sqf located in:

\MPMissions\DayZ_Epoch_11.Chernarus\zupa\advancedTrading\

check this line:

Z_MoneyVariable = "Coins"; // If using a Single currency system, change this to whatever currency you are using.

***Anyway this issue is about adv trade:

..."The advanced trading menu doesn't show any items at all."...

open your description.ext-- at very top you must have this line:

#include "ZSC\config\cfgServerTrader.hpp"

***This other issue is abour ZSC mod:

..."From the normal trading menu I can buz all items even though I have no coins!?

When I sell items through the normal trading menu I don`t get any coins for them."...

Link to comment
Share on other sites

  • 0

Thanks again for coming back to me, really appreciate it.

Unfortunately I have both your suggestions in my code.

Single Currency is set to true and i have changed the currency name to "coins" so it matches my setup.

The #include "ZSC\config\cfgServerTrader.hpp"  is also included in my description.ext.

 

Can you tell me which files are needed in order to get advanced tradeing working? I have the feeling something is missing of linking to the wrong files somehow.


Thanks again! 

Link to comment
Share on other sites

  • 0
2 hours ago, Dayzguy said:

Thanks again for coming back to me, really appreciate it.

Unfortunately I have both your suggestions in my code.

Single Currency is set to true and i have changed the currency name to "coins" so it matches my setup.

The #include "ZSC\config\cfgServerTrader.hpp"  is also included in my description.ext.

 

Can you tell me which files are needed in order to get advanced tradeing working? I have the feeling something is missing of linking to the wrong files somehow.


Thanks again! 

what mods do you have installed?

if u have only a few... then maybe u can start a fresh server.

So first install Coins (only paste and overwrite the server files)

https://github.com/EpochSC/SingleCurrencyStorage

Then: Open your dayz_Server.pbo... open your server_monitor.sqf and change all words called "intentory" by "inventory"... save and repack your pbo.

At second install advanced trading 2.1:

follow my guide:

 

 

Link to comment
Share on other sites

  • 0

Hi Juandayz,

that might be the best idea. I'm running a fresh Arma 2 Dayz 1.0.5.1 Server and have been trying to modify it from scratch anyway. I had WAI, Lift& Tow, self blood bag, admin menu, fun menu and weather running fine. All that wasn't too hard, but the advanced trading and single currency really messed everything up.

Your reply has helped in another way as it sounds like I have to copy the entire package (Zupa single currency) over to my server. From the manual I understood you should only copy the ZSC folder across and modify a few existing files. That sort of didn't make sense to me but I still stuck to it anyway.

Tomorrow I will try and copy the whole package over to my server.

This could be a real noob error ;-)

 

Thanks again!

Link to comment
Share on other sites

  • 0
1 hour ago, Dayzguy said:

Hi Juandayz,

that might be the best idea. I'm running a fresh Arma 2 Dayz 1.0.5.1 Server and have been trying to modify it from scratch anyway. I had WAI, Lift& Tow, self blood bag, admin menu, fun menu and weather running fine. All that wasn't too hard, but the advanced trading and single currency really messed everything up.

Your reply has helped in another way as it sounds like I have to copy the entire package (Zupa single currency) over to my server. From the manual I understood you should only copy the ZSC folder across and modify a few existing files. That sort of didn't make sense to me but I still stuck to it anyway.

Tomorrow I will try and copy the whole package over to my server.

This could be a real noob error ;-)

 

Thanks again!

yup when you start a new server.. at first you have to think...

what mod i gonna install first?

thers 2 answers: Single Currency or Plot 4 life.   (this two have the option to only copy and paste his files on a fresh server).

So the better idea in your case is start a new server, overwrite with Single Currency files, and install advanced trading mod.

The rests of the mods: WAI, Lift& Tow, self blood bag, admin menu.. are easy to install... so try using this order:

COINS

ADVANCED TRADING

(change all words "intentory" by "inventory" in server_monitor.sqf

(make a test)

Admin Menu

SelfBloodbag

Lift&Tow

(Test)

WAI

(test)

Link to comment
Share on other sites

  • 0

Hi again,

 

I have setup a new server and followed your recommendations in regards to the sequence.

It sort of works now but there are a few little issues.

 

ZUPA's single currency script is based on his Overpoch server. I'm only running an Epoch server. I had to customize the Overpoch items so they don't show up.

That worked fine.


What is happening now is that the utility trader in Stary doesn't show anything for the category "money". Also I can't buy anything through the advanced trading menue (normal weapons from the guy in the tent in Stary). I can see all the weapons and add them, the buy/sell price is displayed correctly, I have enough coins, but it tells me "you need xxxx coins to buy this item".

 

It's weird. Any thoughts?


Thanks!

Link to comment
Share on other sites

  • 0
6 hours ago, Dayzguy said:

Hi again,

 

I have setup a new server and followed your recommendations in regards to the sequence.

It sort of works now but there are a few little issues.

 

ZUPA's single currency script is based on his Overpoch server. I'm only running an Epoch server. I had to customize the Overpoch items so they don't show up.

That worked fine.


What is happening now is that the utility trader in Stary doesn't show anything for the category "money". Also I can't buy anything through the advanced trading menue (normal weapons from the guy in the tent in Stary). I can see all the weapons and add them, the buy/sell price is displayed correctly, I have enough coins, but it tells me "you need xxxx coins to buy this item".

 

It's weird. Any thoughts?


Thanks!

hey, you already config:

( \MPMissions\DayZ_Epoch_11.Chernarus\zupa\advancedTrading\ config.sqf )

Z_AT_FolderLocation = 'zupa\advancedTrading';
Z_VehicleDistance = 30; // Distance that a vehicle needs to be to see it's content or to sell it.
Z_SingleCurrency = true; // Does your server use a single currency system.
Z_AllowTakingMoneyFromBackpack = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your backpack.
Z_AllowTakingMoneyFromVehicle = true; // When buying items with DEFAULT CURRENCY to any inventory. Do you allow the trader to take money from your vehicle.
Z_MoneyVariable = "cashMoney"; // If using a Single currency system, change this to whatever currency you are using.

Link to comment
Share on other sites

  • 0

Thanks again.

 

I have now changed to hosting an Overpoch server as I like thr idea of having more choice.

Also it should work better with Zupa's single currency and advanced trading.

Single currency works fin now but unfortunately the traders in Stary (I only ever test with those to start with) don't all have the advance trading menu activated for some reason.

Can you tell me where to add the trigger so the advanced trading menu opens foe a trader of my choice?

Also I saw that the traders now have many iteam double, not all but quite a few.

Will I have to edit the DB to clean this up?


Thanks again!


Regards

Link to comment
Share on other sites

  • 0

@Dayzguy  the call for adv trade is located in fn_Selfaction.sqf

_buyV = player addAction ["<t color='#0059FF'>Advanced Trading</t>", "zupa\advancedTrading\init.sqf",(_traderMenu select 0), 999, true, false, "",""];
s_player_parts set [count s_player_parts,_buyV];

 

if u already had a custom fn_selfaction.sqf check this line for ZSC config....

 // if TRUE: Overwrites yours fn_selfactions.sqf with default 1 + edits. | IF False: Change content yourself @ step D
ZSC_Overwrite_SelfActions = false;

i use my own selfaction..so i have it in false.. but you will need copy and paste this ZSC lines to yoour own fn_Selfaction.sqf

if(_typeOfCursorTarget in ZSC_MoneyStorage && (player distance _cursorTarget < 5)) then {
		if (s_bank_dialog < 0) then {
				s_bank_dialog = player addAction ["Money Storage", "ZSC\actions\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];	
		};
	} else {
     	player removeAction s_bank_dialog;
		s_bank_dialog = -1;
	};

also. sometimes is better call the fn_Selfactions.sqf from init.sqf and remove from compiles.sqf

so first you will need a custom compiles.sqf

into this new compiles.sqf find the fn_selfactions.sqf call  and remove it.

then go to your init.sqf

and place lines in blue: (change if u dont use the same paths)

Spoiler

//Load in compiled functions
call compile preprocessFileLineNumbers "custom\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "custom\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 "custom\compiles.sqf";    //Compile regular functions
/*ZSC*/    
call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf";
/*ZSC*/            
call compile preprocessFileLineNumbers "addons\bike\init.sqf";
call compile preprocessFileLineNumbers "overwrites\click_actions\init.sqf"; //right click actions
call compile preprocessFileLineNumbers "custom\safezone\lock_god.sqf";//lock_god mode vehicles
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders_cherno_11.sqf";                //Compile trader configs
call compile preprocessFileLineNumbers "admintools\config.sqf"; // Epoch admin Tools config file
call compile preprocessFileLineNumbers "admintools\variables.sqf"; // Epoch admin Tools variables
call compile preprocessFileLineNumbers "logistic\init.sqf";// TOW Y LIFT
progressLoadingScreen 1.0;

fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";

if u cannot make it work.. send me a mp and i can join through team viewer to your pc and try to fix your issue... or just upload your mpmissions folder.

Link to comment
Share on other sites

  • 0

Cool, thanks.

I have renamed it to compiles.bak in dayz_server.pbo and made the changes to the init.sqf in my missions folder.

I also added your custom folder to my missions folder.

Then I commented the line about fn_selfactions out in my dayz_server.bpo

It's not working, I don`t know what the problem is.

When I try to connect mto my server it gets stuck on the loading screen after the lobby :-(

If you could take a look I would very much appreciate it :-)

https://www.dropbox.com/s/imus73efj8suxtm/dayz_server.zip?dl=0

 

Thanks!!

Link to comment
Share on other sites

  • 0

ok  @Dayzguy  this files contain only adv trade and coins.... ( take a look on custom folder. into Instance_11 folder... inside thers a  custom compiles.sqf i forgot remove the fn_selfactions call

//fnc_usec_selfActions =            compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf";   

please do it.

also.. i merge the fn_selfaction from ZSC with the original from epoch and the code for ADV TRADE

http://www.mediafire.com/file/1rqplphay6b1b9y/serverZSCADV.rar

 

Step by Step:

1-Download single currecy 3.0

https://github.com/EpochSC/SingleCurrencyStorage

2-Overwrite my Mpmission folder and my dayz_server folder.

3-change all "intentory" by "inventory" in server_monitor.sqf   and repack my dayz_server.pbo

*Copy to MPMISSIONS\instance\custom\   the fn_Selfactions.sqf and compiles.sqf from dayz_server.pbo

4-Download adv trade 2.1

5-copy zupa folder to my instance

6-open my \MPMissions\DayZ_Epoch_11.Chernarus\zupa\advancedTrading\ config.sqf

change this line: Z_SingleCurrency = true;

7-open my description.ext  at bottom:

#include "zupa\advancedTrading\advancedTrading.hpp"

8-Open \MPMissions\DayZ_Epoch_11.Chernarus\ZSC\compiles\fn_selfaction.sqf

9-copy all content of this fn_selfactions.sqf and overwrite the one into custom folder.

10-Add the lines for adv trade in this new custom selfactions.

_buyV = player addAction ["<t color='#0059FF'>Advanced Trading</t>", "zupa\advancedTrading\init.sqf",(_traderMenu select 0), 999, true, false, "",""];
s_player_parts set [count s_player_parts,_buyV];

11-open \MPMissions\DayZ_Epoch_11.Chernarus\ZSC\gold\ZSCconfig.sqf

set this line:

 // if TRUE: Overwrites yours fn_selfactions.sqf with default 1 + edits. | IF False: Change content yourself @ step D
ZSC_Overwrite_SelfActions = false;

12-Open init.sqf  add the calls for custom compiles and custom fn_selfactions.sqf

//Load in compiled functions
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 "custom\compiles.sqf";    //Compile regular functions
/*ZSC*/    
call compile preprocessFileLineNumbers "ZSC\gold\ZSCinit.sqf";
/*ZSC*/            
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders_cherno_11.sqf";                //Compile trader configs
progressLoadingScreen 1.0;
fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf";

13-Open custom compiles and remove the calll for fn_selfactions  ( the thing i forgot)

//fnc_usec_selfActions =            compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_selfActions.sqf";   

Link to comment
Share on other sites

  • 0

looking through your files....

Errors:  in init.sqf

this  line:

call compile preprocessFileLineNumbers "\custom\compiles.sqf";    //Compile regular functions

the red bar its bad.. the line must be:

call compile preprocessFileLineNumbers "custom\compiles.sqf";    //Compile regular functions

for the rest seem to be fine.

Link to comment
Share on other sites

  • 0

Thanks man, server is working again.

 

Advanced trading only works on a few traders, not all :-(

Also, even though I have lots of coins I can't buy anything. It says that I need xxxcoins to purchase whatever I'm trying to buy?!

So it thinks I have no money????


I'm puzzled

 

Link to comment
Share on other sites

  • 0
2 hours ago, Dayzguy said:

Thanks man, server is working again.

 

Advanced trading only works on a few traders, not all :-(

Also, even though I have lots of coins I can't buy anything. It says that I need xxxcoins to purchase whatever I'm trying to buy?!

So it thinks I have no money????


I'm puzzled

 

well as a last try... take a look into ZSC.rar thers a convert.sqf ... run it as a query with heidy sql or navicat..

and you already try with the server files that i upload for you? http://www.mediafire.com/file/1rqplphay6b1b9y/serverZSCADV.rar

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...