Bálint Szarka Posted Saturday at 06:52 PM Report Posted Saturday at 06:52 PM 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
John Dowson Posted Sunday at 07:50 AM Report Posted Sunday at 07:50 AM 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.
Bálint Szarka Posted Monday at 01:16 PM Author Report Posted Monday at 01:16 PM 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now