• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

How to code the sequence "SHIFT +x" in MakeMDL.parts.xml ?XML

Messages
37
Country
france
Hi,
I am developing an aircraft for FS2004 with gauges and VC 3D with the method ULE of Bill.

ule2f.jpg


Despite a day of testing, I have not been able to do what I wanted:
I wish click on a part of my VC 3D in order to appear a 2D panel defined in the file Panel.cfg ... therefore simulate the command "SHIFT + x" with a mouse click on a part of the cockpit 3D.

Fravin has succeed to do that on his essna 150L ...

To this I must add code to the file MakeMDL.parts.xml in the way to associate it with the part on which I should click with the mouse.
If someone had a solution or at least could indicated me the right sequence XML ... I would be grateful ;)

SP: excuse-me for my poor english but I am a french developer :o
 
Last edited:
Oh! I love easy questions... :D

All you need is a simple XML Script in modeldef.xml to get what you want.

For any of the sub-panels assigned to Shift-n keystrokes, this will work:

Code:
   <PartInfo>
	<Name>DisplayMy_2d_Popup</Name>
	<MouseRect>
		<Cursor>Hand</Cursor>
		<CallbackCode>
			n (>K:PANEL_ID_TOGGLE)
		</CallbackCode>
	</MouseRect>
   </PartInfo>

Where "n" is the number you would need to type: Toggles indexed panel (1 – 9)

For any other sub-panels beyond Shift 9, you would need another type of XML script where you will pass the panel ident= n number used in the panel.cfg file.

For example, suppose I wanted to toggle this sub-panel:

//--------------------------------------------------------
[Window11]
Background_color=0,0,0
size_mm=400,195
window_size_ratio=1.000
position=0
visible=0
ident=10090
window_size= 0.400, 0.306
window_pos= 0.000, 0.030
zorder=2

gauge00=Citation CJ1 MultiGauge!CJ1_Preflight, 0,0,400

Code:
   <PartInfo>
	<Name>DisplayMy_2d_Popup</Name>
	<MouseRect>
		<Cursor>Hand</Cursor>
		<CallbackCode>
			10090 (>K:PANEL_ID_TOGGLE)
		</CallbackCode>
	</MouseRect>
   </PartInfo>
 
Thank you very much N4gix ;)

Now, I understand that it was a simple question and I wouldn't have thought at this :o
 
Thank you very much N4gix ;)

Now, I understand that it was a simple question and I wouldn't have thought at this :o
Oh, the question itself is simple...

...but the answer is not!

There is practically no documentation that would provide a direct answer to the question. It requires knowing both the panel.cfg file structure as well as the sometimes confusing SDK documents. :D

By the way, might I say that is a very lovely model!
 
Hi,

With your friendly advices I have coded two gauges and here is the result:

jauges3d2d.jpg


First, I will code this gauge as Windows00 and it does'nt succed ... so then I try as the last WindowsXX in my panel.cfg and hourra !!!

For people who want to do the same works, this code will work :

Panel.cfg:
[Window Titles]
Window00=Carte Geolibre
Window01=GPS
Window02=Mini Panel
Window03=Personal options

[VIEWS]
....

//--------------------------------------------------------
[Window00]
Background_color=0,0,0
size_mm=480,480
window_size_ratio=1.000
position=7
visible=0
ident=51
window_size= 0.375, 0.500
window_pos= 0.625, 0.500
gauge00=GeoLibre!GeoCarte, 0,0

//--------------------------------------------------------
[Window01]
.....

//--------------------------------------------------------
[Window02]
.....

//--------------------------------------------------------
[Window03]
Background_color=0,0,0
size_mm=440,810
window_size_ratio=1.000
position=0
visible=0
ident=10040
window_size= 0.120, 0.295
window_pos= 0.020, 0.020

gauge00=NC858S!Configs_3D, 0,0,440,810
gauge01=NC858S!Configs_2D, 30,18,141,31

MakeMDL.parts.xml:
<!-- ================================ -->
<!-- Checklist -->
<!-- ================================ -->

<part>
<name>tablette</name>
<mouseRect>
<cursor>Hand</cursor>
<tooltip_text>Personal options</tooltip_text>
<callback_code>
10040 (&gt;K:PANEL_ID_TOGGLE,enum)
</callback_code>
</mouseRect>
</part>

Also, trying to present my work, I just find a mistake in my Configs_2D.xml : I was using 140 in place of 10040 but now it's correct ! :D
 
Last edited:
This aircraft is for FS2004. I use Gmax v 1.2 for modeling purposes.
XML files are created with Notepad ++

For ULE method, you can search on this forum "FS2004 Unlimited Export" ...
This method is based on MiddleCommander v1.03 (Doc Moriarty - 2002) and MakeMDL 9.0.0.30612 from Microsoft
 
Back
Top