Project Zomboid

Project Zomboid

[B42] WarThunderVehicleLibrary
Flight/Heli Bug report
Firstly, amazing mod, thank you!

We're having some weird lighting/shadow/line of sight bug where when you fly above the first floor, your heli turns invisible (fixed by zooming out) and lots of black shadows (can be fixed while in debug with the f11 menu by selecting FBORenderChunk.NoLighting in the FBORenderChunk tab. I wonder if this setting can be enabled while in the helicopter to fix it?

Also, when flying, zombies and vehicles often stop being rendered, as if they're out of your vision. I think the game remembers the last floor you were on or is below you and gets confused on what you can and can't see. Haven't found a workaround for this.

You also can't fly above b41's height limit, but I think any higher would fly the helicopter out of view, plus there's only 5 skyscrapers above this limit, so we're not missing out on much
< >
Showing 1-4 of 4 comments
User Jan 23 @ 4:49pm 
Hi,
I tested the FBORenderChunk.NoLighting option, and unfortunately, it’s not ideal. It disables all lighting effects, including shadows, which makes the night appear as bright as day. So, as long as you're in the helicopter, there would be no night. Additionally, it removes lighting effects from sources like lamps and other light objects.
Originally posted by User:
Hi,
I tested the FBORenderChunk.NoLighting option, and unfortunately, it’s not ideal. It disables all lighting effects, including shadows, which makes the night appear as bright as day. So, as long as you're in the helicopter, there would be no night. Additionally, it removes lighting effects from sources like lamps and other light objects.

Yeah I realised that a bit after, bit of a temporary solution really.

Did you have the lighting issues when you were working on the mod? I never saw it in b41 but I think most if not all are getting the bug (most likely new lighting)


Example, only this mod and the huey mod (tested without huey mod, no change):(edit: better image upload)
https://imgur.com/a/uHg9aJg
Last edited by Ricksdetrix; Jan 23 @ 6:11pm
I've kinda figured out what's going on.

When you use fast move and fly up, or fly up in a helicopter, the game remembers your cone of vision and whats blocking it, so those shadows 'follow' you no matter where you fly, until you touch another piece of floor (or in a heli, are just above the floor (think top step of stairs))

The 360 vision mod doesn't help unfortunately, but there's mods to remove all line of site mechanics (you can see zombies on the other side of buildings) which I'm pretty certain would fix this, but they're not updated yet.

I tried looking through to make the changes, it's something in the LightingJNI$JNILighting.class and LightingJNI.class files (b41 only has LightingJNI.class, the other file is new to b42) but I don't really know what I'm looking for.

I hope this helps somehow, I'm super excited to use this mod for a challenge, and it's gonna be so cool when multiplayer gets released :steamhappy:


example (same thing happens using fast move to fly): https://imgur.com/a/plU5ptu

outdated vision mod that I think would've fixed the issue:
https://steamcommunity.com/sharedfiles/filedetails/?id=3151783345
Quilava Feb 1 @ 7:19am 
Im using the Huey mod, it require this mod to work, i get this error pop up when i go near the heli spawn, since the error doesnt say anything about the Huey mod, i though it may related to the required mod, so i post the log here

If it not error from this mod, pls let me know so i can post it in the Huey bug report, also ... can you guys remove the shell item? The heli mod i use dont need any of those item, these item spawn where gun spawn, im scare it will take over the gun slot and make the game spawn less gun & ammo :sad_seagull:


`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:211)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:201)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
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:81)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:458)
at zombie.spnetwork.SinglePlayerServer.receiveClientCommand(SinglePlayerServer.java:206)
at zombie.spnetwork.SinglePlayerServer.mainLoopDealWithNetData(SinglePlayerServer.java:160)
at zombie.spnetwork.SinglePlayerServer.update(SinglePlayerServer.java:148)
at zombie.GameWindow.logic(GameWindow.java:293)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:924)
at zombie.GameWindow.run_ez(GameWindow.java:817)
at zombie.GameWindow.mainThread(GameWindow.java:615)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.iso.IsoGridSquare.getRoom()" because the return value of "zombie.inventory.ItemContainer.getSquare()" is null
at zombie.inventory.ItemPickerJava.doRollItemInternal(ItemPickerJava.java:1184)
at zombie.inventory.ItemPickerJava.doRollItemInternal(ItemPickerJava.java:1141)
at zombie.inventory.ItemPickerJava.rollItemInternal(ItemPickerJava.java:1128)
at zombie.inventory.ItemPickerJava.fillContainerTypeInternal(ItemPickerJava.java:891)
at zombie.inventory.ItemPickerJava.fillContainerType(ItemPickerJava.java:865)
at zombie.vehicles.BaseVehicle.randomizeContainer(BaseVehicle.java:10579)
at zombie.vehicles.BaseVehicle.randomizeContainers(BaseVehicle.java:10529)
at zombie.vehicles.BaseVehicle.createPhysics(BaseVehicle.java:955)
at zombie.vehicles.BaseVehicle.createPhysics(BaseVehicle.java:846)
at zombie.vehicles.BaseVehicle.addToWorld(BaseVehicle.java:9460)
at zombie.vehicles.BaseVehicle.addToWorld(BaseVehicle.java:9379)
at zombie.Lua.LuaManager$GlobalObject.addVehicle(LuaManager.java:9450)
... 25 more
`
< >
Showing 1-4 of 4 comments
Per page: 1530 50