Project Zomboid

Project Zomboid

BindAid - Input Handler
dhert  [kehittäjä] 10.3.2023 klo 14.36
Report Bugs Here
Report any bugs you may have here!

Please include any error log, or I will probably not able to help.
< >
Näytetään 1-8 / 8 kommentista
Hi @dhert i was trying to use the mod in order to use mouse keys, but the game is telling me that the mod haves an error. When i am in game at bottom right it appears a red notice error. Is telling me that the mod is not working. I know that mouse button events are still being developed but i want to know more about it.
dhert  [kehittäjä] 15.3.2023 klo 9.54 
@gamixlunar - Zomboid has a log at the following location:
%UserProfile%\Zomboid

Just copy that into the address bar in Windows File Explorer, and you'll find a file named "console.txt". Please open this file and provide the error you are receiving.
Callframe at: isButtonDown
function: _onClickButtonHandler -- file: Mouse.lua line # 240 | MOD: BindAid

ERROR: General , 1678894444238> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor439.invoke.
ERROR: General , 1678894444239> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor439.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:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
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)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 11 out of bounds for length 8
at zombie.input.Mouse.isButtonDown(Mouse.java:52)
... 24 more
LOG : General , 1678894444244> EXITDEBUG: GameWindow.exit 1
LOG : General , 1678894444245> EXITDEBUG: WorldStreamer.stop 1
LOG : General , 1678894444245> EXITDEBUG: WorldStreamer.stop 2
LOG : General , 1678894444319> EXITDEBUG: WorldStreamer.stop 3
LOG : General , 1678894444319> EXITDEBUG: WorldStreamer.stop 4
LOG : General , 1678894444319> EXITDEBUG: ChunkSaveWorker.SaveNow 1
LOG : General , 1678894444319> EXITDEBUG: ChunkSaveWorker.SaveNow 3
LOG : General , 1678894444320> EXITDEBUG: WorldStreamer.stop 5
LOG : General , 1678894444707> reanimate: saved 0 zombies
LOG : General , 1678894444725> Saving GlobalModData
LOG : General , 1678894444741> removing all player data
LOG : General , 1678894444742> - player: 0
LOG : General , 1678894444742> removing player inventory
LOG : General , 1678894444743> removing buttonprompts
LOG : General , 1678894444743> removing loot inventory
LOG : General , 1678894444744> removing equipped icons
LOG : General , 1678894444744> removing characterInfo
LOG : General , 1678894444744> removing backButtonWheel
LOG : General , 1678894444745> removing craftingUI
LOG : General , 1678894444745> removing mechanicsUI
LOG : General , 1678894444746> removing tuningUI
LOG : General , 1678894444749> removing all player data
LOG : General , 1678894444749> - player: 0
LOG : General , 1678894444825> EXITDEBUG: GameWindow.exit 2
LOG : General , 1678894444825> EXITDEBUG: GameWindow.exit 3
LOG : General , 1678894444830> EXITDEBUG: GameWindow.exit 4
LOG : General , 1678894447630> GameThread exited.
LOG : General , 1678894447630> EXITDEBUG: GameWindow.exit 5
This is all that appears on console.txt
dhert  [kehittäjä] 15.3.2023 klo 16.17 
Thank for that. I have been doing some testing myself, and have found that the base game actually supports only 8 Mouse Buttons in total. The error you are receiving is due to this limitation actually, its trying to check Mouse Button 11 and failing here:
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 11 out of bounds for length 8 at zombie.input.Mouse.isButtonDown(Mouse.java:52)
I must have missed this during my testing, or had another condition which caused me not to get this error when I tried it. I will need to reduce the number of allowed buttons to only 6 additional buttons instead of 10, and will fix this in an update likely later today.
To fix this now, you can set the number of supported Mouse Buttons to no more than 6.
Thank you so much for everyting i am going to do it again
The "Input Optimization" option when is active, it conflicts with "NoctisFalco's Quality Of Life + Hotkeys" (when you toggle "Move Furniture" it starts at the "Place" option instead of the "Pick up" option) and "SpiffUI - Immersive Minimap" (the minimap does not open when you press the Map toggle key, only the big vanilla map does).
Can't bind rack weapon. Have tried setting it to multiple keys and all of the mouse button options...
< >
Näytetään 1-8 / 8 kommentista
Sivua kohden: 1530 50