Project Zomboid

Project Zomboid

Working Vending Machines
148 Comments
DisgracedPilot  [author] 3 Oct @ 4:44pm 
@Monkey Magic I cleaned up the name of the mod, which might be why it is not recognised by an old save. It's still basically the same code otherwise. You may be able to remove the old listing from the mod list and add the most recent version.
Monkey Magic 3 Oct @ 4:31pm 
@DisgracedPilot - Did a recent update make this mod no longer compatible with old save files?

I have an older save file but this mod is shown as red in the modlist. It actually shows up in the list as \2934155949/WorkingVending rather than Working Vending Machines as well.
Dester 3 Sep @ 5:44pm 
Any chance we might see a mod created providing a weapons ammunition vending machine? Average cost during 1993 for 50 bullets (one_box) of the 9mm bullets was around 8 dollars. Easy to identify the price of other boxes during 1993.
DisgracedPilot  [author] 20 Aug @ 3:27pm 
@Nonan Yes, and the number of items is random for each machine. Some may be empty.
Nonan 20 Aug @ 3:10pm 
Does each vending machine have a limited amount of items it can give?
DisgracedPilot  [author] 19 Aug @ 9:23am 
@흉내쟁이 Thanks for the report. I fixed the item names and added a few new ones.
흉내쟁이 18 Aug @ 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] 13 Aug @ 10:10pm 
@Rachel L No, I don't support other mods at this time.
Rachel L 13 Aug @ 9:39pm 
But any way you can make it compatible with it? This is rhe mod link
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3399367994
DisgracedPilot  [author] 13 Aug @ 8:51pm 
@Rachel L Unfortunately, I can't guarantee that this will work with other mods.
Rachel L 13 Aug @ 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 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.
hoću_kitu 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.