MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

icon
Avatar
fazli
Posts: 78
Hi all,
I have question how to combine mcc file.
Example i create mcp efis mip thorttle in one mcc file.
Very hard and long time created.
Now i finish fmc configure file mobiflight mcc at another one pc(pc office).
How to combine file as edit pdf line.i see the last one line mcc
Mobiflight connector somthing like that.
I dont know ho to edit.which line and symbol to edit and copy paste.
Tq
Regard
Fazli@leesharudin
2019-09-30 14:17
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 2648
Supporter
Hi

Its not possible to simply copy paste the whole file..... Cause every mcc file got a regulary structure.... and this structure can only exist one time.....
So for example there is a line called <outputs> where your outputs beginn..... and also a line </outputs> where it ends.
Those lines can exist only ONE TIME in a mcc file.

So what you need is to copy paste all OUTPUTS and all INPUT you like to use in the other file.
Every Config itself starts with <config guid ......> and ends with </config>

example :
iconcpp:
<config guid="465e6382-af6c-4f8e-afb5-5b61829c5a35">
      <active>false</active>
      <description>RIGHT Duplicate OFF</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.5.2.0, Culture=neutral, PublicKeyToken=null" serial="OVERHEAD OUT/ SN-0e0-15f" name="Taster1" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66C1" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>


So..... Copy all Outputs ( from first config line to the last </config> and insert them in other file between the last </config> line and the </outputs> line .
For inputs the same.... Copy all Configs ( single or in a row) including the first and last line ..... and insert them on the end of Input section in other file ( behind last </config> and before </inputs>

**************************
Last Note: i recommend to use a programm like "notepad++" (freeware) . This show scripts more comfortable to see the structure where elements beginns and ends.
Good Luck !
2019-09-30 14:41
Avatar
fazli
Posts: 78
U mean copy all input one line and last line </config>
After that copy all output one line and last line </config>
Copy and paste at old file?
2019-10-04 12:56
Avatar
StephanHo
From: EDDG, Germany
Posts: 1289
Supporter
Hi fazli,

the file is divided into sections.
The file starts with

<MobiflightConnector>

and ends with
</MobiflightConnector>

Between this you have the sections

<Outputs>
</Outputs>

followed by

<Inputs>
</Inputs>

A device between in- or output is limited with
<Config guid....>
</Config>

If you want to copy an old config to another file you need only to copy the lines from <Config guid....> up to </Config>

You may receive an indication of an orphaned file / module because the serial number in <settings .....> is not identical. The module containing your new device should be known. You then assign the orphaned module to this module.
Try it with an entry, then you get a feel for it.
Grüße,
Stephan
2019-10-04 17:52
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 2648
Supporter
iconfazli:

U mean copy all input one line and last line </config>
After that copy all output one line and last line </config>
Copy and paste at old file?



Yes.

If you do it in one run .... So you mark your First Config Line beginning with "<config guide ...> " and end with the verry last one at its "</config>" line THEN as Stphan try to explane you also mark the ending of Output section and Beginning of Input section lines.
If you paste it in another file then this file include TWO TIMES the ending of Outputs and the beginnig of Inputs..... And that will occure in a error.

So correct technic is to split it in two steps.

At first OUTPUT ONLY ..... Mark all needed Output Configs ..... But without the section start/end lines ( like <OUTPUT> and </OUTPUT> ) ...... Only form Config to /Config
Then Paste them into the new file..... Simply between 2 existing Output Configs or behind the last Output config...... Important is just it must be between the Output Section of that mcc file and it msut start and stop again with a correct config line.

Step two is the same like before but with INPUTS.

*********

Summary..... You can make this by different ways..... But you must get sure "structure" is correct finaly.... So every section beginns and ends correctly..... Every data is in correct section..... And nothing is written in wrong syntax .
Good Luck !
2019-10-05 09:45
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 2648
Supporter
iconfazli:

U mean copy all input one line and last line </config>
After that copy all output one line and last line </config>
Copy and paste at old file?



Yes.

If you do it in one run .... So you mark your First Config Line beginning with "<config guide ...> " and end with the verry last one at its "</config>" line THEN as Stphan try to explane you also mark the ending of Output section and Beginning of Input section lines.
If you paste it in another file then this file include TWO TIMES the ending of Outputs and the beginnig of Inputs..... And that will occure in a error.

So correct technic is to split it in two steps.

At first OUTPUT ONLY ..... Mark all needed Output Configs ..... But without the section start/end lines ( like <OUTPUT> and </OUTPUT> ) ...... Only form Config to /Config
Then Paste them into the new file..... Simply between 2 existing Output Configs or behind the last Output config...... Important is just it must be between the Output Section of that mcc file and it msut start and stop again with a correct config line.

Step two is the same like before but with INPUTS.

*********

Summary..... You can make this by different ways..... But you must get sure "structure" is correct finaly.... So every section beginns and ends correctly..... Every data is in correct section..... And nothing is written in wrong syntax .
Good Luck !
2019-10-05 09:46
icon