Project Zomboid

Project Zomboid

Grab and Drop
KodeMan 2023 年 9 月 12 日 上午 9:03
Error Report
attempted index: pressedMovement of non-table: null
function: onTick -- file: GrabAndDrop.lua line # 529 | MOD: Grab and Drop
java.lang.RuntimeException: attempted index: pressedMovement 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:667)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
< >
正在显示第 1 - 15 条,共 17 条留言
Bion  [开发者] 2023 年 9 月 12 日 上午 9:29 
Hey, @KodeMan, do you use the latest version? This looks like code from September 5th and should be fixed after the September 6th update.
If for some reason the mod didn't update automatically, try unsubscribing, wait a bit and subscribe again
最后由 Bion 编辑于; 2023 年 9 月 12 日 上午 9:38
Bion  [开发者] 2023 年 9 月 12 日 上午 9:56 
i'll try to test with the mods from Valhalla Community Server Collection. Maybe the mod conflicts with some other...
KodeMan 2023 年 9 月 12 日 下午 1:29 
引用自 Bion
Hey, @KodeMan, do you use the latest version? This looks like code from September 5th and should be fixed after the September 6th update.
If for some reason the mod didn't update automatically, try unsubscribing, wait a bit and subscribe again

Ah, sorry I just noticed the time stamp. Was going through the server logs for errors. We removed it after the error but I'll add it back now that it was fixed. Thank you for this great mod.
Bion  [开发者] 2023 年 9 月 12 日 下午 2:05 
Just updated the mod with one fix that exclude the onTick function altogether, it should not run on the server. If there are any problems, please let me know. Ensuring compatibility for multiplayer is a top priority for me.
最后由 Bion 编辑于; 2023 年 9 月 12 日 下午 2:26
KodeMan 2023 年 9 月 12 日 下午 4:38 
引用自 Bion
Just updated the mod with one fix that exclude the onTick function altogether, it should not run on the server. If there are any problems, please let me know. Ensuring compatibility for multiplayer is a top priority for me.

We have lua checksum enabled so we have to have the mod server-side in order for players to use it. Lua checksum forces the players mods to match the server.
Would it cause issues running it server side?
Bion  [开发者] 2023 年 9 月 12 日 下午 5:56 
KodeMan, absolutely not. What I meant is just the condition for the server role (isServer()), as it doesn't represent any player
KodeMan 2023 年 9 月 13 日 上午 4:32 
引用自 Bion
KodeMan, absolutely not. What I meant is just the condition for the server role (isServer()), as it doesn't represent any player

Ah, I see. Thank you for clearing that up.
KodeMan 2023 年 9 月 24 日 上午 11:45 
`attempted index: getUsername of non-table: null
function: doClick -- file: GrabAndDropMouse.lua line # 152 | MOD: Grab and Drop
function: doClickSpecificObject -- file: GrabAndDropClickHandler.lua line # 7 | MOD: Grab and Drop
function: onObjectLeftMouseButtonDown -- file: ISObjectClickHandler.lua line # 315 | Vanilla
function: onObjectLeftMouseButtonDown -- file: SpectateServerContext.lua line # 20 | MOD: TchernoLib
java.lang.RuntimeException: attempted index: getUsername 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:173)
at zombie.ui.UIManager.update(UIManager.java:771)
at zombie.GameWindow.logic(GameWindow.java:262)
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)
`

When coming close to a generator. not sure if it happens with other items yet
KodeMan 2023 年 9 月 24 日 上午 11:46 
Ah, it happens constantly, even when left clicking on the ground. This is after the update. No issues before.
dpz34 2023 年 9 月 24 日 上午 11:53 
引用自 KodeMan
Ah, it happens constantly, even when left clicking on the ground. This is after the update. No issues before.
Can confirm, experiencing the same thing on my server
KodeMan 2023 年 9 月 24 日 下午 12:01 
Yep, everyone in the server is getting the same error when left clicking on the ground.
Bion  [开发者] 2023 年 9 月 24 日 下午 12:12 
Sorry for that, I couldn’t test the mp specific code before I published the update. Should be fixed now.
KodeMan 2023 年 9 月 24 日 下午 12:28 
That fixed it! all is good
KodeMan 2023 年 9 月 24 日 下午 12:31 
Just want to add, if you want access to a live stream of server logs via web browser to monitor your mod, feel free to add me on discord. I can also set you up with access to our test server if you like.
Discord ID: kodeman
最后由 KodeMan 编辑于; 2023 年 9 月 24 日 下午 12:32
Greg 2023 年 10 月 8 日 上午 11:56 
When picking up some objects in hands, they are invisible? Any ideas
< >
正在显示第 1 - 15 条,共 17 条留言
每页显示数: 1530 50