Project Zomboid

Project Zomboid

Fred's Night Vision Goggles
 This topic has been pinned, so it's probably important
Fredoodle_  [developer] 7 Aug, 2024 @ 8:43am
Bug reports
Please post any bug reports here!
< >
Showing 1-15 of 30 comments
Stokes 14 Aug, 2024 @ 8:26pm 
seems like the pvs-7 and the head-mount arent spawning
Fredoodle_  [developer] 14 Aug, 2024 @ 11:20pm 
@De_Aquino Thanks for the report. Looks like there indeed was some issues with the item spawns but i have patched it now.
ff450 21 Aug, 2024 @ 12:47pm 
hi there hosting a server and when pressing N to turn on NVGs this error appears

`se.krka.kahlua.vm.KahluaException: OccupationSpawnItems.lua:11: 'then' expected near `player`
at org.luaj.kahluafork.compiler.LexState.lexerror(LexState.java:278)
at org.luaj.kahluafork.compiler.LexState.syntaxerror(LexState.java:289)
at org.luaj.kahluafork.compiler.LexState.error_expected(LexState.java:683)
at org.luaj.kahluafork.compiler.LexState.check(LexState.java:696)
at org.luaj.kahluafork.compiler.LexState.checknext(LexState.java:700)
at org.luaj.kahluafork.compiler.LexState.test_then_block(LexState.java:1598)
at org.luaj.kahluafork.compiler.LexState.ifstat(LexState.java:1610)
at org.luaj.kahluafork.compiler.LexState.statement(LexState.java:1736)
at org.luaj.kahluafork.compiler.LexState.chunk(LexState.java:1790)
at org.luaj.kahluafork.compiler.LexState.body(LexState.java:1026)
at org.luaj.kahluafork.compiler.LexState.simpleexp(LexState.java:1207)
at org.luaj.kahluafork.compiler.LexState.subexpr(LexState.java:1303)
at org.luaj.kahluafork.compiler.LexState.expr(LexState.java:1321)
at org.luaj.kahluafork.compiler.LexState.explist1(LexState.java:1036)
at org.luaj.kahluafork.compiler.LexState.funcargs(LexState.java:1059)
at org.luaj.kahluafork.compiler.LexState.primaryexp(LexState.java:1156)
at org.luaj.kahluafork.compiler.LexState.exprstat(LexState.java:1691)
at org.luaj.kahluafork.compiler.LexState.statement(LexState.java:1779)
at org.luaj.kahluafork.compiler.LexState.chunk(LexState.java:1790)
at org.luaj.kahluafork.compiler.LexState.compile(LexState.java:198)
at se.krka.kahlua.luaj.compiler.LuaCompiler.loadis(LuaCompiler.java:132)
at se.krka.kahlua.luaj.compiler.LuaCompiler.loadis(LuaCompiler.java:124)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:546)
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 zombie.gameStates.ConnectToServerState.receiveServerOptions(ConnectToServerState.java:131)
at zombie.gameStates.ConnectToServerState.Finish(ConnectToServerState.java:688)
at zombie.gameStates.ConnectToServerState.update(ConnectToServerState.java:100)
at zombie.gameStates.MainScreenState.update(MainScreenState.java:523)
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:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`
Fredoodle_  [developer] 21 Aug, 2024 @ 1:36pm 
@ff450 Did you try to change the hotkey? Maybe you have a conflict with another mod. As far as i can tell, the stack trace does not mention any of my files.
Last edited by Fredoodle_; 21 Aug, 2024 @ 1:37pm
ff450 21 Aug, 2024 @ 3:08pm 
yeah i did but it didnt change anything but the error appears only when using the pvs-14 and pvs-7 the gpnvg works good
Fredoodle_  [developer] 21 Aug, 2024 @ 11:56pm 
Do you use the "Occupational Items On Spawn (PZ B41+)" mod? That mod has a file that matches "OccupationSpawnItems.lua" so i am gonna go ahead and assume your problem is with that mod. I went and had a look at the file and it is correct lua syntax. If you edited some the file yourself that could be the problem. Otherwise there is not much i can do about it.

I don't see how the mod conflicts with each other (if thats the case) but maybe the other mod has been corrupted somehow. Maybe try to reinstall.
Last edited by Fredoodle_; 22 Aug, 2024 @ 12:12am
Karl 1 Sep, 2024 @ 7:28pm 
I seem to have the opposite problem. I set all but the PVS-7 to 0 but the others keep spawning regardless. Not sure if another mod could cause them to ignore the settings I have set in Sandbox Options or not.
Fredoodle_  [developer] 2 Sep, 2024 @ 8:01am 
Hi @Vakkeran, thanks for pointing it out. Looks like there indeed was some issues with the items spawning; it has been addressed now
Karl 3 Sep, 2024 @ 12:47pm 
Yup seems to work perfect now.
Chief33 16 Sep, 2024 @ 2:31am 
hey @Fredoodle_ i have a issue with the all the nvg's they have unlimited batteries when i remove a used and i cant insert a fresh one
Last edited by Chief33; 16 Sep, 2024 @ 8:11pm
mthw™ 18 Sep, 2024 @ 5:00am 
Oh i found out theres a bug report thing, so this is an error that occurs (probably when turning night vision on): LuaManager.getFunctionObject> no such function "OnNightVisionGogglesCreate".
Fredoodle_  [developer] 18 Sep, 2024 @ 9:19am 
Hi @[|] Chief33 and @mthw™ thanks for pointing out the issues. I had a quick test run of the mod but i can't seem to reproduce your issues. Would you be able to include a bit more information on how you encountered the errors? What did you do? Did you adjust any settings? anything relevant would help :)

@mthw™ the OnNightVisionGogglesCreate function is called every time a pair of goggles are spawned into the world or when they are flipped/disasembled. In case that helps
Chief33 18 Sep, 2024 @ 1:03pm 
@Fredoodle_ thanks for the response and sorry about that but im sure it is a mod conflict i have over 130 mods enabled but ill try to figure it out so maybe you can produce a patch
giftiger 2 Oct, 2024 @ 8:05am 
Same Issue with the batteries... I just looted the goggle AN/PVS-15 in Rosewood at the police station, clicked on remove battery (One). Afterwards the game still gave me the option to remove the battey. I could choose again from (One) or (All). When I clicked on All, he never stopped taking batteries. The first battery was 33%, the 500 others were empty. Maybe that helps to reproduce
Last edited by giftiger; 2 Oct, 2024 @ 8:16am
Fredoodle_  [developer] 2 Oct, 2024 @ 8:35am 
Hi @giftiger,i have tried to reproduce the error but i can't seem to do it. As @[|] Chief33 pointed out it might be related to some other mods. If you want to share, what mods are you using?
< >
Showing 1-15 of 30 comments
Per page: 1530 50