Project Zomboid

Project Zomboid

FJ Cruiser Trail Teams Edition 2008-2014
Arsenal[26] 13 Mar, 2022 @ 5:01pm
Stack Trace (41.68) FIX
Love the mod... favorite SUV in the world!

Not sure if this occurs only on 41.68, but im getting this in console log when ever FJ spawns : (Might it have to do with the spare tire ?)

Tsar's vehicles were bugging out until their common library was updated today... so latest PZ may have some changes pertaining to vehicles I guess...


STACK TRACE
-----------------------------------------
Callframe at: setTireRemoved
function: Tire -- file: Vehicles.lua line # 324

ERROR: General , 1647215773427> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor396.invoke.
ERROR: General , 1647215773427> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor396.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:1842)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:128)
at zombie.vehicles.BaseVehicle.callLuaVoid(BaseVehicle.java:8732)
at zombie.vehicles.BaseVehicle.initParts(BaseVehicle.java:1073)
at zombie.vehicles.BaseVehicle.createPhysics(BaseVehicle.java:718)
at zombie.vehicles.BaseVehicle.addToWorld(BaseVehicle.java:8199)
at zombie.iso.IsoChunk.doLoadGridsquare(IsoChunk.java:3195)
at zombie.iso.IsoChunkMap.update(IsoChunkMap.java:198)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5701)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.iso.IsoCell.update(IsoCell.java:5662)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:3339)
at zombie.util.lambda.Invokers$Params1$CallbackStackItem.run(Invokers.java:37)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.core.profiling.AbstractPerformanceProfileProbe.lambda$invokeAndMeasure$0(AbstractPerformanceProfileProbe.java:83)
at zombie.util.lambda.Stacks$Params3$CallbackStackItem.invoke(Stacks.java:230)
at zombie.util.lambda.Stacks$GenericStack.invokeAndRelease(Stacks.java:26)
at zombie.util.Lambda.capture(Lambda.java:130)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:81)
at zombie.iso.IsoWorld.update(IsoWorld.java:3267)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1643)
at zombie.gameStates.IngameState.update(IngameState.java:1359)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:289)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:744)
at zombie.GameWindow.run_ez(GameWindow.java:660)
at zombie.GameWindow.mainThread(GameWindow.java:474)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: invalid wheel index
at zombie.core.physics.Bullet.setTireRemoved(Native Method)
at zombie.vehicles.BaseVehicle.setTireRemoved(BaseVehicle.java:8778)
... 45 more
Last edited by Arsenal[26]; 9 Jul, 2023 @ 3:35pm
< >
Showing 1-3 of 3 comments
Arsenal[26] 9 Jul, 2023 @ 3:27pm 
Finally had time to fiddle with the FJ mod's spawn error.

It seems that on (spawn) the FJ Cruisers SpareTire was causing errors... Specifically line #392 in (41.78.16) vanillas 'Vehicles.lua' which is the init function stating invalid wheel index. Even though the mod continues to work... removing / installing the spare time, each time you encounter another FJ, errors pop up... When I initially posted this (above) it was line #324 on whatever version it was back then... at anyrate... here's the fix :

STACK TRACE
-----------------------------------------
Callframe at: setTireRemoved
function: Tire -- file: Vehicles.lua line # 392 | Vanilla

It appears that removing the init line from the lua section of template_FJCSpareTire script for each of the (7) SpareTire types, eliminates the spawn errors without affecting functionality of the spare tire.

Here is the bit i'm referring for each of (7) SpareTire instances :

lua
{
create = Vehicles.Create.Tire,
/* init = Vehicles.Init.Tire, */
checkOperate = Vehicles.CheckOperate.Tire,
update = Vehicles.Update.Tire,
}

Commenting out or Deleting the init line as shown above seems to solve the errors... However, I don't know enough about vehicle mods to say for sure if this has other undesirable affects... I was able to remove / install the spare in game without issues... and new FJ spawns no longer throw errors... Quit and Restarted a game and Removed SpareTire was still removed... and visa versa...
Waver 10 Jul, 2023 @ 11:28am 
Nice, but the only lua section I have found at ...\script\vehicles folder with this exact content is in template_tire.txt file. No template_FJCSpareTire script file found. Gonna try it anyway. Thanks.
Last edited by Waver; 10 Jul, 2023 @ 11:30am
Arsenal[26] 10 Jul, 2023 @ 4:18pm 
File should be located :
\Steam\steamapps\workshop\content\108600\2741984715\mods\FJ_Cruiser_TTE\media\scripts\vehicles

I guess make sure you are in the correct mod directory.... ending in 4715 ?
< >
Showing 1-3 of 3 comments
Per page: 1530 50