Project Zomboid

Project Zomboid

Soul Filcher's Building Time
Hun Alexander 2021 年 9 月 23 日 上午 9:14
Error Line
The error log is too long, so I put it here.

STACK TRACE
-----------------------------------------
function: SFBuildLootDistributions.lua -- file: SFBuildLootDistributions.lua line # 250

ERROR: General , 1632412940994> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: counter of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1632412940994> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: counter 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:539)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:485)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:471)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:319)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:246)
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 , 1632412940997> -----------------------------------------
STACK TRACE
-----------------------------------------
function: SFBuildLootDistributions.lua -- file: SFBuildLootDistributions.lua line # 250

9월 24, 2021 1:02:20 오전 zombie.Lua.LuaManager RunLuaInternal
심각: java.lang.RuntimeException
9월 24, 2021 1:02:20 오전 zombie.Lua.LuaManager RunLuaInternal
심각: java.lang.RuntimeException:
9월 24, 2021 1:02:20 오전 zombie.Lua.LuaManager RunLuaInternal
심각: at SFBuildLootDistributions.lua:250
< >
正在显示第 1 - 12 条,共 12 条留言
soulfilcher  [开发者] 2021 年 9 月 23 日 上午 9:38 
Weird, that should not throw an error. Unless another mod did something wrong with the tables.
soulfilcher  [开发者] 2021 年 9 月 23 日 上午 11:38 
Ohhhh, better warn the author.
Kyomujin 2021 年 9 月 30 日 下午 3:15 
The problem with weapons mods is that in "WPNMOD_Distributions - Copy.lua" he's copied the game's Distributions.lua, accidentally overriding the backwards compatibility mapping with the small distributionTable additions added by WPNMOD.
local distributionTable = { ..... ..... } table.insert(Distributions, distributionTable); --for mod compat: SuburbsDistributions = distributionTable;

It can be fixed by removing the last line from "WPNMOD_Distributions - Copy.lua". It can also be fixed in this mod by either using the new distributionTable system or using OnPostDistributionMerge as the OnDistributionMerge event before that sets SuburbsDistribution back to the correct table with all the entries.

e.g.
local function postDistributionMerge() -- Carpenter table.insert(SuburbsDistributions["Carpenter"]["counter"].items, "filcher.MasonsTrowel"); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, 5); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, "filcher.Bricks"); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, 5); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, "filcher.Bricks"); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, 5); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, "filcher.SFChisel"); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, 1); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, "filcher.SFSealant"); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, 0.6); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, "filcher.SFGlassPanel"); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, 1); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, "Base.ConcretePowder"); table.insert(SuburbsDistributions["Carpenter"]["counter"].items, 3); --postbox (general) table.insert(SuburbsDistributions["all"]["postbox"].items, "filcher.SFMasonMag"); table.insert(SuburbsDistributions["all"]["postbox"].items, 0.2); end Events.OnPostDistributionMerge.Add(postDistributionMerge)

or with a distributionsTable
local distributionTable = { all = { postbox = { items = { "filcher.SFMasonMag", 0.2, } }, }, Carpenter = { counter = { items = { "filcher.MasonsTrowel", 5, "filcher.Bricks", 5, "filcher.Bricks", 5, "filcher.SFChisel", 1, "filcher.SFSealant", 0.6, "filcher.SFGlassPanel", 1, "Base.ConcretePowder", 1, } }, }, } table.insert(Distributions, distributionTable);
Muffinman 2022 年 1 月 27 日 上午 2:44 
ERROR: General , 1643277961433> 1,678,779,462> LuaManager.getFunctionObject> no such function "BSNewItem_OnCreate"

2324586266/mods/BuildingTime/media/scripts/SFBuild_Recipes.txt:83: OnCreate:BSNewItem_OnCreate,

BSNewItem_OnCreate is not defined anywhere in the mod
最后由 Muffinman 编辑于; 2022 年 1 月 27 日 上午 2:44
soulfilcher  [开发者] 2022 年 1 月 27 日 上午 6:01 
Which recipe is calling that? I just checked and couldn't find any recipes using that.
Muffinman 2022 年 1 月 27 日 下午 4:45 
引用自 soulfilcher
Which recipe is calling that? I just checked and couldn't find any recipes using that.

Chisel recipe
Line 83 of the file 2324586266/mods/BuildingTime/media/scripts/SFBuild_Recipes.txt

/************************Recipes - Miscellaneous************************/ recipe Make Chisel { IronIngot=40, keep Hammer/BallPeenHammer, keep Tongs, NearItem:Anvil, Result:filcher.SFChisel, Time:150.0, Category:Smithing, SkillRequired:MetalWelding=4, OnGiveXP:Give20MWXP, OnCreate:BSNewItem_OnCreate, NeedToBeLearn:true, }
soulfilcher  [开发者] 2022 年 1 月 27 日 下午 6:04 
You're either running an outdated version of the mod, or the updates failed to delete that file for you. Delete it and you should be ok.
Muffinman 2022 年 1 月 27 日 下午 7:31 
引用自 soulfilcher
You're either running an outdated version of the mod, or the updates failed to delete that file for you. Delete it and you should be ok.

Or could it be that the file was not updated properly when you push update to steam workshop? I've sub and unsub multiple times already.
Muffinman 2022 年 1 月 27 日 下午 7:45 
引用自 soulfilcher
You're either running an outdated version of the mod, or the updates failed to delete that file for you. Delete it and you should be ok.
Are you saying that the Chisel recipe is no longer in your copy of the mod or that the recipe was updated to no longer contain the OnCreate line?
Muffinman 2022 年 2 月 3 日 下午 4:16 
93 errors popped up when repairing a window. It did repair however.
139664828818568 LOG : General , 1643933585027> 2,334,403,048> ----------------------------------------- STACK TRACE ----------------------------------------- function: perform -- file: ISRepairWindow.lua line # 43 ERROR: General , 1643933585027> 2,334,403,049> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in perform at KahluaUtil.fail line:82. ERROR: General , 1643933585028> 2,334,403,049> DebugLogStream.printException> Stack trace: java.lang.RuntimeException: Object tried to call nil in perform at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:973) 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:85) at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:104) at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:9704) at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83) at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230) at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26) at zombie.util.Lambda.capture(Lambda.java:130) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81) at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:9441) at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:1874) at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83) at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230) at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26) at zombie.util.Lambda.capture(Lambda.java:130) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81) at zombie.characters.IsoPlayer.update(IsoPlayer.java:1858) at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:79) at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:145) at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:2929) at zombie.iso.IsoCell.updateInternal(IsoCell.java:5718) at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83) at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230) at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26) at zombie.util.Lambda.capture(Lambda.java:130) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81) at zombie.iso.IsoCell.update(IsoCell.java:5664) at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3334) at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83) at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230) at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26) at zombie.util.Lambda.capture(Lambda.java:130) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81) at zombie.iso.IsoWorld.update(IsoWorld.java:3262) at zombie.gameStates.IngameState.updateInternal(IngameState.java:1666) at zombie.gameStates.IngameState.update(IngameState.java:1367) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101) at zombie.GameWindow.logic(GameWindow.java:289) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:745) at zombie.GameWindow.run_ez(GameWindow.java:661) at zombie.GameWindow.mainThread(GameWindow.java:475) at java.base/java.lang.Thread.run(Unknown Source) LOG : General , 1643933585028> 2,334,403,049> ----------------------------------------- STACK TRACE ----------------------------------------- function: perform -- file: ISRepairWindow.lua line # 43
trybi123 2022 年 3 月 8 日 上午 10:58 
Runing in to a build wall crashes the game
< >
正在显示第 1 - 12 条,共 12 条留言
每页显示数: 1530 50