Project Zomboid

Project Zomboid

[B42]Grab and Drop
31 Comments
Keinori 28 Jul @ 7:30pm 
@Yuutsuna01 I recommend that you correct it yourself
Yuutsuna01 22 Jul @ 4:48pm 
Hey I see people fixing the mod but did the changes were added to the mod or do I need to modify it myself?
Cosmo 21 Jul @ 2:23pm 
Hey @deadheryk endless errors build 42

`function: onTick -- file: GrabAndDrop.lua line # 672 | MOD: Grab and Drop
java.lang.RuntimeException: Object tried to call nil in onTick
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:100)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:954)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
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:72)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:315)
Cosmo 21 Jul @ 2:23pm 
at zombie.gameStates.IngameState.onTick(IngameState.java:1847)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1729)
at zombie.gameStates.IngameState.update(IngameState.java:1464)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
at zombie.GameWindow.logic(GameWindow.java:382)
at zombie.GameWindow.frameStep(GameWindow.java:916)
at zombie.GameWindow.mainThreadStep(GameWindow.java:642)
at zombie.MainThread.mainLoop(MainThread.java:76)
at {LINK REMOVED} Source)
`
Keinori 12 Jul @ 11:33am 
@이상한잉간 yeah, we fix it, thank u :steamhappy:
이상한잉간 11 Jul @ 5:07am 
@Keinori Also, if you replace the code on line 672 with "elseif (iconUpdateTime - getTimestampMs()) > iconUpdateInterval and player and player.IsAiming and player:IsAiming() then"
then, the error logs no longer appear and the mod functions normally.
I think it's fixed now.
Keinori 6 Jul @ 9:14am 
I managed to partially fix the mod with the help of AI, just by changing a part of the .lua file that is more or less in SteamLibrary\steamapps\workshop\content\108600\3395614151\mods\GrabAndDrop\42\media\lua\shared in it, just open the file "grabanddrop.lua" and edit line 670, which should have something like "iconUpdateTime = getTimestampMs() + " followed by a value that AI pointed out to me as absurd, just change it to 200 and it should work. Just remember that this won't fix the errors permanently, it will just make them stop. From what I understand, the mod port has difficulty tracking the player in B42 since the codes that did this changed, which is why it gave an infinite error. With this adjustment, just enter the save with the mod and move the character and they should stop, but they will return whenever you open the save, until you move the character again. I hope I helped, I don't know enough about programming but I intend to develop mods someday.
deadheryk  [author] 4 May @ 7:54am 
Hiii, i am not playing project zomboid anymore because i will wait for when it releases the build 42 to the main version, maybe after that i will try to update this mod so it can work, but if anyone want to make this work, please go on so others can have fun
Noisy Koi 18 Apr @ 1:33pm 
could this separate the grab and drop options? it's really annoying dropping one bag while trying to pick up the other
ToastyCosty 12 Apr @ 1:40am 
very dirty "fix" for 42.6: comment line 672 and 673 in media/lua/shared/GrabAndDrop.lua
Ryan 6 Apr @ 2:55am 
2nd half of error

at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:315)
at zombie.gameStates.IngameState.onTick(IngameState.java:1966)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1845)
at zombie.gameStates.IngameState.update(IngameState.java:1507)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:388)
at zombie.GameWindow.frameStep(GameWindow.java:928)
at zombie.GameWindow.run_ez(GameWindow.java:821)
at zombie.GameWindow.mainThread(GameWindow.java:619)
at java.base/java.lang.Thread.run(Unknown Source)
`
Ryan 6 Apr @ 2:55am 
1st half of error

`function: onTick -- file: GrabAndDrop.lua line # 672 | MOD: Grab and Drop
java.lang.RuntimeException: Object tried to call nil in onTick
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:100)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:954)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
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:72)
Ryan 6 Apr @ 2:55am 
`function: onTick -- file: GrabAndDrop.lua line # 672 | MOD: Grab and Drop
`
Titto Hokkaido 25 Mar @ 9:36pm 
Can confirm it is only when standing still
Kuzako_Avali TTV 24 Mar @ 3:17pm 
Thank you comments for confirming this is the mod throwing thousands of errors after 42.6, but only when standing still.
Hirashu 24 Mar @ 1:55pm 
error since 42.6
Vl4dskool 24 Mar @ 11:36am 
same as ethel :(
ethel † 24 Mar @ 10:41am 
Sadly 42.6 broke this mod, it's launching infinite errors. :steamsad:
Wesch 28 Jan @ 4:50am 
@deadheryk thanks! and good luck
deadheryk  [author] 28 Jan @ 4:36am 
@Wesch thank you, i tested and found the error, just trying to figure out how to fix, it's my first time in zomboid mods.
Wesch 27 Jan @ 2:23pm 
here is the log for when trying to pick up generator by double clicking it or pressing e

https://pastebin.com/ZNbyvyKy
deadheryk  [author] 23 Jan @ 4:31pm 
I will give a look in these errors, i am playing with ps5 controller and i was able to pick up generator and no issues with context before the patch, in the weekend i will test about thesse and see if i can fix something
Wesch 22 Jan @ 4:06pm 
Don't know if you can fix it, but if you try to press E to pickup a generator on the ground it'll just give errors
Illtor 21 Jan @ 8:06am 
Quick question. Does this mod create it's own joypad config file? I'm having an issue that the game is making one that isn't Xinput 1 or Xinput 2 but another one that's taking over and not letting me use my D-Pad in the context menu.
Please make a button to sit on the ground, put the main weapon in the bag, put the second weapon in the bag.
Kevineko 2 Jan @ 10:24am 
aaaaaaaahhhh THANK 😍😍
KARINA42 1 Jan @ 8:07pm 
thanks u
miss u ozzy 31 Dec, 2024 @ 10:02am 
i lofiu <3
Quigz125 30 Dec, 2024 @ 1:34pm 
Thank you!! Keep walking around and pressing E and I can’t pick things up. Love this mod back again!!
deadheryk  [author] 30 Dec, 2024 @ 6:09am 
thanks, i like to play in split screen with controller.
Wesch 30 Dec, 2024 @ 5:01am 
Nice port!