Project Zomboid

Project Zomboid

[B42]Grab and Drop
36 条留言
Keinori 10 月 10 日 上午 9:31 
@猫子
I dont know how to do that, and i dont want future problems with this hahaha
猫子 10 月 10 日 上午 5:13 
@Keinori
Could you release a version independently in the workshop?:steamhappy:
This mod has been abandoned.:steamsalty:
Keinori 10 月 7 日 下午 4:41 
to anyone who wants to use this mod, here is the archive with the correction to work in B42.12: https://drive.google.com/file/d/1ys9cEQ9fO7MmAxo1bsqumCK8dX9Iy11A/view?usp=sharing
just paste this in your Steam folder in the storage where your instaled your PZ. SteamLibrary\steamapps\workshop\content\108600\3395614151\mods\GrabAndDrop\42\media\lua\shared ovewrite the file and have fun :steamthumbsup::steamhappy:
Keinori 10 月 3 日 上午 10:23 
@sineucha until yesterday it was working for me, the 이상한잉간 part is not very specific, are you sure you fixed the exact part?
sineuncha 10 月 2 日 下午 11:56 
For further information : Code editing as @Keinori and @이상한잉간(ㅋㅋ) said(thank you by the way) works no longer now. I've tried.
Keinori 7 月 28 日 下午 7:30 
@Yuutsuna01 I recommend that you correct it yourself
Yuutsuna01 7 月 22 日 下午 4:48 
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 7 月 21 日 下午 2:23 
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 7 月 21 日 下午 2:23 
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 {链接已删除} Source)
`
Keinori 7 月 12 日 上午 11:33 
@이상한잉간 yeah, we fix it, thank u :steamhappy:
이상한잉간 7 月 11 日 上午 5:07 
@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 7 月 6 日 上午 9:14 
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  [作者] 5 月 4 日 上午 7:54 
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 4 月 18 日 下午 1:33 
could this separate the grab and drop options? it's really annoying dropping one bag while trying to pick up the other
ToastyCosty 4 月 12 日 上午 1:40 
very dirty "fix" for 42.6: comment line 672 and 673 in media/lua/shared/GrabAndDrop.lua
Ryan 4 月 6 日 上午 2:55 
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 4 月 6 日 上午 2:55 
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 4 月 6 日 上午 2:55 
`function: onTick -- file: GrabAndDrop.lua line # 672 | MOD: Grab and Drop
`
Titto Hokkaido 3 月 25 日 下午 9:36 
Can confirm it is only when standing still
Kuzako_Avali 3 月 24 日 下午 3:17 
Thank you comments for confirming this is the mod throwing thousands of errors after 42.6, but only when standing still.
Hirashu 3 月 24 日 下午 1:55 
error since 42.6
Vl4dskool 3 月 24 日 上午 11:36 
same as ethel :(
ethel † 3 月 24 日 上午 10:41 
Sadly 42.6 broke this mod, it's launching infinite errors. :steamsad:
Wesch 1 月 28 日 上午 4:50 
@deadheryk thanks! and good luck
deadheryk  [作者] 1 月 28 日 上午 4:36 
@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 1 月 27 日 下午 2:23 
here is the log for when trying to pick up generator by double clicking it or pressing e

https://pastebin.com/ZNbyvyKy
deadheryk  [作者] 1 月 23 日 下午 4:31 
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 1 月 22 日 下午 4:06 
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 1 月 21 日 上午 8:06 
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.
=Добро и позитив= 1 月 4 日 下午 11:54 
Please make a button to sit on the ground, put the main weapon in the bag, put the second weapon in the bag.
Kevineko 1 月 2 日 上午 10:24 
aaaaaaaahhhh THANK 😍😍
KARINA42 1 月 1 日 下午 8:07 
thanks u
I'ma f♥ck up my life 2024 年 12 月 31 日 上午 10:02 
i lofiu <3
Quigz125 2024 年 12 月 30 日 下午 1:34 
Thank you!! Keep walking around and pressing E and I can’t pick things up. Love this mod back again!!
deadheryk  [作者] 2024 年 12 月 30 日 上午 6:09 
thanks, i like to play in split screen with controller.
Wesch 2024 年 12 月 30 日 上午 5:01 
Nice port!