Project Zomboid

Project Zomboid

Starlit Library
113 Comments
albion  [author] 28 Sep @ 8:54am 
thank you!
Arsenal[26] 28 Sep @ 7:50am 
Thanks @albion for quick fix !! also for all your tips on the Discord. You have helped more than your are ever credited for.
albion  [author] 25 Sep @ 6:53am 
If you are having errors in 42.12, make sure the mod has updated to v1.4.4
To force a mod update:
- close the game
- unsubscribe from the mod
- wait until the bottom bar of your steam window says 'Downloads - X of X Items Complete' (the exact number does not matter)
- subscribe to the mod again

You can see your mod version in the in-game mod list.
Max Payne 23 Aug @ 12:06pm 
Got it, thank you
albion  [author] 23 Aug @ 11:55am 
probably, yeah
Max Payne 23 Aug @ 11:53am 
Yeah, I already figured this out. So when b42 comes to stable, it'll be like this?
albion  [author] 23 Aug @ 9:51am 
the game automatically sizes progress bars to match the length of the longest value (second column in the tooltip): they've shrunk because the Item Report text has been removed
Max Payne 23 Aug @ 7:31am 
Hello Albion
I've been using Show Wall Health and after 42.11 came out I ran into a small issue: SWH uses your dependency to remove the debug text from item descriptions (ItemReport:...) which causes the boredom, stress and unhappiness bars to shrink a lot like here https://imgur.com/a/KvzNs3H (in some cases they are even smaller). Could something be added to preserve the size of those bars or is it unfixable?
aether 11 Aug @ 2:32pm 
got it, thanks
albion  [author] 11 Aug @ 1:36pm 
this error is caused by broken clothing mods, it would still happen without starlit
aether 11 Aug @ 1:20pm 
zombie.gameStates.IngameState.render(IngameState.java:1406)
zombie.gameStates.GameStateMachine.render(GameStateMachine.java:28)
zombie.GameWindow.renderInternal(GameWindow.java:468)
zombie.GameWindow.frameStep(GameWindow.java:940)
zombie.GameWindow.mainThreadStep(GameWindow.java:628)
zombie.MainThread.mainLoop(MainThread.java:76)
java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: unknown location "Pants_Skinny"
zombie.characters.WornItems.BodyLocationGroup.getLocationNotNull(BodyLocationGroup.java:29)
zombie.characters.WornItems.BodyLocationGroup.isExclusive(BodyLocationGroup.java:61)
zombie.inventory.types.Clothing.DoTooltip(Clothing.java:247)
zombie.inventory.InventoryItem.DoTooltipEmbedded(InventoryItem.java:986)
zombie.inventory.InventoryItem.DoTooltip(InventoryItem.java:718)
... 24 more
aether 11 Aug @ 1:20pm 
se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:70)
se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:191)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:851)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:174)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1826)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1668)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
zombie.ui.UIElement.render(UIElement.java:2009)
zombie.ui.UIManager.render(UIManager.java:419)
zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1331)
zombie.gameStates.IngameState.renderframeui(IngameState.java:1317)
zombie.gameStates.IngameState.renderInternal(IngameState.java:1456)
aether 11 Aug @ 1:19pm 
I'm puzzled



LOG : General f:19327, t:1754943381568> -----------------------------------------
STACK TRACE
-----------------------------------------
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@ad017183
function: render -- file: ISToolTipInv.lua line # 110 | Vanilla.
[12-08-25 01:16:21.568] ERROR: General f:19327, t:1754943381568> ExceptionLogger.logException> Exception thrown
java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor3191.invoke(null:-1).
Stack trace:
jdk.internal.reflect.GeneratedMethodAccessor3191.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)
albion  [author] 11 Aug @ 11:47am 
can you send the stack trace? errors like that are usually actually caused by another mod, which mod the game blames when multiple are involved is basically completely random
aether 11 Aug @ 10:47am 
sends bazillion errors when hovering over jeans or pants
albion  [author] 4 Jun @ 7:55pm 
MonkeyShark 4 Jun @ 7:43pm 
Did you add support for progress bars in the tooltips?
albion  [author] 3 Jun @ 5:04am 
you can ignore it, it fails safe and just disables the module, and the module it disables (afaik) isn't actually used by any mods yet - it's caused by mod incompatibility (some other mod has corrupted the global namespace, and now starlit can't do what it needs to do) but it's very difficult to diagnose which mod is causing it. if you haven't checked, there will sometimes be extra info in your console.txt a little bit above the error (but this is only when the library can detect which mod fucked up, which isn't always the case)
vegan food user 2 Jun @ 8:25pm 
sorry, read from bottom to top
vegan food user 2 Jun @ 8:24pm 
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:564)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:510)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:342)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:264)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:392)
at zombie.GameWindow.init(GameWindow.java:1206)
at zombie.GameWindow.mainThreadInit(GameWindow.java:576)
at zombie.GameWindow.mainThread(GameWindow.java:489)
at java.base/java.lang.Thread.run(Unknown Source)
`
vegan food user 2 Jun @ 8:24pm 
`Callframe at: error
function: __call -- file: Logger.lua line # 37 | MOD: Starlit Library
function: Traits.lua -- file: Traits.lua line # 20 | MOD: Starlit Library
se.krka.kahlua.vm.KahluaException: [Starlit Library] [Error] Unable to get trait metatable. Sandbox options affecting traits will not work. See previous messages for info.
at se.krka.kahlua.stdlib.BaseLib.error(BaseLib.java:292)
at se.krka.kahlua.stdlib.BaseLib.call(BaseLib.java:120)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1782)
vegan food user 2 Jun @ 8:24pm 
hi so I've been getting this weird error nearly everytime I boot up my game and start playing it which is kinda weird, I suppose I have quite some lot of trait mods that possibly may have caused this but I just have a question, should I ignore this? it only happens on game startup and never again. but I'm afraid it might conflict with the trait mods.

(gotta make post 2 messages, error screen too big)
Tank5168 27 May @ 9:09am 
@albion OK
albion  [author] 27 May @ 4:55am 
the second error is caused by Dynamic Backpack Upgrades (B42) unfortunately you'll have to report it to them
the first error seems straight up impossible, if it's not happening regularly just ignore it
Tank5168 26 May @ 10:22pm 
function: render -- file: ToolTipInvOverride.lua line # 29 | MOD: Dynamic Backpack Upgrades (B42)
function: render -- file: InventoryUI.lua line # 21 | MOD: Starlit Library

ERROR: General f:198188, t:1748323011417> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: Object tried to call nil in render at KahluaUtil.fail(KahluaUtil.java:100).
Tank5168 25 May @ 2:31am 
function: render -- file: InventoryUI.lua line # 82 | MOD: Starlit Library

ERROR: General f:32298, t:1748165418738> ExceptionLogger.logException> Exception thrown
java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor824.invoke(null:-1).
진지사피언스 20 May @ 4:38pm 
error
mard1 27 Mar @ 5:01am 
@Mitchel Vories: I had same issue. After albion's hint I removed Capacity Limit Bypass (part of Customizable Containers) changes from "zombie" directory and all errors disappeared.
albion  [author] 26 Mar @ 6:48pm 
the cause is almost certainly a java mod (any mod that requires manual installation is probably a java mod) that modifies the item class, it's outdated for 42.6.0 and would cause this error even without my mod (or literally any lua mod) enabled
albion  [author] 26 Mar @ 6:28pm 
thanks, i spoke with chuck about it and my mod doesn't appear in every error he's been sent so it's probably not on my end but another mod's
Cushy 13 Mar @ 10:20pm 
Wrong thread, sorry.
Meant to post in Named Literature.
Thanks for the quick response, though.
albion  [author] 13 Mar @ 9:02pm 
no, are you sure it's this mod causing it? i can't see how it could possibly be related
Cushy 13 Mar @ 8:57pm 
Reading a book reduces Stress to 0 and not the stated value.
Is this normal?
albion  [author] 25 Feb @ 1:29pm 
this error is harmless, as the library detects it and fails safely, just disabling the module that errored (which isn't actually used by any mod yet). unfortunately this is caused by other mods being poorly written, there may be more information in your log pointing to which mod is causing the issue. however for now there is no reason to disable the mod because of it
CS7 25 Feb @ 11:20am 
Had to disable the mod.
Callframe at: error
function: __call -- file: Logger.lua line # 37 | MOD: Starlit Library
function: Traits.lua -- file: Traits.lua line # 20 | MOD: Starlit Library
se.krka.kahlua.vm.KahluaException: [Starlit Library] [Error] Unable to get trait metatable. Sandbox options affecting traits will not work.
Si-Cafe 21 Feb @ 10:15pm 
The issue of the tooltip box extending too far to the right was resolved by disabling ”Show mod info in item tooltip” in the UI tab of vanilla options. Was that extra lines causing the problem...?
Si-Cafe 21 Feb @ 6:12pm 
It would be great to be able to insert or replace elements.
albion  [author] 21 Feb @ 10:59am 
yeah, for some reason adding a key/value item after a label causes this: i can't work out any code reason for it but i think it's a bug with the vanilla tooltip rendering code (they just don't do this so it's not apparent)

i'm adding api to move tooltip elements around, so you can place your key/value above the label and the issue won't occur (i imagine this is probably where you'd want it to be anyway)
albion  [author] 21 Feb @ 12:51am 
that's very strange, nothing like that happens to me - i'll take a closer look tomorrow. the item script tooltip could indeed be related since none of my test items had one
Si-Cafe 21 Feb @ 12:38am 
Here is the reference image. https://imgur.com/a/ue2M3K6
Changing the tooltip text size in the options does not seem to make a difference.
Si-Cafe 20 Feb @ 10:44pm 
Thanks for the update. It's now right-justified just like I hoped.
However, there's now also some extra space on the right side of the box.
It's extending further to the right than necessary. Could this be because of the tooltip coming from the item script?
Alabeo 20 Feb @ 11:24am 
Many thanks for that <3
albion  [author] 20 Feb @ 10:33am 
42-1.4.2
- Reverted to older tooltip code for containers only, as they have special handling that the new code didn't account for.
-- This means the improvements in the previous update won't apply to them anymore. This will be fixed in a future patch.
albion  [author] 20 Feb @ 10:18am 
thanks for the reports, will patch this in a second
Alabeo 20 Feb @ 10:01am 
Same issue as @Fatty

Cannot look into bags anymore after hovering on them.
Horhyzon 20 Feb @ 3:05am 
Same issue as Fatty. I lost the UI feature that shows container contents when you hover over the inventory with your mouse. I went through all my mods to find which one was causing the issue. I narrowed it down to this one. Removing it allows my inventory UI to display correctly.
Fatty 20 Feb @ 2:19am 
i think the newest update broke the tooltip when you mouse over bags as it doesnt show the contents within bag in tooltip anymore
albion  [author] 19 Feb @ 10:57pm 
there isn't any code on this line in the latest version of the mod, please update and let me know if the issue continues
Kitiket 19 Feb @ 10:31pm 
Hi! Most of the hints on subjects don't work. Including on basic subjects, errors pour in endlessly.

function: DoTooltip -- file: InventoryUI.lua line # 18 | MOD: Starlit Library
function: DoTooltip -- file: InventoryUI.lua line # 18 | MOD: Starlit Library
function: render -- file: ISToolTipInv.lua line # 78 | Vanilla
function: render -- file: BusinessCardsToolTip.lua line # 340 | MOD: Business Cards
function: render -- file: CWTitleVehicleUITooltip.lua line # 193 | MOD: CarWanna
function: render -- file: Skill Recovery Journal Tooltip.lua line # 297 | MOD: Skill Recovery Journal
function: render -- file: InventoryUI.lua line # 27 | MOD: Starlit Library
albion  [author] 19 Feb @ 12:41pm 
42-1.4.1
- Added InventoryUI.removeTooltipElement for removing existing tooltip elements.
- Fixed the modded section of a tooltip using a separate key/value width from the vanilla section.
- Fixed an occasional error when using the Transfer Fluid menu.
- General performance improvements to the InventoryUI module.