Project Zomboid

Project Zomboid

Headwear Won't Fall
 This topic has been pinned, so it's probably important
exlesnick 18 Jan, 2022 @ 9:03pm
Bugs / Incompatibilities
To keep the comment thread nice and clean
Last edited by exlesnick; 19 Jan, 2022 @ 12:19am
< >
Showing 1-3 of 3 comments
exlesnick 18 Jan, 2022 @ 9:07pm 
STACK TRACE
-----------------------------------------
function: HeadwearWontFallScrapArmor.lua -- file: HeadwearWontFallScrapArmor.lua line # 15

ERROR: General , 1642568454249> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: DoParam of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1642568454249> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: DoParam of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
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.RunLuaInternal(LuaManager.java:550)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:482)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:329)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:256)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:375)
at zombie.GameWindow.init(GameWindow.java:1170)
at zombie.GameWindow.mainThreadInit(GameWindow.java:556)
at zombie.GameWindow.mainThread(GameWindow.java:469)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1642568454251> -----------------------------------------
STACK TRACE
dane  [developer] 18 Jan, 2022 @ 10:46pm 
Originally posted by exlesnick:
STACK TRACE
-----------------------------------------
function: HeadwearWontFallScrapArmor.lua -- file: HeadwearWontFallScrapArmor.lua line # 15

ERROR: General , 1642568454249> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: DoParam of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1642568454249> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: DoParam of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
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.RunLuaInternal(LuaManager.java:550)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:482)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:329)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:256)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:375)
at zombie.GameWindow.init(GameWindow.java:1170)
at zombie.GameWindow.mainThreadInit(GameWindow.java:556)
at zombie.GameWindow.mainThread(GameWindow.java:469)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1642568454251> -----------------------------------------
STACK TRACE
Fixed! Sorry for the inconvenience! :)
Last edited by dane; 18 Jan, 2022 @ 10:47pm
G-t01l3t. 21 Mar, 2022 @ 6:56am 
Hi Dane,

I'm going to respond here about the 'every piece of clothing dropping' problem.

I can confirm that I tested this a few days ago I have had the same issue as @ISaang.

I tested all of this on 41.68 Hosting a local server.

Pics: https://imgur.com/a/beXcEW1

> Any decimal point (0.01 etc) option makes the server unable to start.

> I remember seeing in the logs (which I have since lost/ deleted) that "something something something* 0.25 is not a valid *something something* fall rate" and this was for many many items, not just headwear. It seemed to show up for all(?) the items.

> Any whole number option makes seems to make it 100% to drop all clothing.
- so a push, a weapon hit, it's all the same, every piece of clothing drops - it's kind of hilarious - and it takes a second(?) hit to get their socks off lol.

> I did not have success starting up the server at 10 - 25% chance to fall - it seemed to fail to start like the decimal point options except I could not find any specific "10% is not a valid..." error in any of the console or coop-console logs.

> 0% is the only successful option that works where nothing drops at all.
- The only thing is I feel like the mod is still calculating every single item (based on observations of the other non-zero options) rather than just head-wear
< >
Showing 1-3 of 3 comments
Per page: 1530 50