Zilch Posted May 21, 2016 Posted May 21, 2016 Heya! As mentioned in the title, I was trying to get the same effect I have with the A-10's MFCD's with the Mirage's VTB, but instead of improving anything, my VTB is constantly just black screened. Any of you lua veterans able to chime in? My .lua contents are below. VTB_init.lua indicator_type = indicator_types.COMMON purposes = {render_purpose.GENERAL,render_purpose.HUD_ONLY_VIEW, render_purpose.SCREENSPACE_INSIDE_COCKPIT} VTB_PAGE_0 = 0 VTB_PAGE_1 = 1 VTB_PAGE_2 = 2 VTB_PAGE_3 = 3 SRC_VTB_BASE = 0 SRC_VTB_0 = 1 SRC_VTB_1 = 2 SRC_VTB_2 = 3 SRC_VTB_3 = 4 local my_path = LockOn_Options.script_path.."VTB/" page_subsets = { [sRC_VTB_BASE] = my_path.."VTB_base.lua", [sRC_VTB_0] = my_path.."VTB_page_0.lua", [sRC_VTB_1] = my_path.."VTB_page_1.lua", [sRC_VTB_2] = my_path.."VTB_page_2.lua", [sRC_VTB_3] = my_path.."VTB_page_3.lua", } ---------------------- pages = { [VTB_PAGE_0] = {SRC_VTB_BASE,SRC_VTB_0}, [VTB_PAGE_1] = {SRC_VTB_BASE,SRC_VTB_1}, [VTB_PAGE_2] = {SRC_VTB_BASE,SRC_VTB_2}, [VTB_PAGE_3] = {SRC_VTB_BASE,SRC_VTB_3}, } init_pageID = VTB_PAGE_0 used_render_mask = "interleave2.bmp" --default mask for TV update_screenspace_diplacement(SelfWidth/SelfHeight,false) dofile(LockOn_Options.common_script_path.."ViewportHandling.lua") try_find_assigned_viewport("M2000_VTB") And my monitor setup lua: _ = function(p) return p; end; name = _('SBS MFD Low'); Description = 'Cam top, MFD low' Viewports = { Center = { x = 0; y = 0; width = 1920; height = 1080; viewDx = 0; viewDy = 0; aspect = 1.77777777; } } LEFT_MFCD = { x = 0; y = 1080; width = 460; height = 460; } RIGHT_MFCD = { x = 1220; y = 1080; width = 460; height = 460; } M2000_VTB = { x = 520; y = 1080; width = 460; height = 460; } UIMainView = Viewports.Center I assume there's something obvious I overlooked. Thanks in advance! [sIGPIC][/sIGPIC] Zilch79's YouTube Channel:
PiedDroit Posted May 22, 2016 Posted May 22, 2016 (edited) Revert VTB_init.lua back to it's default value and only use monitor.lua, it is enough to get the job done. If you want to use a different viewport name, the correct syntax for try_find_assigned_viewport is try_find_assigned_viewport("RIGHT_MFCD","M2000_VTB") (make sur this is the only thing you change in that file) Edited May 22, 2016 by PiedDroit
Low Blow Posted May 22, 2016 Posted May 22, 2016 I'd be interested to see someone's .lua if they have managed to successfully export the Mirage's VTB. I can export every other display in the game except this one. [sIGPIC][/sIGPIC]Twitch: My Specs: i7 8700K, 32gig Corsair DDR4 3000Mhz, 2080ti, Obutto R3volution, VKB Gunfighter Mk.III MCG Pro EN, Warthog Throttle, Saitek Combat Pedals, Oculus Rift S MMSOBGYTAST!
Whisper Posted May 22, 2016 Posted May 22, 2016 I'd be interested to see someone's .lua if they have managed to successfully export the Mirage's VTB. I can export every other display in the game except this one. You need to map 'VTB Viewport ON/OFF' in category 'Cockpit Displays & Illumination' to a key combination, and use this key combination to have your VTB export appear in-game 1 Whisper of old OFP & C6 forums, now Kalbuth. Specs : i7 6700K / MSI 1070 / 32G RAM / SSD / Rift S / Virpil MongooseT50 / Virpil T50 CM2 Throttle / MFG Crosswind. All but Viggen, Yak52 & F16
PiedDroit Posted May 22, 2016 Posted May 22, 2016 You need to map 'VTB Viewport ON/OFF' in category 'Cockpit Displays & Illumination' to a key combination, and use this key combination to have your VTB export appear in-game Good point, I forgot about this one:thumbup:. I thought OP had it working and his modification made it disappear.
Low Blow Posted May 22, 2016 Posted May 22, 2016 Thank you so much! That worked like a charm [sIGPIC][/sIGPIC]Twitch: My Specs: i7 8700K, 32gig Corsair DDR4 3000Mhz, 2080ti, Obutto R3volution, VKB Gunfighter Mk.III MCG Pro EN, Warthog Throttle, Saitek Combat Pedals, Oculus Rift S MMSOBGYTAST!
Recommended Posts