Community Forum

Lua error..

Forum Overview >> Editor

CategoryEditor
Created20.02.2020 17:28


William S. Martin Jr. (nitrodad1115) 20.02.2020 17:28
Hello Hoping someone can help.. Ive been building a 4x map.. I at the point of building the defaultitems.xml. I keep getting an error in the log after each placeable loads.. datas/script/misc/Ground typeManager.lua(123):attempt to index a nil value . the error cause the placeable to loose all collisions and triggers.. the model is visually on the map but has no functionality... Any suggestion for a fix would be greatly appreciated.

Bilbo Beutlin (BBeutlin) 20.02.2020 20:55
Test the map in editor and game (without placing something). Look for errors in the logs:
game log: {USER}\Documents\My Games\FarmingSimulator...\log.txt
editor log: {USER}\AppData\Local\GIANTS Editor ...\editor_log.txt

If the placeable is a mod, maybe also this causes the error.

William S. Martin Jr. (nitrodad1115) 20.02.2020 22:04
Thank you for replying Bilbo. Map was fully tested before i began building Defaultitems xml. error did not start until i placed the first placeable. placeables im using have been used and tested on other maps i've built. and all mod desc have been removed from any mods i used as placeables.. error seems to affect annimal pens , bunker silos and workshop placeables . I have placed regular sheds with no issues doors work.. seems to be only placeables with triggers attached to them.


Bilbo Beutlin (BBeutlin) 20.02.2020 23:21
Make sure, your map has a waterplane with user attribute isMainWater:true.

Also update your map's collision maps with GE script "create ground collision map". This will generate new "*.colMap.grle" and "*.plcColMap.grle". The last one you must rename to "*.plcMap.grle".


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