lesthegrngo Posted December 21, 2022 Posted December 21, 2022 (edited) Hi all, I have modified a setup file for the view to include the MFCDs, RWR and CDU based on my new combined resolution, but the file does not show up in the options drop-down. It is in the DCS World/config/monitorsetup folder, yet it simply doesn't appear as an option has the default location changed? It's been a while since I last had to change the monitor setup here's the file I created _ = function(p) return p; end; name = _('Camera+LMFCD+RMFCD+RWR+CDU'); Description = 'Left MFCD to left monitor,Right MFCD to right, CDU and camera on the center' Viewports = { Center = { x = 0; y = 0; width = 1980; height = 1080; viewDx = 0; viewDy = 0; aspect = 1.833333333; } } LEFT_MFCD = { x = 290; y = screen.height -1080; width = 610; height = 610; } RIGHT_MFCD = { x = screen.width -900; y = screen.height -1080; width = 610; height = 630; } ED_A10C_RWR = { x = 1024; y = screen.height 0; width = 610; height = 610; } A10CDU = { x = 2400; y = -1280; width = 800; height = 480; } UIMainView = Viewports.Center GU_MAIN_VIEWPORT = Viewports.Center I checked this with notepad++ and can't see any weird symbols, and I tried to make another .lua file by simply copying and pasting one of the existing files with a new file name and that won't show up either EDIT***(just to head off the potential questions, yes I did change the line in the file with a new name too) Cheers Les Edited December 21, 2022 by lesthegrngo
lesthegrngo Posted December 22, 2022 Author Posted December 22, 2022 All, I niggled and niggled at this for the last couple of days, and finally worked it out by some trial and error. I could make .lua file disappear depending on what text was written into the file, and it seems that if it comes across syntax it doesn't recognise it goes tilt and pretends the file does not exist. In this case, for some reason the 'A10CDU' section was what was messing it up. Delete that and it returned. However if you substitute 'A10CDU' with 'ED_A10C_CDU' it will happily read the file, even if you have not updated the CDU_init file to match. Now it would accept the file so I could start playing with the monitorsetup and once the init file was updated I can now see the CDU Hope this helps someone Les
Recommended Posts