Community Forum

TipTriggers object

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created28.08.2019 11:53

Bio Medical Extetion (Unknown) 28.08.2019 11:53

I need to get all tipTriggers Prices, but I cant found the TipTriggers object in FS19 ...

where can I find all marketplace prices?

thx for help.

Bilbo Beutlin (BBeutlin) 28.08.2019 17:59
TipTriggers were replaced by general 'UnloadTrigger'.

The individual prices are component of the selling points (unloading stations).
-- local price = station.fillTypePrices[fillType]

To browse through the unloading stations use
-- for _,station in pairs(g_currentMission.storageSystem.unloadingStations) do
To check for selling point use
-- if station.isSellingPoint ~= nil and station.isSellingPoint == true then
To check for valid unload use
-- if station:getIsFillAllowedFromFarm(g_currentMission.player.farmId) then

Bio Medical Extetion (Unknown) 28.08.2019 18:36
thank you Bilbo,

But how can I browse the "fillTypes" object?

I tried "sellingStation.acceptedFillTypes" or even "g_currentMission.fillTypeManager.fillTypes" but seems not works...

My script:

for _,sellingStation in pairs(g_currentMission.storageSystem.unloadingStations) do
if sellingStation.isSellingPoint ~= nil and sellingStation.isSellingPoint == true then
for _,fillType in pairs(sellingStation.acceptedFillTypes) do
if fillType ~= nil and fillType == sellingStation.acceptedFillTypes[fillType] then
if == "WHEAT" then
local per1000Price = station.fillTypePrices[fillType] * 1000

Thx for Help ;)

Bio Medical Extetion (Unknown) 28.08.2019 18:53

Bilbo Beutlin (BBeutlin) 28.08.2019 22:16
'sellingStation.acceptedFillTypes[fillType]' is right. But 'fillType' is here the fillType index. For converting use the functions of 'FillTypeManager', eg. 'getFillTypeByIndex(fillType)'.
Or if you search by name 'getFillTypeNameByIndex(fillType)'.

PS - another point:
The '.acceptedFillTypes[]' table contains 'true|false' for each fillType index.
For a query you can also use 'station:getIsFillTypeSupported(fillTypeIndex)' or if you refer to a certain farm 'station:getIsFillTypeAllowed(fillTypeIndex, farmId)'

Bio Medical Extetion (Unknown) 28.08.2019 23:21
Thanks Bilbo ;)

Note: Log in to post. Create a new account here.