Jump to content
The simFlight Network Forums

FSUIPC.INI structure add on


Recommended Posts

Hi John/Pete ,

as I make a lot of documentation for my flightsim, I tried to restructure the FSUIPC.INI file.

I want to add some  "comment sections" to see the structure in the collapsed mode of the file.
Rare comment lines disappear in the collapsed mode.

See my example

image.png.df76721f8bb9322d545a8ac32e4bd138.png

But this doesnt work, needless to say.

Please help me for a solution or a work around.

Alhard

 

Link to comment
Share on other sites

You cannot add 'comment sections', and I am not sure about comments outside sections - check the documentation (via google) for comments in windows ini files.

Trailing comments are allowed in most FSUIPC7 ini file sections but not all, and not on the section label itself. For example, this is from the Advanced User guide on comments in the [Buttons] and [Buttons.xxx] sections:

Quote

You can add comments following a semicolon (;) at the end of the line, and these will be retained. You can also insert lines containing only comments, but they need an <Entry number> too, otherwise they may not retain their relative position. Comments can contain up to 63 characters—longer ones will be truncated if and when the [Buttons] section is re-written by FSUIPC

Also, as I said, the FSUIPC7.ini file is a standard windows ini file and the standard rules on comments apply except where documented (e.g. we allow trailing comments on most but not all entries). 

John

Link to comment
Share on other sites

Thanks John

so, if I define a section with the name [Comment1] and another with [Comment2], what does your parser do? 

Can you ignore those sections? Or what happens with unknown section names?

Is the FSUIPC.INI file operated in a normal way and usable?

The Windows INI definition has no restrictions for section names.

Alhard

Link to comment
Share on other sites

52 minutes ago, Alhard Horstmann said:

so, if I define a section with the name [Comment1] and another with [Comment2], what does your parser do? 

FSUIPC will do nothing with such sections (i.e. they will be ignored). 

54 minutes ago, Alhard Horstmann said:

Is the FSUIPC.INI file operated in a normal way and usable?

The Windows INI definition has no restrictions for section names.

FSUIPC only uses certain section names - others will be ignored. However, there position in the ini file may change when other sections are re-written, but I am not sure about this - just try it.

John

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.