Jump to content

Recommended Posts

Posted

I know this issue is already reported for players which are using more than 1 monitors.

 

Im having this issue with only 1 monitor with a 3860x1600 resolution.

I know some guys fixed this issue by tweaking the lua´s but i dont have the know how to fix it myself. If some einstein could give me a little bit of his knowledge i would be very happy.

Flying the mi24 mostly with my brother using the shturm. So using the periscope would be nice.

 

screenshot:

1-min.png

Posted

Seems like the same issue:

 

Intel i7-12700K @ 8x5GHz+4x3.8GHz + 32 GB DDR5 RAM + Nvidia Geforce RTX 2080 (8 GB VRAM) + M.2 SSD + Windows 10 64Bit

DCS Panavia Tornado (IDS) really needs to be a thing!

Tornado3 small.jpg

  • 3 weeks later...
Posted (edited)

hi ,

i found a good Fix for the periscope issue , problem solved😺

find the file in {DCS World directory }\Mods\aircraft\Mi-24P\Cockpit\Scripts\9K113_CAM\9K113_CAM_init.lua

 

 

then at line 18

swap      

  local x,y,w,h,GUI_scale   = get_UIMainView()  

  by                     

  local x,y,w,h,GUI_scale   = 0,0,3840,2160,2--get_UIMainView()

 resolution is 3840 / 2160 scale 2   for me , set your parameter it will work!(remember it is x,y,w,h,GUI_scale) 😼

(dont forget to put comment  with get_UIMainView() -- or get rid of it

 

whole file corrected.

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")


local   use_helmet = false

	  use_helmet = LockOn_Options.screen.oculus_rift

purposes 	 = {render_purpose.AUXILLARY_SIGHT_SCREENSPACE}

if use_helmet then 
	indicator_type = indicator_types.COLLIMATOR
	purposes 	   = {render_purpose.AUXILLARY_SIGHT}
else
	indicator_type = indicator_types.COMMON
    purposes 	   = {render_purpose.AUXILLARY_SIGHT_SCREENSPACE}
	
	local x,y,w,h,GUI_scale   = 0,0,3840,2160,2--get_UIMainView()
	dedicated_viewport 		  = {x,y,w,h}
	dedicated_viewport_arcade = dedicated_viewport
end

page_subsets 			 = {LockOn_Options.script_path.."9K113_CAM\\9K113_CAM_base_page.lua"}
----------------------
pages 					 = {{1}}
init_pageID     		 = 1

 

the issue come from get_UIMainView() it report incorrect parameter!

Edited by Fifou265
  • Like 1

member of 06 MHR /  FENNEC Mi-24P

Posted
Am 8.9.2021 um 00:17 schrieb Fifou265:

hi ,

i found a good Fix for the periscope issue , problem solved😺

find the file in {DCS World directory }\Mods\aircraft\Mi-24P\Cockpit\Scripts\9K113_CAM\9K113_CAM_init.lua

 

 

then at line 18

swap      

  local x,y,w,h,GUI_scale   = get_UIMainView()  

  by                     

  local x,y,w,h,GUI_scale   = 0,0,3840,2160,2--get_UIMainView()

 resolution is 3840 / 2160 scale 2   for me , set your parameter it will work!(remember it is x,y,w,h,GUI_scale) 😼

(dont forget to put comment  with get_UIMainView() -- or get rid of it

 

whole file corrected.

dofile(LockOn_Options.common_script_path.."devices_defs.lua")
dofile(LockOn_Options.common_script_path.."ViewportHandling.lua")


local   use_helmet = false

	  use_helmet = LockOn_Options.screen.oculus_rift

purposes 	 = {render_purpose.AUXILLARY_SIGHT_SCREENSPACE}

if use_helmet then 
	indicator_type = indicator_types.COLLIMATOR
	purposes 	   = {render_purpose.AUXILLARY_SIGHT}
else
	indicator_type = indicator_types.COMMON
    purposes 	   = {render_purpose.AUXILLARY_SIGHT_SCREENSPACE}
	
	local x,y,w,h,GUI_scale   = 0,0,3840,2160,2--get_UIMainView()
	dedicated_viewport 		  = {x,y,w,h}
	dedicated_viewport_arcade = dedicated_viewport
end

page_subsets 			 = {LockOn_Options.script_path.."9K113_CAM\\9K113_CAM_base_page.lua"}
----------------------
pages 					 = {{1}}
init_pageID     		 = 1

 

the issue come from get_UIMainView() it report incorrect parameter!

 

 

IT WORKS NOW!!!!!!!!!!!!!!!!!!! Thank you so much 😃

  • Recently Browsing   0 members

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