Jump to content

Mod to activate NVG on L and Mistral version?


BaD CrC

Recommended Posts

I am looking for a talented modder here to take on the task to activate NVGs on the L and the Mistral version. Doesn't matter if it doesn't show on the pilots 3D models, but this limitation doesn't make sense to me and I am pretty sure there were Ls involved in the night missions during Op Harmattan in Lybia. This is seriously limiting our missions at BSD as lot of them are done under NVG, and all but the L and Mistral choppers have this capability.

Link to comment
Share on other sites

I am looking for a talented modder here to take on the task to activate NVGs on the L and the Mistral version. .

Your going to need one hell of a programmer for that gruesome task.

 

Step 1: Go into Mods\aircraft\SA342\Input\keyboard\default.lua

Step 2: Find line #506 (SA342 Night Vision Goggles On/Off) and comment the line out using --

Step 3: Find line #505 (Night Vision Goggles) and remove the -- to activate it

 

Done :D

  • Like 1
Link to comment
Share on other sites

Your going to need one hell of a programmer for that gruesome task.

 

Step 1: Go into Mods\aircraft\SA342\Input\keyboard\default.lua

Step 2: Find line #506 (SA342 Night Vision Goggles On/Off) and comment the line out using --

Step 3: Find line #505 (Night Vision Goggles) and remove the -- to activate it

 

Done :D

 

It didn't work for me in single-player, and I think it messed up some binds...

[sIGPIC][url=http://www.blacksharkden.com][/url][/sIGPIC]

 

http://www.blacksharkden.com

 

"Come join us" - Bad Religion

Link to comment
Share on other sites

It didn't work for me in single-player, and I think it messed up some binds...

Entire "procedure"...

6c40458cffb73bec230a22648fd9d2bc.gif

 

If it destroys your bindings you must be running some other stuff that interferes. One thing that might cause issues is if you have binded the (old) nightvision to another key. And now that device no longer excists. Try resetting the lines back how they where, start game. Set the binding for the Goggles back to "default" and then make the change to the code.

 

If you messed up the syntax in the lua file however, DCS might decide to ignore it during parsing, causing all the bindings in it not to load. That might be what happened to you. Check if you did it like the GIF


Edited by CrashO
Link to comment
Share on other sites

So, now it worked even though it's seemingly an identical file to the one I used... I'm using normal notepad to edit since I don't have Notepad++, I saved after exiting (doh) and only did the simple edit. Maybe my file was bad from the get go? I've tried using JSGME with my file before, and simply editing the file (with a backup, of course).

So I'm either being stupid and missing something completely obvious, or it's a problem with my files/install. Thanks either way :)

[sIGPIC][url=http://www.blacksharkden.com][/url][/sIGPIC]

 

http://www.blacksharkden.com

 

"Come join us" - Bad Religion

Link to comment
Share on other sites

I'm using normal notepad to edit since I don't have Notepad++

The file may have been corrupted when edited/saved using Windows Notepad (it's been known to cause issues in the past).

 

Notepad Plus Plus: https://notepad-plus-plus.org/

Programmer's Notepad: http://www.pnotepad.org/

 

https://forums.eagle.ru/showpost.php?p=599686&postcount=1

i9 9900K @4.7GHz, 64GB DDR4, RTX4070 12GB, 1+2TB NVMe, 6+4TB HD, 4+1TB SSD, Winwing Orion 2 F-15EX Throttle + F-16EX Stick, TPR Pedals, TIR5, Win 10 Pro x64, 1920X1080

Link to comment
Share on other sites

  • 1 year later...

It seems that in the latest version, these lines are different now, and none are commented out:

 

--Night Vision Goggles
{combos = {{key = 'H', reformers = {'RShift'}}}, down = device_commands.Button_5, up = device_commands.Button_5, cockpit_device_id = devices.HEAD_WRAPPER, value_down = 1, value_up = 0, name = _('SA342 Night Vision Goggles On/Off'), category = _('Night Vision Goggles')},
{combos = {{key = 'H', reformers = {'RShift','RCtrl'}}}, 	down = iCommandPlane_Helmet_Brightess_Up  , name = _('Night Vision Goggles Gain Up')  , category = _('Night Vision Goggles')},
{combos = {{key = 'H', reformers = {'RShift','RAlt'}}} , 	down = iCommandPlane_Helmet_Brightess_Down, name = _('Night Vision Goggles Gain Down'), category = _('Night Vision Goggles')},

 

Yet the NVG's for the L and the Mistral are nonfunctional in the current version as of today. Anyone wrestle this down yet?

 

/Fargo

 

Banner EDForum2020.jpg

Have fun. Don't suck. Kill bad guys. 👍

https://discord.gg/blacksharkden/

Link to comment
Share on other sites

  • 2 weeks later...

The mod still works. It is the instructions on how to do it that are no longer valid. :huh:

 

To implement NVG on all Gazelle models, do the following:

 

Like before, edit the following file:

C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\SA342\Input\keyboard\default.lua

or for the beta:

C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\SA342\Input\keyboard\default.lua

 

In the section titled "--Night Vision Goggles", comment out the following line by adding -- at the start of the line:

 

{combos = {{key = 'H', reformers = {'RShift'}}}, down = device_commands.Button_5, up = device_commands.Button_5, cockpit_device_id = devices.HEAD_WRAPPER, value_down = 1, value_up = 0, name = _('SA342 Night Vision Goggles On/Off'), category = _('Night Vision Goggles')},

 

Just below that line insert the following line:

 

{combos = {{key = 'H', reformers = {'RShift'}}}, down = iCommandViewNightVisionGogglesOn, name = _('Night Vision Goggles On/Off') , category = _('Night Vision Goggles')},

 

This is exactly the same mod. They just removed the pasted line above. When done, the "--Night Vision Googles" section should look like this:

 

--Night Vision Goggles
--{combos = {{key = 'H', reformers = {'RShift'}}}, down = device_commands.Button_5, up = device_commands.Button_5, cockpit_device_id = devices.HEAD_WRAPPER, value_down = 1, value_up = 0, name = _('SA342 Night Vision Goggles On/Off'), category = _('Night Vision Goggles')},
{combos = {{key = 'H', reformers = {'RShift'}}}, down = iCommandViewNightVisionGogglesOn, name = _('Night Vision Goggles On/Off') , category = _('Night Vision Goggles')},
{combos = {{key = 'H', reformers = {'RShift','RCtrl'}}}, 	down = iCommandPlane_Helmet_Brightess_Up  , name = _('Night Vision Goggles Gain Up')  , category = _('Night Vision Goggles')},
{combos = {{key = 'H', reformers = {'RShift','RAlt'}}} , 	down = iCommandPlane_Helmet_Brightess_Down, name = _('Night Vision Goggles Gain Down'), category = _('Night Vision Goggles')},

 

Note, with this mod...

- when you enable NVG, it will enable/disable it for both pilots at the same time whereas the default setting allows the pilots to have NVG enabled separately IIRC.

- It does not animate the goggles moving up and down in the SA342M model.

- In the SA342 L, Mistral, and Minigun models, the NVG is not mounted on the helmets, but it still works.

- I think someone said it also only shows up in one eye for VR. I assume that is still true.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...