Project Zomboid

Project Zomboid

Item Comparison
31 kommentarer
Loccatpowersdog 28. aug. kl. 9:34 
Have been using this for so long but pretty sure 42.11 changed something with how clothes are identified & has made large parts of this mod not work.
玄吉 7. juni kl. 7:26 
Can you change the comparison information to be arranged vertically?
Kaoeutsu 2. mar. kl. 6:36 
do you have plans to make integration with Inventory ReInvented?
Zara ♡ 18. jan. kl. 10:03 
Yay!! I was missing the mod I used from B41. Thank you for making a B42 version.
retr0l0gy 18. jan. kl. 7:35 
yes thank you and thanks for this mod and your effort you put into it
Pontius 17. jan. kl. 18:30 
Confirmed that the fix is working - thanks QAstral :)
QAstral  [ophavsmand] 16. jan. kl. 8:24 
Fixed
It seems that some functions works only while -debug is enabled. So my hack for tooltips while transferring liquid was throwing those issues. Should work now.
retr0l0gy 16. jan. kl. 3:43 
had to disable the mod temporarily until the mod gets fixed. spams errors whenever hovering over any item
Pontius 16. jan. kl. 0:34 
Moving the mod to the end of the load order brings back the tooltip (but not the comparison part) - but is still spamming the console with the following:

STACK TRACE
-----------------------------------------
function: render -- file: qa_Render.lua line # 36 | MOD: [B42] Item Comparison
function: render -- file: qa_Init.lua line # 11 | MOD: [B42] Item Comparison

ERROR: General f:5377, t:1737015269904> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: getName of non-table: class zombie.inventory.types.Clothing at KahluaThread.tableget(KahluaThread.java:1667).
Pontius 16. jan. kl. 0:11 
Seem like the last update broke something.
No tooltips are appearing - and whenever hovering over any item - the console gets absolutely trashed/spammed with:

ERROR: General f:1300, t:1737014451187> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: Object tried to call nil in DoTooltip at KahluaUtil.fail(KahluaUtil.java:82).
QAstral  [ophavsmand] 15. jan. kl. 18:36 
Fixed issue with fluid tooltips
Added few new parameters to compare
Added a checkbox in the Mod Options to enable debug parameters. Do not enable it until you want to be swarmed by comparison values. I use this button to identify what to display in the mod and how.
Or you can enable it, and help me to identify what are good values to have. If you do it, then restart the game and you will see all of them.
Selvaria 12. jan. kl. 17:15 
yes,it fixed
QAstral  [ophavsmand] 12. jan. kl. 17:02 
Hmm, did a small fix for ModOptions. Did it fix that issue with resetting?
Selvaria 12. jan. kl. 15:40 
i find this mod will reset "ModOptions.ini" in lua,may be need some check.
QAstral  [ophavsmand] 12. jan. kl. 11:59 
Fixed the color logic: now it should colorize also the item from the inventory + better calculation which color to choose.
Improved clothing comparison: Now compares the clothing with all clothing parts which will be unworn.
QAstral  [ophavsmand] 9. jan. kl. 16:47 
Redone layout to display in a row multiple items (because of weapons and containers in the future)
Renamed options from "Show, Sometimes, Hide" to "Always, Difference, Never"
Set "Difference" to default
Added PL support
QAstral  [ophavsmand] 8. jan. kl. 14:29 
Thanks everyone. I got the issue with Saves. It's fixed now.
QAstral  [ophavsmand] 8. jan. kl. 13:39 
@RunYouCleverBoy In the option menu select 'Sometimes', it should display that attribute only if there is a difference
RunYouCleverBoy 8. jan. kl. 1:43 
can u please make attributes which delta are zero not displayable?
seeing 0 waterproofing on hand watch's is distract
ThisIsName 7. jan. kl. 23:50 
Yeah Sandbox Options mod throwing this error is harmless even if it wipes it's own keybind as you probably dont care, yours mod however wipes other mods settings which is... Well people started reporting, can't send you any new logs unfortunately as disabled your mod until issue is resolved
Omni 7. jan. kl. 23:23 
As @Quilendar & @Mario mentioned after activating this mod I can also confirm that this mod is wiping out mod options. Did not have any issues previously until enabling this mod.

Saw your post warning about needing to replace that line. Checked my ModOptions.ini file both before and after adding this mod and I already had the proper 0 line without changing anything. Mod author didn't update anything either so I did not have that nil issue you mentioned previously
Mario 7. jan. kl. 19:02 
@QAstral I can confirm this mod is giving me the same issue with not saving mod options. I followed your instructions then I booted up the game and tested it with and without this mod.

Without the mod enabled I was able to set my settings and it remembered them after loading up different save files.

With the mod enabled, I had to set the mod settings again after every time I loaded a new save file.
Quilendar 7. jan. kl. 9:49 
Díky. Thx.
QAstral  [ophavsmand] 7. jan. kl. 8:20 
@ThisIsName Issue is definitely not in my mod, but in Change Sandbox Options (by Star)
Try to create a new game with using only his mod. Then try to add a hotkey for his sandbox options. Then try to reload an voila, you will be missing his hotkeys.

Issue is, that default value for his option is 'nil' but it should be 0 by default.

If you want to fix it. Close the game and modify this file:
%USERPROFILE%\Zomboid\Lua\ModOptions.ini

Replace this line
keybind|ChangeSandboxOptions|sandbox_options_hotkey|nil
To this line
keybind|ChangeSandboxOptions|sandbox_options_hotkey|0

Save and run the game. Then all mods would save it properly, including mine.

Or write the author to fix his mod and wait :D
QAstral  [ophavsmand] 7. jan. kl. 6:25 
@ThisIsName Hmm, interesting. I should not modifying any vanilla functions, as whole idea of this mod is to avoid modifying anything from vanilla. But I will check it. Thanks for logs
ThisIsName 7. jan. kl. 2:03 
Mod options dont save properly, breaks all other mods options, resetting them to default
Got you logs on pastebin, other mods throw errors seemingly because of you modifying vanilla functions, disabling them doesn't fix the issue.

https://pastebin.com/A0cRbGpV
QAstral  [ophavsmand] 6. jan. kl. 16:38 
Mod Options now has Show / Sometimes / Hide. Where Sometimes displays values only if there is a difference.
Clothes also have 2 new parameters to compare: Run speed modifier, and Weight.
QAstral  [ophavsmand] 5. jan. kl. 17:57 
I also added Mod Options support to enable/disable what you want to compare.
QAstral  [ophavsmand] 5. jan. kl. 16:13 
It should be fixed now. I downloaded this mod, and tried to compare several items by this mod and no error. If it is still failing on something specific, can you provide me the item name, so I can spawn it and debug on it? (and mod name if it is not Authentic Z)
Toasterdude 4. jan. kl. 21:29 
Error shows when hovering modded items such as Authentic Z
steeves 4. jan. kl. 18:22 
patiently waiting for show/hide options.