Skip to content

[Server Hosting] Setting up Custom Market Currencies

Steve edited this page Jul 24, 2021 · 13 revisions

If you plan in using a different currency then the Nuggest and Bars we provide by default with the Expansion Core mod then you need to do some slight adjustments on the Exchange Market settings as also on the Trader settings files to get them working as indended:

To define the worth values for you currency you need to define them for each currency item that you plan to use in the Market Exchange category located in your servers profile directory (YOURS_SERVER_PROFILE_DIRECTORY/ExpansionMod/Market/Exchange.JSON):

{
    "m_Version": 4,
    "DisplayName": "#STR_EXPANSION_MARKET_CATEGORY_EXCHANGE",
    "Items": [
        {
            "ClassName": "expansiongoldbar",
            "MaxPriceThreshold": 10000,
            "MinPriceThreshold": 10000,
            "MaxStockThreshold": 1,
            "MinStockThreshold": 1,
            "PurchaseType": 0,
            "SpawnAttachments": [],
            "Variants": []
        },
        {
            "ClassName": "expansiongoldnugget",
            "MaxPriceThreshold": 100,
            "MinPriceThreshold": 100,
            "MaxStockThreshold": 1,
            "MinStockThreshold": 1,
            "PurchaseType": 0,
            "SpawnAttachments": [],
            "Variants": []
        },
        {
            "ClassName": "expansionsilverbar",
            "MaxPriceThreshold": 10,
            "MinPriceThreshold": 10,
            "MaxStockThreshold": 1,
            "MinStockThreshold": 1,
            "PurchaseType": 0,
            "SpawnAttachments": [],
            "Variants": []
        },
        {
            "ClassName": "expansionsilvernugget",
            "MaxPriceThreshold": 1,
            "MinPriceThreshold": 1,
            "MaxStockThreshold": 1,
            "MinStockThreshold": 1,
            "PurchaseType": 0,
            "SpawnAttachments": [],
            "Variants": []
        }
    ]
}
  • ClassName

The class name of the currency item you want to add. Does not need to be typed in lowercase like in the example above but will be converted to lowercase once this file has been loaded by the server.

  • MaxPriceThreshold and MinPriceThreshold

Defines the worth of the item. MaxPriceThreshold and MinPriceThreshold always need to have the same values like in the example above but you can use and define as many currency as you want here. There is no limit.

  • MaxStockThreshold and MinStockThreshold

Need to be 1 or the item will not be recogniced as a static market item that can be used as a currency!

  • PurchaseType

Need to be 0 for currency items!

Leave the other parameters empty like in the example above as we dont need them for currency.

Clone this wiki locally