Forum Overview :: Pinback's Web Central
 
STEP 2: Create a sector file, fix the goddamn file format, and make the airport. by pinback 05/09/2016, 3:15pm PDT
Tracon initially stores sector files as UTF-16-encoded XML. That makes dicking around with it difficult (for me). So I used Sublime Text to save it as UTF-8, and it seems to work just fine. If this comes back to bite me later, I will cry, but so far so good.

I then used airnav.com and my good ol' "findfix.sh" script to get the location/elevation of the ABQ airport, and add a single fix. I created the airport in the editor itself, where you can see where I entered the lat/long/elev values, but then I manually edited the file and added the fix info. Which worked, which is great, because then I can just write a script, once I have a full list of the fixes, to loop through them, find their locations, and automatically shove them all into the XML. A job I thought would take hours will take... well, still hours, but just to write all the scripts. Then once it's time to go, boom, done.

Look at this awesome sector!

PREVIOUS NEXT REPLY QUOTE
 
Here is the thread where I build out a TRACON sector for the game Tracon! 2012 by pinback 05/08/2016, 4:07pm PDT NEW
    STEP 1: Writing goddamn python and shell scripts by pinback 05/09/2016, 1:38pm PDT NEW
    STEP 2: Create a sector file, fix the goddamn file format, and make the airport. by pinback 05/09/2016, 3:15pm PDT NEW
        Oh yeah, and here's the full sector file as it exists right now. by pinback 05/09/2016, 3:17pm PDT NEW
            You'd have to escape all the opening and closing angle brackets, sadly by Entropy Stew 05/09/2016, 4:59pm PDT NEW
    STEP 3: Good Christ almighty is the editor a piece of shit by pinback 05/10/2016, 7:45am PDT NEW
    STEP 4: Fuck this shit. by pinback 05/10/2016, 11:16am PDT NEW
 
powered by pointy