Project Zomboid

Project Zomboid

Night Vision API
97 Comments
Kaofan Jan 29 @ 11:47am 
Hello, everyone already knows that this mod is not being developed any further, but I made an alternative version of what is in this mod.

See for yourself through this link: Night Vision [B.41/B.42]
Sandstorm Spectre Jan 28 @ 4:08pm 
Bringing this to the top since I ran into the same issue:

For those who have the error of pressing "N" and only making the sound and not activating night vision. Press "H" to open your character panel, go to the right option until you find "ModKeyMap"
and change the "N" key to something else, and it will work
PoisonStream Dec 4, 2024 @ 6:59pm 
@xBarba_Negra Thank you so much. :steamthumbsup:
ExXanAbuser Nov 18, 2024 @ 3:39am 
Is there anyway to activate the night vision using a controller? I use britas and play it both controller
ForgedRozie Nov 9, 2024 @ 12:27pm 
@Bomjus Go into your audio options, advanced audio options. You will see a a long line of different audio sources. Select the second tab labeled "AUTO". Within that tab, you will see the audio source labeled "nv-turnoff". You can use that slider to adjust the volume of turning off your NODS/thermal scope. I slide mine to all the way off
Bomjus Oct 18, 2024 @ 1:47pm 
i know you're not supporting it anymore, but is there a way for me to turn off the weird bass boost sound when night vision goggles are turned off? it's like an earthquake to my ear drum and really uncomfortable
Ryan Oct 14, 2024 @ 9:41am 
It sucks! Brita's armor pack uses this mod
Omni Aug 23, 2024 @ 11:25am 
There are still many mods that rely on this mod. It's okay if you no longer support it but please keep it on the workshop!

Thank you for your work! :healthvial:
Sonov Belial Aug 23, 2024 @ 7:39am 
@ricochete So far is still working ( at least here ) but please, if possible, do not delete it from the Workshop thanks mate ;)
ricochete  [author] Aug 23, 2024 @ 5:51am 
I'm not sure about the state of this mod, but I'm no longer supporting it. Thank you for the interest
chrisyowyow Jul 4, 2024 @ 2:48pm 
Can we get controller support for this? it bugs out the menu and cant press L1/R1
Zulumbaba May 1, 2024 @ 1:13pm 
Added this mod late into my heavy modded world, all is working perfectly fine, had to figure out why I couldn't change [NV] Filter or [NV] Brightness, though it was the battery but nope, turns out if you have a thermal scope and NVGs it's a bit finicky to change both their settings without dropping one or the other, also got some weird sound like a breaking bone while I was playing around, thought I bricked something since the breaking bone sound always played after trying to use N to power them on.
Also, they make a bit too much noise and because of that the [NV] Auto toggle from Arsenal26 is unusable unless you're gigachad and edit the sound files yourself.
Thatch Apr 4, 2024 @ 9:15am 
corrupted my save :steamhappy:
xBarba_Negra Jan 11, 2024 @ 5:15pm 
For those who have the error of pressing "N" and only making the sound and not activating night vision.
Press "H" to open your character panel, go to the right option until you find "ModKeyMap"
and change the "N" key to something else, and it will work
SpartanH347 [FR] Dec 27, 2023 @ 7:57am 
Same for me
Ciprandi Dec 21, 2023 @ 10:45am 
when I press N, it makes the sound, but doesn't work
Zak Nov 24, 2023 @ 2:02pm 
I cant remove my weapon from hands

Callframe at: setAttachedItem
function: animEvent -- file: ISUnequipAction.lua line # 54 | Vanilla.
[24-11-23 22:00:42.852] ERROR: General , 1700863242852> 21,376,653> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor593.invoke..
[24-11-23 22:00:42.852] ERROR: General , 1700863242852> 21,376,653> DebugLogStream.printException> Stack trace:.
[24-11-23 22:00:42.869] LOG : General , 1700863242869> 21,376,670> -------------------------------------------------------------
attempted index: setDrawDirty of non-table: null.
[24-11-23 22:00:42.870] LOG : General , 1700863242870> 21,376,670> -----------------------------------------
STACK TRACE
Sw1tch Oct 9, 2023 @ 4:02am 
No issues at all adding this to an existing SP save. Awesome job. I did, however, have to go in and delete those on and off sounds lol. If anyone else would like to not hear the sam fisher on and bass drop off sounds you can delete them from C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\2776633989\mods\NVAPI\media\sound
LialahCrowley Sep 24, 2023 @ 11:34am 
check your "character information panel and then a few tabs over will be a mod options thing @Mad5count
Mad5cout Sep 23, 2023 @ 1:11pm 
I am using this with Brita's weapon pack and Arsenal[26] and I don't even see a place to set this keybind in game for multiplayer. Any ideas? Someone really needs to make a tutorial if they have figured it out.
Yummy Aug 15, 2023 @ 3:14pm 
@gamer3000as and with brita's weapon pack too
gamer3000as Aug 13, 2023 @ 12:32am 
1: this mod work for brita armor pack
2: you need to install another mod to use it ( the night vision mod)
3: it work perfectly in single player
4: is 100% recommend and need to change the default letter to another letter
5: some times work in multiplayer sometimes not.
6: the effects are petty annoying but it work fine.
7: its annoying but if you want this mod to work 100% fine and with no error,bugs and that, you need to create a new world ;(
Yummy Aug 3, 2023 @ 3:18am 
Монолит Jul 18, 2023 @ 1:53am 
What to do? if when you click on the activation button, the sound is played. But the Night Vision does not work.
Fellix360 Jul 1, 2023 @ 8:13pm 
EasyStreetExile, Thanks! i was looking for a fix and tried everything except rebinding lmao.
EasyStreetExile Jun 17, 2023 @ 10:08am 
@Pla_utog 9000 Gunfighter 2.0 Keybind breaks the NVG keybind, you can fix with rebinding
Lord Hater Jun 16, 2023 @ 3:23am 
I downloaded this with Brita's weapon pack and it works in single player, the N button, but when I try and use it on multiplayer it doesn't work, any fix?
Prizrak Jun 13, 2023 @ 6:44pm 
can put goggles on, turn them on and choose nvg mode and brightness. But they do not work. Nothing changes when I put them on or press N
Sonov Belial Jun 13, 2023 @ 12:24pm 
@Zodd Thanks mate I'm glad it helped ;) S!
Sanity Jun 13, 2023 @ 11:30am 
Installed both applicable mods with Brita - Had to change the modmapkey to another key for the powerup to work correctly. Seems as if the keybind has a turn on AND turn off function. Change your keybind and they should work just fine. Mine worked just fine on a multiplayer dedicated server with 175 other mods. Should be good. :) Great work!
Data Disk May 2, 2023 @ 5:00pm 
I keep getting "item not NV", "NV control not found", or "NV API not found".
Zodd Apr 16, 2023 @ 7:57am 
God bless you Sonov Belial. Read the comments below
pr0ofthemall Apr 3, 2023 @ 4:34pm 
is it a script or item and also does it work with the Brita's armor pack nvg :steamfacepalm:
Sonov Belial Apr 1, 2023 @ 12:15pm 
@Green The messages you get about " night vision control not found " may be due to keybindings not set correctly ( Just a guess )
About the second one ( nv api not found ) could be a conflicting mod or the NVG API not installed correctly ( Again just a guess )
Try also to unsubscribe/re-subscribe to the mods of interest because how Steam updates the mods it's a bit crap and often it leaves behind old files that then may provoke issues. When unisuscrtibing check that all the file of interest have been deleted completely from the 108600 folder.
In addition I strongly suggest you to read carefully the guide you can find linked in the Brita's Weapons Pack mod page..maybe it can help solving your issues.
Ps: If using SMUI mod check that is enabled before Brita/Gunfighter ( So their files will overwtite it ) and remember to remove from it the require line if you intend to use this NVG API ( Because SMUI uses another one instead that is not compatible with this one here )
Lord-Thee-Canadian Apr 1, 2023 @ 7:15am 
where would you set a different key binding for brita? i only see set different key binding for arsenal gunfighter but not one for brita? i constantly have " night vision control not found " or " nv api not found" like what exactly does that even mean? i even set my mods to exactly how you stated below... i never had issues before with any mods until all this recently
Sonov Belial Mar 23, 2023 @ 1:57pm 
Yep by default the Brita/Gunfighter 2.0 set the " N " key to activate the NVG on optics so if you want to continue to use the " N " key for the NVG goggles you need to set a different keybinding for the Brita/Gunfighter 2.0 NVG on optics ;)
big fella Mar 23, 2023 @ 9:56am 
My NVGs also wouldn't work until I rebound the NVG key to an otherwise unused key. Changing the Arsenal night vision toggle bind for weapon sights also fixed the problem.
Sonov Belial Mar 22, 2023 @ 12:22pm 
@ll-Solid_T-l I guess it's another mod taking you the FPS....Scripts apart this API ( That is not a stand-alone mod btw ) adds only some overlays....If you instead were meaning NVG+Brita/Gunfighter 2.0 yep, on certain PCs, unfortunately, they could have an impact on FPS ( Especially the ones using integrated video cards )
ll-Solid_T-ll Mar 22, 2023 @ 11:18am 
This mod, took 40 FPS From my game. So i ofc have to remove it again. I cant have that.
Sonov Belial Mar 21, 2023 @ 6:11am 
If following what's written below still your NVGs are not working...Well done, mate!
You have reached just now the SNAFU level!
If you reached this level other possible solutions to solve the issue are ( Not in order of execution ):
- Throw your PC out of the window
- Unplug your PC from any power source for at least the next 10 years
- Stay away from your PC keyboard. Even if willing don't press any key. Never again.
- Consider that playing Tetris is not only an option anymore
- Wet the computer with generous sprinklings of holy water
- Consider bringing your PC to the Lourdes miracles's pool to have a 15 mins bath
- Scream loudly bad words toward the sky. The issue will remain but sometimes it helps.

End of the mini-guide. I hope it helped you ;)
Sonov Belial Mar 21, 2023 @ 5:40am 
*Additional notes If problem persist following what's written below:
- Do a file integrity check via Steam
- Once done try also to Unsubscribe/Re-subscribe to any mod present in the list below ( When you unsubscribe check first, before re-submitting, that there are no old files left behind in the folder 108600 )
- Repeat the procedure indicated in my previous reply
Sonov Belial Mar 21, 2023 @ 5:33am 
For the ones having issues with the NVGs used in conjunction with Brita/Gunfighter 2.0 mod:
- Check that the Night Vision Goggles mod from the same author of this NVG API is disabled ( It's not yet updated to works with them )
- If you are using the SMUI mod too, delete the require line in the mod.info file ( Make a backup of the original file first ) because it uses a different NVG framework that is not compatible with this one
CORRECT MOD LOAD ORDER ( Top = First enabled, Ignore the ones you're not using )

SMUI ( With the require string removed )
SLEO
NVG API
GUNFIGHTER 2.0 MAIN MOD
BRITA'S WEAPONS PACK
MOD OPTIONS
BRITA'S ARMOR PACK

I have 200+ mods enabled and all works fine. If following these instructions the NVG goggles still don't work:

- 99.9999999% you have a conflicting mod enabled
- Someone up there in the skies hates you
UshankaMan Mar 21, 2023 @ 4:09am 
the mod wasnt working. i press N and i hear the sound of NVG turn on, but i still cannot see. i quit and restart and then the whole screen is green but turning my NVG off or on does nothing, so i am stuck with a green screen now
unbound.exe Mar 19, 2023 @ 4:50pm 
@Sonov Belial nvm got it working. my files were fucked even after doing verify integrity. Had some stray, conflicting files. Can confirm that Brita 2.0 and night vision API work. New save is mandatory! 100% my fault. Thanks anyways!
unbound.exe Mar 19, 2023 @ 4:41pm 
@Sonov Belial no I don't have SMUI installed. huh. I can see alot of other people struggling to get night vision working but you had no problems. Anyways, thanks. You're doing gods work over here lol.
Sonov Belial Mar 19, 2023 @ 2:49am 
@unbound.exe Do you use SMUI mod? ( Asking because it uses a different NVG API that may create issues if used with Brita's/ Gunfigher 2.0 )
Sonov Belial Mar 19, 2023 @ 2:46am 
*Very quick update: Done a very quick test of the NVG API + Brita's/Gunfighter mods and everything working as planned without issues. This evening as said I'll post a detailed report about how to let it work correctly.
Sonov Belial Mar 19, 2023 @ 2:27am 
@unbound.exe Saw your reply. Stand by I'm doing further tests. My expected reply here today on late evening ( I'm on CET timezone )...Sorry but today in the most part of day I'm quite busy...
unbound.exe Mar 18, 2023 @ 9:23pm 
@Sonov Belial I have Brita 2.0 WITHOUT the night vision mod by ricochete and WITH this night vision API. It still doesn't work. I don't have any other mods that mess with night vision or equipment. I'm also not sure how it would be possible to install brita armor incorrectly lol. Load order is brita first, gunfighter, and then this api.
Sonov Belial Mar 17, 2023 @ 6:56am 
@BrokenBox Check that you have the Night Vision Googles mod disabled if you play with Brita/arsenal 2.0 enabled. Leave only the NVG API active.