Project Zomboid

Project Zomboid

Grab and Drop
KodeMan Sep 12, 2023 @ 9:03am
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)
< >
Showing 1-15 of 17 comments
Bion  [developer] Sep 12, 2023 @ 9:29am 
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
Last edited by Bion; Sep 12, 2023 @ 9:38am
Bion  [developer] Sep 12, 2023 @ 9:56am 
i'll try to test with the mods from Valhalla Community Server Collection. Maybe the mod conflicts with some other...
KodeMan Sep 12, 2023 @ 1:29pm 
Originally posted by 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  [developer] Sep 12, 2023 @ 2:05pm 
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.
Last edited by Bion; Sep 12, 2023 @ 2:26pm
KodeMan Sep 12, 2023 @ 4:38pm 
Originally posted by 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  [developer] Sep 12, 2023 @ 5:56pm 
KodeMan, absolutely not. What I meant is just the condition for the server role (isServer()), as it doesn't represent any player
KodeMan Sep 13, 2023 @ 4:32am 
Originally posted by 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 Sep 24, 2023 @ 11:45am 
`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 Sep 24, 2023 @ 11:46am 
Ah, it happens constantly, even when left clicking on the ground. This is after the update. No issues before.
dpz34 Sep 24, 2023 @ 11:53am 
Originally posted by 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 Sep 24, 2023 @ 12:01pm 
Yep, everyone in the server is getting the same error when left clicking on the ground.
Bion  [developer] Sep 24, 2023 @ 12:12pm 
Sorry for that, I couldn’t test the mp specific code before I published the update. Should be fixed now.
KodeMan Sep 24, 2023 @ 12:28pm 
That fixed it! all is good
KodeMan Sep 24, 2023 @ 12:31pm 
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
Last edited by KodeMan; Sep 24, 2023 @ 12:32pm
Greg Oct 8, 2023 @ 11:56am 
When picking up some objects in hands, they are invisible? Any ideas
< >
Showing 1-15 of 17 comments
Per page: 1530 50