Project Zomboid

Project Zomboid

87 ratings
[B42]Grab and Drop
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
469.547 KB
29 Dec, 2024 @ 6:58pm
1 Change Note ( view )

Subscribe to download
[B42]Grab and Drop

Description
This mod adds hotkeys to quickly grab / drop carryable items. Along with a dedicated backpack hotkey.
original author: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3018929461&searchtext=grab+and+drop
if the original author say to delete this re-upload just say it and i will.
i am not a modder, just a day to day work web developer, so i don't know how to fix if there is something broken.
for now what i tested it's look like all working

Workshop ID: 3395614151
Mod ID: BION_DropBags
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