Project Zomboid

Project Zomboid

[B42] KR FriOS (Mobile Fridge/Cooler/Freezer/Stove - Solar Battery Charger) WIP
120 Comments
D4RK-C0MP4N1  [author] 2 Aug @ 8:16am 
QS

For them to work, you need to place the battery inside the device's inventory - it doesn't work like a flashlight where you just right-click to insert a battery.

Johnny Blue

al principio si, pero debido a como actúa la carga de objetos y la persistencia de código en ellos no funciona, es un problema el cual estoy tratando de entender, espero que cuando salga el multijugador del B42, agreguen una función nueva de persistencia de objetos
D4RK-C0MP4N1  [author] 2 Aug @ 8:12am 
Holunderhorst

there is a B41 version inside this mod, i think it works

L⊙ω⊙K砖家

Currently, the cooler and refrigerator don't seem to work properly due to how objects are programmed. I'm trying to figure out how to make them function outside the player's view, but haven't succeeded yet. The specific issue is that the game loads them as if they were static containers (like boxes, shelves, etc.).
Johnny Blue 1 Aug @ 11:34pm 
Hola! tengo una pregunta. no funciona cuando esta dentro de otro contenedor? por ejemplo en el maletero del auto?
QS 25 Jul @ 9:31am 
How do they work? I pick up a portable fridge and can't insert a battery or take it out, and yet the fridge seems to work just fine
L⊙ω⊙K砖家 13 Jul @ 12:38pm 
电池放充电器里 然后充电器放置室外 但是一天电量还是0 42.10版本
Holunderhorst 4 Jul @ 2:06am 
this has the B41 tag but only says B42 in the title. Does this work in 41?
D4RK-C0MP4N1  [author] 3 Jul @ 7:26am 
Shikoi Kurogami

I haven’t checked the changelog or the code related to 42.10, so it's very likely something broke.
D4RK-C0MP4N1  [author] 3 Jul @ 7:26am 
Phoenix

I'll fix the mod when the time comes. For now, you can use the items as paperweights :(, but once the update arrives, all those items will work correctly. I'd also like to know the spawn rate, as I don’t want it to be excessive. I consider these items a rare luxury, since I'm even considering just making food freeze inside refrigerators and coolers due to the tests I’ve done and the weird way the game updates items.
D4RK-C0MP4N1  [author] 3 Jul @ 7:25am 
(Grieving) ᶜ8ᴱ 🎱 ๖ۜKar

I'll update it once B42 is finished and, more importantly, once multiplayer is available. Right now, it's hard to tell if this mod, in its current state, will work with multiple players based on the code I have to prevent food from rotting.
D4RK-C0MP4N1  [author] 3 Jul @ 7:25am 
effertzgage2008 - RayPlayST

For now, it only works when it's in the world, not inside containers. This is because the item itself is a world object—for example, a chair—and when placed inside an inventory, it loses its cooling properties since the game considers it deleted.
Shikoi Kurogami 2 Jul @ 5:34pm 
Doesn't seem to be working in 42.10? Unless I'm doing something wrong?
RayPlayST 29 Jun @ 3:33am 
现状:
Fri冰箱 装了电池和食物
冰箱在地上时 食物开始冰冻
冰箱放进车尾箱时 冰箱就不工作了 食物开始解冻和腐烂

希望冰箱在车尾箱时也能工作

ps:那个背包冷藏的mod(非冷冻) 把冷藏背包放车尾箱时也能工作
Phoenix 23 Jun @ 11:59pm 
the solar charger isn't charging my core at all, and none of the appliances are actually working either. I'll still play with this and collect items from it, but I hope this gets fixed someday
Can't seem to get the mod working at all aside from the items spawning in and having inventory. The fridges, freezers and cooking appliances from your mods don't seem to have any functionality for me at all. I'll favorite your mod and try again another time but for now it isn't meeting my needs. When B42 fully releases to stable I'll give your mod another try. I think it may be the unstable branch causing the mod to not work properly.
effertzgage2008 1 Jun @ 1:03pm 
Only works while the freezer/cooler is in world, but when in inventory food gets stale and rot as normal.
meredithmckeown02 29 May @ 5:12pm 
No problem. Thanks for letting me Know. I thought it was something I did wrong on my end. Seriously no rush.
D4RK-C0MP4N1  [author] 29 May @ 12:43pm 
It's a bug - I apologize. Currently, the mod is undergoing a complete code restructuring. I hope to finish it before the next update. I'll have some free time in a few days and will be able to dedicate myself fully to this mod's development
meredithmckeown02 28 May @ 1:54pm 
I'm on B41 and the Solar chargers seem to not charge the batteries. I have had them out for 4 days in game and no changes. Is this a user error or a bug?
D4RK-C0MP4N1  [author] 21 May @ 7:16pm 
Greetings everyone

I've been testing the concept I had in mind, and while the results show promise, they're still somewhat disappointing. I'll be opening a new discussion forum titled "NewOS - News & Updates" where I'll share development progress and future updates
QUANTUMSTAR 20 May @ 5:01pm 
Thank you so much for all your hard work, love the mod!! <3<3
D4RK-C0MP4N1  [author] 20 May @ 12:07pm 
I just noticed the new update is out. I'll take a look at it, decompile the source code again, and see what I can work on in the coming days
D4RK-C0MP4N1  [author] 20 May @ 12:03pm 
Currently it only works when placed on the ground. Unfortunately, when implementing the persistence system, the functionality for it to work inside inventories or containers was lost. I'm really sorry about this, but I'll try to release an update to fix this in the next B42 update
QUANTUMSTAR 19 May @ 7:37pm 
Hi! Just because I'm dumb and confused about how this mod works... are the freezers/coolers/fridges supposed to work ONLY IF they're not in any bags/containers and left on the ground? I'm on B41, holding off from updating the game for now, and friOS containers don't seem to work when I keep them in my character's bags (duffel bags, backpack etc).
D4RK-C0MP4N1  [author] 7 May @ 7:17am 
Please check the v2.2 changelog - this is a known issue. Try not to load your game while standing next to a FriOS device. Why does it happen? I have absolutely no f...g clue :(
ejKai 7 May @ 6:10am 
Battery dissapered from cooler :(
Greisyn 6 May @ 6:47am 
ahh ok, perhaps until the bugs are ironed out maybe setting the code for coolers/freezer to just freeze, there is also a freezer based icecream truck mod having the same issue of not freezing. i think that function is more important than cooling, at least for the people looking at food preservation. im sure you'll get it keep up the great work and thanks for the helpful mod!
D4RK-C0MP4N1  [author] 6 May @ 6:19am 
I know. I've been having trouble setting up the food spoilage rates for freezers. I've run multiple tests, and only in some cases did the food actually freeze—not visually, but in the game's code. When implementing both cooling methods (freezing and refrigerating), for some reason refrigerators would freeze food while freezers only cooled it. I swapped their functions, which resulted in both freezing food. After another test where I reverted the changes, both devices only cooled. It's really strange, but I think there's a solution.

During these quieter days, I've been brainstorming (though not yet testing) a definitive version that would fix all the issues—persistent cooling logic, spoilage, and freezing—even if it doesn't work exactly how I'd like. At least it's progress. For now, I can confirm that the freezer cools at the same rate as the fridge and cooler.
Greisyn 6 May @ 5:59am 
Freezer only chilling food (no instant freeze with core battery) seems to work otherwise just having food go stale and not freezing.
D4RK-C0MP4N1  [author] 5 May @ 6:08am 
You probably loaded that area with the older version, and since loot generates when the chunk loads, it spawned an obsolete Cooler. That Cooler stayed there until you found it
Noisy Koi 4 May @ 7:55pm 
unless that's a change you made recently, the reason I brought it up is because I found one that had spawned naturally, I don't remember where but I started my current run (B42) less than a week ago and came across a "FriOS Cooler [Obsolete]" and haven't been sure of what to do with it.
D4RK-C0MP4N1  [author] 4 May @ 6:54pm 
I kept obsolete items to avoid deleting players' stored food—removing them would wipe both the container and its contents. Don’t worry, though; they no longer spawn naturally
Noisy Koi 4 May @ 4:42pm 
any chance you could remove the "obsolete" ones from the loot table? I assume its only still in the mod to avoid breaking someone's save
Blagden 4 May @ 12:56pm 
Great mod but I had the same issue as Tag, just w/o any backups but, eh, that's life. Teaches me a bit about how this game operates and how big cells are as it affected just one two corners of my base building but on all three floors. The worse part is it deleted my only charger and I haven't found another yet (only new one I've found has been a stove).
Noisy Koi 3 May @ 3:22pm 
they also weren't working when carried in the player inventory or equipped in hand, woulda done a proper bug report but moreso wondering if its an everyone problem or just a me problem
D4RK-C0MP4N1  [author] 3 May @ 2:22pm 
The issue might be related to my container system implementation. What I'm doing is converting containers into in-game structures while preserving their item properties. Perhaps when stored in another container, the game fails to load them because they're not 'built' in the world. I'll try doing another full review of that mod section, but my brain is completely fried just from getting this new system to work in the first place
Noisy Koi 3 May @ 2:14pm 
is anyone else having an issue getting it to work? I stuck a core battery and a potato in a stove and a fridge, they weren't working in my inventory, or in a vehicle trunk, but they did start working when I placed them on the ground, but stopped working once I picked them up again.
D4RK-C0MP4N1  [author] 3 May @ 8:11am 
My mod doesn't alter loot tables - it only adds my items to existing ones, just like 90% of mods out there. I even watched tutorials on item implementation. However, I use an iterative group-based method: I designate probability groups, item groups, and location groups, then modified the standard code most modders use to iterate through my object groups instead.

Other modders' approach:
table.insert(ProceduralDistributions["list"]["CrateAntiqueStove"].items, "Base.TakOSMictlan");

My method:
table.insert(ProceduralDistributions.list[ loc.name ].items, loc.prob)

I'm genuinely sorry this happened - even though I followed W. Patrick and Blackbeard's tutorials.
Tag 3 May @ 3:14am 
To clarify a little as i come off a bit rude sometimes, this mod worked as expected and is an excellent addition to the game, the issue i'm having should only effect those that sub a while back and started a new game and still on that playthrough.

I have had to disable this mod and load an older manual save to recover the glitched cells to my hideout. I was lucky some folders were still in the recycle bin after a cleanup!
Tag 3 May @ 2:03am 
This mod was a fridge/cooler/freezer when i added to my game.

It now has a stove.

You don't need a log to know what has happened.

By doing this, loot id numbers across the game change, so for arguments sake the 20 box of ammo becomes 20 windscreens and because you can't fit 20 windscreens into a bedside table the game freaks and loads the default cell - thus loading new loot with new id's.

This is more common if you start removing mods that have include loot items mid-game. Can also happen when mods are changed(!) or added mid game - which is generally ill advised for this very reason.

Please don't alter loot tables of mod unless you have mod marked down as beta. Or include additional loot options as a separate mod/option in mod menu.

Thanks
D4RK-C0MP4N1  [author] 2 May @ 6:03pm 
Well, I'm using the same save file for testing, and the only things that have disappeared are the batteries due to that weird bug I can't identify in v2.2. I'm sorry, but without logs, I can't investigate it further
Tag 2 May @ 8:23am 
i just log in and various changes I made to base has been reverted back to default and all loot containers I place are gone and default furniture that has now reappear also contains default loot - as if the loot table has been changed and can not find items so the game loads default cells.

I confirmed it was this mod by loading a manual save from 3 days prior without it activate and modifications i made to building have been recovered...

however, not everyone makes manual saves and now risk logging in and going through what I have.

My recent save is now lost/corrupt/all looted items lost/several days lost
^3KLiff 2 May @ 12:29am 
I found solution of my problem. Place fridge to somewhere you want and put core battery inside from inventory. Simple.
D4RK-C0MP4N1  [author] 1 May @ 11:03am 
Thanks. It's strange that you found all the variants but not the battery - statistically you should have found at least one by now. Could you tell me how long you've been searching and what your loot settings are?
optprime.cpu 1 May @ 9:07am 
Nice work, hopefully I can find the battery in the next town I visit. I've found every color fridge and cooler, even found the charger but no battery.
D4RK-C0MP4N1  [author] 1 May @ 12:03am 
I'm having the same issue, though it's weird that it happens. I don't know why, but try picking it up, putting it inside another container, dropping it on the ground, walking a few meters away, and coming back. I wish I could help more, but this has been happening since B42. I don't know what causes the container space to 'ghost-shrink' like that
^3KLiff 30 Apr @ 11:33pm 
Hello. Found frios fridge and frios core battery, but i cant insert the last one. I tried to load mod almost at top position, but it didnt work too.
D4RK-C0MP4N1  [author] 30 Apr @ 9:46am 
I just updated the mod—now batteries and chargers can appear in kitchen cabinets and shelves. Chargers have a 10% spawn rate, and batteries have a 20% rate. This should fix your problem
D4RK-C0MP4N1  [author] 30 Apr @ 5:57am 
Batteries spawn in refrigerators, freezers, electronics stores, some warehouses, military locations, survival shops, and hospitals. They have the highest spawn chance in refrigerators and freezers themselves.

Chargers have a low spawn probability overall. They share the same spawn locations as batteries, but they don't appear in refrigerators, freezers, or stoves
Raisan_Toucher 30 Apr @ 1:53am 
Where do the batteries and chargers spawn? I went through every house in rosewood and haven't found any, just coolers and fridges.
Cerberos.ger 29 Apr @ 10:09am 
Everything's fine, health always comes first, the mod isn't causing any errors. I was just surprised and initially thought the error was mine and that maybe another mod was causing it.