Community Forum

Placeables Saving Issue

Forum Overview >> Editor

CategoryEditor
Created01.09.2019 12:45


Gyebnár Dávid (LsHdavidoff) 01.09.2019 12:45
Hi. Does anyone know of a solution to this problem? Everything works fine before saving, and then when I save the game and restart it, it's a Log error.
2019-08-31 23:21 Error: Running LUA method 'update'.
2019-08-31 23:21 dataS/scripts/placeables/Placeable.lua(1094) : attempt to index local 'storeItem' (a nil value)
2019-08-31 23:21 data/placeables/mapDE/sellingStationWool/sellingStationWool.i3d (0.71 ms)
2019-08-31 23:21 C:/Users/d3rrick/Documents/My Games/FarmingSimulator2019/mods/FS19_Duna_Tsz_v5/Egg/pistaba.i3d (46.39 ms)
2019-08-31 23:21 C:/Users/d3rrick/Documents/My Games/FarmingSimulator2019/mods/FS19_Duna_Tsz_v5/Schwein/husbandryPigLarge.i3d (19.40 ms)
2019-08-31 23:21 Error: Running LUA method 'update'.
2019-08-31 23:21 dataS/scripts/placeables/Placeable.lua(1094) : attempt to index local 'storeItem' (a nil value)
2019-08-31 23:21 C:/Users/d3rrick/Documents/My Games/FarmingSimulator2019/mods/FS19_Duna_Tsz_v5/Kuhstall/husbandryCowSmall.i3d (9.94 ms)
2019-08-31 23:21 Error: Running LUA method 'update'.
2019-08-31 23:21 dataS/scripts/placeables/Placeable.lua(1094) : attempt to index local 'storeItem' (a nil value)
2019-08-31 23:21 C:/Users/d3rrick/Documents/My Games/FarmingSimulator2019/mods/FS19_Duna_Tsz_v5/schafe/husbandrySheepLarge.i3d (21.29 ms)
2019-08-31 23:21 Error: Running LUA method 'update'.
2019-08-31 23:21 dataS/scripts/placeables/Placeable.lua(1094) : attempt to index local 'storeItem' (a nil value)
2019-08-31 23:21 data/placeables/mapDE/sellingStationBales/sellingStationBales.i3d (0.60 ms)
2019-08-31 23:21 C:/Users/d3rrick/Documents/My Games/FarmingSimulator2019/mods/FS19_Duna_Tsz_v5/huhn/husbandryChickenLarge.i3d (5.11 ms)
2019-08-31 23:21 Error: Running LUA method 'update'.
2019-08-31 23:21 dataS/scripts/placeables/Placeable.lua(1094) : attempt to index local 'storeItem' (a nil value)
2019-08-31 23:21 data/placeables/mapDE/sellingStationGeneric/sellingStationGeneric.i3d (0.80 ms)
2019-08-31 23:21 C:/Users/d3rrick/Documents/My Games/FarmingSimulator2019/mods/FS19_Duna_Tsz_v5/BGA/bga.i3d (23.73 ms)
2019-08-31 23:21 Error: Running LUA method 'update'.
2019-08-31 23:21 dataS/scripts/placeables/Placeable.lua(1094) : attempt to index local 'storeItem' (a nil value)
2019-08-31 23:21 C:/Users/d3rrick/Documents/My Games/FarmingSimulator2019/mods/FS19_Duna_Tsz_v5/Pferde/husbandryHorseSmall.i3d (2.19 ms)
2019-08-31 23:21 Error: Running LUA method 'update'.
2019-08-31 23:21 dataS/scripts/placeables/Placeable.lua(1094) : attempt to index local 'storeItem' (a nil value)
2019-08-31 23:21 dataS2/character/humans/player/player01.i3d (298.81 ms)

Bilbo Beutlin (BBeutlin) 01.09.2019 16:25
Check the map's "modDesc.xml" for proper setup of the placeables in <storeItems>.

Gyebnár Dávid (LsHdavidoff) 01.09.2019 19:03
I think the path is okay.

<storeItems>
<storeItem xmlFilename="maps/xml/Borsoshat.xml" />
<storeItem xmlFilename="Egg/Pistaba.xml" />
<storeItem xmlFilename="maps/xml/sellingStationWool.xml" />
<storeItem xmlFilename="maps/xml/gasStation01.xml" />
<storeItem xmlFilename="maps/xml/gasStation02.xml" />
<storeItem xmlFilename="maps/xml/gasStation03.xml" />
<storeItem xmlFilename="maps/xml/limeStation.xml" />
<storeItem xmlFilename="maps/xml/limeStation02.xml" />
<storeItem xmlFilename="maps/xml/limeStation03.xml" />
<storeItem xmlFilename="maps/xml/limeStation04.xml" />
<storeItem xmlFilename="maps/xml/limeStation05.xml" />
<storeItem xmlFilename="water/waterFillTriggers.xml" />
<storeItem xmlFilename="maps/xml/sellingStationBales.xml" />
<storeItem xmlFilename="maps/xml/sellingStationVehicles.xml" />
<storeItem xmlFilename="Kuhstall/husbandryCow.xml" />
<storeItem xmlFilename="Schwein/schwein.xml" />
<storeItem xmlFilename="Pferde/Pferde.xml" />
<storeItem xmlFilename="schafe/husbandrySheepLarge.xml" />
<storeItem xmlFilename="huhn/husbandryChickenLarge.xml" />
<storeItem xmlFilename="BGA/bga.xml" />
</storeItems>

Bilbo Beutlin (BBeutlin) 02.09.2019 00:40
Then check a savegame's "items.xml" for proper reference of the placeables.

Since the errors occur on husbandries only, I'd assume the husbandry xml's are faulty. Compare with game default husbandries.

To avoid confusion concerning placeables it's strictly recommanded to have all the placeables in the map's rootfolder "placeables".
It looks like the author of the map isn't very experienced, so any other errors are to be expected.


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