Community Forum

What kind of object is a tree log?

Forum Overview >> Scripting

CategoryScripting
Created19.05.2020 19:33


Kaj-aage Henneberg (kahfs) 19.05.2020 19:33
Hi there. I was asked if I could change the price of tree logs in a lua script I play with. The answer is no I can't. What kind of object is a tree log? It is not a filltype, nor a fruittype. The price is not defined in sellingStationWood. Any ideas would be welcome.

Bilbo Beutlin (BBeutlin) 19.05.2020 21:16
The wood logs are of kind "splitTypes".
Unluckily not documented anymore in the FS19 docs.
See FS17 docs for reference:
https://gdn.giants-software.com/documentation_scripting.php?version=script&category=67&class=3392#triggerCallback46007

Kaj-aage Henneberg (kahfs) 20.05.2020 10:50
Thank you Bilbo. I found an earlier discussion here later on (using Google!) which led me to splitTypeManager. So, I am now able to adjust sawlog prices.

Shawn E Carter (ShawnDaGeek) 10.06.2020 21:32
Kaj-aage, would you mind posting an example of adjusting the prices?


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