Jump to content

MonitorSetup function reconfigure_for_unit(unit_type) no longer working in 1.5.4?


Recommended Posts

I use a three monitor setup with the left monitor being a 1920x1080 main display and two 1024x1280 (portrait) monitors for MFD/gauge export. In prior versions, I used this configuration file:

_  = function(p) return p; end;
name = _('Camera + 2VC (3968x1080) with A-10C, Ka-50, SA-342M and M-2000C Gauges');
Description = '1920x1080 Camera on leftmost monitor, 2xVirtual Cockpit panels (1024x1080) on 2 right monitors.  Gauges for A-10C and Ka-50 (with SA-342M and M-2000C) using abstract gauge addresses and reconfigure_for_unit function.'

Viewports =
{
   Center =
   {
   x = 0;
   y = 0;
   width = 1920;
   height = 1080;
   viewDx = 0;
   viewDy = 0;
   aspect = 1.77777777777778;
   }
}


UIMainView = 
{
   x = 0;
   y = 0;
   width = 1920;
   height = 1080;
   viewDx = 0;
   viewDy = 0;
   aspect = 1.77777777777778;
}

GUI = UIMainView



function reconfigure_for_unit(unit_type)
--***************
--       Ka-50
--***************    
   if unit_type == 'Ka-50' then
      
       RIGHT_MFCD = 
       {
           x = 2948;
           y = 480;
           width = 450;
           height = 600; 
           viewDx = 1;
           viewDy = 0;
           aspect = 3/4;
       }


       LEFT_MFCD =
       {
           x = 1920;
           y = 0;
           width = 600;
           height = 450;
           viewDx = 0;
           viewDy = 0;
           aspect = 4/3;
      }
       --Ka-50 Add-on Gauges
           CautionLights =
           {
           x = 1925;
           y = 530;
           width = 1001;
           height = 1001;
           }
           Ekran =
           {
           x = 3450;
           y = 0;
           width = 200;
           height = 200;
           }
           PVI =
           {
           x = 3450;
           y = 210;
           width = 460;
           height = 230;
           }

           UV26 =
           {
           x = 3720;
           y = 0;
           width = 180;
           height = 134;
           }    
       --End Ka-50 Add-on Gauges    

--***************
--       A-10C 
--***************
   elseif
   unit_type == 'A-10C' then
       LEFT_MFCD =
       {
       x = 2530;
       y = 15;
       width = 408;
       height = 408;
       }
       RIGHT_MFCD =
       {
       x = 2948;
       y = 16;
       width = 408;
       height = 408;
       }
       --A-10C Add-on Gauges
           UHF_PRESET_SCREEN =
           {
           x = 2532;
           y = 879;
           width = 40;
           height = 40;
           }
           UHF_FREQUENCY_SCREEN =
           {
           x = 2538;
           y = 953;
           width = 170;
           height = 40;
           }
           UHF_REPEATER_SCREEN =
           {
           x = 2536;
           y = 530;
           width = 140;
           height = 40;
           }
           CLOCK_SCREEN =
           {
           x = 2550;
           y = 593;
           width = 200;
           height = 200;
           }
           CMS_SCREEN =
           {
           x = 3547;
           y = 14;
           width = 270;
           height = 60;
           }
           CMSC_SCREEN =
           {
           x = 1926;
           y = 6;
           width = 300;
           height = 90;
           }
           RWR_SCREEN =
           {
           x = 2050;
           y = 100;
           width = 300;
           height = 300;
           }
           CDU_SCREEN =
           {
           x = 3470;
           y = 85;
           width = 475;
           height = 360;
           }
       --end A-10C Add-on Gauges

--***************
--       Su-25T
--***************    
   elseif
   unit_type == 'Su-25T' then

       RIGHT_MFCD =
       {
            x = 3372;
            y = 0;
            width = 600;
            height = 450;
       }
--
--***************
--      M-2000C
--***************      
   elseif
   unit_type == 'M-2000C' then
       RIGHT_MFCD =
       {
       x = 2913; 
       y = 0;  
       width = 440;
       height = 440; 
       }      
           M2000C_RWR =
           {
           x = 3478;
           y = 90;
           width = 408;
           height = 408;
           }
           M2000C_PPA =
           {
           x = 2948;
           y = 530;
           width = 100;
           height = 120;
           }
           M2000C_PCA_UR = 
           {
           x = 2584;
           y = 20;
           width = 325;
           height = 40;
           }            
           M2000C_PCA_BR = 
           {
           x = 2584;
           y = 375;
           width = 325;
           height = 40;
           }
           M2000C_PCN_UR = 
           {
           x = 2960;
           y = 660;
           width = 475;
           height = 100;
           }
           M2000C_PCN_BR = 
           {
           x = 2960;
           y = 775;
           width = 325;
           height = 100;
           }
           M2000C_FUEL =
           {
           x = 3220;
           y = 540; 
           width = 120;
           height = 100;
           }
           M2000C_COM = 
           {
           x = 2180;
           y = 16;
           width = 250;
           height = 150;
           }
--
--***************
--      SA342
--***************
   elseif
   unit_type == 'SA342' then
           SA342_TV =
           {
           x = 2048;
           y = 16;
           width = 408;
           height = 408;
           }        
  else
       LEFT_MFCD =
       {
       x = 2530;
       y = 15;
       width = 408;
       height = 408;
       }
       RIGHT_MFCD =
       {
       x = 2948;
       y = 16;
       width = 408;
       height = 408;
       }
   end
end

I used the function reconfigure_for_unit(unit_type) to allow different sized exports for the LEFT_MFCD and RIGHT_MFCD parameters to allow for things like a properly sized ABRIS and Shkval.

 

Upon running 1.5.4, I lost my MFCD/Gauge exports, though I was able to get them back by moving both the A-10C specific gauges and the LEFT_MFCD and RIGHT_MFCD parameters outside of the function reconfigure_for_unit(unit_type)

 

Does this mean that reconfigure_for_unit(unit_type) can no longer be executed automatically within the MonitorSetup lua file? Or is there something else I need to do with the code to make this work?

Link to comment
Share on other sites

Same here.. My Export mod by PeterP that I fixed no longer works. Or it's the MonitorSetup lua that doesn't work?

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

I have the same problem since 1.5.4.

 

_ = function(p) return p; end;

name = _('All Moduls with Display');

Description = 'All Moduls with Display export.'

 

 

function default_setup()

Viewports =

{

Center =

{

x = 0;

y = 0;

width = 1920; --screen.width;

height = 1080; --screen.height;

viewDx = 0;

viewDy = 0;

aspect = 1.7777777777777777777777777777778; --screen.aspect;

}

}

 

Gui =

{

x = 0;

y = 0;

width = 1920;

height = 1080;

}

 

UIMainView = Gui

end

 

default_setup();

UIMainView = Viewports.Center;

 

function reconfigure_for_unit(unit_type)

 

if unit_type == 'Ka-50' then

 

Viewports = {

Center =

{

x = 0;

y = 0;

width = 1920;

height = 1080;

viewDx = 0;

viewDy = 0;

aspect = 1.7777777777777777777777777777778;

}

}

 

-- SHKVAL

LEFT_MFCD =

{

x = 800;

y = 1130;

width = 430;

height = 350;

viewDx = 1;

viewDy = 0;

aspect = 1,1818181818181818181818181818182;

}

 

-- ABRIS

RIGHT_MFCD =

{

x = 1410;

y = 1160;

width = 430;

height = 560;

viewDx = 1;

viewDy = 0;

aspect = 0.626;

}

 

elseif unit_type == 'Mi-8MT' then

Viewports = {

Center =

{

x = 0;

y = 0;

width = 1920;

height = 1080;

viewDx = 0;

viewDy = 0;

aspect = 1.7777777777777777777777777777778;

},

Bottom =

{

x = 0;

y = 1080;

width = 1920;

height = 1080;

viewDx = 0;

viewDy = -1;

aspect = 1.7777777777777777777777777777778;

}

}

elseif unit_type == 'A-10C' then

Viewports = {

Center =

{

x = 0;

y = 0;

width = 1920;

height = 1080;

viewDx = 0;

viewDy = 0;

aspect = 1.7777777777777777777777777777778;

}

}

 

LEFT_MFCD =

{

x = 70;

y = 1250;

width = 370;

height = 370;

viewDx = 1;

viewDy = 0;

aspect = 1;

}

 

RIGHT_MFCD =

{

x = 1490;

y = 1250;

width = 370;

height = 370;

viewDx = 1;

viewDy = 0;

aspect = 1;

}

Heinz

 

Intel i7 3930k | 16 GB | GTX 980 | TrackIR 5 Pro | TM HOTAS Warthog | MFG Crosswind| Win 10 x64 |

 

Simpit Software by SDA"SIMPIT DEVELOPER ASSOCIATION"

 

  • D.A.C. DCS to Arcaze Communicator
  • Ikarus A Cockpit Designer
  • DCS ExportScript

 

https://github.com/s-d-a/DAC

https://github.com/s-d-a/Ikarus

https://github.com/s-d-a/DCS-ExportScripts

 

Ikarus forum thread

Link to comment
Share on other sites

Same here.. My Export mod by PeterP that I fixed no longer works. Or it's the MonitorSetup lua that doesn't work?

It's MonitorSetup, and more correctly, no way to use the function reconfigure_for_unit. You can still work around this with the exports.

 

FYI, I took over the export mod from PeterP and released it here.

 

Also, for what it's worth, this thread was moved to the bug forum, so at least it's official...:D

Link to comment
Share on other sites

Thanks. I also use the reconfigure function so I only need 1 monitorsetup Lua for all my aircraft. I made a copy without that and got it working..

 

Sent from my SAMSUNG-SM-N910A using Tapatalk

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

all my exports for A-10C and KA-50 have stopped working, i was using Gadrocs & Capt Zeens luas, with individual monitorsetup lua's (not using reconfigure for unit). i've tried downloading a few others to no avail.

 

is there a workaround?

System: Intel 14700k on MSi z690 DDR4 pro, Arctic Liquid Frozer II 360mm AIO, 64gb ddr4-3600mhz CL16, Gigabyte 4090
Winwing Orion2 F-15EX/F-16EX combo, VKB T-Rudder Mk.IV, TM Warthog (Shelved)
2x 256gb Vertex 4 SSD's, 2x 1tb Sabrent NVMe PCIe 4.0 SSD's, 1x 4.0tb Silicon Power NVMe, 1x 4tb Seagate HDD
VR: Quest 3 (Current), HP Reverb G1 (Shelved)

Link to comment
Share on other sites

all my exports for A-10C and KA-50 have stopped working, i was using Gadrocs & Capt Zeens luas, with individual monitorsetup lua's (not using reconfigure for unit). i've tried downloading a few others to no avail.

 

is there a workaround?

 

Same here with ka50 and SU25T. Looking forward for a fix !

 

Note the default-included monitor setups (3 screens, MFCD left + right, etc) are working. My custom one does not work anymore.

Link to comment
Share on other sites

There are several mods that people use to do this, so it can be hard to help someone. But mine all still work fine. Even work in Multiplayer with Integrity Check on BuddySpike and 104th. Depends on if the server allows it maybe (not sure).

 

I helped a friend get his A10c MonitorSetup working this morning. For some reason, his mod that adds the extra A10c exports had all of it's lua scripts deleted. he didn't know how that happened. But we copied the mod over from his 2.0 Nevada game folder and it fixed it. So, it still works. The only problem I have seen is that you cannot use that reconfigure_for_unit() function at the moment.

 

I'll attach my export mod (PeterP's fixed version) and my MonitorSetup lua files here. Remove your other mods. Maybe do a game Repair? And then, just put the '+Export - All Viewports by Snacko' mod in your JSGME folder. And put the MonitorSetup lua files in your Users/......../MonitorSetup folder. (You should already know how to do this.)

 

The 'Helios A10c Viewports by Snacko.lua' & 'Helios Ka-50 Viewports by Snacko.lua' should work. But my original 'Helios Viewports by Snacko.lua' will not work until they allow us to use the reconfigure_for_unit() function call from these files.

 

You will obviously need to change all of the x, y, width, and height variables in the MonitorSetup lua file to match what you use. But the export names must not change as they are the names used in PeterP's mod. Also, I have a triple monitor setup, so your main screen size may be different..

 

Good Luck..


Edited by Snacko

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

@HomeFries,

 

I see in your code that you have exports for the M2000 and Gazelle? Is that from the stock game or requires a mod?

 

Also, you say that you took over PeterP's mod? Have you changed his export names? He used to prefix them with ED_A10C_xxx and ED_KA50_xxx. Have you changed that? If you are going to continue support for new exports I would probably like to convert from what I use over to that in the future sometime? Is there a thread??

 

Thx! ;-)

Intel I9-10850K (OC @ 5.0ghz) │ Asus Maximus XII Hero │ G.Skill Ripjaws 64GB (4x16GB) DDR4 3200 │ Thermaltake Water 360mm
Gigabyte RTX 4090 Gaming OC 24gb │ 2TB M.2 EVO Pro; 1T M.2 EVO; Sandisk SSD Drives │ 49" Samsung Curved Widescreen │ 28" Touchscreen

- ҉ - Blackshark Cockpit Trainer - ҉ -    Thread   | Download

Link to comment
Share on other sites

Thank you Snacko for your advices.

 

I basically remade a quick monitorsetup file for my 2 main aircrafts (ka-50 and su25T) and it works.

 

Cannot change aircraft type while playing multiplayer session though (I mean, regarding monitor exports of course), have to get back to main menu options to change monitor profile...let's hope ED will fix this quickly !

Link to comment
Share on other sites

@HomeFries,

 

I see in your code that you have exports for the M2000 and Gazelle? Is that from the stock game or requires a mod?

they're mods that can be found on the M2000C and SA342 forums. Sorry; it's late here so I'm too tired to find them for you.

 

Also, you say that you took over PeterP's mod? Have you changed his export names? He used to prefix them with ED_A10C_xxx and ED_KA50_xxx. Have you changed that? If you are going to continue support for new exports I would probably like to convert from what I use over to that in the future sometime? Is there a thread??

 

Thx! ;-)

I have changed only the MFDs (and shkval/abris) because these can be called using LEFT_MFCD and RIGHT_MFCD now. However, I left the legacy files for people who wish to use them (which might actually be helpful until this bug is fixed). It's all GME compatible, so you can easily disable/enable between patches.

Link to comment
Share on other sites

Sorry, no progress with the last update.

Heinz

 

Intel i7 3930k | 16 GB | GTX 980 | TrackIR 5 Pro | TM HOTAS Warthog | MFG Crosswind| Win 10 x64 |

 

Simpit Software by SDA"SIMPIT DEVELOPER ASSOCIATION"

 

  • D.A.C. DCS to Arcaze Communicator
  • Ikarus A Cockpit Designer
  • DCS ExportScript

 

https://github.com/s-d-a/DAC

https://github.com/s-d-a/Ikarus

https://github.com/s-d-a/DCS-ExportScripts

 

Ikarus forum thread

Link to comment
Share on other sites

My monitor config, with "reconfigure_for_unit" function, also no longer works.

 

See my attached config...

AllModules.lua

Simpit Software by SDA "SIMPIT DEVELOPER ASSOCIATION"

  • DCS ExportScript
  • D.A.C. DCS to Arcaze Communicator
  • Ikarus a new Virtual Cockpit Software

Deutscher Forums Thread

English Forums Thread

 

Hard/Software: AMD Ryzen 7 1800X, 32 GiB RAM, extra SSD for Windows 10 and DCS World, AMD Vega Frontier Edition with 16 GiB VRAM

Link to comment
Share on other sites

  • ED Team

Thanks for report, confirmed. Will be repaired.

Men may keep a sort of level of good, but no man has ever been able to keep on one level of evil. That road goes down and down.  
Можно держаться на одном уровне добра, но никому и никогда не удавалось удержаться на одном уровне зла. Эта дорога ведёт вниз и вниз.

G.K. Chesterton

DCS World 2.5: Часто задаваемые вопросы

Link to comment
Share on other sites

:thumbup:

Heinz

 

Intel i7 3930k | 16 GB | GTX 980 | TrackIR 5 Pro | TM HOTAS Warthog | MFG Crosswind| Win 10 x64 |

 

Simpit Software by SDA"SIMPIT DEVELOPER ASSOCIATION"

 

  • D.A.C. DCS to Arcaze Communicator
  • Ikarus A Cockpit Designer
  • DCS ExportScript

 

https://github.com/s-d-a/DAC

https://github.com/s-d-a/Ikarus

https://github.com/s-d-a/DCS-ExportScripts

 

Ikarus forum thread

Link to comment
Share on other sites

  • 3 weeks later...

Subscribed

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Link to comment
Share on other sites

Ok, I read this thread a few times, I also have lost MFCD and other exports for Helios. Basically what I got out of this thread is that ED has acknowledged an issue that they intend to repair. There is a bit of complexity as to how to create a work around due to the various ways there were to achieve the exporting. Its been awhile since I fiddled with this stuff and got it working, so I don't exactly remember every detail of what I did (although I do have written logs as to how I got this all running, but it would be tasking to reverse engineer). Anyway, we are in a holding pattern for a repair as I understand this then correct?

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Link to comment
Share on other sites

No progress with the last update.

Heinz

 

Intel i7 3930k | 16 GB | GTX 980 | TrackIR 5 Pro | TM HOTAS Warthog | MFG Crosswind| Win 10 x64 |

 

Simpit Software by SDA"SIMPIT DEVELOPER ASSOCIATION"

 

  • D.A.C. DCS to Arcaze Communicator
  • Ikarus A Cockpit Designer
  • DCS ExportScript

 

https://github.com/s-d-a/DAC

https://github.com/s-d-a/Ikarus

https://github.com/s-d-a/DCS-ExportScripts

 

Ikarus forum thread

Link to comment
Share on other sites

Thanks. I also use the reconfigure function so I only need 1 monitorsetup Lua for all my aircraft. I made a copy without that and got it working..

 

Sent from my SAMSUNG-SM-N910A using Tapatalk

 

I myself only have 1 monitor.lua for all, but I have no idea as to what you mean when you say you made a copy without that?

 

Made a copy of what? without that (what is "that").

 

Thanks

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Link to comment
Share on other sites

No progress with the last update.

 

Yes, I read that part already, but thanks

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Link to comment
Share on other sites

Ahhhhhh, I see what your saying there,,, a separate Monitor config file for each individual aircraft. I hope that is a temporary fix yes? I don't remember if any other files have to be changed in addition if I am no longer going to use the individual monitor config files? Also, I don't really understand how HomeFries MOD relates to this workaround just yet, but Ive been searching and reading for many hours today. Thanks for the feedback.

Windows 10 Pro - 64 Bit / ASUS ROG Strix B650E-F Gaming / AMD 7800X3D / G.Skill Trident Z5 NEO 64GB DDR5 6000 Ram / SSD M.2 SK hynix Platinum P41 2TB / MSI Gaming GeForce RTX 4090 SUPRIM Liquid X 24G / SteelSeries Arctis 7 Headset /LG-Ultragear 38" IPS LED Ultrawide HD Monitor (3840 x 1600) / Track IR4 / Thrustmaster TPR Pendular Rudder Pedals / Virpil HOTAS VPC Constellation ALPHA-R & VPC MongoosT-50CM3 Throttle

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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