Project Zomboid

Project Zomboid

Authentic Z
GREAT MOD BUT NEEDS WEIGHT REDUCTION ON ATTACHMENTS. PERIOD. THANKS.
It's common sense and not game-breaking.
If I have a top-tier backpack that "reduces the weight" of the stuff I carry, when I attach something to it I receive the same benefit.
Do this please and the mod'll be perfect: it's absolutely pointless and absurd to use the medpack attach on an alice bag compared to just stuffing the med bag into the backpack.
On the other hand, I'll gladly fix this myself in code If you can give me some pointers: which authentic z script performs the attachment mechanic and the weight addition mechanic?
Thanks again for the great mod
< >
Showing 1-6 of 6 comments
WxAaRoNxW 23 Jan, 2023 @ 11:08am 
I second this suggestion as well, Noir's Attachments has this feature.
I found out that during v41.73 setActualWeight() function does not work on weapons or items that has a durability, so Noir's Attachments partially work. I was also planning on modding Authentic Z to add this weight reduction on attachments as well, let me know if you're planning on doing it so I won't attempt on it (if I were)
Authentic Peach  [developer] 23 Jan, 2023 @ 11:47am 
Originally posted by Luminus Mallus:
It's common sense and not game-breaking.
If I have a top-tier backpack that "reduces the weight" of the stuff I carry, when I attach something to it I receive the same benefit.
Do this please and the mod'll be perfect: it's absolutely pointless and absurd to use the medpack attach on an alice bag compared to just stuffing the med bag into the backpack.
On the other hand, I'll gladly fix this myself in code If you can give me some pointers: which authentic z script performs the attachment mechanic and the weight addition mechanic?
Thanks again for the great mod
Why are you so worked up over free content? Get a hold of yourself. Its not an easy fix at all. Trust me I would have done it myself if it were so simple.

Originally posted by WxAaRoNxW:
I second this suggestion as well, Noir's Attachments has this feature.
I found out that during v41.73 setActualWeight() function does not work on weapons or items that has a durability, so Noir's Attachments partially work. I was also planning on modding Authentic Z to add this weight reduction on attachments as well, let me know if you're planning on doing it so I won't attempt on it (if I were)
My DMs are open if you do find a fix that doesn't involve me writing a whole new hotbar to add weight reduction per item. I would gladly implement a fix to the mod. In the vanilla code, the hotbar weight reduction value was set to 0.3 (30%)in the java code, which I can't edit.
WxAaRoNxW 23 Jan, 2023 @ 12:53pm 
Originally posted by Authentic Peach:
My DMs are open if you do find a fix that doesn't involve me writing a whole new hotbar to add weight reduction per item. I would gladly implement a fix to the mod. In the vanilla code, the hotbar weight reduction value was set to 0.3 (30%)in the java code, which I can't edit.
would love to understand why Project Zomboid broke the feature of setting the weight for items with durability, but I lack the knowledge on PZ modding and lua scripting, so there's probably a good way to attach a listener to the "setActualWeight" function to figure out what's modifying the ActualWeight variable. Furthermore, decompiling the vanilla code for the setActualWeight doesn't show much, doesn't seem to be the function's fault for the bug.

as for hotbar weight reduction, seems like based on Noir's Attachments, they made it so that upon attaching the item, The item's weight is forcefully changed based on the current backpack's weight reduction. and dividing the modified weight by 0.7(to counteract the vanilla hot bar weight reduction).
Last edited by WxAaRoNxW; 23 Jan, 2023 @ 1:01pm
Luminus Mallus 28 Jan, 2023 @ 11:48pm 
Originally posted by Authentic Peach:
Originally posted by Luminus Mallus:
Thanks again for the great mod
Why are you so worked up over free content? Get a hold of yourself. Its not an easy fix at all. Trust me I would have done it myself if it were so simple.

Originally posted by WxAaRoNxW:
I second this suggestion as well, Noir's Attachments has this feature.
My DMs are open if you do find a fix that doesn't involve me writing a whole new hotbar to add weight reduction per item. I would gladly implement a fix to the mod. In the vanilla code, the hotbar weight reduction value was set to 0.3 (30%)in the java code, which I can't edit.
I probably could have emphasized my appreciation for the incredible work you put into this, and I understand that if you think I was ungrateful, what I wrote might come as derogatory or inflammatory, but it's not. It's simply that nowhere else was this issue mentioned, as if it never occured to you or anybody else using your mod, which is perfectly fine since you yourself split the attachment mechanic as separate content from the bulk of the work which consists in the excellent zombie variety.
So, what I planned to do using your possible suggestion of the function that performs the attachment, was to pass a constant value to weight for everything you attach, if that is at all possible, to verify that the point-in-code is exactly the one I'm interested in. Once everything attached adds the same constant weight to your total weight, if that is at all possible, I'd try to understand how doest PZ calculate weight for containers and how does PZ determine weight reduction on your backpack so as to multiply these two and pass this as a variable instead of using the aforementioned semaphore constant.
Risen 16 Mar, 2023 @ 8:05am 
Will this latest update cause a conflict with MaD's Awesome Zombie Loot? Because ever since the update, this mod has been giving me error messages.
Authentic Peach  [developer] 16 Mar, 2023 @ 10:40am 
Originally posted by CSTG-YunSong:
Will this latest update cause a conflict with MaD's Awesome Zombie Loot? Because ever since the update, this mod has been giving me error messages.
I never heard of that mod before. Please state the error log from your console.
< >
Showing 1-6 of 6 comments
Per page: 1530 50