Project Zomboid

Project Zomboid

Working Vending Machines
145 Comments
DisgracedPilot  [author] Aug 20 @ 3:27pm 
@Nonan Yes, and the number of items is random for each machine. Some may be empty.
Nonan Aug 20 @ 3:10pm 
Does each vending machine have a limited amount of items it can give?
DisgracedPilot  [author] Aug 19 @ 9:23am 
@흉내쟁이 Thanks for the report. I fixed the item names and added a few new ones.
흉내쟁이 Aug 18 @ 7:21pm 
There is no Base.WaterBottleFull when trying to spawn it from the vending machine. It seems the item code name might have been changed. Also, after uninstalling and reinstalling the vending machine, its products appear to reset.
DisgracedPilot  [author] Aug 13 @ 10:10pm 
@Rachel L No, I don't support other mods at this time.
Rachel L Aug 13 @ 9:39pm 
But any way you can make it compatible with it? This is rhe mod link
https://steamcommunity.com/sharedfiles/filedetails/?id=3399367994
DisgracedPilot  [author] Aug 13 @ 8:51pm 
@Rachel L Unfortunately, I can't guarantee that this will work with other mods.
Rachel L Aug 13 @ 1:25pm 
Thiis mod is great, but it says i dont have money if the money is in a wallet (using Rains Real Wallet Fix)
Cyrisa May 27 @ 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 Apr 25 @ 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] Mar 20 @ 5:43pm 
@KWG Glad that it works for you!
KWG Mar 20 @ 12:29pm 
Nevermind, I saw that you've already answered that. It's perfect, gives back some role to money in the apocalypse.
KWG Mar 20 @ 12:24pm 
Is there a limit for snacks and drinks in the machime? Cheers!
DisgracedPilot  [author] Feb 20 @ 8:26am 
@Monkey Magic Thanks. Just need to get around to it.
Monkey Magic Feb 20 @ 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] Feb 19 @ 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 Feb 19 @ 12:21pm 
what happen when electricity shutdown? u have to pray open it to have the things inside?
DisgracedPilot  [author] Feb 18 @ 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] Feb 17 @ 6:34am 
Currently working on the update to Build 42. Hope to have it finished soon.
Monkey Magic Feb 15 @ 5:46am 
@CJ187 -Are you asking the vendining machine to just suck the money right out of your wallet? Scary..
CJ187 Feb 12 @ 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 Jan 24 @ 9:53pm 
Any updates?
DisgracedPilot  [author] Jan 1 @ 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 Jan 1 @ 7:42pm 
Does b42 include this mod?
DisgracedPilot  [author] Dec 26, 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 Dec 21, 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 Dec 1, 2024 @ 7:39am 
but it's possible broke them when the electricity shut off?
Mang Jul 13, 2024 @ 8:54am 
Works great with inventory tetris
Alastrianna Jun 18, 2024 @ 6:03am 
Thank You <3
Crusader Mar 31, 2024 @ 11:31pm 
Thanks!
DisgracedPilot  [author] Mar 31, 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 Mar 30, 2024 @ 10:46pm 
is there a way to configure it so that it never runs out?
aquelarrefox Mar 23, 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 Mar 22, 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] Mar 21, 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 Mar 21, 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] Mar 21, 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 Mar 21, 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 Mar 11, 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] Mar 11, 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 Mar 11, 2024 @ 12:14pm 
could be posible a version with only the snake machine to use the soda machine from other mod?
Monkey Magic Jan 26, 2024 @ 9:47am 
Nice to know ^^
DisgracedPilot  [author] Jan 26, 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 Jan 26, 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] Jan 17, 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 Jan 16, 2024 @ 12:12pm 
Mind updating this so we can have usable wallets?

Love the mod btw
DisgracedPilot  [author] Jan 1, 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 Jan 1, 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] Nov 27, 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 Nov 27, 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.