Jump to content

Having issues getting George AI interface to show up with my odd setup.


StandingCow

Recommended Posts

Hey all, I recently moved to a cockpit that is separate from my other monitors (in different rooms).  I haven't been able to figure out how to get my George interfaces to show up though.

Here is the display setup:

image.png

monitor.lua file:

_  = function(p) return p; end;
name = _('Cockpit');
Description = 'Sub Displays'
Viewports =
{
     Center =
     {
          x = 5360;
          y = 0;
          width = 2560;
          height = 1440;
          viewDx = 0;
          viewDy = 0;
          aspect = 2560/1440;
     }
}

LEFT_MFCD =
{
     x = 5360;
     y = 1440;
     width = 525;
     height = 525;
}

RIGHT_MFCD =
{
     x = 7395;
     y = 1440;
     width = 525;
     height = 525;
}
F14_JESTER_MENU =
{
    x = 5360;
    y = 0;
    width = 2560;
    height = 1440;
}

GU_MAIN_VIEWPORT = Viewports.Center

UIMainView = Viewports.Center

George AI file:

--viewports stuff	
	local v = find_viewport("GU_MAIN_VIEWPORT", "CENTER")
	if v ~= nil then
		if v.width ~= total_w or v.height ~= total_h then
			ULX = v.x
			ULY = v.y
			SZX = v.width
			SZY = v.height
			local aspect = SZX/SZY
			local offsetX = (ULX + SZX / 2 - total_w / 2) / total_w * total_aspect * 2
			local offsetY = -(ULY + SZY / 2 - total_h / 2) / total_h * 2
			local padding = math.min(total_aspect, aspect) * 0.2
			compass_pos = { -math.min(total_aspect, aspect) + offsetX + padding, -1 + offsetY * 2 + padding}
			weap_control_pos = { math.min(total_aspect, aspect) + offsetX - padding, -1 + offsetY * 2 + padding }
			compass_size = compass_size * v.height / total_h
			weap_control_size = weap_control_size * v.height / total_h
		end
	end
	--end viewports stuff

 

 

Any help would be appreciated!

5900X - 32 GB 3600 RAM - 1080TI

My Twitch Channel

~Moo

Link to comment
Share on other sites

Ok, this is fixed, Thanks to a suggestion from Special K in the discord I moved the MFDs to the right of the screen instead of under it.  Works with the default ED file now.  The George AI must have been hiding under my displays due to the resolution going downward.


Edited by StandingCow

5900X - 32 GB 3600 RAM - 1080TI

My Twitch Channel

~Moo

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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