xray20 Posted January 19, 2015 Posted January 19, 2015 (edited) Hi, I want to export my CMSP info onto my main screen. As you can see from the attached image, I've nearly got it. (sorry its upside down, but you get the idea :)) I want to make it smaller and re-position it. I have modified the CMSP_init.lua and ViewportHandling.lua but only as far as copy/paste existing files created for Helios export (I'm not much good at coding...) I have tried the following test entry in monitors.lua ED_A10C_CMSP = { x = 0; y = 900; width = 270; height = 70; } but its clearly not being read. Following Peter P's instructions, I have tried adding: --------------------- Eagle Dynamics A-10C = ---------------------- (CMSP_init.lua) ED_A10C_CMSP To my monitors.lua, but it seems to corrupt the file to the extent that I cant read it in the screen setup options list. It's obviously important as it references ED_A10C_CMSP What am I doing wrong? Thanks Matt Edited January 19, 2015 by xray20 image inverted
FSFIan Posted January 19, 2015 Posted January 19, 2015 Why are you editing ViewportHandling.lua at all? All you need to do to make more indicators available for export in MonitorSetup.lua is to add two lines to the indicator's XYZ_init.lua file as described in this post. DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua
xray20 Posted January 19, 2015 Author Posted January 19, 2015 @Ian Thanks for your prompt reply. Unfortunately I still get the default, big CMSP display as shown in the original image. Would you have a look at my .lua files (attached) please and see if I've got it right? They are from: CMSP_init.lua C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\A-10C\Cockpit\Scripts\CMSP\indicator both aircraft and aircrafts folders exist. I've modified both. and thtg5760x1080 - standard.lua from C:\Program Files\Eagle Dynamics\DCS World\Config\MonitorSetup Thanks Mattthtg5760x1080 - standard.luaCMSP_init.lua
xray20 Posted January 19, 2015 Author Posted January 19, 2015 @Ian Further to my last: I have just followed your instructions for the RWR and they work exactly as advertised. I suspect something is wrong in my CMSP_init.lua file
FSFIan Posted January 19, 2015 Posted January 19, 2015 Your CMSP_init.lua file looks very different from mine. Make sure you have the original version of the file before you start editing. I also assume that your ViewportHandling.lua file has the original contents. I also noticed that for the CMSP at least, you need to add the two lines to the end of the file. I updated the instructions in my other post accordingly. For reference, here is my CMSP_init.lua (for DCS: World version 1.2.14.35734.604): dofile(LockOn_Options.common_script_path.."devices_defs.lua") indicator_type = indicator_types.COMMON opacity_sensitive_materials = { "font_CMSP" } -------PAGE IDs------- id_Page = { PAGE_NULL = 0, PAGE_OFF = 1, PAGE_MAIN = 2 } id_pagesubset = { MAIN = 0 } page_subsets = {} page_subsets[id_pagesubset.MAIN] = LockOn_Options.script_path.."CMSP/indicator/CMSP_page.lua" ---------------------- pages = {} pages[id_Page.PAGE_MAIN] = {id_pagesubset.MAIN} init_pageID = id_Page.PAGE_MAIN purposes = {render_purpose.GENERAL} dofile(LockOn_Options.common_script_path.."ViewportHandling.lua") try_find_assigned_viewport("ED_A10C_CMSP") DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua
xray20 Posted January 19, 2015 Author Posted January 19, 2015 @Ian Brilliant! That works perfectly. Thanks very much for your help. The facilities of my workshop are at your disposal if I can repay in any way. Matt:thumbup:
Recommended Posts