Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

I have gone through the FSUIPC7 Offset Status pdf document looking for any ways of reading the user's aircraft tail number. I did come across an offset, 0x3D00 which reads the title from aircraft.cfg file however I am having trouble using it in an IF formula because of the title length of each cfg file. What I am trying to achieve is to set the configuration of the aircraft per registration automatically when the aircraft is loaded. So as per the offset status pdf one can set the size of 0x3D00 to a maximum of 256. I set it to 60, however when I am checking if the TITLE in the cfg is a particular title because of the excess characters I never get a match in the IF formula. Would you be able to suggest something? I am pretty beginner with all this but I have learnt a lot, maybe there is something I am still missing... Thank you

Posted

For the tail number, you can try offset 0x313C, which is the ATC ID which should correspond to the tail number as specified in the aircrraft.cfg file.

12 hours ago, Bálint Szarka said:

So as per the offset status pdf one can set the size of 0x3D00 to a maximum of 256. I set it to 60, however when I am checking if the TITLE in the cfg is a particular title because of the excess characters I never get a match in the IF formula. Would you be able to suggest something?

I am not sure what an IF formula is, but can't you either
   1. do a substring comparison, i.e. check that the title starts with the string you are comparing it to, not a full match, or
   2. Truncate or only read the number of characters from the title offset that you want to compare.

Posted
On 4/20/2025 at 8:50 AM, John Dowson said:

For the tail number, you can try offset 0x313C, which is the ATC ID which should correspond to the tail number as specified in the aircrraft.cfg file.

I am not sure what an IF formula is, but can't you either
   1. do a substring comparison, i.e. check that the title starts with the string you are comparing it to, not a full match, or
   2. Truncate or only read the number of characters from the title offset that you want to compare.

I will give that a try, thank you.

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.