Community Forum

New fruit price at zero

Forum Overview >> Scripting

Created20.02.2015 23:17

Ted Fanning (wickedset) 20.02.2015 23:29
Have added new fruits Rye Oat and Hops, these fruits all show prices at the correct sell points and the value set in fruitRegister.lua, the code used, just hops shown :-
print("register fruit type: Hops");
local hopshudFile = Utils.getFilename("huds/", g_currentModDirectory);
FruitUtil.registerFruitType("hops", g_i18n:getText("hops"), true, true, false, 0, 4, 6, 8, 0, 0.6, 1.2, 0.1, true, hopshudFile);

I have now added tomato with the same code and added it to the sell points but the sell price is showing on the PDA as zero (£0), so no money goes into the bank for all that hard work, when I tip the load, any help very much appreciated.
I also have an error free log, so no help there.


Emil Drefers (Unknown) 23.02.2015 08:51

you can find some explanatons here:

Maybe you forgot to add another value to the "priceMultipliers" attribute of trigger at the selling point?


Ted Fanning (wickedset) 01.03.2015 12:43
Thanks for the reply, I did read that for FS2013, find it isn't quite right for 15, as is, and I think you may have misunderstood when I say the fruit is at zero, I mean that it shows up in the PDA as
" 0£/t " with all other fruits, added and default showing a correct price (" 1.26£/t " ).
My game log is completely error and warning free, also my GE log is completely clean, it's the same in all my games.
I now save the game and add a price in the savegame, then it behaves as it should, so I'm still puzzled and annoyed that I can't find the problem.

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