Project Zomboid

Project Zomboid

[B42] Mutie's Context Menu Icons Expanded & Redrawn
25 Comments
Ferrus 9 Jun @ 12:21pm 
@H A L ~9000 same here
Rusty #DopeRust 12 May @ 1:34am 
@adam adamich💅, firstly, thank you for sharing your work with the community of PZ, nice addiction to the context menu.

Secondly, i just made a bug report in your discussion thread for bugs, figure i should let you know if you dont have the notifications on, or something.

Cheers.
RunYouCleverBoy 21 Apr @ 6:26am 
"H A L #9000, me too
H A L #9000 7 Apr @ 6:12am 
Does anyone get this error when trying to right click an item from pause?

`attempted index: getOptionFromName of non-table: null
function: createMenu -- file: PutInContainer.lua line # 6 | MOD: [B42] Mutie's Context Menu icons Expanded
function: GetInventoryCreateMenuContext -- file: BaseFunctions.lua line # 16 | MOD: [B42] Mutie's Context Menu icons Storage
function: GetInventoryCreateMenuContextIconized -- file: BaseFunctions.lua line # 53 | MOD: [B42] Mutie's Context Menu icons Storage
function: onRightMouseUp -- file: EquipmentSlot.lua line # 84 | MOD: Equipment UI
java.lang.RuntimeException: attempted index: getOptionFromName of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
...
Prophecy 15 Mar @ 6:26pm 
Mmm, did change both lines like you described, but still have no option to drink out of sinks.
Saxus Maximus Onyxus 6 Mar @ 9:34am 
Thank you @Kisho and @@satisfiedghost!
Kisho 5 Mar @ 6:33am 
Thank you @satisfiedghost I was having the same problem and your solution fixed it.

For those who are experiencing the same problem, the path folder for Common Sense Mod is
C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\2875848298\mods\CommonSense
satisfiedghost 4 Mar @ 4:45pm 
You'll have to look in the lua files for the mods, the files I needed to edit were

mods/CommonSense/42.0/media/lua/client/ISUI/BB_CS_WashMenu.lua

mods/CommonSense/media/lua/client/ISUI/BB_CS_WashMenu.lua

both have the same problem on line 134 you'll need to fix.
satisfiedghost 4 Mar @ 4:43pm 
@Harkyun I fixed it.

If you PZ in debug mode, it breaks when creating the sink menu and calls out line 134 in the BB_CS_WashMenu.lua file.

The line there is `local waterRemaining = sink:getWaterAmount()`

I tried to find that function in the vanilla lua scripts and couldn't but after some sleuthing did find a `getFluidAmount()` function. I am guessing the devs might've merged some code for anything containing a fluid and renamed the function.

If you change both lines in the CommonSense mod and this one to

`local waterRemaining = sink:getFluidAmount()`

and reload your game it should work.

Note: I did this while the game was running: did an exit to menu and then load game. Idk how Steam handles keeping these files up to date so if you fully exit it might overwrite the fix, no clue. But yeah if you launch the game to the main menu, edit those 2 files to change the function name, and then load your game it'll fix it.
Harkyun 4 Mar @ 1:21pm 
I found out the reason, common sense is the cause. But I'll leave a comment if it helps in any way.
Harkyun 4 Mar @ 1:16pm 
The option to drink from the sink is not showing up and the error magnifier showed this:

function: doWashClothingMenu -- file: Wash.lua line # 4 | MOD: [B42] Mutie's Context Menu icons Expanded
function: createMenu -- file: ISWorldObjectContextMenu.lua line # 1009 | Vanilla
function: GetWorldCreateMenuContext -- file: BaseFunctions.lua line # 7 | MOD: [B42] Mutie's Context Menu icons Storage
function: GetWorldCreateMenuContextIconized -- file: BaseFunctions.lua line # 42 | MOD: [B42] Mutie's Context Menu icons Storage

I hope this helps to solve it
M1ST0R 4 Mar @ 12:27pm 
some errors with 42.4
PapaBonifacioVI 2 Mar @ 2:29am 
this mod is dope
SHIELD 1 Mar @ 8:20am 
Essential QoL mod!
Timou 16 Feb @ 7:22pm 
Can you make it colorfull like in B41 PLEASE!
Little Crocodilian 16 Feb @ 6:23am 
AWESOME MOD WE WANT MORE!!!
Nothosaures 16 Feb @ 3:55am 
love it:steamhappy:
Alabeo 14 Feb @ 3:50am 
Very, very, very good mod. Love it.
Slobodskoy 12 Feb @ 5:53pm 
Thnx you for your work!:steamthumbsup:
Agent X Top Secret 12 Feb @ 6:50am 
really nice mod =)
CopperAttacker 11 Feb @ 1:14pm 
is there a build 41 version of this mod?
Vincenator 9 Feb @ 9:07pm 
just curious but will you also be redrawing the missing icons or no
Artmine15💅  [author] 6 Feb @ 8:42am 
@Guiltron, you can disable or enable original mod, it's not necessary.
one problem that it works strange with redrawn icons, so it's better to disable it.

If you disable original mod some icons will be missing, but if you enable, icons from redrawn and original will mix up. decide for yourself
maybe later I'll fix that problem
Guiltron 6 Feb @ 8:09am 
I'm just confused about something, is Mutie's original mod no longer required for this version since it's standalone or do I still need to have it for the other icons?
nikos 6 Feb @ 6:32am 
:3