flow0815 Posted July 22, 2015 Report Share Posted July 22, 2015 Could it be that the sell prices are taken out of standard epoch config but the buy prices are configured to hspricing? I configured HSpricing for satchel charget to 1000 and 50% tax. When i sell one i only get 75 crypto?! Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted July 22, 2015 Report Share Posted July 22, 2015 On 7/22/2015 at 5:46 PM, flow0815 said: Could it be that the sell prices are taken out of standard epoch config but the buy prices are configured to hspricing? I configured HSpricing for satchel charget to 1000 and 50% tax. When i sell one i only get 75 crypto?! All the prices come from the HSpricing file. Maybe you were selling something of a different classname. If the price is 1000, that's what the trader will buy it from you. If they sell it, 50% will be added to the cost with a 50% tax. Link to comment Share on other sites More sharing options...
flow0815 Posted July 22, 2015 Report Share Posted July 22, 2015 Thats what i tought but satchel charges are sold with 1000 and 50% tax an when i sell one to trader 75 ^^ i'll check the classnames but i think for satchel there is only one? or maybe mission spawns another one?! i'll check that Link to comment Share on other sites More sharing options...
flow0815 Posted July 23, 2015 Report Share Posted July 23, 2015 mmh. i do not get even close to this: class SatchelCharge_Remote_Mag {price = 1000; tax = 0.5;}; is the config in the HSpricing. Also there is no other satchel in there. I belive its the only class for satchel. But still it can be sold for 75 instead 1000. Could anybody confirm having this issue also using HSPricing? My guess is still it takes the sell price for this item from cfgpricing. Just have to find that file :D Yes confirmed. Just opened the cfgpricing: class SatchelCharge_Remote_Mag {price = 75;}; Halv looks like some items ignore the hspricing Question: Can i put cfgpricing.hpp in my description ext like #include "addons/cfgpricing.hpp" put the file in folder addons and use it serverwide? will it override the file in @epoch so this are the final prices? Thanks Link to comment Share on other sites More sharing options...
Halvhjearne Posted July 23, 2015 Report Share Posted July 23, 2015 On 7/23/2015 at 6:34 AM, flow0815 said: mmh. i do not get even close to this: class SatchelCharge_Remote_Mag {price = 1000; tax = 0.5;}; is the config in the HSpricing. Also there is no other satchel in there. I belive its the only class for satchel. But still it can be sold for 75 instead 1000. Could anybody confirm having this issue also using HSPricing? My guess is still it takes the sell price for this item from cfgpricing. Just have to find that file :D sounds like you forgot to change that line with CfgPricing to HSPricing Link to comment Share on other sites More sharing options...
flow0815 Posted July 23, 2015 Report Share Posted July 23, 2015 Solution is that this line is in 2 times: _config = "HSPricing" call EPOCH_returnConfig; I only changed the first one because i did not now that this is mentioned 2 times. Check if that fixed the problem :) Link to comment Share on other sites More sharing options...
flow0815 Posted July 23, 2015 Report Share Posted July 23, 2015 Can i include the cfgpricing to description to override the one in @epoch or will i bring up a error for including it twice? Link to comment Share on other sites More sharing options...
dnk_paul Posted July 23, 2015 Report Share Posted July 23, 2015 This script uses HSPricing, not cfgPricing (once you've changed the code, if still required). What we did was take a copy of the HSPricing file and renamed it to cfgPricing.hpp and put it in the mission file root, then referenced it in the description.ext file. This then allows your admins to spawn more than they do by default, and allows the normal traders to buy the items on the cfgPricing list as well. So the answer to your question is: Yes, you can Link to comment Share on other sites More sharing options...
lowrey Posted July 23, 2015 Report Share Posted July 23, 2015 On 7/23/2015 at 7:09 AM, flow0815 said: Can i include the cfgpricing to description to override the one in @epoch or will i bring up a error for including it twice? You can use cfgpricing to override without errors. Link to comment Share on other sites More sharing options...
flow0815 Posted July 23, 2015 Report Share Posted July 23, 2015 Thanks for the answers buddies :) But as i said i use HSPricing but some items take there sell prices out of cfg. Not sure to edit the second line (about line 63) because cfgpricing is mentioned twice in halvs script. Link to comment Share on other sites More sharing options...
dnk_paul Posted July 23, 2015 Report Share Posted July 23, 2015 On 7/16/2015 at 2:14 PM, Halvhjearne said: this "shared" Halv_defines will be universal for most of what i will make from now on and is only needed once in your mission and will therefore save some space and resouces alltogether. however, if you have already have this file and add another, your server WILL fail to load, so ONLY add this file once. if you use other of my mods that has this file, it can be safely ignored and deleted from either as long as it is loaded once. Ah, maybe that's why it didn't work on my server last night. I'll try this later. Are there any specific changes/settings needed if you're using the script on Australia? I know that in one of the files there is an option where you set your map for fixed traders, but there isn't currently an australia option. Can we just make some settings up if we know the fixed trader positions? Link to comment Share on other sites More sharing options...
flow0815 Posted July 23, 2015 Report Share Posted July 23, 2015 If you need dynamic traders this should work on all map as far as i know. Also you should be able to define your static coords if you know them Link to comment Share on other sites More sharing options...
dnk_paul Posted July 23, 2015 Report Share Posted July 23, 2015 Awesome, i'll just comment out the static co-ords which are in there for Altis already then, and life will (hopefully) be happy! Link to comment Share on other sites More sharing options...
dnk_paul Posted July 23, 2015 Report Share Posted July 23, 2015 On 7/23/2015 at 8:49 AM, dnk_paul said: Ah, maybe that's why it didn't work on my server last night. I'll try this later. Just checked that there is only one of these files, and there is (in the halv_spawn folder). But, when I enable to traders, the server stops loading. I have the following at the top of my description.ext: #include "addons\halv_spawn\halv_defines.hpp" #include "addons\halv_spawn\spawndialog.hpp" And this at the bottom: #include "trader\tradedialog.hpp" #include "trader\HSPricing.hpp" #include "cfgPricing.hpp" I'll uninstall it later and try installing it all again from scratch to make sure i've not messed something up during the install Link to comment Share on other sites More sharing options...
flow0815 Posted July 23, 2015 Report Share Posted July 23, 2015 Got it. Changed both to CfgConfig, copied HSpricing to misison root, renamed it to CfgConfig und included in description. Now all is fine Link to comment Share on other sites More sharing options...
dnk_paul Posted July 23, 2015 Report Share Posted July 23, 2015 On 4/22/2015 at 5:25 PM, Suppe said: - Add to your init: [] execVM "trader\init.sqf"; [] execVM "trader\resetvehicleammo.sqf"; [] execVM "trader\HALV_takegive_crypto_init.sqf"; Halv's github version of this script doesn't have the resetvehicleammo.sqf file in it. What does that file do? Link to comment Share on other sites More sharing options...
Halvhjearne Posted July 23, 2015 Report Share Posted July 23, 2015 On 7/23/2015 at 5:58 PM, dnk_paul said: Halv's github version of this script doesn't have the resetvehicleammo.sqf file in it. What does that file do? its for removing vehicle weapons on restarts. Link to comment Share on other sites More sharing options...
READTHESCROLL Posted July 24, 2015 Report Share Posted July 24, 2015 Hey Halv, not sure if you are aware, but I remember you saying earlier in the thread that you would put in a krypto limit so the trader will only be able to give back 25000 max so players wouldnt get banned. Well now there is no limit for the amount of krypto someone can have on their person. I have mine set to 75k for now. I sold a vehicle for a high price of 75k and the BMTrader only gave me 25k back. Just thought I mention this finding. Thanks. Link to comment Share on other sites More sharing options...
Halvhjearne Posted July 24, 2015 Report Share Posted July 24, 2015 On 7/24/2015 at 8:21 PM, READTHESCROLL said: Hey Halv, not sure if you are aware, but I remember you saying earlier in the thread that you would put in a krypto limit so the trader will only be able to give back 25000 max so players wouldnt get banned. Well now there is no limit for the amount of krypto someone can have on their person. I have mine set to 75k for now. I sold a vehicle for a high price of 75k and the BMTrader only gave me 25k back. Just thought I mention this finding. Thanks. update HALV_takegive_crypto with this: https://github.com/Halvhjearne/HALV_takegive_crypto/blob/master/HALV_takegive_crypto.sqf#L8 READTHESCROLL and Ghostrider-GRG 2 Link to comment Share on other sites More sharing options...
ausHaus Posted July 24, 2015 Report Share Posted July 24, 2015 Hey halv, first, many respect to your work! what would epoch be without your scripts... my players love the HS Blackmarket. but now I have a real problem with the blackmarket. After the update it doesnt work anymore. No surprise. The script loads, the traders are on the map, but when I go to a trader and try to open the menu i get an errormessage "HS_trader_dialog not found" I replaced what I found on your github, compared many files... It seems the new working version is scattered over many posts and downloads. I dont get it to work again... same error after trying to fix it. Can you give us a new package for a clean install of the blackmarket? I'm confused about which files changed, which needs to be replaced and which files are neccessary. :( I dont know what I did wrong. I would prefer a clean install instead of collecting files and code from hundreds of posts... EDIT: excuse my english... its a reason too, why its hard to understand what to do now ;) Hopefully... EDIT2: Got it working! Missed the line #include "trader\Halv_defines.hpp" in description.ext because it was not documented on the entry post. Link to comment Share on other sites More sharing options...
Ghostrider-GRG Posted July 24, 2015 Report Share Posted July 24, 2015 Please disregard Link to comment Share on other sites More sharing options...
Suppe Posted July 25, 2015 Author Report Share Posted July 25, 2015 Update... All my Github Files are now up to date, i removed halvs github link to keep the overview.... Link to comment Share on other sites More sharing options...
Halvhjearne Posted July 25, 2015 Report Share Posted July 25, 2015 On 7/20/2015 at 8:40 AM, psychosis said: in line 666(+-) pls add : ,"Laserdesignator","Laserdesignator_02","Laserdesignator_03" in the new update... case ((_x select 0) in assignedItems player):{ if((_x select 0) in ["Binocular","Rangefinder","Laserdesignator","Laserdesignator_02","Laserdesignator_03")then{ these are laserdesignaters from diffrent factions, there is no reason to add these in epoch. On 4/22/2015 at 5:25 PM, Suppe said: #include "trader\tradedialog.hpp" #include "trader\HSPricing.hpp" #include "trader\Halv_defines.hpp" #include "trader\Halv_defines.hpp" should be the first line or it might fuck up on restarts Link to comment Share on other sites More sharing options...
Suppe Posted July 25, 2015 Author Report Share Posted July 25, 2015 ok :-) updated again :D Link to comment Share on other sites More sharing options...
Merbau Posted July 26, 2015 Report Share Posted July 26, 2015 Hi ive got a problem. Using infistar and noone of my players can use HS Trader menu, I can as an admin. Ive chnage run.sqf with allowDialogs 9999,9980. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now