I am in the process of creating a no longer active airfield in the UK and bring it back to life. No existing ICAO code.
In MSFS SDK, I created the new custom airport. Unfortunately, I failed to notice after a great deal of work that the region code I specified is for Germany, not the UK.
Editing the project JSON and XML that contained the incorrect code doesnt fix the issue. When I try to change it in the SDK interface, I get a message that the airport must be in the same region as the one originally specified…
What are the series of steps that I need to take to correct this? Im in the process of doing final QA on this before I publish to flightsim.to for community use.
You need to edit the source XML for the airport (change the ICAO code). By region, I assume you mean the first 2 characters of the ICAO? Use a text editor. Then you can reload the project into the DevMode, and build.
Hi there,
Welcome to devsupport!
Could you list out which file(s) you edited? I’ve never had this scenario, but I or someone else could try to reproduce it and see if the same thing happens.
I’m not in front of MSFS at the moment, but I believe that the file you are looking for would be in a subfolder called PackageSources. It would end in the extension .xml.
The code that you gave above is JSON, not XML. I would search any .xml files you have for the ICAO code you gave and replace it with the appropriate code.
This is the XML entry that wont change. I can edit it and a text editor and save it. When I go back into the project to regenerate, the Airport object is shown in red and it wont let me proceed with the generation and displays the incorrect region error mentioned in the original post. Thanks for the assistance and patience
. Im new to this, learning much.
Not a problem! This is the file I think you need to change:
PackageSources\Scenery\???\scenery\???.xml (Whatever the name of your project is)
Edit this line: <Airport ident="EDBD" ....>
(I assume “EDBD” would be changed to “EGDB”?)
Hopefully you are happy with the name you chose for the package, because if not, there are probably a bunch of things you need to change.
The PackagesMetadata folder may regenerate from the XML with the correct data if you delete it. I’m not 100% sure about this, but you can try soft deleting it (into the Recycle Bin), opening and saving it, and see if you get new metadata out of it.