Project Zomboid

Project Zomboid

Quick Item Action
115 Comments
GXTV 18 Mar @ 4:34pm 
Working fine 41.78 on hosted server and was added mid-save!
Gerdo 16 Mar @ 1:43am 
I love lottery tickets. There is nothing better then winning $10 in post-apocalypse. Most of my characters have some kind of twinky goal like lottery tickets, money, porn magazines, underpants, gold and dice.

Someone should make a mod for this. Could work like the smoker trait for consumables or the well-fed mood for useables. Or just make numbers go up for flex and dopamine.
yayie 17 Feb @ 2:56pm 
Not exactly but its alright.
co`  [author] 17 Feb @ 2:34pm 
yayie: does that serve any purpose? ^^'
yayie 16 Feb @ 6:03pm 
Double click to scratch "Lottery Ticket".
co`  [author] 4 Feb @ 12:15pm 
@Mason I doubt this mod is responsible for the problem you describe because it only triggers actions that don't exist when double clicking. In all cases the vanilla code that handles double clicks is still running.
Mason 4 Feb @ 12:03pm 
@co`
it seems this mod conflict with tetris inventory
double click doesn't work on anything!
Preman Kampung 1 Feb @ 1:03pm 
Maybe if you can make a sample for making a patch so I can patch it my self?
Preman Kampung 1 Feb @ 1:00pm 
Yes, it was Rain's Firearm & Gun Parts. Maybe it change because I use mod that change categories? I'm using organizedCategories: Core mod.
co`  [author] 1 Feb @ 5:27am 
@Preman Kampung: I couldn't find a mod called "Rain's weapon." The closest matches I found were "Rain's Firearms & Gun Parts" and "B42 Rain's Firearms & Gun Parts." I tested both, and I was able to find the "Box of .45 ACP Rounds" and the "Box of 7.62x51 Rounds." However, in both cases, the display category was "Ammo," meaning the mod works as expected without any issues.

Are these the mods you were referring to? If so, it looks like the author updated them to align with vanilla display categories. If not, could you share a link to the specific mod you're talking about?
Preman Kampung 30 Jan @ 3:39pm 
Here the Lua output from opening 2 different ammo box from Rain's weapon mod

DEBUG: Name:Box of.45 ACP Rounds
DEBUG: Type:Bullets45Box
DEBUG: EatType:nil
DEBUG: Category:Normal
DEBUG: DisplayCategory:ammunitionFirearm
DEBUG: Name:Box of 7.62x51 Rounds
DEBUG: Тype:762Bоx
DEBUG: EatType:nil
DEBUG: Category:Normal
DEBUG: DisplayCategory:ammunitionFirearm
Preman Kampung 30 Jan @ 2:38pm 
Ok will do that. I'll report back later.
co`  [author] 30 Jan @ 10:31am 
@Preman Kampung: It depends on the display category of the item. If it's "Ammo", there's a good chance it will work out of the box. If not, I'm willing to make it work. In that case I'll need you to run the game in debug mode, and share the Lua console output when you double-click said ammo. The output should look something like:
```
DEBUG: Name:...
DEBUG: Type:...
DEBUG: EatType:...
DEBUG: Category:...
DEBUG: DisplayCategory:...
```
Preman Kampung 29 Jan @ 9:34pm 
Can it open ammo box from mods?
co`  [author] 26 Jan @ 9:13am 
New release to open canned food ;)
aliiidelfani 19 Jan @ 11:08pm 
you're a hero
co`  [author] 19 Jan @ 6:03pm 
Alright, new release is up, it fixes a regression in B41 after update for B42.
Sorry for the trouble ^^'
co`  [author] 19 Jan @ 6:00pm 
Ok I found a bug when using specific actions. Clearly there's an error (like a red square), but nothing like a full game crash. I'll push a new version in a few minutes, please let me know if that fixes the issue for you
co`  [author] 19 Jan @ 5:26pm 
also if you can share the steps to reproduce the crash that could be helpful
co`  [author] 19 Jan @ 5:25pm 
@Afanickton: I'm not able to reproduce the issue you describe on B41. Can you share the console.txt after the crash occurs?
Afanickton 19 Jan @ 5:08pm 
Can confirm this just crashes the game on Build 41. Causes a Lua error before just crashing the game entirely.
The Oreo 19 Jan @ 3:56pm 
Yes
co`  [author] 19 Jan @ 3:48pm 
Are you on discord?
co`  [author] 19 Jan @ 3:48pm 
Alas no
The Oreo 19 Jan @ 3:21pm 
Did you get to see the link before it was removed?
co`  [author] 19 Jan @ 3:03pm 
hum, I don't see anything in there that would point to this mod. Do you have something about QuickItemAction.lua in your console.txt? If yes please share a few lines before and after
The Oreo 19 Jan @ 3:00pm 
The Oreo 19 Jan @ 2:39pm 
[19-01-25 17:06:24.292] ERROR: General , 1737324384292> 344,921,203> DebugLogStream.printException> Stack trace:.
[19-01-25 17:06:24.302] ERROR: General , 1737324384302> 344,921,213> ExceptionLogger.logException> Exception thrown java.lang.NullPointerException: Cannot assign field "type" because "<parameter1>" is null at TextureDraw.glLoadIdentity line:860..
The Oreo 19 Jan @ 2:27pm 
Sorry I'm still trying to figure out what that means
co`  [author] 19 Jan @ 2:16pm 
Oops, sorry ^^'
Would you mind sharing the stack trace from your console.txt? Or simply uploading your Zomboid/console.txt somewhere
The Oreo 19 Jan @ 2:08pm 
on build 41
The Oreo 19 Jan @ 2:08pm 
game keeps crashing after updating :(
co`  [author] 19 Jan @ 1:53pm 
Also I probably forgot some actions that would be easy to add, just let me know!
co`  [author] 19 Jan @ 1:46pm 
Hi, I'm pleased to announce a new release for B42!
Also added new actions, see change notes for details.
I've tried to be careful not to break B41 but I haven't tested.
Please let me know if you encounter any issue!
Enjoy ;)
co`  [author] 19 Jan @ 1:44pm 
@Mitchel Vories: Well I'm already on this discord since the begining, but no clue here either. But the good news is I finally managed to get it working for B42 ;D
irrelevantredundancy 18 Jan @ 1:08pm 
Have you tried the PZ Modding Community Discord. I lurk on there and the thing those people talk about makes it feel like they might know a little bit.

https://discord.gg/gZnxBE3H
co`  [author] 16 Jan @ 9:51am 
@Mitchel Vories: Thank you. The problem is not about the new layout for B42, it's about how to achieve the same features from Lua code. Most actions supported by this mod, such as opening box of nails, seed packages etc are just recipes. In B41 it's easy to use a recipe from Lua code, but in B42 I can't figure out how to do it. I've been asking on PZ discord server but it seems noone has a clue :/
irrelevantredundancy 14 Jan @ 11:20am 
I had a link...can't find it. But the way I understood it, minimally it involves creating two new folders, one stays empty, the other receives (copy/paste) the contents of a folder that already exists. I don't know if my uneducated summary of an article I saw once give you any motivation, but I thought I'd offer it anyways. lol
co`  [author] 10 Jan @ 10:00am 
I'd love to update it for B42 but I have no clue how to do it. TIS completely changed the way recipes are handled. It might take a while for me to figure it out.
Klaarturo 20 Dec, 2024 @ 10:18am 
Hopefully this mod will be updated for Build 42, it is one of my favorite mods. Please, when possible, I would love you to update it :)
UnrealVenn 17 Dec, 2024 @ 4:34pm 
just going through my subscribed list because of the b42. when update for b42? tats all
=Добро и позитив= 28 Aug, 2024 @ 11:51pm 
Js thanks. u r right.
we have -- Pills
elseif itemDisplayCategory == 'FirstAid' and pillsTypes[itemType] ~= nil then
ISInventoryPaneContextMenu.takePill(item, 0)
remove the first condition
-- Pills
elseif itemDisplayCategory == 'FirstAid' and pillsTypes[itemType] ~= nil then
ISInventoryPaneContextMenu.takePill(item, 0)
ma pills work now.
=Добро и позитив= 28 Aug, 2024 @ 2:44am 
Thank you. Maybe it doesn't work for me.
co`  [author] 27 Aug, 2024 @ 11:35am 
@=Добро и позитив= : It's already there, last item from the feature list ;)
=Добро и позитив= 26 Aug, 2024 @ 10:16am 
is it so difficlt to add Take pills?
EGXex 18 Jun, 2024 @ 6:54am 
can you try to add applying bandages too. because if i have "fast bleed" and cant apply good bandages with the Right Click Menu, i die
co`  [author] 14 Jan, 2024 @ 5:15am 
@sno8ne: Isn't it already working in vanilla?
iaso2h 5 Jan, 2024 @ 6:22pm 
Nice work!:shelove:
Sho 12 Nov, 2023 @ 5:56pm 
It would also be useful to be able to open cans with a double click.
Sho 12 Nov, 2023 @ 3:51am 
Very useful. Thank you!

Requests
-Please make it possible to open and close the box in the backpack by double-clicking to take it out automatically.
-Please make it possible to wipe wet body with a rag or towel by double-clicking.