Project Zomboid

Project Zomboid

Grab and Drop
KodeMan 12. sep. 2023 kl. 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)
< >
Viser 1-15 af 17 kommentarer
Bion  [udvikler] 12. sep. 2023 kl. 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
Sidst redigeret af Bion; 12. sep. 2023 kl. 9:38
Bion  [udvikler] 12. sep. 2023 kl. 9:56 
i'll try to test with the mods from Valhalla Community Server Collection. Maybe the mod conflicts with some other...
KodeMan 12. sep. 2023 kl. 13:29 
Oprindeligt skrevet af 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  [udvikler] 12. sep. 2023 kl. 14: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.
Sidst redigeret af Bion; 12. sep. 2023 kl. 14:26
KodeMan 12. sep. 2023 kl. 16:38 
Oprindeligt skrevet af 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  [udvikler] 12. sep. 2023 kl. 17:56 
KodeMan, absolutely not. What I meant is just the condition for the server role (isServer()), as it doesn't represent any player
KodeMan 13. sep. 2023 kl. 4:32 
Oprindeligt skrevet af 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 24. sep. 2023 kl. 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 24. sep. 2023 kl. 11:46 
Ah, it happens constantly, even when left clicking on the ground. This is after the update. No issues before.
dpz34 24. sep. 2023 kl. 11:53 
Oprindeligt skrevet af 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 24. sep. 2023 kl. 12:01 
Yep, everyone in the server is getting the same error when left clicking on the ground.
Bion  [udvikler] 24. sep. 2023 kl. 12:12 
Sorry for that, I couldn’t test the mp specific code before I published the update. Should be fixed now.
KodeMan 24. sep. 2023 kl. 12:28 
That fixed it! all is good
KodeMan 24. sep. 2023 kl. 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
Sidst redigeret af KodeMan; 24. sep. 2023 kl. 12:32
Greg 8. okt. 2023 kl. 11:56 
When picking up some objects in hands, they are invisible? Any ideas
< >
Viser 1-15 af 17 kommentarer
Per side: 1530 50