plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


Idea

N6722C avatar image
N6722C suggested N6722C edited

Concept of a "Mod" cfg files

Please consider the concept of a MOD .cfg files
Very often it is desirable to change just a few parameters in an existing .cfg file, without having to define all of the others that are already there.

(one particular example is when creating Liveries, and only wanting to say, change the color of the tail Number Registration" without having to reproduce or define all the other parameter in the existing panel.cfg file.

A Mod cfg file would typically load last, after all other normal Simobject's .cfg files, and overwrite individual parameters that have already been set by the other .cfg file.

This could be further extended, to optionally define (some numeric) parameters with Variable,( L:vars ? ) that could be changed dynamically when the simobject is running.


Example of a panel_mod.cfg file that just change the Tail Number color of a Livery, without having to define (or re-define) all the other parameters .

[VPainting02]
size_mm = 1024, 256
texture = $RegistrationNumber

location = exterior
painting00=Registration/Registration172X.html?font_color=0xecebec, 0, 0, 1024, 256


ie The existing panel.cfg file would load as define in the original simobject, and the the panel_Mod.cfg, defined in the MOD, would load and overwrite any matching parameters that were previously set.



aircraftflightmodel
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

4 Comments

·
MiGMan_Flight_Sim_Museum avatar image
MiGMan_Flight_Sim_Museum commented

Great idea!

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

RoscoHead avatar image
RoscoHead commented

I would add that I think the tail number parameters should be in texture.cfg, not in panel.cfg. But I think that is unlikely to change.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

N6722C avatar image
N6722C commented

Life is strange . yesterday I make this post with a suggestion, and then I start looking at Liveries, and I see some informed Livery makers are already doing something similar in their Livery addons,. to add/overwrite to an existing pane.cfg file (instead of trying to reproduce the whole original panel.cfg file with their changes)

panel.cfg


[VARIATION]
override_base_container = 0


[VPainting01]
size_mm = 256, 64
texture = $RegistrationNumber
location = interior
painting00=Registration/Registration.html?font_color=white, 0, 0, 0, 0

[VPainting02]
size_mm = 1024, 256
texture = $RegistrationNumber
location = exterior
painting00=Registration/Registration.html?font_color=0xd6d7d6, 0, 0, 0, 0


I must assume this is a few technique as so many of the older livery Mods, are still inclundging panel.cfg files with ALL the original content, just to say, chage the outside Registration number to the color they want.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

virtuali avatar image
virtuali commented N6722C edited

I believe the [VARIATION] command has been there since MSFS came out.

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Thanks .. I have only recently started looking at Liveries, when I found so many of them break a plane if that plane has been Modded


Very much a Livery NOOB at the moment !!

If the [VARIATION] command has been there since release date, it is suprising that so many Livery devs, are not using it, and putting a copy of the plane's (now outdated) .cfg file into their Livery !!

0 Likes 0 ·

Write a Comment

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.