Project Zomboid

Project Zomboid

[B42/B41] Bandits NPC (v2)
RV Interiors Patch
First off, I'd like to say right off the bat, that this has been an amazing mod to run with my friends on a hosted server and will be perpetually included in my must-have mods for Project Zomboid.

I do have one thing to ask though:

Would a compatibility patch for RV Interiors be possible? We noticed that they tend to spawn in the far-away cells that RV Interiors occupy when players are inside their vehicle interiors. Of course, there's no way to actually interact with them as they spawn on the exterior of the RV Interior "room". This eventually caused a problem with one of the RV Interiors in our server (I'm guessing the bandit that spawned died somehow?) where it would spit out a constant error message regarding "BanditPlayerBase.lua" just for being inside that RV Interior. See the error message below:
LOG : General , 1738752924966> 41,087,797> ----------------------------------------- STACK TRACE ----------------------------------------- Callframe at: haveBlood function: updateSquare -- file: BanditPlayerBase.lua line # 187 | MOD: Bandits function: Regenerate -- file: BanditPlayerBase.lua line # 313 | MOD: Bandits function: Update -- file: BanditPlayerBase.lua line # 102 | MOD: Bandits ERROR: General , 1738752924966> 41,087,797> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor701.invoke. ERROR: General , 1738752924967> 41,087,797> DebugLogStream.printException> Stack trace: java.lang.reflect.InvocationTargetException at jdk.internal.reflect.GeneratedMethodAccessor701.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.NullPointerException: Cannot read field "FloorBloodSplats" because the return value of "zombie.iso.IsoGridSquare.getChunk()" is null at zombie.iso.IsoGridSquare.haveBlood(IsoGridSquare.java:4967) ... 24 more

I'm thinking maybe a compatibility patch would be possible where the Bandits spawning code would check if the player is outside of standard world cell bounds (like the ones RV Interiors and Basements for Build 41 uses), then it just won't spawn any bandits if they are.

Looking forward to hear from you, @Slayer!

Thanks again for the amazing mod. :8bitheart:
Last edited by StirFriedNoodles; 5 Feb @ 10:06am
< >
Showing 1-1 of 1 comments
One thing to note, a feature idea popped up in my head as I was writing this up:

RV Interiors, but with Bandits inside, for a surprise when entering seemingly unattended RV's.

I'm guessing that's not really the priority with regards to feature updates right now but I'm just throwing that idea out there. :P

:deadinsidefriendly:
Last edited by StirFriedNoodles; 5 Feb @ 10:15am
< >
Showing 1-1 of 1 comments
Per page: 1530 50