Jump to content

V 0.3.0.1 Trader file layout


Metalfoundry

Recommended Posts

Dear devs and/or official hosts,

 

is it possible to show us the layout of the trader part of the new config file, so we could prepare our trader (products & prices) before the release? It will be a lot of work and I would like to finish this as soon as possible.. So we would have an easear start when you release the files.

 

Great game, i really anticipate the new version.

 

Metal

Link to comment
Share on other sites

Hi,

 

I am no DEV nor official host. However if you look at the a3_epoch_config.pbo and find the file called CfgPricing.hpp you can see the following.. From what I have read and understand of the way its loaded I believe it will be the same format.

 

and will just be a new call to overwrite the current pricing with an #include in the description.ext

 

HOWEVER it would be good to get this 100% first as you said :-)

class CfgPricing
{
	class ChainSaw {price = 125;};
	class CircuitParts {price = 50;};
	class ItemCoolerE {price = 50;};
	class JackKit {price = 25;};
	class ItemLockbox {price = 250; tax = 0.5;};
	class ItemCompass {price = 3;};
	class ItemGPS {price = 20;};

	// Radios
	class EpochRadio0 {price = 2;};
	class EpochRadio1 {price = 4;};

//More just cut it out for now
};
Link to comment
Share on other sites

The CfgPricing format has not changed, just that you can now use CfgPricing via the missionconfig. Because of this you will be able to add any items you want.

Thank yo finally i got my answer :)

 

That feature is very cool Thank you very much for this Update.Now i prepare my @mas weapons price list ;)

Link to comment
Share on other sites

The setup is essentially what' maca at ccg had prior to the 2.5 release, however he used his Emod addon to precompile any serverside/mission configs before epochs, therefore bypassing that pricingcfg. AWOL just made this method possible without using a bypass mod and are now able to use the .hpp file called directly from missiom config .ext with simple a #include. =]

huuuge thanks for allowing this on this update. Not being able to add in mas items/vehicles to the roster has been terribly annoying. Players will be stoked to finally be able to put a value on them.

Link to comment
Share on other sites

The CfgPricing format has not changed, just that you can now use CfgPricing via the missionconfig. Because of this you will be able to add any items you want.

so as long as we call it the same way as you are calling the new loot tables in the server settings config eg: #include "\epochpricing.hpp" im assuming it will work... guess ill go test it now and see!

Link to comment
Share on other sites

Make a new file in your mission file called CfgPricing.hpp

 

Copy the pricing from the client files, it looks like this

class CfgPricing
{		
	class ChainSaw
	{
		price = 125;
	};
};

etc etc 

Then you have to put this at the bottom of description.ext in your mission file

#include "CfgPricing.hpp"
Link to comment
Share on other sites

 

Make a new file in your mission file called CfgPricing.hpp

 

Copy the pricing from the client files, it looks like this

class CfgPricing
{		
	class ChainSaw
	{
		price = 125;
	};
};

etc etc 

Then you have to put this at the bottom of description.ext in your mission file

#include "CfgPricing.hpp"

I´m testing cant after change the price cant sell it

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...