Community Forum

Error: Running LUA method 'update

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created20.03.2021 23:04

Tommy Aleksandersen (WolfBoy) 20.03.2021 23:04
Hi. I have bean working with some placeables lately and everything is working fine. But to day I wanted some fruit trees on my map.
I got them to work in the shop and i also could select them and put them on the ground. but when I hit escape to go out of the shop, the game froze

in the log file i found this error.

Error: Running LUA method 'update'.
2021-03-20 22:29 dataS/scripts/placeables/Placeable.lua(1224) : attempt to index local 'storeItem' (a nil value)

Error: Running LUA method 'update'.
2021-03-20 22:30 C:/Users/Tommy/Documents/My Games/FarmingSimulator2019/mods/FS19_my map/scripts/FillTypeConverter.lua:1674: attempt to compare number with nil.

This is the first time i have run into this problem. I also have bees on my map, they use the same FillTypeConverter.Lua script.
And they work just fine.

I`m not running any mods and i start a new savegame everytime. I have the work map in my mod folder of the game so i can test it.

I have compared all the files needed. Defaultitem.xml, Modex.xml and the l10n_en.xml file. They are the same, not missing anything.

The only thing that I could think of if is the name. This is the same on both the items.xml files.

<item className="FS19_Borrowed map.FillTypeConverter" modName="FS19_Borrowed map" filename="$mapdir$/placeables/fruitTrees/appleTreeFixed.xml" position="-239.4844 81.4986 957.0424" rotation="0.0000 215.1452 0.0000" farmId="63"/>

Should I set my map name on these two ? "FS19_Borowed map.FillTypeConverter" modName="FS19_Borrowed amp"

Thank you for any help.

Tommy Aleksandersen (WolfBoy) 24.03.2021 01:37
Update! I got it to work.

Thank you.

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