Project Zomboid

Project Zomboid

Nissan Skyline GTR R34
This topic has been locked
A Bug Report
So I've got a decently heavy mod list here, don't know if this is an issue of conflict or anyhting, but here is what I've got.



LOG : Lua , 1641131100854> Loading: C:/Program Files (x86)/Steam/steamapps/workshop/content/108600/2698931985/mods/TRNSkylineGTRR34/media/lua/client/Vehicles/ISUI/tr_nsgtrr34_PYR.lua
WARN : Lua , 1641131100854> LuaManager$GlobalObject.require> require("PaintVehicleConfig") failed
LOG : General , 1641131100854> -------------------------------------------------------------
attempted index: VEHICLES of non-table: null

LOG : General , 1641131100855> -----------------------------------------
STACK TRACE
-----------------------------------------
function: tr_nsgtrr34_PYR.lua -- file: tr_nsgtrr34_PYR.lua line # 15

ERROR: General , 1641131100855> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: VEHICLES of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1641131100856> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: VEHICLES 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:550)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:496)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:482)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:329)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:256)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:375)
at zombie.core.Core.ResetLua(Core.java:4018)
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:808)
at zombie.GameWindow.logic(GameWindow.java:253)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:745)
at zombie.GameWindow.run_ez(GameWindow.java:661)
at zombie.GameWindow.mainThread(GameWindow.java:475)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1641131100859> -----------------------------------------
STACK TRACE
-----------------------------------------
function: tr_nsgtrr34_PYR.lua -- file: tr_nsgtrr34_PYR.lua line # 15

янв. 02, 2022 3:45:00 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: java.lang.RuntimeException
янв. 02, 2022 3:45:00 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: java.lang.RuntimeException:
янв. 02, 2022 3:45:00 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: at tr_nsgtrr34_PYR.lua:15



If you can tell what it might be and if it's on my side then I might do some testing, figure out what's conflicting or whatever that might be.

:bleach:
Last edited by ★ John Security ★; 2 Jan, 2022 @ 5:55am
< >
Showing 1-4 of 4 comments
TiggoRech  [developer] 2 Jan, 2022 @ 6:02pm 
(I'm quite new about programming so I might end up talking nonsense)

I believe the problem that is described is because you don't have "Paint Your Ride" ("PYR" from "tr_nsgtrr34_PYR") on your server, so your server can't understand what is this file for, but if this is causing any inconvenience, I can remove the compatibility with the mod, since it is outdated for multiplayer.

PS: Sorry for the delay in responding, I ended up seeing the post just now.
NoctisFalco 2 Jan, 2022 @ 6:45pm 
@TiggoRech You are right, this error happens because @CEO doesn't have Paint Your Ride enabled.

Change this in tr_nsgtrr34_PYR.lua
if getActivatedMods():contains("TRNSkylineGTRR34") then merge(PaintVehicleConfig.VEHICLES, vehicles_tr_nsgtrr34) end
to
if getActivatedMods():contains("PaintYourRide") then if PaintVehicleConfig.VEHICLES then -- This is in case I remove/rename/whatever merge(PaintVehicleConfig.VEHICLES, vehicles_tr_nsgtrr34) end end
There is no need to check if your mod is activated, but must check for PYR. This way there will be no errors.

I completely forgot to make the API public. I'll make some changes later when I have time and notify you. Also, I've seen you changed the description. It'll be better that you leave support for PYR in place, so that I won't have to update PYR everytime you add a new vehicle :)
Alright, then I just ignore it I suppose.
NoctisFalco 3 Jan, 2022 @ 9:11am 
@CEO You can ignore this error until the dev updates the mod. It doesn't break anything anyway.
< >
Showing 1-4 of 4 comments
Per page: 1530 50