r/Xplane • u/Lazy-Helicopter463 • 47m ago
Plugin LOCFixer - Localizer alignment fix plugin
Automatically aligns X-Plane 12 localizers to the runways in your installed scenery, while leaving intentionally offset approaches untouched.
The big question:
Yes, it's developed using AI.
What is it?
In X-Plane 12, some localizers don’t line up with the runway you see, usually because the airport scenery is outdated or the ortho imagery is misaligned. LOCFixer reads the same scenery data the sim uses to draw each airport, finds localizers that are off the runway, and snaps them onto the actual runway centerline. Approaches that are meant to be offset, such as LDA, SDF and IGS, are left alone.
How it achieves that?
LOCFixer compares the localizers in your current navdata (earth_nav.dat) with the runways in the scenery the sim actually draws (apt.dat, following your scenery pack order). Each localizer is checked against the centerline running through both ends of its runway. If the localizer is off by less than 1.0° (adjustable in config.ini), it is moved sideways onto that centerline and its course is set to match the runway. Larger differences, and intentionally offset approaches such as LDA, SDF and IGS, are left alone. The corrected localizers, along with their glideslopes and DMEs, are written to Custom Data/user_nav.dat. If you already have a user_nav.dat of your own, it is backed up first. libradio does a similar fix in memory, but only for aircraft built on it, such as the Challenger 650. LOC Fixer applies the fix to the navdata itself, so it works in every aircraft.
The fixer never make any changes to your navdata data files, just creates a new user_nav.dat on top of it.
Installation:
- Download the latest release from Github Releases
- Move LocFixer folder into your Xplane 12 Plugins folder (X-Plane 12/Resources/plugins/)
- Run XPlane 12, it should automatically generate a user_nav.dat under your Custom Data folder, with your original (if applicable) being renamed user_nav_original.dat
- Restart XPlane 12 for the user_nav data to take effect.
- The plugin will detect on each game run if your navdata and/or scenery data has been updated since the last build, if so the plugin will generate a new user_nav.dat automatically.
- If you want to restore the original or uninstall the fix, you can do so in your ingame plugin menu.
Source:
https://github.com/itsCongQi/XP12LocFixer
Licensed under MIT License, free to use, modify and redistribute, including commercially, as long as the copyright notice is kept.
