Jump to content
The simFlight Network Forums

Recommended Posts

Posted

The HVars section in the Advanced User states: "Hvar files are loaded if the filename of the Hvar file (without the extension) is a substring match to the currently loaded aircraft. If Hvar files are found for the current loaded aircraft under the persistent storage area, then these are used and any Hvar files located under the WASM modules folder will be ignored."

I have an .hvar file to add control pad Hvars to the G1000 Hvars for the Cockspur PH100 Phenom. I'm not sure what "a substring match" means. Perhaps an example would be useful.

The profile in the FSUIPC7.ini file for this aircraft is:

[Profile.PH100]
1=Cockspur PH100 Brown and Black
2=Cockspur PH100 Factory 1

I'm sure the file name Cockspur PH100.hvar will work but would PH100.hvar work? Please explain "a substring match".

Thanks

Posted
11 hours ago, DaveSCUSA said:

I'm sure the file name Cockspur PH100.hvar will work but would PH100.hvar work? Please explain "a substring match".

Yes, both would work as both strings 'Cockspur PH100' and 'PH100' are contained within the aircraft names 'Cockspur PH100 Brown and Black' and 'Cockspur PH100 Factory 1', hence they are substring matches. This just means that the hvar filename string exists/matches to a string in the aircraft name. You could use the entire aircraft name if you like, but that would just match one aircraft and would not match if you changed the livery/version.

Note you can (and should) also use substring matching for your aircraft profile names. Change

11 hours ago, DaveSCUSA said:

[Profile.PH100]
1=Cockspur PH100 Brown and Black
2=Cockspur PH100 Factory 1

to

Quote

[Profile.PH100]
1=Cockspur PH100

which would then match all variants of that aircraft.

You should get into the habit of editing the aircraft names in the profile section when you create a new profile or add an aircraft to an existing profile, and reduce it to a substring of the full aircraft name so that it matches other variants.

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.