Project Zomboid

Project Zomboid

164 ratings
Customizable Weight Multiplier
3
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
50.130 KB
Nov 2, 2023 @ 2:00am
Feb 7 @ 3:33am
7 Change Notes ( view )

Subscribe to download
Customizable Weight Multiplier

Description
Adds a Sandbox Option to change the weight of all items.
This will multiply the weight by said option.
As example a setting of "0.25" would change the weight to a quarter of what it was.
A setting of "2.0" would make everything weigh double.
By Default the mod is set to 0.5 (for the people that dont use custom sandbox)

B41 has a submod for fishies. enable to affect fish
it will show up in B42 but wont do anything

What this mod does :
It alters every inventory Items "Base Weight" by the multiplier when the world gets loaded.
This allows you to alter the weight in the Sandbox Settings (server or using mods Like Stars),
even mid game and the Items will have the new Weight once you restart the world.

Fish are a exception to this as the weight and nutritional value is calculated when the fish is "created" means spawned as loot or caught. Reason for the B41 submod. altering the multiplier will not affect fish that are already present.
(if i would do them like the other items they would have very borked hunger and nutritional values)

What this mod dosnt do :
Every "movable furniture" has is orginal weight.
Furniture is handled by a entirely different concept thats hard to intercept.
i tried to implement it but it just gives me headaches.
((if someone knows how to affect "all" furniture im happy to implement it into this mod.))


Known ?Problems?
not sure if these are problems/bugs:

Since this mod affects also tires,mufflers,seats, suspension and other car parts
It will make all cars ligther/heavier. (depending on multiplier)
Excpect sligthly altered car behaviour!

If a Attachment (to a weapon, backpack etc) uses Flat Weight reduction
items can possibly have negative weight depending how small your multiplier is.
i only Experienced this so far with Low Multipliers and some modded Weapon attachments.

B42 Version :
only the main mod is Avalible right now. the fish submod is broken and will need the api to be released before i can fix it.
The Fish mod WILL show up in your modlist but currently is just a empty placeholder so i can maintain Version 41 support.
the new Fluid container mechanic is also not affected (the container itself is) this also wont be fixed till the API is avalible.

FuelTime Fix! for B42:
Now Fuel items will burn for the correct amount of time instead of using the altered weight
(logs will burn for 6 hours no matter your multiplier)

!Also this will only "undo" my weight reduction!
if you have another mod that makes the burnable stuff ligther it wont fix theirs!

Workshop ID: 3069424394
Mod ID: CustomizableWeightMultiplier
Mod ID: CustomizableWeightMultiplier-fish
102 Comments
云染墨色 Mar 27 @ 2:40am 
Oh, I understand. Thank you very much for your answer
Tidurian  [author] Mar 27 @ 2:28am 
@云染墨色: The Fish submod is not active in build 42 be default because it is not working. Bobber.lua should not be executed at all. quote from mod description: "only the main mod is Avalible right now. the fish submod is broken and will need the api to be released before i can fix it.
The Fish mod WILL show up in your modlist but currently is just a empty placeholder so i can maintain Version 41 support."

Google Translator:
Fish 子模块在版本 42 中默认不活动,因为它不起作用。Bobber.lua 根本不应该执行。引用模块描述:“目前只有主模块可用。fish 子模块已损坏,需要发布 api 才能修复它。
Fish 模块将显示在您的模块列表中,但目前只是一个空的占位符,因此我可以维护版本 41 支持。”
云染墨色 Mar 27 @ 2:23am 
From Baidu Translate
It's version 42, I encountered it yesterday and found another mod. After I closed that mod, the error disappeared.
I just tried to ask DS to look at the error code, and DS said that the mod had just modified a certain weight when creating an item, so that a certain weight became null. However, this mod encountered an error when modifying the weight. Deekseed's suggestion is to add a control protection mechanism to directly skip the value when null occurs.
But anyway, I really like this mod, thank you very much
Tidurian  [author] Mar 27 @ 2:12am 
@云染墨色 : When does the error happen? What version of the game(41/42)? the small error report you provided also mentions another mod: Advanced Warfare: Community Weapons FrameWork

Google Translator :
错误是什么时候发生的?游戏的哪个版本(41/42)?你提供的小错误报告还提到了另一个模组:Advanced Warfare: Community Weapons FrameWork
云染墨色 Mar 26 @ 3:59am 
After solving the previous problem, I encountered a new one.If you need a more detailed error report, please let me know

attempted index: setActualWeight of non-table: null
function: onCreateFish -- file: Bobber.lua line # 5 | MOD: Customizable Weight Multiplier Fish
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@a4831b7f
function: CheckAdd -- file: WeaponPartSort.lua line # 11 | MOD: Advanced Warfare: Community Weapons FrameWork
java.lang.RuntimeException: attempted index: setActualWeight of non-table: null
云染墨色 Mar 26 @ 3:42am 
HI,I think I've found the problem. It's a conflict with my mod. I'm very sorry to bother you
Tidurian  [author] Feb 27 @ 4:18am 
@LǎoSeven : Google Translator : 전체 오류 메시지가 필요합니다. 게시한 부분에는 무엇이 잘못되었는지 표시되지 않습니다.
Tidurian  [author] Feb 27 @ 4:16am 
@LǎoSeven This Little Snippet does not help.
i if my mod causes a Error i need the entire Error message.
caraea Feb 26 @ 2:18pm 
MOD: Customizable Weight Multiplier Fish
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@8933c61c
caraea Feb 26 @ 2:16pm 
Customizable Weight Multiplier Fish 모드가 올바르게 설치되었는지, 그리고 다른 모드와의 충돌이 없는지 확인하십시오.