Project Zomboid

Project Zomboid

Server Tweaker
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
outdead  [udvikler] 24. mar. 2023 kl. 16:54
Bug Reporting
If you think that you have found a bug, write in this thread under what conditions is it reproduced.
< >
Viser 1-15 af 30 kommentarer
Woodland 26. mar. 2023 kl. 14:49 
Possible bug: After installing the mod, the server option "AnnounceDeath" seems to not be displaying player deaths in /all chat. I am able to see the message in Admin chat though.

I'll start up a private server here in a bit to test and see if it's a possible bug or user error on my end and will update this shortly.
outdead  [udvikler] 26. mar. 2023 kl. 19:15 
I checked this issue on my server and can't reproduce - it works for me. Need more details, maybe some modes conflict. But I have no idea how - AnnounceDeath event runs on Java side. Did you install mods, that doing something with chat?
Sidst redigeret af outdead; 26. mar. 2023 kl. 19:17
Woodland 26. mar. 2023 kl. 19:27 
Oprindeligt skrevet af outdead:
I checked this issue on my server and can't reproduce - it works for me. Need more details, maybe some modes conflict. But I have no idea how - AnnounceDeath event runs on Java side. Did you install mods, that doing something with chat?

Sorry I wasn't able to update earlier, I'll try and test more either tonight or in the morning. I'm going to chalk it up to user error for now but I'll let you know if I find out anything. If you want me to delete these messages let me know.
Woodland 27. mar. 2023 kl. 21:37 
Oprindeligt skrevet af outdead:
I checked this issue on my server and can't reproduce - it works for me. Need more details, maybe some modes conflict. But I have no idea how - AnnounceDeath event runs on Java side. Did you install mods, that doing something with chat?

I have tried to reproduce the issue on a private server and I can not seem to do it. Must have been user error on my part, apologies. You can delete these messages if you want.
DaNeo 11. apr. 2023 kl. 11:21 
I have this on fresh installed Server v 41.78.16
LOG : General , 1681237146870> 2.271.430.618> ----------------------------------------- STACK TRACE ----------------------------------------- Callframe at: canBeSafehouse function: createMenu -- file: ISWorldObjectContextMenu.lua line # 1454 | Vanilla function: createMenu -- file: TweakWorldObjectContextMenu.lua line # 16 | MOD: Server Tweaker function: createMenu -- file: ISMenuContextWorld.lua line # 50 | Vanilla function: createWorldMenu -- file: ISContextManager.lua line # 28 | Vanilla function: doRClick -- file: ISObjectClickHandler.lua line # 60 | Vanilla function: onObjectRightMouseButtonUp -- file: ISObjectClickHandler.lua line # 379 | Vanilla ERROR: General , 1681237146870> 2.271.430.618> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at NativeMethodAccessorImpl.invoke0 (Native Method). ERROR: General , 1681237146870> 2.271.430.618> DebugLogStream.printException> Stack trace: java.lang.reflect.InvocationTargetException 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: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:173) at zombie.ui.UIManager.update(UIManager.java:938) 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) Caused by: java.lang.NullPointerException: Cannot invoke "se.krka.kahlua.vm.KahluaTable.iterator()" because "<parameter1>" is null at zombie.network.GameClient.copyTable(GameClient.java:1668) at zombie.network.GameClient.getServerSpawnRegions(GameClient.java:1680) at zombie.iso.areas.SafeHouse.canBeSafehouse(SafeHouse.java:297) ... 23 more

cannot create safehouses, rightclicking in houses
Sidst redigeret af DaNeo; 11. apr. 2023 kl. 11:22
outdead  [udvikler] 11. apr. 2023 kl. 11:44 
Hi!
1. What OS?
2. Do you have another mods?
3. Did you try to remove my mod?
4. This error occurred on every building?
5. Attach pleas all stack trace log.
DaNeo 11. apr. 2023 kl. 12:12 
Hey,

1. Server is Linux Debian 11, Client is Windows 10 Pro 21H2
2-3 Yes i have other mods and tried to disable them
4. I tested sofar only on non commercial buildings
5. The console.txt does not give more stacktrace informations and the DebugLog does not contain any Stacktrace see below
[11-04-23 20:18:56.466] LOG : General , 1681237136466> 2.271.420.214> ----------------------------------------- STACK TRACE ----------------------------------------- Callframe at: canBeSafehouse function: createMenu -- file: ISWorldObjectContextMenu.lua line # 1454 | Vanilla function: createMenu -- file: TweakWorldObjectContextMenu.lua line # 16 | MOD: Server Tweaker function: createMenu -- file: ISMenuContextWorld.lua line # 50 | Vanilla function: createWorldMenu -- file: ISContextManager.lua line # 28 | Vanilla function: doRClick -- file: ISObjectClickHandler.lua line # 60 | Vanilla function: onObjectRightMouseButtonUp -- file: ISObjectClickHandler.lua line # 379 | Vanilla.
outdead  [udvikler] 11. apr. 2023 kl. 12:21 
There is cropped log in attachments
Oprindeligt skrevet af DaNeo:
at zombie.network.GameClient.getServerSpawnRegions(GameClient.java:1680)
at zombie.iso.areas.SafeHouse.canBeSafehouse(SafeHouse.java:297)
... 23 more
Send me this 23 missed lines please
DaNeo 11. apr. 2023 kl. 12:26 
this is the complete log from console.txt it standing there for me too

Screenshot of Logfile[i.gyazo.com]

Ingame[i.gyazo.com]
cause the safehouse button on the client menu is missing for me too
Sidst redigeret af DaNeo; 11. apr. 2023 kl. 12:29
outdead  [udvikler] 11. apr. 2023 kl. 13:00 
Oh, I see. Scroll down and copy those 23 lines that are hidden on your screenshot.
I cant reproduce this bug on my server. maybe this is a conflict with your mods, or even this is the bug from one of them.
DaNeo 11. apr. 2023 kl. 13:23 
i corrected it by removing the tweaker for the first.

The log file was at end of file....
Zomboid does not give me the 23 missing lines of stacktrace cause it get cutted and written into the logfile.
DaNeo 11. apr. 2023 kl. 14:14 
Your mod works, I found the problem, it was not a mod compatibility problem but a vanilla problem that I had overlooked. an empty spawn region which returned null was the problem, there must be at least 1 entry persisting even if you set a fixed spawn point which was my fault.

This caused the problem and even more, iam sorry for your time
Sidst redigeret af DaNeo; 11. apr. 2023 kl. 14:14
outdead  [udvikler] 11. apr. 2023 kl. 14:58 
I'm glad you were able to fix the problem. Perhaps a bug report should also be made to the developers of the game, the problem seems to be significant.
Jowy 1. maj 2023 kl. 6:01 
Lua Error when enabling this mod in main menu, only other mods enabled are mod manager and mod manager server

-----------------------------------------
function: TweakISAdminPowerUI.lua -- file: TweakISAdminPowerUI.lua line # 9 | MOD: Server Tweaker

ERROR: General , 1682945900023> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: addOption of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1682945900024> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: addOption 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.pcall(KahluaThread.java:1782)
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.core.Core.ResetLua(Core.java:4170)
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.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:60)
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.pcallBoolean(KahluaThread.java:1924)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1228)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1183)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1183)
at zombie.ui.UIManager.update(UIManager.java:816)
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:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1682945900025> -----------------------------------------
STACK TRACE
-----------------------------------------
function: TweakISAdminPowerUI.lua -- file: TweakISAdminPowerUI.lua line # 9 | MOD: Server Tweaker
outdead  [udvikler] 1. maj 2023 kl. 9:00 
Hi! This is strange. It looks like vanilla file `ISAdminPowerUI.lua` in not loaded. Is this on a singleplayer game?
Sidst redigeret af outdead; 1. maj 2023 kl. 9:00
< >
Viser 1-15 af 30 kommentarer
Per side: 1530 50