• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Add Keypress in XML?

Messages
139
I want to create a Menuprompt with the selection "Contact ATC".. and I want the ~ keypress to be the response .. so the ATC menu comes up.. when the user selects "1" .. is this possible in the XML format?
 
Last edited:
I'm afraid that's not possible. You cannot call commands from within the mission system.

In my missions I solve this by telling the user in the menu "Please contact ATC - OK". Not ideal but it fits for me.
 
ATC menu

Too bad.. that would have really made the interaction more interesting.

Related to menu prompts.. I"m wondering how to configure the ATC. In some of my missions when I hit the ~ key after taking off the menu for contacting ground control comes up.. in others, for air control as it should. It seems to relate to something in the saved FLT file.. Quite a bit of ATC stuff in there.. anyone know what needs to change?
 
Normally when airborne you should always see the contact center options. You may have to wait some seconds for the menu entries to change.
 
Atc

Thanks, I notice these lines in the FLT file vary a lot..

and the third one seems to save an existing state depending on where you are in the ATC process when the flight is saved..

[ATC_Aircraft.0]
ActiveFlightPlan=True
RequestedFlightPlan=False
AcState=ACSTATE_REQUEST_TAXI_CLEARANCE_OUT_VFR_ATIS

This mission is mostly for fun and is about half done. I am experimenting with random actions in particular and branching scenarios. The airport is the one 2 miles from where I live in Kelowna, British Columbia. If anyone wants to try the WIP it includes new scenery files for the Kelowna airport.

http://www.combatplanes.ca/fs/Kelowna.zip
 
Last edited:
Here's a thought: Why not set up a free flight, take the aircraft up and save it. Then, go into the FLT file and see what the AcState is and paste that into your mission FLT.

But I agree. Normally, once you're airborne, ATC will switch over to center. However, if you have a flightplan filed, that may not be the case. If you file a flightplan but do not contact clearance delivery, ground, etc. that may cause confusion in the flight if you attempt to get ATC later. If you are tuned the tower and takeoff without clearance, you will of course eventually get the good old, "Blah blah blah, you're not cleared to takeoff. Flightplan cancelled. ATC services terminated. Squawk XXXX..." At that point, I believe the ATC menu should switch over to center.

Maybe try this too. If the first time you instruct a call to ATC is after takeoff, start the mission and leave the ATC menu open the whole time and watch to see if it changes at all. You should start with clearance delivery and ATIS as the first two options - or ground, if no flightplan filed. Once airborne, it should switch to tower and ATIS and finally, center and find airport (or whatever the menu option is - I can't think of it right now).
 
SimConnect

Has anyone investigated calling the Mission from the program? Rather than the Mission attempting to be SimConnect?

I have not looked at Missions yet, but I'd say from a cursury reading of the Docs, that you are going about it backwards. Tail Wagging the Dog? ;)

FlapsOut
 
I think if you don't start the mission from the missions menu you cannot finish it with granted rewards.
But maybe I misunderstood you.

To the ATC: In fact there were certain situations in FS9 when you were trapped in an ATC-situation with nothing to choose or with atc doing weird stuff. I created a small FLT-file for that (see "reset atc" at avsim), which included just one single line: exactly the line you stated above:
AcState=ACSTATE_REQUEST_TAXI_CLEARANCE_OUT_VFR_ATIS
It may be interesting to experiment with that in fsx. But I'm afraid it's not possible to call a flt-file from within a mission (if not via simconnect).
 
Atc

interesting.. I saved a flight from Kelowna in the air.. Three things in the FLT file change.

1) number of Agents
2) the agent
3) the AC State

[ATC_AgentManager]
NumberofAgents=1 <--- was "0"

[ATC_Agent.0]
AgentType=Tower <---
Callsign=KELOWNA
Frequency=1196000
NumberofAircraft=1
SecLastMessage=639.81833216909354

[ATC_Aircraft.0]
ActiveFlightPlan=False
RequestedFlightPlan=False
AcState=ACSTATE_TOWER_DEPARTING <---
 
Last edited:
Back
Top