Jump to content

Can you help me with CMSP viewport export please?


Recommended Posts

Posted (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

1163181075_2015-01-1913_11_50.thumb.jpg.de587dbc534bd7a2f86c57df98cbd627.jpg

Edited by xray20
image inverted
Posted

@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

Matt

thtg5760x1080 - standard.lua

CMSP_init.lua

Posted

@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

Posted

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")

Posted

@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:

  • Recently Browsing   0 members

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