Jump to content

2.5.6 Altering Views.lua file causes the module to be unrecognized


Recommended Posts

Posted

I've got a couple of mods for the aircraft I play most often the F-16 and 18.

 

All the mod does is modify the views.lua file wich is in the root aircraft folder under \Mods\aircraft\F-16C for example.

 

I modified this line as follows:

 

CameraViewAngleLimits = {83.000000,133.000000},

 

--DEFAULT {20.000000,140.000000},

 

That's it. Worked fine in 2.5.5. I found even if you just add a commented out line, it behaves the same way. DCS reports that you don't own the respective aircraft module if you try to load a mission and even the controls config no longer shows them. Restore the default file and it works fine.

 

It's as if it's doing some kind of CRC check against that file and if it's altered it turns the mod off.

 

I'm not sure if that's intentional but it sure is odd.

Posted

Needs to be done via your Saved Games folder. At least that's what I was told. Problem is it sometimes doesn't work with certain modules, it shifts the default head position (despite not changing that value), or you simply can't make one due to difficulty in finding the proper module name to write in the lua file. It's a mess.

Posted
Needs to be done via your Saved Games folder. At least that's what I was told. Problem is it sometimes doesn't work with certain modules, it shifts the default head position (despite not changing that value), or you simply can't make one due to difficulty in finding the proper module name to write in the lua file. It's a mess.

 

Thanks for the reply. I tried placing it in the Saved Games in the same path but it was simply ignored. It's not THAT big of a deal, as you can still adjust the zoom to what you want but it was nice to be able and set those limits previously.

Posted
Thanks for the reply. I tried placing it in the Saved Games in the same path but it was simply ignored. It's not THAT big of a deal, as you can still adjust the zoom to what you want but it was nice to be able and set those limits previously.

 

Disagree that this is not "THAT big of a deal". It is game breaking for me. I can't stand the default FOV values. I used to edit the max/min FOV with no problem in 2.5.5.

 

ED please fix this ASAP.

Posted
I tried placing it in the Saved Games in the same path but it was simply ignored.

 

Rather than place a LUA, you need to edit the file Server.Lua, located on \Saved Games\DCS.OpenBeta\Config\View\

 

Add these lines at the end of the file:

 

ViewSettings["F-16C_50"] = {
Cockpit = {
[1] = {-- player slot 1
	CameraViewAngleLimits  = {20.000000,140.000000},
	CockpitLocalPoint      = {3.259,0.796,0.0},
	CameraAngleRestriction = {false,90.000000,0.500000},
	CameraAngleLimits      = {200,-90.000000,90.000000},
	EyePoint               = {0.05000,0.100000,0.000000},
	ShoulderSize		   = 0.25,
	Allow360rotation	   = false,
	-- limits_6DOF            = {x = {-0.13,0.30},y ={-0.06,0.16},z = {-0.18,0.18},roll = 90.000000},
	limits_6DOF            = {x = {-0.17,0.45},y ={-0.30,0.10},z = {-0.22,0.22},roll = 90.000000},
},
}, -- Cockpit 
Chase = {
	LocalPoint      = {-5.0,1.0,3.0},
	AnglesDefault   = {0.000000,0.000000},
}, -- Chase 
Arcade = {
	LocalPoint      = {-21.500000,5.618000,0.000000},
	AnglesDefault   = {0.000000,-8.000000},
}, -- Arcade 
}

ViewSettings["FA-18C_hornet"] = {
Cockpit = {
[1] = {-- player slot 1
	CameraViewAngleLimits  = {20.000000,140.000000},
	CockpitLocalPoint      = {3.533,1.156,0.0},
	CameraAngleRestriction = {false,90.000000,0.500000},
	CameraAngleLimits      = {200,-90.000000,90.000000},
	EyePoint               = {0.05000,0.100000,0.000000},
	ShoulderSize		   = 0.25,
	Allow360rotation	   = false,
	limits_6DOF            = {x = {-0.10,0.30},y ={-0.3,0.060},z = {-0.20,0.20},roll = 90.000000},
	-- limits_6DOF            = {x = {-0.13,0.30},y ={-0.3,0.065},z = {-0.18,0.18},roll = 90.000000},
},
}, -- Cockpit 
Chase = {
	LocalPoint      = {-5.0,1.0,3.0},
	AnglesDefault   = {0.000000,0.000000},
}, -- Chase 
Arcade = {
	LocalPoint      = {-21.500000,5.618000,0.000000},
	AnglesDefault   = {0.000000,-8.000000},
}, -- Arcade 
}	

 

Best regards.

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

Posted
Rather than place a LUA, you need to edit the file Server.Lua, located on \Saved Games\DCS.OpenBeta\Config\View\

 

Add these lines at the end of the file:

 

ViewSettings["F-16C_50"] = {
Cockpit = {
[1] = {-- player slot 1
	CameraViewAngleLimits  = {20.000000,140.000000},
	CockpitLocalPoint      = {3.259,0.796,0.0},
	CameraAngleRestriction = {false,90.000000,0.500000},
	CameraAngleLimits      = {200,-90.000000,90.000000},
	EyePoint               = {0.05000,0.100000,0.000000},
	ShoulderSize		   = 0.25,
	Allow360rotation	   = false,
	-- limits_6DOF            = {x = {-0.13,0.30},y ={-0.06,0.16},z = {-0.18,0.18},roll = 90.000000},
	limits_6DOF            = {x = {-0.17,0.45},y ={-0.30,0.10},z = {-0.22,0.22},roll = 90.000000},
},
}, -- Cockpit 
Chase = {
	LocalPoint      = {-5.0,1.0,3.0},
	AnglesDefault   = {0.000000,0.000000},
}, -- Chase 
Arcade = {
	LocalPoint      = {-21.500000,5.618000,0.000000},
	AnglesDefault   = {0.000000,-8.000000},
}, -- Arcade 
}

ViewSettings["FA-18C_hornet"] = {
Cockpit = {
[1] = {-- player slot 1
	CameraViewAngleLimits  = {20.000000,140.000000},
	CockpitLocalPoint      = {3.533,1.156,0.0},
	CameraAngleRestriction = {false,90.000000,0.500000},
	CameraAngleLimits      = {200,-90.000000,90.000000},
	EyePoint               = {0.05000,0.100000,0.000000},
	ShoulderSize		   = 0.25,
	Allow360rotation	   = false,
	limits_6DOF            = {x = {-0.10,0.30},y ={-0.3,0.060},z = {-0.20,0.20},roll = 90.000000},
	-- limits_6DOF            = {x = {-0.13,0.30},y ={-0.3,0.065},z = {-0.18,0.18},roll = 90.000000},
},
}, -- Cockpit 
Chase = {
	LocalPoint      = {-5.0,1.0,3.0},
	AnglesDefault   = {0.000000,0.000000},
}, -- Chase 
Arcade = {
	LocalPoint      = {-21.500000,5.618000,0.000000},
	AnglesDefault   = {0.000000,-8.000000},
}, -- Arcade 
}	

 

Best regards.

 

Worked for me. You're a life saver, bro. :thumbup:

  • Recently Browsing   0 members

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