Project Zomboid

Project Zomboid

Shine Together: AuthenticZ
Pill0w  [developer] 21 Jun, 2024 @ 11:27am
Report bugs here
Report bugs here
< >
Showing 1-4 of 4 comments
Slayer 8 Aug, 2024 @ 11:50am 
Hello,

Can I ask a simple change that will help not produce errors in other mods.

In this function:
Manager.onEquipPrimary = function (player,item) if not player:isLocalPlayer() then return end equipLocation(player,item,"Primary",primaryOnItemDepleted) end

player:isLocalPlayer() will fail if the player is not an instance of IsoPlayer.

Note, that this event catches not only IsoPlayers, but also all IsoGameCharacters in all mods the player has on. So whenever someone equips in a different mod a zombie with anything this will produce an error.

I suggest you simply change into this:

Manager.onEquipPrimary = function (player,item) if not instanceof(player, "IsoPlayer") then return end if not player:isLocalPlayer() then return end equipLocation(player,item,"Primary",primaryOnItemDepleted) end

The same for onEquipSecondary
Last edited by Slayer; 8 Aug, 2024 @ 11:50am
Pill0w  [developer] 11 Aug, 2024 @ 8:34am 
okay I'll handle it shortly.
Yuri-chan 26 Nov, 2024 @ 11:38pm 
I'm having a problem with glow sticks. When I activate them they don't glow at all.
This bug happens only with lite version of Authenitc Z. Mod load order doesn't change anything.
Also I'm getting this error when I take glowstick in hand.

`attempted index: 1.0 of non-table: null function: removeLight -- file: PlayerPointLight_Manager.lua line # 36 | MOD: Shine Together function: remove -- file: PlayerPointLight.lua line # 63 | MOD: Shine Together function: removeLightByItemID -- file: TorchFixAZ_GlowstickManager.lua line # 253 | MOD: Shine Together: Authentic Z function: null -- file: TorchFixAZ_GlowstickManager.lua line # 113 | MOD: Shine Together: Authentic Z function: onClothingUpdated -- file: TorchFixAZ_GlowstickManager.lua line # 93 | MOD: Shine Together: Authentic Z Callframe at: removeAttachedItem function: removeItem -- file: ISHotbar.lua line # 322 | Vanilla function: refresh -- file: ISHotbar.lua line # 520 | Vanilla function: refresh -- file: ReorderTheHotbar_ISHotbar.lua line # 44 | MOD: Reorder The Hotbar function: update -- file: ISHotbar.lua line # 244 | Vanilla java.lang.RuntimeException: attempted index: 1.0 of non-table: null at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492) 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.pcallvoid(KahluaThread.java:1812) at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66) at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139) at zombie.Lua.Event.trigger(Event.java:64) at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92) at zombie.characters.IsoGameCharacter.setAttachedItem(IsoGameCharacter.java:3170) at zombie.characters.IsoGameCharacter.removeAttachedItem(IsoGameCharacter.java:3182) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62) at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198) at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188) 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.pcallvoid(KahluaThread.java:1827) at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38) at zombie.ui.UIElement.update(UIElement.java:1589) at zombie.ui.UIManager.update(UIManager.java:1042) at zombie.GameWindow.logic(GameWindow.java:262) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:667) at zombie.GameWindow.mainThread(GameWindow.java:495) at java.base/java.lang.Thread.run(Unknown Source)
Last edited by Yuri-chan; 26 Nov, 2024 @ 11:40pm
Rokem 24 May @ 2:34pm 
I figured out what was causing this error message:

LOG : General , 1742995093996> 26,844,738> --------------------TorchFixAZ_Manager.lua--------------------
LOG : General , 1742995093997> 26,844,739> ERROR !!! Authentic Z - Lite or Authentic Z - Current not detected. Glowstick will not be replaced by blank glowstick if depleted.

This issue is caused by the local function onServerStarted(isNewGame) found in TorchFixAZ_Manager.lua file. The code is checking for the mod ID string "Authentic Z", however it will never find it because the Mod ID is not the display name that appears in the ingame mod list. Instead, the function needs to be changed on line 282 to search for "AuthenticZ" (no space) to fix this issue. This will also fix it so that it properly detects AuthenticZLite as well.

Hopefully the creator can update the mod based on this. :steamhappy:
< >
Showing 1-4 of 4 comments
Per page: 1530 50