Project Zomboid

Project Zomboid

[B42]Modern Status V2.0
 This topic has been pinned, so it's probably important
Rocco  [developer] 24 Mar @ 7:13am
Bug Report
Here you can give me feedback on the bugs you encounter.
< >
Showing 1-15 of 18 comments
LC阁下 25 Mar @ 7:59am 
After drinking soda

Callframe at: DrawTextureScaledColor
function: drawRect -- file: ISUIElement.lua line # 1140 | Vanilla
function: renderBarStyle -- file: ISStatusIndicator.lua line # 382 | MOD: ModrenStatus
function: render -- file: ISStatusIndicator.lua line # 240 | MOD: ModrenStatus

ERROR: General f:868, t:1742914351030> ExceptionLogger.logException> Exception thrown
java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor2138.invoke(null:-1).
Stack trace:
jdk.internal.reflect.GeneratedMethodAccessor2138.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
zombie.ui.UIElement.render(UIElement.java:2004)
zombie.ui.UIManager.render(UIManager.java:404)
zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1371)
zombie.gameStates.IngameState.renderframeui(IngameState.java:1358)
zombie.gameStates.IngameState.renderInternal(IngameState.java:1500)
zombie.gameStates.IngameState.render(IngameState.java:1447)
zombie.gameStates.GameStateMachine.render(GameStateMachine.java:37)
zombie.GameWindow.renderInternal(GameWindow.java:473)
zombie.GameWindow.frameStep(GameWindow.java:952)
zombie.GameWindow.run_ez(GameWindow.java:821)
zombie.GameWindow.mainThread(GameWindow.java:619)
java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Double.doubleValue()" because "<parameter6>" is null
zombie.ui.UIElement.DrawTextureScaledColor(UIElement.java:544)
... 24 more
SecretFear 14 Apr @ 11:19am 
Hello Rocco! No rush just was trying out this mod and the Alarm Threshold and Vertical Mode buttons are inaccessible. I haven't adjusted my Font Size yet to test if this fixes the issue. I'm on 4K.

https://imgur.com/a/ryq7KfE

I'd also suggest that 'Calorie' be renamed to 'Calories' & 'Proteins' be renamed to 'Protein'

Either way, all just nitpicks. I don't neeeeed vertical bars.
SecretFear 14 Apr @ 11:21am 
'Unhappyness' to 'Unhappiness' as well. Regardless, thanks!
SecretFear 14 Apr @ 11:35am 
Ahh interesting!

If I right-click a status, the Alarm Threshold and Vertical Mode buttons appear fine.

The issue only occurs if you open it from the mass-manager menu.

Much lower priority bug! I added a screenshot to the end of the imgur album above to demonstrate the difference.
Rocco  [developer] 16 Apr @ 6:49am 
Originally posted by SecretFear:
Ahh interesting!

If I right-click a status, the Alarm Threshold and Vertical Mode buttons appear fine.

The issue only occurs if you open it from the mass-manager menu.

Much lower priority bug! I added a screenshot to the end of the imgur album above to demonstrate the difference.

All the issues you mentioned have been fixed, thank you for your feedback. As for the background issue with the bar indicator, the current design allows it to be visible on both white and black backgrounds. However, if the background turns black, it might be less clear during the night.
B42.7 just added the mod to an ongoing safe, mod is at the bottom in load order.
on loading the safe the hide moodles needs to be de- and re-activated to hide the vanilla moodles.
and i get this error, also after loading:
STACK TRACE
-----------------------------------------
Callframe at: setWidth
function: applyHideOriginalMoodles -- file: ISGlobalControlPanel.lua line # 225 | MOD: ModernStatus
function: toggleHideOriginalMoodles -- file: ISGlobalControlPanel.lua line # 213 | MOD: ModernStatus
function: onMouseUp -- file: ISContextMenu.lua line # 90 | Vanilla

ERROR: General f:594, t:1746230501065> ExceptionLogger.logException> Exception thrown
java.lang.IllegalArgumentException at GeneratedMethodAccessor3013.invoke(null:-1).
Stack trace:
jdk.internal.reflect.GeneratedMethodAccessor3013.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1902)
se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
zombie.ui.UIElement.onMouseUp(UIElement.java:1633)
zombie.ui.UIElement.onConsumeMouseButtonUp(UIElement.java:1695)
zombie.ui.UIManager.updateMouseButtons(UIManager.java:844)
zombie.ui.UIManager.update(UIManager.java:706)
zombie.GameWindow.logic(GameWindow.java:332)
zombie.GameWindow.frameStep(GameWindow.java:928)
zombie.GameWindow.run_ez(GameWindow.java:821)
zombie.GameWindow.mainThread(GameWindow.java:619)
java.base/java.lang.Thread.run(Unknown Source)


/correction: the error pops up when toggling the vanilla moodles after loading, probably because of the mismatch of the state.
Last edited by mad-rooky; 2 May @ 6:29pm
Just an FYI, the Bathroom Functions mod got updated and is now called Bodily Functions, which broke the integration with Modern Status.
Kitsuro 10 Jun @ 9:42am 
Found the same issue as @rckymtnrfc. I'm getting these errors:

1)

`attempted index: BladderMaxValue of non-table: null
function: getValue -- file: BathroomFunctionsSupport.lua line # 39 | MOD: ModernStatus
function: render -- file: ISStatusIndicator.lua line # 289 | MOD: ModernStatus
java.lang.RuntimeException: attempted index: BladderMaxValue of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:479)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
at zombie.ui.UIElement.render(UIElement.java:2005)
at zombie.ui.UIManager.render(UIManager.java:409)
at zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1331)
at zombie.gameStates.IngameState.renderframeui(IngameState.java:1317)
at zombie.gameStates.IngameState.renderInternal(IngameState.java:1456)
at zombie.gameStates.IngameState.render(IngameState.java:1406)
at zombie.gameStates.GameStateMachine.render(GameStateMachine.java:28)
at zombie.GameWindow.renderInternal(GameWindow.java:466)
at zombie.GameWindow.frameStep(GameWindow.java:938)
at zombie.GameWindow.mainThreadStep(GameWindow.java:640)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
`

2)

`attempted index: BowelsMaxValue of non-table: null
function: getValue -- file: BathroomFunctionsSupport.lua line # 59 | MOD: ModernStatus
function: render -- file: ISStatusIndicator.lua line # 289 | MOD: ModernStatus
java.lang.RuntimeException: attempted index: BowelsMaxValue of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:479)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
at zombie.ui.UIElement.render(UIElement.java:2005)
at zombie.ui.UIManager.render(UIManager.java:409)
at zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1331)
at zombie.gameStates.IngameState.renderframeui(IngameState.java:1317)
at zombie.gameStates.IngameState.renderInternal(IngameState.java:1456)
at zombie.gameStates.IngameState.render(IngameState.java:1406)
at zombie.gameStates.GameStateMachine.render(GameStateMachine.java:28)
at zombie.GameWindow.renderInternal(GameWindow.java:466)
at zombie.GameWindow.frameStep(GameWindow.java:938)
at zombie.GameWindow.mainThreadStep(GameWindow.java:640)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
`
Last edited by Kitsuro; 10 Jun @ 11:28am
I'm the developer of the Bodily Functions mod. I changed the function prefixes to "BF" instead of "BathroomFunctions" and it broke compatibility with your mod. For now I'm going to put in temporary code that makes both prefixes work, but when you can make sure to correct it on your end so I can try to keep my mod bloat free. This is the only time this function's name will change in the near future.

Also, SandboxVar is changed to BF to, but since I can't do the same thing I can with functions, I'll have to change the ones you specifically mention back to BathroomFunctions temporarily. Let me know when you correct your code so I can change it back please.
Rocco  [developer] 12 Jun @ 1:30am 
Originally posted by MonkeyShark:
I'm the developer of the Bodily Functions mod. I changed the function prefixes to "BF" instead of "BathroomFunctions" and it broke compatibility with your mod. For now I'm going to put in temporary code that makes both prefixes work, but when you can make sure to correct it on your end so I can try to keep my mod bloat free. This is the only time this function's name will change in the near future.

Also, SandboxVar is changed to BF to, but since I can't do the same thing I can with functions, I'll have to change the ones you specifically mention back to BathroomFunctions temporarily. Let me know when you correct your code so I can change it back please.
Thanks for report! I will update it after i finish the new crafting UI,it may be take a week or two,I will told u after i update this mod
droops 16 Jun @ 5:25pm 
you cant interact with anything thats been dragged to the watermark in the bottom right for example i put my blue gear icon down there to hide it and when wanting to config i cant move nor interact with since its like under the watermark i guess
ivmakk 30 Jun @ 8:30am 
It appears that version B42.10 breaks the mod’s ability to detect and display values for Calories, Lipids, Protein, Carbohydrates, and Wetness. All of these metrics now show as empty bars, even though the “keep showing value” option is enabled for each of them. They are not displaying zero—they are simply blank.
Last edited by ivmakk; 30 Jun @ 8:49am
Rocco  [developer] 30 Jun @ 9:04am 
Originally posted by ivmakk:
It appears that version B42.10 breaks the mod’s ability to detect and display values for Calories, Lipids, Protein, Carbohydrates, and Wetness. All of these metrics now show as empty bars, even though the “keep showing value” option is enabled for each of them. They are not displaying zero—they are simply blank.
I test it ,but it work fine on my side,i run it on a test save with zero mod except this one ,maybe some other mods conflict?
ivmakk 30 Jun @ 10:44am 
Originally posted by Rocco:
Originally posted by ivmakk:
It appears that version B42.10 breaks the mod’s ability to detect and display values for Calories, Lipids, Protein, Carbohydrates, and Wetness. All of these metrics now show as empty bars, even though the “keep showing value” option is enabled for each of them. They are not displaying zero—they are simply blank.
I test it ,but it work fine on my side,i run it on a test save with zero mod except this one ,maybe some other mods conflict?

I see. I’ve also just tested this on a fresh character and a new world, with all the other mods I normally use enabled, and can confirm that at a glance it works correctly and displays the numbers as expected. However, when I disabled all other mods mid-save, leaving only Modern Status active, the issue still persists:

- https://i.imgur.com/NoPuSZM.jpeg
- https://i.imgur.com/jr7lBhq.jpeg

You’re probably right—some other mod likely corrupted the state of my character. I can't reproduce the issue on a fresh character and world.

UPD 2025-07-01: Just in case if anybody found similar issues in future - it appears that after auto-converting the save from b42.9 to 42.10, some of the character stats were set to "nan" values (thirst, calories, fats, carbs, proteins, wetness, and body temperature). I found this via the debugger[i.imgur.com]. Using the debugger, I was able to restore all values except wetness and body temperature (though it looks like those can also be restored via the LUA console).

After restoring a backup from b42.9 and letting the game auto-convert the world again to b42.10, the issue didn’t occur anymore. So it seems this was just an edge case in the in-game build upgrade process. No issues on the mod side (although the mod helped detect it—I don’t think it would be easy to spot in vanilla).
Last edited by ivmakk; 1 Jul @ 6:27am
Leon 14 Jul @ 9:40pm 
洗浴需求和卫生需求的图标和文字是反的
< >
Showing 1-15 of 18 comments
Per page: 1530 50