Project Zomboid

Project Zomboid

35 个评价
Working Cooler FG
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
38.935 KB
9 月 8 日 下午 11:38
9 月 12 日 下午 12:09
2 项改动说明 ( 查看 )

订阅以下载
Working Cooler FG

描述
Provides an upgrade to apply to a bag to turn it into a refridgerator.
A completely rebuilt, optimized, and updated version of the Cooler Backpacks mod.
Craft the TCM upgrade, right click a bag of your choice and there should be an option to install it.
Add batteries to recharge it via right click menu, note this destroys the batteries.

Now includes more SandBox settings you can use to make the feature as easy or as hard as you want.
The default settings should be considered 'easy', to make things harder, reduce tickDelay and/or increase battery drain.

Remember, the way the game manages item "Uses" is as follows:
Example 1: Item use value of 0.01 means an item has 100 "uses".
Example 2: Item use value of 0.001 means an item has 1000 "uses"
There are many mods that can alter a given items uses, this mod doesn't care about those, a full battery is 1000 energy. I may dive deeper into this feature down the road.

The game uses something akin to 'durability' in managing uses, naturally. A value of 1 means all uses are available otherwise the value will be between 0 and 1. A value of 0.788 for example means the item has 788 uses available.

Recharging the TCM from this mod sets the internal battery value to 1000 and the game ticks at 20-60 TPS. So a tickDelay of 1 (every tick) and a use rate of 0.001 means a battery will last awhile. 1000000 ticks = 4.63 hours of IRL time for a completely empty bag (at 60 TPS). Sandbox setting tickDelay defaults to 10 which increases that time 10x as it's only processing the battery every 10 ticks rather than every tick. This can help reduce lag and allows for a powerful way to tune the mod to your needs.

The Sandbox variables you can set:
chance = Chance a TCM is lootable from a Zombie.
tickDelay = Process Battery reduction every this many ticks, higher values means a TCM charge lasts longer.
batchSize = How many items in a cooler enabled bag to process per tick, this does NOT use tickDelay. High values may cause lag.
itemCountForMaxDrain = (Default 200) How many items are required in a bag to hit the depletionFull threshold.
depletionEmpty = How much battery per tickDelay ticks is used for a empty bag.
depletionFull = How much battery per tickDelay ticks is used for a bag with itemCountForMaxDrain or more items in it.

Keep in mind the items in the bag do not matter, the system will count everything for the check for itemCountForMaxDrain. You could have 200 nails in there, and you'd pull max power. So it's up to the player to manage their inventory properly.

I hope this satisfies those wanting the feature but wanting it to be harder. Share the settings you use and your experience so others might try them!

Workshop ID: 3564989150
Mod ID: WorkingCoolerFG
34 条留言
Soph 15 小时以前 
cool mod, would appreciate an update :steamsad:
XorOwl 12 月 10 日 下午 1:39 
any way this might get ported/updated for b41 multiplayer?
Flexible Games  [作者] 12 月 1 日 下午 12:27 
In my game, the items get a blue color indicating they are cool
They will not spoil or melt (if frozen) as long as the power holds out.
Again, you can tweak the balance via settings on how long this lasts per battery used.
Handler Walter 11 月 30 日 上午 3:01 
Well, it's getting cooler, but I don't really feel like the life span of the food is increasing..

Is it just me?
Flexible Games  [作者] 11 月 19 日 下午 4:23 
have bag in inventory, have tcm upgrade in inventory
right click on bag
install TCM
is this completely broken? Did the devs fubar UI code again?
dasclay 11 月 19 日 上午 12:32 
Hello, I found the tcm_upgrade. found 3, cannot get them to work on anything. tried on a cooler I found and it doesn't work.
I have other mods that affects bags, but the bags I tried are vanilla versions, or from authentic Z. I don't get a right click menu option. do I need to craft one?
heeoh123 10 月 26 日 下午 2:13 
I found an Icebox and applied TCM upgrade. I finally made a working cooler full of chilly beer. Very cool mod thanks!
Jaxx - pshoooo 10 月 24 日 下午 12:20 
you may want to reduce the character count on the sandbox settings, it literally cuts off both ends with how many letters are used lol
DrakeDealer 10 月 18 日 上午 8:25 
Bro, instead of adding QoL mods they rely on you to do the work for free. What do you think?
Flexible Games  [作者] 10 月 14 日 上午 11:18 
It's a tough balance. Adding features that require constant update ticks turns the game into a slideshow eventually. Because all that intense updating eventually brings the game to it's knees. So I coded this in a way to try to eliminate that issue while giving the player as many options as possible to tune it.
The main issue with the item system is the fact ALL items use the same class, which has over 400 variables. So in memory a hotdog item has variables used by ammo, materials, etc. Every item is a massively bloated object in memory.
I applied to the job at Indie Stone two weeks ago but haven't heard back, not sure if it's apathy or unprofessionalism at this point.