Project Zomboid

Project Zomboid

Working Vending Machines
137 Comments
Cyrisa 27 May @ 4:56am 
Love this mod a long time favorite!

Seems it shows this in the active mods text file. Even though it is working
mod = \2934155949/WorkingVending,
Noisy Koi 25 Apr @ 10:46am 
would be cool if we could use a crowbar to bust open a vending machine and loot money and items from it, but doing so would make that vending machine cease to function as a vending machine.
DisgracedPilot  [author] 20 Mar @ 5:43pm 
@KWG Glad that it works for you!
KWG 20 Mar @ 12:29pm 
Nevermind, I saw that you've already answered that. It's perfect, gives back some role to money in the apocalypse.
KWG 20 Mar @ 12:24pm 
Is there a limit for snacks and drinks in the machime? Cheers!
DisgracedPilot  [author] 20 Feb @ 8:26am 
@Monkey Magic Thanks. Just need to get around to it.
Monkey Magic 20 Feb @ 12:58am 
@DisgracedPilot - you may wanna add an icon file (something 32x32 and referenced as icon=FILENAME) for your mods. They show up as a black square otherwise, so may as well advertise your stuff :D
DisgracedPilot  [author] 19 Feb @ 12:51pm 
@Gimbo Vending machines will stop working when electricity stops. If you have a generator nearby, they will turn on again. Unfortunately, I haven't had time to implement opening the machines with a crowbar.
Gimbo 19 Feb @ 12:21pm 
what happen when electricity shutdown? u have to pray open it to have the things inside?
DisgracedPilot  [author] 18 Feb @ 12:48pm 
Updated to Build 42. Appears to work with limited testing. Please let me know if there are any problems.

Build 42にアップデートしました。動作するはずですが、もしバグや問題があったら、知らせてください。
DisgracedPilot  [author] 17 Feb @ 6:34am 
Currently working on the update to Build 42. Hope to have it finished soon.
Monkey Magic 15 Feb @ 5:46am 
@CJ187 -Are you asking the vendining machine to just suck the money right out of your wallet? Scary..
CJ187 12 Feb @ 3:00pm 
please can you support money in bags/pouches or modded containers like Wallets?
i have alot money, but not in the main inventory and the vending mashine says i have no money :(
Tafar 24 Jan @ 9:53pm 
Any updates?
DisgracedPilot  [author] 1 Jan @ 8:16pm 
Not at this time. Build 42 is supposed to include a vending machine update in a future release. I'll make a decision at that time about updating this mod.
aquelarrefox 1 Jan @ 7:42pm 
Does b42 include this mod?
DisgracedPilot  [author] 26 Dec, 2024 @ 4:51pm 
Thanks a ton. My general understanding is that Build 42 is supposed to have vanilla vending machine support. I'll have to see what the functionality is and decide whether or not this mod adds anything or if it becomes redundant. If there's something that I can add, I'll update it.
Klaarturo 21 Dec, 2024 @ 12:49pm 
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 :)
Gimbo 1 Dec, 2024 @ 7:39am 
but it's possible broke them when the electricity shut off?
Mang 13 Jul, 2024 @ 8:54am 
Works great with inventory tetris
Alastrianna 18 Jun, 2024 @ 6:03am 
Thank You <3
Crusader 31 Mar, 2024 @ 11:31pm 
Thanks!
DisgracedPilot  [author] 31 Mar, 2024 @ 10:51am 
@Crusader You can modify Line 46 of WVMContextMenu, which is the variable WVM_stock. Set it to a huge number. If you need it to work on an existing game, modify the conditional on Line 45 to say "if (true) then" so that it refreshes the value every time you use a machine.
Crusader 30 Mar, 2024 @ 10:46pm 
is there a way to configure it so that it never runs out?
aquelarrefox 23 Mar, 2024 @ 7:50pm 
well its not strange infact theres 2 context butons your for vanilla and other for the other mod soda. cool, both writing the code very well
aquelarrefox 22 Mar, 2024 @ 7:33am 
strange i will make a extended list for some other mods i use. yes seems strange. in fact it override Alfrety's Additional Sodas vending machine appears to be override, but that specific can i get its from that mod i will check if both are using the same name for the filter, seems rare
DisgracedPilot  [author] 21 Mar, 2024 @ 5:31pm 
@aquelarrefox These are the items on the list:

items = {"Base.Pop", "Base.Pop2", "Base.Pop3", "Base.PopBottle", "Base.WaterBottleFull"};
items = {"Base.Crisps", "Base.Crisps2", "Base.Crisps3", "Base.Crisps4", "Base.CookieChocolateChip", "Base.CandyPackage", "Base.Jujubes", "Base.QuaggaCakes", "Base.LicoriceRed", "Base.SnoGlobes"};

If your other mods re-use or overwrite these names, then those drinks and snacks will come out of the vending machines.
aquelarrefox 21 Mar, 2024 @ 4:27pm 
in fact for some reason it spwan a fanta of other mod. i will check for the list, is theres a list for snaks?.
For the users of EVEN WORSE Looting, i strong recomend make a patch to prevent the vendings to be locked cose items spaew in the tile inventory.
DisgracedPilot  [author] 21 Mar, 2024 @ 10:11am 
@aquelarrefox It does not support other sodas or snacks. However, you can add those items in WVMBuyItem.lua, line 51 and 53.
aquelarrefox 21 Mar, 2024 @ 9:53am 
a question it supports the sodas of other mods? Alfrety's Additional Sodas (adds its own cending machines i will check if your mod override totally that vending machine), buzz cola, etc. for example your mod can drop a buz cola? Whay kind of items comes from the vending machine as they are random, any from other mod?
aquelarrefox 11 Mar, 2024 @ 6:31pm 
only make a version without the soda machine to let the other mod override the vanilla one, its a soda mod so they dont override the chips machine, so that could be override by your mod.
DisgracedPilot  [author] 11 Mar, 2024 @ 3:16pm 
@aquelarrefox Yes, it's possible. The soda machine object needs to be added to a list. I'm not able to help with other mods, but the soda machine mod creator can try it.
aquelarrefox 11 Mar, 2024 @ 12:14pm 
could be posible a version with only the snake machine to use the soda machine from other mod?
Monkey Magic 26 Jan, 2024 @ 9:47am 
Nice to know ^^
DisgracedPilot  [author] 26 Jan, 2024 @ 9:34am 
@Monkey Magic I thought about rarely leaving items in the dispenser, but currently, nothing will spawn in the machines. The machines do have limited stock, so if you have enough money, you can completely empty them.
Monkey Magic 26 Jan, 2024 @ 7:59am 
Is there a low chance that a vending machine still has a food item in despite the change? For example, to represent something left by a dude that got attacked while using the vending machine who either fled out got dragged down...

Also, do the vending machines run out of merchandise?
DisgracedPilot  [author] 17 Jan, 2024 @ 2:49am 
@Puddings Glad that you're enjoying the mod. Keep in mind that the only thing that this mod does is enable vending machines. Wallets are out of scope. I have seen other mods that make wallets into inventory containers, so they might be what you're looking for.
Puddings 16 Jan, 2024 @ 12:12pm 
Mind updating this so we can have usable wallets?

Love the mod btw
DisgracedPilot  [author] 1 Jan, 2024 @ 1:04pm 
@crayven_ady It shouldn't be too difficult to edit some of the parameters in the mod to accept different forms of currency or to sell other kinds of items. It looks for "Money" in the player's inventory, but you can change that to digital watches or anything else. Similar for the items dispensed. If you browse through the comments, you'll see some notes from another user who did this.
Nandi 1 Jan, 2024 @ 2:38am 
Can this be used to sell anything?
And can we set our own currency - i want to use digital watches as "money".
DisgracedPilot  [author] 27 Nov, 2023 @ 10:34pm 
@trichogaster Not a problem, thanks a ton for following up anyway, and very good to know. Sorry that it's not compatible. The code looked promising, but unfortunately it didn't work out.
trichogaster 27 Nov, 2023 @ 2:15pm 
Sorry for taking so long to come back. The vending machines still work during 'Blackouts(Power outages mod)'s outages but they do go off once the elecricty is down for good. Not a big deal since they will eventually stop working and you'll need the generator to turn it back on.
Sventt 28 Oct, 2023 @ 5:29pm 
Hi I'm using it but when I interact with a vending machine it looks like another container
Mang 25 Sep, 2023 @ 3:14pm 
Aww, that's a shame.
DisgracedPilot  [author] 25 Sep, 2023 @ 3:07pm 
@Mang Sorry, not compatible.
Mang 25 Sep, 2023 @ 2:03pm 
Compatible with Planetalgol's Money (build 41) mod?
DisgracedPilot  [author] 17 Sep, 2023 @ 9:43pm 
@trichogaster You're very welcome, and thanks again for your translation! I've seen the blackout mod. I reviewed the vending machine code and the blackout code. It looks like the two mods are compatible, but please let me know what you learn.
trichogaster 17 Sep, 2023 @ 1:46pm 
Thank you for the awesome mod and for adding my translation to brazilian portuguese <3 I'm currently testing it along with the 'Blackouts(Power outages mod)" and still not sure if the machines will stop working during the outages or at all even after the electricity is gone. As soon as I have the answers I'll post here.
바보헌터 16 Sep, 2023 @ 4:37pm 
I'm using it well. I'm looking forward to the next update.
DisgracedPilot  [author] 11 Sep, 2023 @ 5:54pm 
@Mickeyyoyo Enjoy!