Project Zomboid

Project Zomboid

Coco Liquid Overhaul
Build 41.53 IWBUMS Java.lang.RuntimeException: attempted index: items of non-table: null at
LOG : Lua , 1628418169133> Loading: /Users/bcambourne/Library/Application Support/Steam/steamapps/workshop/content/108600/2539452952/mods/CocoLiquidOverhaul/media/lua/server/Items/ CLO_Server_Distribution_LargeGasCan.lua LOG : General , 1628418169133> ------------------------------------------------------------- attempted index: items of non-table: null LOG : General , 1628418169133> ----------------------------------------- STACK TRACE ----------------------------------------- function: CLO_Server_Distribution_LargeGasCan.lua -- file: CLO_Server_Distribution_LargeGasCan.lua line # 32 ERROR: General , 1628418169134> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: items of non-table: null at KahluaThread.tableget line:1689. ERROR: General , 1628418169134> DebugLogStream.printException> Stack trace: java.lang.RuntimeException: attempted index: items of non-table: null at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492) at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163) at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980) at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1782) at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76) at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117) at zombie.Lua.LuaManager.RunLua(LuaManager.java:525) at zombie.Lua.LuaManager.RunLua(LuaManager.java:476) at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:324) at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:251) at zombie.gameStates.GameLoadingState.enter(GameLoadingState.java:91) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145) at zombie.GameWindow.logic(GameWindow.java:285) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:726) at zombie.GameWindow.run_ez(GameWindow.java:642) at zombie.GameWindow.mainThread(GameWindow.java:471) at java.base/java.lang.Thread.run(Unknown Source) LOG : General , 1628418169134> ----------------------------------------- STACK TRACE ----------------------------------------- function: CLO_Server_Distribution_LargeGasCan.lua -- file: CLO_Server_Distribution_LargeGasCan.lua line # 32
< >
Showing 1-1 of 1 comments
Kyomujin 30 Sep, 2021 @ 5:47am 
You can get rid of the error by replacing all the SuburbsDistributions calls in the file:
steamapps\workshop\content\108600\2539452952\mods\CocoLiquidOverhaul\media\lua\server\Items\CLO_Server_Distribution_LargeGasCan.lua

The following code should fix the distribution:
require "Items/ProceduralDistributions" require "Items/Distributions" -- ITEMS --- CocoLiquidOverhaulItems.Coco_LargeEmptyPetrolCan --- CocoLiquidOverhaulItems.Coco_LargePetrolCan -- LOCATIONS --- all --- shed --- garagestorage --- garage --- storageunit --- gasstore --- gasstorage --- armyhanger --- ProceduralDistributions -- StoreShelfMechanics table.insert(ProceduralDistributions.list.StoreShelfMechanics.items, "CocoLiquidOverhaulItems.Coco_LargeEmptyPetrolCan") table.insert(ProceduralDistributions.list.StoreShelfMechanics.items, 5) -- GarageMechanic table.insert(ProceduralDistributions.list.GarageMechanic.items, "CocoLiquidOverhaulItems.Coco_LargeEmptyPetrolCan") table.insert(ProceduralDistributions.list.GarageMechanic.items, 3) --replaces storageunit.all table.insert(ProceduralDistributions.list.CrateMechanics.items, "CocoLiquidOverhaulItems.Coco_LargeEmptyPetrolCan") table.insert(ProceduralDistributions.list.CrateMechanics.items, 2) table.insert(ProceduralDistributions.list.CrateMechanics.items, "CocoLiquidOverhaulItems.Coco_LargePetrolCan") table.insert(ProceduralDistributions.list.CrateMechanics.items, 1.5) --replaces armyhanger.metal_shelves table.insert(ProceduralDistributions.list.ArmyHangarTools.items, "CocoLiquidOverhaulItems.Coco_LargePetrolCan") table.insert(ProceduralDistributions.list.ArmyHangarTools.items, 1) local cocoDistributionTable = { all = { bin = { items = { "CocoLiquidOverhaulItems.Coco_LargeEmptyPetrolCan", 0.5, } }, }, } table.insert(Distributions, cocoDistributionTable);
< >
Showing 1-1 of 1 comments
Per page: 1530 50