Community Forum

PDA ( i menu) help

Forum Overview >> Farming Simulator 15

CategoryFarming Simulator 15
Created03.03.2015 12:10


Manny Dos Santos (Manny2PlayFS) 03.03.2015 12:14
Hello Farmers!

Im playing a moded map but in the i-menu overlay PDA the manure dosnt show.
In the map exist a place to sell manure and slurry and i see thye station name but no the prices there cuz manure dosnt show in the products column. Same thing for Grass.

Someone can help me or point me in what can i do to show the manure storage in the map. its a script or in the GE.

Thanx.

PS: the map its the NorgeHolm 1.6

Thanks again and good farming.


Emil Drefers (giants.edrefers) 03.03.2015 14:00
Hi,

you can try to use the following script command:

function Fillable.addFillTypeToEconomy(index)

to add a fillType to the economy.

Cheers,
Emil



Manny Dos Santos (Manny2PlayFS) 03.03.2015 14:11
Thank you for response... But i have one more question.
What file (script) i need to place that command.

Thanks again Emil.
Cheers

Emil Drefers (giants.edrefers) 04.03.2015 08:41
Hi,

you would have to write a custom script if it should not depend on the map.
Otherwise you can place it in the SampleMod.lua of your map.

At the end of
load() or
loadCareerMap01Finished()
should be fine, I guess.

"index" should be something like:
Fillable.FILLTYPE_MANURE or
Fillable.FILLTYPE_LIQUIDMANURE

Cheers,
Emil

Tauno Pinni (HellBender) 27.02.2016 00:48
Hi.
I added these lines on the spot you sugested and the map won't load,
function Fillable.addFillTypeToEconomy(Fillable.FILLTYPE_wheat_windrow); end
function Fillable.addFillTypeToEconomy(Fillable.FILLTYPE_grass_windrow); end

Any syntax error??

//Tauno

Emil Drefers (giants.edrefers) 29.02.2016 08:11
Hi,

first steps in scripting, right?

The lines you have added are defintions of a function, but you only need to call the function.

e.g.
Fillable.addFillTypeToEconomy(Fillable.FILLTYPE_wheat_windrow);

Cheers,
Emil

Tauno Pinni (HellBender) 29.02.2016 17:40
Hi.
Your question, Yepp green as they come. :-) I'm ok with GE, but the scripting part is more dificult.

Gonna try your line and see what it does.

Thanks.

By the way, how do I add a new tab in Imenu?

//Tauno

Tauno Pinni (HellBender) 07.03.2016 02:10
Hi.

Fillable.addFillTypeToEconomy(Fillable.FILLTYPE_MANURE);

If I add this line to Samplemodmap.lua, the map won't load. So I made a separate script and call it as extra sourcefile from modDesc, and manure does not show up either in savegame or digitalamountmover. All other fillTypes show up correctly in the digital displayes.

Any sugestions?

//Tauno


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