Project Zomboid

Project Zomboid

Night Vision [B.41/B.42]
82 Comments
Beathoven Nov 2 @ 4:27am 
if you have issues with the keybind do it that way

function ToggleNV(key)
if key == Keyboard.KEY_V then
nvctrl:toggle()
end
end
Events.OnKeyPressed.Add(ToggleNV)

But i dont know is it by design that its just some green overlay with a smulated flashlight?
Elk Oct 26 @ 5:36am 
Sadly very broken in current version.
Bug's have persisted 6+ months so mod is dead :sniperskull:
アルカードダーク Oct 14 @ 2:23am 
Hi... I'm having a problem. The letter to turn on the glasses is A, even though it's set to N by default and can't be changed?
What should I do?
Regards
MXMS GoodCat Sep 29 @ 4:10am 
Write a comment when it will be fixed for 42.12, plz
Petrov Dumass Sep 26 @ 6:30am 
Callframe at: getOrCreateLocation
function: KP_PNV_BodyLocations.lua -- file: KP_PNV_BodyLocations.lua line # 11 | MOD: Night Vision Goggles

Sep 26, 2025 2:49:33 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: java.lang.RuntimeException
Sep 26, 2025 2:49:33 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: java.lang.RuntimeException:
Sep 26, 2025 2:49:33 PM zombie.Lua.LuaManager RunLuaInternal
SEVERE: at getOrCreateLocation
at KP_PNV_BodyLocations.lua:11
Last Chapter Sep 25 @ 11:36pm 
42.12 has broken
Flexible Games Sep 15 @ 1:25am 
Please add a screenshot showing the night vision. Though my guess is the op has moved on.
Poucas_Trancas Aug 15 @ 1:02pm 
is it compatible with the brita armor pack mod night vision googles?
Nesano Aug 10 @ 1:54pm 
Dead mod?
The Great Clown Paulgy Jul 29 @ 4:37am 
any way to change the cone of vision?
chicken leg Jul 19 @ 6:50pm 
literally not night vision, its a big flashlight with a filter.
ferreirajc87 Jul 14 @ 10:24am 
@qtica Agreed
Qtica Jul 12 @ 7:23am 
It's a flashlight with a green film lense on top... this isn't NV..
dv8mc on twitch Jul 6 @ 4:52am 
contrary to the post below, the mod is firing errors at players on my server each time the nv's are turned on, on top of this, the mod doesnt actually luminate the map/area/darkness when they're on- infact it just puts a lense/effect over the top, which isnt how I believe this should be working. the errors are manageable, but the sight not working is... iffy. could you provide screenshots to how it should actually work @op.
ShiltonCL Jun 28 @ 11:33pm 
hi nice work, works well with kattaj1 military pack, i have a question about changing batteries, this mod has a vanguard helmet that has night vision option, it works well with your mod, but cant find a way to replace the battery, i read all the comments i saw that you posted something, but it doesn't work with the helmet, i says 0%, and no option to replace recharge the battery appears in the context menu, is there a specific procedure, or im i missing something?, tried with full and used batteries in my inventory, with no effect, can you help me plz!
Arsenal[26] Jun 17 @ 6:19am 
@UMURANGI GIRL

as Nesano posted just below... This NV mods keybind is located in character info window. Not main menu options. Ensure your game is not double binding the NV function. For example, GunFighter assigns a key in the Main menu Keybind section, because the original API did not bind a key iirc. Having (2) keys for the same function will toggle it on & off immediately.

I use this mod and just cleared its default bind in favor of GunFighters keybind so that it works with weapon mounted NV attachments.

I can not confirm anything for B41, as I am opted into B42 now, but it should work.
UMURANGI GIRL Jun 16 @ 5:15pm 
Its not working? I have my nvg's on and im pressing N, but its not working?
Haunraena Jun 12 @ 8:51pm 
is the default bind N?
Zenthynell May 21 @ 1:02pm 
Can you make it so you can able to see the map too instead of being everything dark except cone of view? please, like the other NVG mods thata let you see the map, make that possible pls.
Btuca May 18 @ 4:28pm 
its possible to find the NVG while looting anywhere? i like this mod but even with loot table on abundant i cant find the googles in any guns stone
Nesano May 12 @ 4:58pm 
Nevermind, it was in the last place I ever would've thought to look. It's a tab in the menu to the right of character, skill, health, etc.
Nesano May 12 @ 4:31pm 
Is there a way to change the key binding?
TheLukuro May 1 @ 12:37pm 
nvm it does
TheLukuro May 1 @ 12:33pm 
does this actually add night vision googles to the game or do you have to add those seperately?
Arsenal[26] Apr 29 @ 3:26am 
@marshmallow justice... looks like it should work as the original API commands are the same. But re-bind my [Weapon NV] hotkey as mentioned by [Psychotic X] so it doesn't double toggle the function. I can't verify B41 because i'm stuck in here working on things for B42... but it looks like it should looking at it from way over here.
Dreacon Apr 20 @ 9:51am 
how do I edit the key binding for activating night vision? I have the susceptible mod and that uses the "n" key to put on/take off the gask mask.
marshmallow justice Mar 25 @ 4:18am 
should i use this in palce of night vision api, for brita/gunfighter? will it detect this mod properly?
hydroxyde Mar 15 @ 9:32am 
me when i cant google "night vision goggles"
Is Simpada, yes Mar 2 @ 10:04am 
I get this error every time I turn the night goggles on and off, as well as when moving around.

`attempted index: _keymap of non-table: null
function: onRegisterKeymap -- file: ModKeymap_UIPanel.lua line # 14 | MOD: Night Vision
java.lang.RuntimeException: attempted index: _keymap 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.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.input.GameKeyboard.update(GameKeyboard.java:65)
.....
PsychoticX Feb 24 @ 7:37am 
@seanpook +anyone with the "I hear night vision but see no night vision" issue:

The Arsenal Gunfighter mod uses a default "Weapon Night Vision" hotkey "N". This mod also uses "N". So when you hit N, it turns your NVG on and instantly turns it off. You might hear the "click on" and the "power winding down" sounds at roughly the same time.

This took me way longer to figure out than it should have.
seanpook Feb 22 @ 3:13pm 
@kaofan It is multiplayer so on whatever the latest B41 was.
Shimoichi Feb 22 @ 2:37pm 
its nice mod, i think the best with WERY dargk nights, but little bit vroken 1. spavn rates - impossible to found
2. broken 3d textures in-game, googles looks loki idk, half-invisible somethingm, but not googles))
Shimoichi Feb 22 @ 2:35pm 
@Kaofan b42, i am trying to fix textures, but not make it now
Kaofan  [author] Feb 22 @ 2:07pm 
@seanpook

Tell me, on which build is this error?
Shimoichi Feb 22 @ 2:01pm 
@Kaofan i hope tou will make update, with s[acn chanses and fixing exture bug wit googles.
coz 3 places wit spawn its not okay)
seanpook Feb 22 @ 7:33am 
Kaofan, well then I have another problem. We have them on, I hit the N and I hear the sound, but nothing happens. There's no visual difference.
Kaofan  [author] Feb 21 @ 2:03pm 
@seanpook

You go to Character Information and when you go to the right side, there is a button to activate Google.
Kaofan  [author] Feb 21 @ 2:02pm 
@Shimoichi

I need to set the respawn of this item
Shimoichi Feb 19 @ 6:51pm 
@Kaofan
and if that file is correct, i need start new game? or will work on current save?
Shimoichi Feb 19 @ 6:38pm 
@seanpook
you are found googles, or use debug? i cant found it... idk why

@Kaofan hey, is that file i need change for make spawns for googles?
"C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\3383603346\mods\Night Vision\42\media\lua\server\items\NVG_distribute.lua"
seanpook Feb 19 @ 6:01pm 
Is this mod dependent on anything and where's the button to turn on the night vision? I don't see an option in the keybindings.
chicken leg Feb 18 @ 1:14pm 
oh thank you!
im probably just stupid as hell or tired lol, sorry for wasting your time-!
Kaofan  [author] Feb 18 @ 12:11pm 
@chicken leg

A long time ago, various Filters were added
chicken leg Feb 18 @ 11:16am 
since this was made as a "successor" to the old API, would you ever consider adding different "filters" for the night vision? like blue, infrared, noiseless blur, etc :3?
Kaofan  [author] Feb 13 @ 4:29pm 
@LordBeanie

Yes
LordBeanie Feb 13 @ 1:55pm 
Is this mod compatible with MP?
What-The-Hell-Is-This Feb 6 @ 4:29am 
There will be a delay in rendering the light block when passing the corner,that makes it simply look like a big flashlight:steamsad:
AfroRobot Feb 5 @ 7:33pm 
also cant seem to change the batteries in the night vision. I'm not particularly upset because it honestly makes finding items like this even more rare and valuable. You have night vision, but once it runs out, its out.
Kaofan  [author] Feb 3 @ 6:47am 
@drshahramanvariazar

Yes
Middle eastern Scoutmain Feb 2 @ 5:40am 
this adds nightvision goggles?