Project Zomboid

Project Zomboid

Item Stories [beta]
Champy  [developer] Sep 23, 2023 @ 8:27am
Bug reports
Report you bugs and errors here, and I'll look into it
< >
Showing 1-15 of 46 comments
Ortus Sep 29, 2023 @ 9:28am 
Hi. I get these errors from time to time when loading new locations.

`function: PickRandomItemFromLootTable -- file: StoryItemSpawnerManager.lua line # 93 | MOD: Item Stories Framework (CORE)
function: RollStory -- file: StoryItemSpawnerManager.lua line # 335 | MOD: Item Stories Framework (CORE)
function: CheckRoom -- file: StoryItemSpawnerManager.lua line # 496 | MOD: Item Stories Framework (CORE)
function: TriggerClosestRoomInList -- file: StoryItemSpawnerManager.lua line # 814 | MOD: Item Stories Framework (CORE)
java.lang.RuntimeException: __add not defined for operands in PickRandomItemFromLootTable
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:676)
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.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:667)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`
Champy  [developer] Sep 29, 2023 @ 11:15am 
Looks like the author of one of the mods you're using made a mistake in their loot distributions. Instead of inserting a number for their item's spawn chance, he inserted something else that cannot be added to another number.

I guess I should add more failsafes for that. Will update tomorrow probably.
Last edited by Champy; Sep 29, 2023 @ 11:19am
Champy  [developer] Sep 30, 2023 @ 7:15am 
New patch is released, it should fix that error.
Ortus Sep 30, 2023 @ 9:03am 
It really worked - the errors stopped appearing. Thanks a lot!
GarageToad Oct 1, 2023 @ 9:21am 
Any idea what is causing this error?

LOG : General , 1696176830681> -----------------------------------------
STACK TRACE
-----------------------------------------
function: StoryItemDefinitions_Example.lua -- file: StoryItemDefinitions_Example.lua line # 50 | MOD: Item Stories Framework (CORE)

ERROR: General , 1696176830687> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: crate of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1696176830687> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: crate 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.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:342)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:264)
at zombie.gameStates.GameLoadingState.enter(GameLoadingState.java:97)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1696176830688> -----------------------------------------
STACK TRACE
-----------------------------------------
function: StoryItemDefinitions_Example.lua -- file: StoryItemDefinitions_Example.lua line # 50 | MOD: Item Stories Framework (CORE)

Oct 01, 2023 12:13:50 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: java.lang.RuntimeException
Oct 01, 2023 12:13:50 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: java.lang.RuntimeException:
Oct 01, 2023 12:13:50 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: at StoryItemDefinitions_Example.lua:50

LOG : Lua , 1696176830696> Loading: C:/Games/Steam Library/steamapps/workshop/content/108600/3037990730/mods/StoryItemSpawner - PillowsOnBeds/media/lua/server/StoryItemDefinitions_PillowsOnBeds.lua
WARN : Lua , 1696176830702> LuaManager$GlobalObject.require> require("StoryItemManager.lua") failed
LOG : Lua , 1696176830702> Loading: C:/Games/Steam Library/steamapps/workshop/content/108600/3043616998/mods/StoryItemSpawner - Pool balls & cues on billiard table/media/lua/server/StoryItemDefinitions_PoolTable.lua
LOG : Lua , 1696176830707> Loading: C:/Games/Steam Library/steamapps/workshop/content/108600/3038100079/mods/StoryItemSpawner - PropaneTanksInGarages/media/lua/server/StoryItemDefinitions_PropaneTanksInGarages.lua
WARN : Lua , 1696176830713> LuaManager$GlobalObject.require> require("StoryItemManager.lua") failed
LOG : Lua , 1696176830713> Loading: C:/Games/Steam Library/steamapps/workshop/content/108600/3037988451/mods/StoryItemSpawner - RoomLoot/media/lua/server/StoryItemDefinitions_RoomLoot.lua
WARN : Lua , 1696176830718> LuaManager$GlobalObject.require> require("StoryItemManager.lua") failed
LOG : Lua , 1696176830718> Loading: C:/Games/Steam Library/steamapps/workshop/content/108600/3038108150/mods/StoryItemSpawner - Zupercart/media/lua/server/StoryItemDefinitions_ZuperCarts.lua
WARN : Lua , 1696176830723> LuaManager$GlobalObject.require> require("StoryItemManager.lua") failed
Champy  [developer] Oct 1, 2023 @ 11:12am 
@GarageToad Weird, that comes from an example story that I had set up for modders who wanted to make their own. Shouldn't impact the mod.

Anyway, I released a quick patch that deletes that example story, so the error doesn't show up anymore.
GarageToad Oct 2, 2023 @ 6:43am 
Errormagnifier doesn't toss up anything now, thanks!
rain Oct 10, 2023 @ 9:35pm 
Two for two, great job.
rain Oct 14, 2023 @ 10:43pm 
Got one of my own:

`function: TweakItem -- file: StoryItemSpawnerManager.lua line # 249 | MOD: Item Stories Framework (CORE)
function: RollStory -- file: StoryItemSpawnerManager.lua line # 349 | MOD: Item Stories Framework (CORE)
function: CheckRoom -- file: StoryItemSpawnerManager.lua line # 505 | MOD: Item Stories Framework (CORE)
function: TriggerClosestRoomInList -- file: StoryItemSpawnerManager.lua line # 850 | MOD: Item Stories Framework (CORE)
java.lang.RuntimeException: attempted index: get 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.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`

And:

`Callframe at: getAllMediaForCategory
function: TweakItem -- file: StoryItemSpawnerManager.lua line # 248 | MOD: Item Stories Framework (CORE)
function: RollStory -- file: StoryItemSpawnerManager.lua line # 349 | MOD: Item Stories Framework (CORE)
function: CheckRoom -- file: StoryItemSpawnerManager.lua line # 505 | MOD: Item Stories Framework (CORE)
function: TriggerClosestRoomInList -- file: StoryItemSpawnerManager.lua line # 850 | MOD: Item Stories Framework (CORE)
`
Champy  [developer] Oct 15, 2023 @ 3:04am 
@rain Do you use mods that mess with VHSs or CDs ? From this error it seems like the game failed to find the list of recorded media assignable to a VHS. Which is weird. I haven't managed to reproduce this bug. It should be easy to patch though.
rain Oct 15, 2023 @ 5:54pm 
Indeed I am! I'm using Video Meister by PePePePePeil. Thanks a bunch for looking into it so quickly!
Marcus Oct 23, 2023 @ 9:09am 
Blank CDs and VHS cause error after being picked up with PePePePePeil's "Has Been Read" mod active.
Last edited by Marcus; Oct 23, 2023 @ 9:10am
Champy  [developer] Oct 24, 2023 @ 4:29am 
Originally posted by hudsonaux:
Blank CDs and VHS cause error after being picked up with PePePePePeil's "Has Been Read" mod active.
can you copy pasta the error ?
Furc <3 Nov 9, 2023 @ 4:10am 
Hi, can you tell me where the sawmill is located?
Champy  [developer] Nov 18, 2023 @ 5:26am 
Originally posted by Furc <3:
Hi, can you tell me where the sawmill is located?
What sawmill ?
< >
Showing 1-15 of 46 comments
Per page: 1530 50