Repository navigation
Buying and Selling
In the Manage dialog of one of your own production points, ingredients can be bought and products sold directly, without having to drive anything there. Nothing has to be entered in the placeable XML for this feature — it is available automatically at every production point. The only thing to enter is what should be excluded from it.
What the player can do with a good follows from its role at the production point:
- Ingredient: Buy only
- Product: Sell only
- Ingredient and product at the same time: both
Sell only appears when there actually is something in storage. When buying, the amount is additionally limited to the free storage space and to the farm's money; when selling, to the available stock.
| Action | Price per liter |
|---|---|
| Buy | Base price of the good × 2 × economy factor |
| Sell | Base price of the good × 0.9 × economy factor |
The economy factor comes from the difficulty of the savegame: easy 3, normal 1.8, hard 1. The 0.9 when selling is the same deduction that vanilla also takes for the direct selling of a production point; an admin can change this share in the Settings.
The calculation uses the fixed base price of the good. Daily prices, seasonal fluctuations and dealer surcharges play no role here — the convenient way is deliberately the more expensive purchase and the worse sale.
Bookings go to the same accounts as at the dealer: purchases under “Pallet Costs”, sales under “Sold Products”.
At some production points a raw material should really be grown or delivered instead of being conveniently bought, or a by-product should be picked up instead of sold on the spot. For this there are four attributes on the storage:
| Attribute | Location | Default | Meaning |
|---|---|---|---|
allowBuying |
<capacity> |
true |
This good may be bought |
allowSelling |
<capacity> |
true |
This good may be sold |
allowBuyingForCategories |
<storage> |
true |
Applies to all types that are in the storage only via fillTypeCategories
|
allowSellingForCategories |
<storage> |
true |
The same for selling |
It is resolved per good in this order:
- If the good has its own
<capacity>line, itsallowBuying/allowSellingapplies. - If it is in the storage only via
fillTypeCategories, the value from the<storage>element applies. - Otherwise it is allowed.
The specific beats the general: you can block a whole category and release individual types from it again via their own line — or the other way round.
Note: fillTypeCategories and fillTypes are mutually exclusive on <storage> (vanilla behavior, see Recipes and Ingredients). If a storage lists its types via fillTypes, the two …ForCategories attributes have no effect; there you block per good via a <capacity> line.
The block is not only hidden in the menu, but checked on the server during the actual purchase or sale. It therefore also applies in multiplayer.
<!-- Grain comes into the storage via a category and should not be purchasable.
Wheat has its own line and therefore stays purchasable, barley is blocked individually,
straw is produced as a by-product and should only be picked up, not sold -->
<storage capacity="60000" fillTypeCategories="REVAMP_GRAIN" allowBuyingForCategories="false">
<capacity fillType="WHEAT" capacity="126000"/>
<capacity fillType="BARLEY" capacity="144000" allowBuying="false"/>
<capacity fillType="FLOUR" capacity="60000"/>
<capacity fillType="STRAW" capacity="60000" allowSelling="false"/>
</storage>
For the player, the corresponding button is simply missing on a blocked good, and the associated key does nothing. This is not a malfunction, but a setting of the production point.
Independently of the XML, an admin sets in the savegame who may buy and sell at a production point: every member of the farm, only farm managers, or whoever has the “Manage Production Points” permission. If a player lacks the permission, the buttons are not there at all. Both together — buying and selling — can also be switched off completely, see Settings.
- The mechanics have been taken over unchanged from there, prices and limits are the same. Anyone who has the Production Supply Trader installed alongside Revamp no longer needs it — Revamp switches it off by itself when loading.
- Buying and selling now happens from the shared Manage dialog instead of from a separate dialog.
- In the FS22 Revamp,
allowBuyingsat on the individual ingredient of a recipe line (<input>), here it sits on the storage. This fits the matter better: what is bought and sold is a stock in storage, not an ingredient of a particular recipe line — a good that appears in several lines would otherwise have several contradictory settings.