Jump to content

epoch config trader


Christmas

Recommended Posts

Im trying to add things to my epoch config files and when i do it leaves me on a wait for host screen. Ive changed the prices of existing items and that works fine but when i want to add something like the camo offroad its wait for host. Is there anything i need to change to be able to add items? 

Link to comment
Share on other sites

3 hours ago, Christmas said:

Im trying to add things to my epoch config files and when i do it leaves me on a wait for host screen. Ive changed the prices of existing items and that works fine but when i want to add something like the camo offroad its wait for host. Is there anything i need to change to be able to add items? 

if you can post an example file that is causing it we can help diagnose it, I'm guessing you have a syntax error.

Link to comment
Share on other sites

8 hours ago, Christmas said:

Im trying to add things to my epoch config files and when i do it leaves me on a wait for host screen. Ive changed the prices of existing items and that works fine but when i want to add something like the camo offroad its wait for host. Is there anything i need to change to be able to add items? 

if u gonna add vehicles that not exist as default on epoch you need add them in :

\@DayZ_Epoch_Server\addons\dayz_server\system\dynamic_vehicle.sqf

also you need to be sure your using a vehicle class (trade_any_vehicle) on a hpp file:

example:

class Category_4000 {
	class LandRover_MG_TK_EP1_DZE {
		type = "trade_any_vehicle";
		buy[] = {6,"ItemGoldBar10oz"};
		sell[] = {3,"ItemGoldBar10oz"};
	};
};

but all of this not cause a stuck on loading screen.. so as salival said... can you paste the files that youre changing =?

Link to comment
Share on other sites

class Category_491 {
    class LandRover_CZ_EP1 {
        type = "trade_any_vehicle";
        buy[] = {2,"ItemGoldBar10oz"};
        sell[] = {1,"ItemGoldBar10oz"};
    };
    class LandRover_TK_CIV_EP1 {
        type = "trade_any_vehicle";
        buy[] = {2,"ItemGoldBar10oz"};
        sell[] = {1,"ItemGoldBar10oz"};
    };
    class HMMWV_M1035_DES_EP1 {
        type = "trade_any_vehicle";
        buy[] = {4,"ItemGoldBar10oz"};
        sell[] = {2,"ItemGoldBar10oz"};
    };
    class HMMWV_Ambulance {
        type = "trade_any_vehicle";
        buy[] = {4,"ItemGoldBar10oz"};
        sell[] = {2,"ItemGoldBar10oz"};
    };
    class HMMWV_Ambulance_CZ_DES_EP1 {
        type = "trade_any_vehicle";
        buy[] = {4,"ItemGoldBar10oz"};
        sell[] = {2,"ItemGoldBar10oz"};
    };
    class HMMWV_DES_EP1 {
        type = "trade_any_vehicle";
        buy[] = {4,"ItemGoldBar10oz"};
        sell[] = {2,"ItemGoldBar10oz"};
    };
    class HMMWV_DZ {
        type = "trade_any_vehicle";
        buy[] = {4,"ItemGoldBar10oz"};
        sell[] = {2,"ItemGoldBar10oz"};
    };
    class GAZ_Vodnik_MedEvac {
        type = "trade_any_vehicle";
        buy[] = {1,"ItemBriefcase100oz"};
        sell[] = {5,"ItemGoldBar10oz"};
    };
    class BAF_Offroad_W {
        type = "trade_any_vehicle";
        buy[] = {2,"ItemGoldBar10oz"};
        sell[] = {1,"ItemGoldBar10oz"};
};

class Category_599 {
    duplicate = 491;
};
 

 

 

 

Thats all i added thats not normally in the game. I added the m107,as50 and anzio that way and they work correctly. its just this file.

Link to comment
Share on other sites

28 minutes ago, Christmas said:

heres the error message


ErrorMessage: File mpmissions\DayZ_Epoch_11.Chernarus\description.ext, line 36: /CfgTraderCategory/: Missing '}'

but its there all ive done is swap the folder for a edited one with the same name

you need 2 close brackets since it's the end of Category_491. use some kind of SQF syntax highlighter it makes this kind of thing much easier to prevent. I use NotePad++ and  http://www.armaholic.com/page.php?id=8680

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
  • Advertisement
  • Discord

×
×
  • Create New...