Project Zomboid

Project Zomboid

Zombies Hear Chat
DrSphinctanium  [developer] 6 Feb, 2024 @ 12:00am
Bug Reports
Please post any errors you come across relating to this mod.

You can check the error logs like this:
https://gtm.steamproxy.vip/app/108600/discussions/1/5845107457323905989/
< >
Showing 1-8 of 8 comments
Grumpy 6 Feb, 2024 @ 8:53pm 
I removed the Chat Bubble mod thinking they were conflicting, restarted our server and came back to receiving the same error as before, minus the Chat Bubble error added to it.

It's also good to note I receive the error when anyone on our server types. It's not just when I type. Some players have reported receiving the same error, some say they have not been receiving any errors.
_______________________

Callframe at: getSpecificPlayer
function: process_chat -- file: ZombieEnteredChat.lua line # 13 | MOD: Zombies Hear Chat

ERROR: General , 1707280885885> 185,955,691> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor5169.invoke.
ERROR: General , 1707280885885> 185,955,691> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor5169.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: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:134)
at zombie.chat.ChatBase.showMessage(ChatBase.java:308)
at zombie.chat.ChatManager.processChatMessagePacket(ChatManager.java:266)
at zombie.network.GameClient.receiveChatMessageToPlayer(GameClient.java:701)
at zombie.network.PacketTypes$PacketType.onMainLoopHandlePacketInternal(PacketTypes.java:1028)
at zombie.network.GameClient.mainLoopHandlePacketInternal(GameClient.java:644)
at zombie.network.GameClient.mainLoopDealWithNetData(GameClient.java:621)
at zombie.network.GameClient.update(GameClient.java:431)
at zombie.GameWindow.logic(GameWindow.java:232)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 15 out of bounds for length 4
at zombie.Lua.LuaManager$GlobalObject.getSpecificPlayer(LuaManager.java:2210)
... 28 more
Last edited by Grumpy; 6 Feb, 2024 @ 9:09pm
DrSphinctanium  [developer] 7 Feb, 2024 @ 8:46am 
Awesome, thank you for the log Grumpy.

Yeah I've got an idea of what it is, I put a check in line 14 afterwards that stopped throwing that error on my machine but it seems the client doesn't like accessing players on a server. It can get 'itself' (i.e. your player) but throws errors iterating through other players.

Think I know a fix, will try it this weekend.

Edit:
I was chatting ♥♥♥♥, turns out I hadn't written that one line properly. Smooth.
Last edited by DrSphinctanium; 10 Feb, 2024 @ 8:34am
DrSphinctanium  [developer] 7 Feb, 2024 @ 8:48am 
Just checking but, is this on a dedicated server or one hosted in-game?
Grumpy 7 Feb, 2024 @ 9:45am 
Originally posted by DrSphinctanium:
Just checking but, is this on a dedicated server or one hosted in-game?

Dedicated.
Grumpy 10 Feb, 2024 @ 9:15pm 
I'm back. lol Sorry. Took your mod out of our server until the update was done. Unfortunately... the adjustment you made is now sending errors for other mods I have in the server that it did not before + a vanilla trigger.
_________
`Callframe at: getSpecificPlayer
function: process_chat -- file: ZombieEnteredChat.lua line # 13 | MOD: Zombies Hear Chat
Callframe at: processGeneralMessage
function: onCommandEntered -- file: ISChat.lua line # 521 | Vanilla
function: onCommandEntered -- file: Commands_WP.lua line # 38 | MOD: Water and power controls
function: onCommandEntered -- file: LogExtenderClient.lua line # 562 | MOD: Log Extender
function: onCommandEntered -- file: UdderlyUpToDate_Commands_Client.lua line # 93 | MOD: Udderly Up To Date
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor1551.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: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:134)
at zombie.chat.ChatBase.showMessage(ChatBase.java:308)
at zombie.chat.ChatManager.sendMessageToChat(ChatManager.java:436)
at zombie.chat.ChatManager.sendMessageToChat(ChatManager.java:316)
at zombie.chat.ChatManager.sendMessageToChat(ChatManager.java:320)
at zombie.Lua.LuaManager$GlobalObject.processGeneralMessage(LuaManager.java:7633)
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.pcall(KahluaThread.java:1782)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
at zombie.ui.UITextBox2.onCommandEntered(UITextBox2.java:858)
at zombie.core.Core.updateKeyboardAux(Core.java:2024)
at zombie.core.Core.updateKeyboard(Core.java:2360)
at zombie.core.Core.DoFrameReady(Core.java:3121)
at zombie.GameWindow.frameStep(GameWindow.java:781)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 6 out of bounds for length 4
at zombie.Lua.LuaManager$GlobalObject.getSpecificPlayer(LuaManager.java:2210)
... 41 more
`
DrSphinctanium  [developer] 11 Feb, 2024 @ 2:59am 
It's saying it's an issue at '`Callframe at: getSpecificPlayer' and again near the end, but that's a function that it no longer uses since the update.

The only change I made was rather than incorrectly using getSpecificPlayer at an index, it gets the player from an array stored in my code using a simple array:get() call and the array is generated using a built-in function, there's no correlation, that makes zero sense and it's not coming up on my servers, dedicated or listen. It's only mentioned in a comment but on a different line too.

I'll erase the comment but I doubt that'll fix it, it just looks like it hasn't updated.
Sorry man, but it looks like I can't help that situation. Thanks for your help with the logs though, it's much appreciated.
Last edited by DrSphinctanium; 11 Feb, 2024 @ 3:00am
Grumpy 11 Feb, 2024 @ 4:48am 
Originally posted by DrSphinctanium:
It's saying it's an issue at '`Callframe at: getSpecificPlayer' and again near the end, but that's a function that it no longer uses since the update.

The only change I made was rather than incorrectly using getSpecificPlayer at an index, it gets the player from an array stored in my code using a simple array:get() call and the array is generated using a built-in function, there's no correlation, that makes zero sense and it's not coming up on my servers, dedicated or listen. It's only mentioned in a comment but on a different line too.

I'll erase the comment but I doubt that'll fix it, it just looks like it hasn't updated.
Sorry man, but it looks like I can't help that situation. Thanks for your help with the logs though, it's much appreciated.

Very strange. I will try unsubbing from your mod then resubbing. All I did was remove it from our server but I kept it in my 108600. Fingers crossed that's the solve.

Edit: That seems to have fixed the issue. This was a first time for me. lol I never had a situation where my client side did not update (108600 folder) when re-adding a mod. But now that I know even this can be an issue I will be sure to remember it for later on.

Thank you for your mod! I hope our server enjoys it as well.
Last edited by Grumpy; 11 Feb, 2024 @ 5:34am
DrSphinctanium  [developer] 12 Feb, 2024 @ 1:03am 
No worries! What I've learnt from modding Zomboid is that a lot can go wrong.

Glad you get to enjoy it bug-free now and as I say, thanks again for your help debugging! :steamthumbsup:
< >
Showing 1-8 of 8 comments
Per page: 1530 50