Project Zomboid

Project Zomboid

Custom Weight
48 Comments
Hx  [author] 22 Jun @ 6:46am 
@ErebodySnuggie I’ll update it soon
ErebodySnuggie 20 Jun @ 10:43am 
Can we get walkie talkies added to the list? Theres another mod that does it already but it would be nice to consolidate
SirAlfred3rd 29 Mar @ 7:55am 
Setting the weight of wood makes it useless as firewood as it has no burn time. Can you fix this?
QiTu 18 Mar @ 12:59am 
Can you create a function to set the weight of all items?:steamhappy:
Hx  [author] 15 Jan @ 11:21am 
@UndeadLokemaniac fix
Hx  [author] 15 Jan @ 11:18am 
오타가 있었네요
UndeadLokemaniac 15 Jan @ 11:11am 
I am getting the same error as below
흉내쟁이 15 Jan @ 9:07am 
업데이트후 에러가 발생하고 있습니다.

function: pcall -- file: CustomWeight.lua line # 83 | MOD: [B42] Custom Weight
Callframe at: pcall
function: adjustItem -- file: CustomWeight.lua line # 80 | MOD: [B42] Custom Weight
function: initCustomWeight -- file: CustomWeight.lua line # 314 | MOD: [B42] Custom Weight
Ax-13 7 Jan @ 6:06am 
des06 5 Jan @ 10:50am 
Same question, i can not change the values on an existing save
Syko_totem 4 Jan @ 3:07am 
How do I change the weight values if I add this mod to an existing save? Or can that only be done upon creating a game?
Welli's 2 Jan @ 5:15pm 
ShortSnaxx 2 Jan @ 4:27pm 
Options for jewelry?
Welli's 31 Dec, 2024 @ 2:27pm 
@Hx is it possible for you to make a collection with all your mods, those that you developed and ported to build 42?
yungen525 31 Dec, 2024 @ 10:45am 
개죠앙~
JoeOwnage 30 Dec, 2024 @ 6:18am 
Can you make all of the different tools weight customizable?
Mustang 28 Dec, 2024 @ 5:00pm 
Can you add money to the list too please?)
Hx  [author] 28 Dec, 2024 @ 11:45am 
@Unamelable update
Unamelable 28 Dec, 2024 @ 11:34am 
I forced game to use negative values through item config. But i didn't do it through LUA though.
aether 27 Dec, 2024 @ 10:49pm 
save compatible?
Hx  [author] 27 Dec, 2024 @ 8:31pm 
In build 42, negative numbers are not allowed. How did you fix this?
Unamelable 27 Dec, 2024 @ 1:17pm 
Can you split Erasers and Pen category?

I used to use Erasers as container upgrade to gain more loot. Like 1x Eraser will weights -80 or -200 or whatever you need.
Hx  [author] 27 Dec, 2024 @ 9:40am 
Nothing
SuperLisa 27 Dec, 2024 @ 8:48am 
What are the checkboxes between each category in the sandbox options? They aren't labelled and I can't figure out what they do.
Hx  [author] 27 Dec, 2024 @ 7:53am 
For B42 only
doodad 27 Dec, 2024 @ 6:59am 
Is this compatible with b41?
yeastie 26 Dec, 2024 @ 5:43pm 
와, 새로 업데이트해주신 파일은 에러 코드 전혀 안뜹니다! 완벽하게 해결됐어요. 감사합니다! 제 좀생을 구해주셨습니다.
Hx  [author] 26 Dec, 2024 @ 5:41pm 
C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\3391228479 폴더를 아예 삭제 후, 구독 해제 했다가 다시 하신 뒤, 스팀을 아예 종료했다가 다시 시작해보시면
변경된 파일로 다운로드 받을거에요
yeastie 26 Dec, 2024 @ 5:39pm 
감사합니다 ㅠ_ㅠ 넵!
Hx  [author] 26 Dec, 2024 @ 5:37pm 
@yeastie 저한테는 해당 현상이 없어서 어떻게 수정해야 할 지 잘 모르겠네요.. 일단 몇가지 부분을 주석처리해볼게요
yeastie 26 Dec, 2024 @ 5:26pm 
재구독해도 동일한 오류가 뜨네요 ㅠㅠ 모드 설정의 로그출력은 체크 해제된 상태인데, 새월드 만들거나 월드 진입시 오류코드가 꼭 올라와요.
Hx  [author] 26 Dec, 2024 @ 5:04pm 
@yeastie 619줄은 '모드 설정' 에서 로그 출력을 활성화 시 실행되는데, 구독 해재, 재구독 해보시겠어요?
yeastie 26 Dec, 2024 @ 4:50pm 
25일자 버전에선 lua에서 hollowbook, fakebook만 지워주면 에러코드 없이 잘 됐었는데, 오늘자 버전은 심각한 오류가 뜹니다. 심각: Error found in LUA file: D:/Steam/steamapps/common/ProjectZomboid/mods/CustomWeight/common/media/lua/client/CustomWeight.lua
ERROR: General f:0, t:1735260346987> ExceptionLogger.logException> Exception thrown
se.krka.kahlua.vm.KahluaException: CustomWeight.lua:619: 'end' expected (to close 'function' at line 93) near `<eof>` at LexState.lexerror(LexState.java:278).
Hx  [author] 26 Dec, 2024 @ 8:30am 
@胜天半子古尔丹
HollowBook and FakeBook have been removed :)
胜天半子古尔丹 G.B.F. 26 Dec, 2024 @ 8:17am 
:ontoagoodthing:Thank you, it seems to be a mod conflict...another mod hides the name of useless books and makes them become less. I'll disable it.
STACK TRACE
-----------------------------------------
Callframe at: error
function: pcall -- file: CustomWeight.lua line # 74 | MOD: [B42] Custom Weight
Callframe at: pcall
function: adjustItem -- file: CustomWeight.lua line # 71 | MOD: [B42] Custom Weight
function: initCustomWeight -- file: CustomWeight.lua line # 303 | MOD: [B42] Custom Weight.
[27-12-24 00:10:40.974] LOG : Lua f:0, t:1735229440974> Error adjusting item: Base.FakeBook. Reason: java.lang.RuntimeException.
Hx  [author] 26 Dec, 2024 @ 8:07am 
@胜天半子古尔丹
It seems that you may have entered a custom item name incorrectly.
A print() statement has been added to identify this issue.
Check the console.txt file for lines containing Error adjusting item:.
胜天半子古尔丹 G.B.F. 26 Dec, 2024 @ 7:27am 
Bug (maybe) report: I got an error on a new game:

STACK TRACE
-----------------------------------------
function: adjustItem -- file: CustomWeight.lua line # 60 | MOD: [B42] Custom Weight
function: initCustomWeight -- file: CustomWeight.lua line # 274 | MOD: [B42] Custom Weight.
[26-12-24 23:23:16.888] ERROR: General f:0, t:1735226596888> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: DoParam of non-table: null at KahluaThread.tableget(KahluaThread.java:1667).
Hx  [author] 25 Dec, 2024 @ 10:41pm 
@Phantom The weight of the mod loaded later will be applied.
Phantom 25 Dec, 2024 @ 10:30pm 
50% metal weight , Material Weight Reducer ,50% Wood Weight Are these modes compatible?
Hx  [author] 25 Dec, 2024 @ 7:45pm 
@hosie Except for custom items, everything else is possible
hoshie 25 Dec, 2024 @ 7:02pm 
Hey, can this be added on existing saves?
Hx  [author] 25 Dec, 2024 @ 10:49am 
@HungryCapibara Fix :)
Hx  [author] 25 Dec, 2024 @ 10:17am 
@Mustang
Negative values are not applied in the game
Mustang 25 Dec, 2024 @ 10:10am 
Can you please add money , and the ability to set it's weight to negative?
HungryCapibara 25 Dec, 2024 @ 9:46am 
Great mod, i love sandbox-options, i was doing something similiar with my mod,but i am slower, so now i will just use yours since it gives more things :v i did only welding(blowtorch,propanetank) and tailoring (like denim,leather,rags) in my mod.
So I tested now yours mod and i saw some small bugs i think: when you have rags and in sandbox-options you set weight to 0.1 you will have sterilized rag =0.1, rag = 0.1, dirty rag = 0.1, but when you do the same thing for denim or leather and set their weight to 0.1 you will have leather = 0.1, dirty leather 0.2 (instead of 0.1) and denim =0.1 (but dirty denim 0.2). Same thing happens to Bundles for rags it works well, but for denim and leather doesnt calculate right.
dichebach 25 Dec, 2024 @ 9:23am 
According to my math a "1.0 TIS encumbrance point" is equal to 0.8 kg based on a pair of jeans, but it is equal to 0.242 kg based on a key.

That said, I do not think keys should have any mass at all for one simple reason: the game does not tell you when a key you have is for a specific lock in the game. For example, you have 3 "residential keys" on your ring you got off dead zombies. You approach a house that you know was locked (because you already tried it without the keys in your inventory), it opens, but which key was it? The game does not tell you. In order to know which of those three keys opened that house you would have to drop all three keys and check each one and then label it yourself.

So for now, I believe keys should have zero mass.

When TIS add a feature that allows the user to quickly identify which key opens which lock then it is reasonable for keys to have mass.
Hx  [author] 25 Dec, 2024 @ 5:43am 
Add
Partis 25 Dec, 2024 @ 4:58am 
Ores were added to build 42, can you also add ore materials?