Community Forum

DropPrice

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created29.08.2019 10:56


Bio Medical Extetion (Unknown) 29.08.2019 10:56
I need to get the trend price.

My script:
local trendPrice = sellingStation:getCurrentPricingTrend(fillType.index)

Output:
0
2
4
8
10
18
....

I cant understand what mean those numbers.

For my experience, I guess this but I'm not really sure:

0 = no trend
4 = Up trend
others = Down trend

Thx for help

Bilbo Beutlin (BBeutlin) 29.08.2019 12:20
I don't know exactly, but looks more like a bitmask.
I'd suggest you examine the sellingStation table, eg. by 'DebugUtil.printTableRecursively()'.
There are some interesting variables and tables concerning price features. The values in your post look like the 'fillTypePriceInfo[]' table.
But since the whole economic affairs are not documented, one can only guess. *g*

Bio Medical Extetion (Unknown) 29.08.2019 12:48
Hi Bilbo,

I tried to get data from sellingStation table, but I can't go more than StorageSystem level

Also if I run this script:

DebugUtil.printTableRecursively(g_currentMission.storageSystem.unloadingStations.sellingStation, "-", 0, 2)

occurs an error and no data output:
2019-08-29 12:38 Error: Running LUA method 'loadMapFinished'.
2019-08-29 12:38 dataS/scripts/debug/DebugUtil.lua(333) : bad argument #1 to 'pairs' (table expected, got nil)

Please, can you get that data for me?

Thank you so much...

Bio Medical Extetion (Unknown) 29.08.2019 12:53
--- DUPLICATED ---

Bilbo Beutlin (BBeutlin) 29.08.2019 13:23
Way too much to post here. ;)
And for effective analysis you'll need to watch the changing values over some time.

You mustn't dump tables just from start since they probably aren't built completely yet.
You should write a custom script where you can select a selling station and then begin table dump.

Or perhaps try with the small tool "FS19 console helper".


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