Project Zomboid

Project Zomboid

Item Comparison
30 Comments
玄吉 7 Jun @ 7:26am 
Can you change the comparison information to be arranged vertically?
Kaoeutsu 2 Mar @ 6:36am 
do you have plans to make integration with Inventory ReInvented?
Zara ♡ 18 Jan @ 10:03am 
Yay!! I was missing the mod I used from B41. Thank you for making a B42 version.
retr0l0gy 18 Jan @ 7:35am 
yes thank you and thanks for this mod and your effort you put into it
Pontius 17 Jan @ 6:30pm 
Confirmed that the fix is working - thanks QAstral :)
QAstral  [author] 16 Jan @ 8:24am 
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 @ 3:43am 
had to disable the mod temporarily until the mod gets fixed. spams errors whenever hovering over any item
Pontius 16 Jan @ 12:34am 
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 @ 12:11am 
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  [author] 15 Jan @ 6:36pm 
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 @ 5:15pm 
yes,it fixed
QAstral  [author] 12 Jan @ 5:02pm 
Hmm, did a small fix for ModOptions. Did it fix that issue with resetting?
Selvaria 12 Jan @ 3:40pm 
i find this mod will reset "ModOptions.ini" in lua,may be need some check.
QAstral  [author] 12 Jan @ 11:59am 
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  [author] 9 Jan @ 4:47pm 
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  [author] 8 Jan @ 2:29pm 
Thanks everyone. I got the issue with Saves. It's fixed now.
QAstral  [author] 8 Jan @ 1:39pm 
@RunYouCleverBoy In the option menu select 'Sometimes', it should display that attribute only if there is a difference
RunYouCleverBoy 8 Jan @ 1:43am 
can u please make attributes which delta are zero not displayable?
seeing 0 waterproofing on hand watch's is distract
ThisIsName 7 Jan @ 11:50pm 
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 @ 11:23pm 
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 @ 7:02pm 
@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 @ 9:49am 
Díky. Thx.
QAstral  [author] 7 Jan @ 8:20am 
@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  [author] 7 Jan @ 6:25am 
@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 @ 2:03am 
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  [author] 6 Jan @ 4:38pm 
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  [author] 5 Jan @ 5:57pm 
I also added Mod Options support to enable/disable what you want to compare.
QAstral  [author] 5 Jan @ 4:13pm 
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 @ 9:29pm 
Error shows when hovering modded items such as Authentic Z
sstvvss on soundcloud 4 Jan @ 6:22pm 
patiently waiting for show/hide options.