Script to enable multiple commands

1,832 views
Skip to first unread message

turbo2ltr

unread,
Aug 26, 2010, 11:27:48 PM8/26/10
to ATC-SIM

I just updated the Highlight Planes/Strips Greasemonkey script (http://
www.mikemontalvo.com/index.php?blog=6&title=highlight_planes_and_strips_in_atc_sim)
to be able to take certain multiple commands.

Valid command examples (beside the ones that are valid now):

In the air
UAL174 C 250 5 // clear 250 deg 5000ft
UAL174 C 5 250 // same as above, order of speed, altitude and
waypoint doesn't matter
UAL174 C 5 BOLES // clear to 5000ft via BOLES waypoint
UAL174 C 270 3 S 190 // clear 270 to 3000ft, change speed to 190
UAL174 C 270 3 S 190 X // same as above, but expedite all commands,
EX works as well

You can append X to any combo and it will expedite all commands.

On the ground
UAL174 C 9 BOLES T // departure clearance to 9000 ft via BOLES,
clear for takeoff
UAL174 C 4 BOLES H // departure clearance to 4000ft via BOLES,
position and hold

You can append T or H to any departure clearance.


All other commands stay the same and require the same format as
before. All commands, including all C commands work as before as
well. This script simply allows you to combine certain commands on the
same line. You cannot combine any other commands other than the one's
shown and all "combo" commands must start with C. (i.e. you cant say
UAL174 S 190 C 5, you must say UAL174 C 5 S 190)

I haven't tested this a whole lot so use at your own risk...i.e. don't
attempt a top score with it enabled until people test it out some.

Download script: http://www.mikemontalvo.com/code/atc-sim/atc_helper.user.js
(requires Greasemonkey extension to work)

Only tested in firefox. Feedback welcome and encouraged.

Jay, this is an awesome sim and I'm very addicted to it. I hope you
don't mind me doing this. Feel free to use any of the code if you want
to build it into the program in the next version, though I suspect
building it in would require completely different approach.

-Mike

Me

unread,
Aug 27, 2010, 12:09:43 AM8/27/10
to ATC-SIM
Mike,

When I do this:
UAL174 C BOLES 3 S 190

The aircraft does descend to 3000 ft, slows down to 190, BUT it also
then heads to 190 instead of to BOLES.

Do you see the same thing there?

Also now the command read-back function on the browser bottom left
does not work anymore for any "clearance" command.

Thanks.


On Aug 26, 8:27 pm, turbo2ltr <turbo2...@gmail.com> wrote:
> I just updated the Highlight Planes/Strips Greasemonkey script (http://www.mikemontalvo.com/index.php?blog=6&title=highlight_planes_and_stri...)

turbo2ltr

unread,
Aug 27, 2010, 12:37:23 AM8/27/10
to ATC-SIM
Yes, you are right, I fixed the problem with the speed/heading
confusion. (updated script and reuploaded)

But as you pointed out the read-back function stopped working for ALL
clearances. I didn't see that before and I'm not sure thats something
I'd be able to fix. That's unfortunate as it's a rather large caveat..

I'll see what I can do. In the mean time, I uploaded another version
of the script that only has the highlighting.

http://www.mikemontalvo.com/code/atc-sim/atc_helper_highlight_only.user.js

Just be sure to disable/uninstall the other script in the greasemonkey
script management panel.

Thanks for the report.
-Mike



On Aug 26, 9:09 pm, Me <ghari...@gmail.com> wrote:
> Mike,
>
> When I do this:
> UAL174 C BOLES 3 S 190
>
> The aircraft does descend to 3000 ft, slows down to 190, BUT it also
> then heads to 190 instead of to BOLES.
>
> Do you see the same thing there?
>
> Also now the command read-back function on the browser bottom left
> does not work anymore for any "clearance" command.
>
> Thanks.
>
> On Aug 26, 8:27 pm, turbo2ltr <turbo2...@gmail.com> wrote:
>
> > I just updated the Highlight Planes/Strips Greasemonkey script (http://www.mikemontalvo.com/index.php?blog=6&title=highlight_planes_a......)

Me

unread,
Aug 27, 2010, 12:46:45 AM8/27/10
to ATC-SIM
It's fixed!
This is great now I can type all 3 commands for initial arriving and
departing planes on one line!!!

Thanks.

On Aug 26, 9:37 pm, turbo2ltr <turbo2...@gmail.com> wrote:
> Yes, you are right, I fixed the problem with the speed/heading
> confusion. (updated script and reuploaded)
>
> But as you pointed out the read-back function stopped working for ALL
> clearances.  I didn't see that before and I'm not sure thats something
> I'd be able to fix. That's unfortunate as it's a rather large caveat..
>
> I'll see what I can do. In the mean time, I uploaded another version
> of the script that only has the highlighting.
>
> http://www.mikemontalvo.com/code/atc-sim/atc_helper_highlight_only.us...

Me

unread,
Aug 27, 2010, 12:48:49 AM8/27/10
to ATC-SIM
Next task for you: make cascading command possible so we can route
planes along STAR routes automatically (eg. UAL174 C pointA pointB
pointC 4 S 200) and make the aircraft not just go to pointC but follow
all three paths one by one.

Just a thought......

turbo2ltr

unread,
Aug 27, 2010, 1:34:36 AM8/27/10
to ATC-SIM
I just uploaded yet another version. (started numbering them in the
description, this is v1.2)

Keep in mind this whole thing is a hack to begin with so there are
certain limitations (some of which I'm already amazed I got around
heh), but I got the read-back working somewhat. It works for single
clearance commands (C 250, C 4) like it should and it works for combo
commands, but you will only see the readback for the last command.
So the downside is that if you typed:

UAL174 C BOLED 3 S 190

Instead of
UAL174 C BOLES 3 S 190

You would not see the error in the readback for the waypoint, you
would just see "reduce speed to 190".

I haven't given up on it yet though. I'm real close to a possible
fix.


As for STAR routes, that's something that will need to be done from
the "inside". Having to figure out if a plane reached a waypoint from
the outside (greasemonkey) would be very difficult. Not that that's
ever stopped me. heh.


-Mike





On Aug 26, 9:46 pm, Me <ghari...@gmail.com> wrote:

Yos233

unread,
Aug 27, 2010, 9:00:21 AM8/27/10
to ATC-SIM
Take it from a deprting aircraft. They know when they get within a
mile, and then dissapear. Instead of disappearing they just continue
along to next fix.
> > > > > -Mike- Hide quoted text -
>
> - Show quoted text -

Logan Bowling

unread,
Aug 27, 2010, 10:39:21 AM8/27/10
to atc...@googlegroups.com
Can you clear an aircraft to multiple waypoints at the same time?


--
You received this message because you are subscribed to the Google Groups "ATC-SIM" group.
To post to this group, send email to atc...@googlegroups.com.
To unsubscribe from this group, send email to atc-sim+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/atc-sim?hl=en.


turbo2ltr

unread,
Aug 27, 2010, 12:39:43 PM8/27/10
to ATC-SIM
No. You can only give one command of each type per line.

Essentially all the script does is parse the line, splits it into
separate commands and submit them just like you typed the separate
commands in. Submitting multiple waypoints would just do the same
thing as if you typed in three different commands to waypoints. Only
the last one would be effective as the plane would change direction as
soon as each command is entered.





On Aug 27, 7:39 am, Logan Bowling <loganbowl...@gmail.com> wrote:
> Can you clear an aircraft to multiple waypoints at the same time?
>
> On Thu, Aug 26, 2010 at 11:27 PM, turbo2ltr <turbo2...@gmail.com> wrote:
>
> > I just updated the Highlight Planes/Strips Greasemonkey script (http://
>
> >www.mikemontalvo.com/index.php?blog=6&title=highlight_planes_and_stri...
> > )
> > atc-sim+u...@googlegroups.com<atc-sim%2Bunsu...@googlegroups.com>
> > .

robc856

unread,
Aug 27, 2010, 1:01:45 PM8/27/10
to ATC-SIM
Is anyone having any issues using this with FF 3.6.8?

turbo2ltr

unread,
Aug 27, 2010, 1:24:47 PM8/27/10
to ATC-SIM
If anyone is getting a javascript popup when you enter a command,
please reinstall the script. I accidentally uploaded a version just
before I went to bed that still had an alert I used to debug in the
source...

turbo2ltr

unread,
Aug 29, 2010, 3:01:45 PM8/29/10
to ATC-SIM

If one were to make multiple waypoints possible, what would the
behavior be if you assigned a route, then later while they were flying
the route, you cleared them to another waypoint or vector?

Does the whole route get canceled automatically?
Do you have to specifically cancel the route clearance then give them
a new vector waypoint or route?
Or should the route remain active and allow the plane to "resume
route" at the controllers discretion?

Michael Woodburn

unread,
Aug 29, 2010, 3:37:35 PM8/29/10
to atc...@googlegroups.com
The L and R commands do not work with your helper script. Not a big
deal, as I can work around it. But there are cases where I want the
plane to turn in the opposite direction.

Also, Re: Multiple way points, I think a new way point vector should
cancel the previous route.

> To unsubscribe from this group, send email to atc-sim+u...@googlegroups.com.

JayLink1971

unread,
Aug 29, 2010, 3:41:28 PM8/29/10
to ATC-SIM
> I hope you don't mind me doing this.

No problem at all.


> If one were to make multiple waypoints possible, what would the
> behavior be if you assigned a route, then later while they were flying
> the route, you cleared them to another waypoint or vector?
>
> Does the whole route get canceled automatically?

Exactly my question! Every time I think about coding this myself , I
wonder: Do the new commands get appended to, or replace the "queue"?

I'm inclinded to say replace, but let's say you simply wanted to
adjust the altitude and not the whole route?


Let me know what you come up with. :-)


- J

Logan Bowling

unread,
Aug 29, 2010, 5:14:13 PM8/29/10
to atc...@googlegroups.com
I think the whole route should be cancelled automatically...seems like the easiest to create.

On Sun, Aug 29, 2010 at 3:01 PM, turbo2ltr <turb...@gmail.com> wrote:
To unsubscribe from this group, send email to atc-sim+u...@googlegroups.com.

turbo2ltr

unread,
Aug 29, 2010, 5:47:39 PM8/29/10
to ATC-SIM
Version 1.3 released.

The biggest update to this is the ability to issue multiple waypoint
clearances to arriving and departing planes and they will fly to the
points in order. You do this with the V (via) command.

UAL1234 C 5 V CAGVA BOLES LUF // cleared to 5000ft, fly to CAGVA
then BOLES then LUF
UAL1234 C 5 t V CAGVA BOLES LUF // cleared to 5000ft,clear for
takeoff, fly to CAGVA then BOLES then LUF
UAL1234 C V CAGVA BOLES LUF // fly to CAGVA then BOLES then LUF

The one caveat is that the V command followed by the waypoints must be
the last thing in the line. You CAN combine other commands prior to
the V, but just make sure the V command is the last.

If you assign a waypoint or vector to a plane flying a route, the
route clearance will cancel.

Other fixes:
Corrected readback function for all commands. Now reads back results
of all commands in a combo command as well as the new V commands.
Added up arrow now repeats the previous command with the plane you
just clicked, but it does not submit in case you want to edit. Really
helps issue those long clearances to multiple aircraft.
L and R commands after a heading work now (broken in previous version)

http://www.mikemontalvo.com/index.php?blog=6&title=highlight_planes_and_strips_in_atc_sim&more=1&c=1&tb=1&pb=1


Let me know how it works.






On Aug 29, 2:14 pm, Logan Bowling <loganbowl...@gmail.com> wrote:
> I think the whole route should be cancelled automatically...seems like the
> easiest to create.
>
> > <atc-sim%2Bunsu...@googlegroups.com<atc-sim%252Buns...@googlegroups.com>

Gene Harrison

unread,
Aug 29, 2010, 6:13:01 PM8/29/10
to atc...@googlegroups.com
You cannot currently make multiple way point routs.

To unsubscribe from this group, send email to atc-sim+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/atc-sim?hl=en.




--
Gene Harrison
Cell (678) 717-8169
Office (770) 956-1955

Logan Bowling

unread,
Aug 29, 2010, 6:55:37 PM8/29/10
to atc...@googlegroups.com
For some reason I can't get it to work. You say this is version 1.3, however when the script is downloaded from your website it says that it is version 1.2  ????  Or maybe i'm just doing it wrong, I don't know. 

To unsubscribe from this group, send email to atc-sim+u...@googlegroups.com.

turbo2ltr

unread,
Aug 29, 2010, 7:10:35 PM8/29/10
to ATC-SIM
Nope, I'm an idiot. Link fixed.



On Aug 29, 3:55 pm, Logan Bowling <loganbowl...@gmail.com> wrote:
> For some reason I can't get it to work. You say this is version 1.3, however
> when the script is downloaded from your website it says that it is version
> 1.2  ????  Or maybe i'm just doing it wrong, I don't know.
>
> On Sun, Aug 29, 2010 at 5:47 PM, turbo2ltr <turbo2...@gmail.com> wrote:
> > Version 1.3 released.
>
> > The biggest update to this is the ability to issue multiple waypoint
> > clearances to arriving and departing planes and they will fly to the
> > points in order. You do this with the V (via) command.
>
> > UAL1234 C 5 V CAGVA BOLES LUF    // cleared to 5000ft, fly to CAGVA
> > then BOLES then LUF
> > UAL1234 C 5 t V CAGVA BOLES LUF  // cleared to 5000ft,clear for
> > takeoff, fly to CAGVA then BOLES then LUF
> > UAL1234 C V CAGVA BOLES LUF  //  fly to CAGVA then BOLES then LUF
>
> > The one caveat is that the V command followed by the waypoints must be
> > the last thing in the line.  You CAN combine other commands prior to
> > the V, but just make sure the V command is the last.
>
> > If you assign a waypoint or vector to a plane flying a route, the
> > route clearance will cancel.
>
> > Other fixes:
> > Corrected readback function for all commands.  Now reads back results
> > of all commands in a combo command as well as the new V commands.
> > Added up arrow now repeats the previous command with the plane you
> > just clicked, but it does not submit in case you want to edit. Really
> > helps issue those long clearances to multiple aircraft.
> > L and R commands after a heading work now (broken in previous version)
>
> >http://www.mikemontalvo.com/index.php?blog=6&title=highlight_planes_a...
> > > > <atc-sim%2Bunsu...@googlegroups.com<atc-sim%252Buns...@googlegroups.com>
> > <atc-sim%252Buns...@googlegroups.com<atc-sim%25252Bun...@googlegroups.com>

Logan Bowling

unread,
Aug 29, 2010, 8:25:46 PM8/29/10
to atc...@googlegroups.com
LOL...much better now. Works great, thanks very much for that!

To unsubscribe from this group, send email to atc-sim+u...@googlegroups.com.

Me

unread,
Aug 29, 2010, 8:48:06 PM8/29/10
to ATC-SIM
Wow Mike,

I thought when I suggested the idea at the beginning of this
discussion that it would be just a dream to get such a function.
But as you said, nothing can stop you from trying.

Thanks!

On Aug 29, 5:25 pm, Logan Bowling <loganbowl...@gmail.com> wrote:
> LOL...much better now. Works great, thanks very much for that!
>
> > > > > > <atc-sim%2Bunsu...@googlegroups.com<atc-sim%252Buns...@googlegroups.com>
> > <atc-sim%252Buns...@googlegroups.com<atc-sim%25252Bun...@googlegroups.com>
>
> > > > <atc-sim%252Buns...@googlegroups.com<atc-sim%25252Bun...@googlegroups.com>
> > <atc-sim%25252Bun...@googlegroups.com<atc-sim%2525252Bu...@googlegroups.com>

Me

unread,
Aug 29, 2010, 9:15:45 PM8/29/10
to ATC-SIM
Next thing to do is: write up some STAR routes for each airport,
and then write some code so that we can tell aircraft:

UAL174 fly San Francisco Quiet Bridge Visual land runway 28R.......

just kidding......
> ...
>
> read more »

Yos233

unread,
Aug 29, 2010, 10:11:51 PM8/29/10
to ATC-SIM
Last time you were just kidding, he showed you up and acomplished the
"impossible." I dont know what greasemonkey can do but you might as
well try ;)
> > > > <atc-sim%2Bunsu...@googlegroups.com<atc-sim%252Bunsubscribe@googlegroup­s.com>
>
> > > > > > <atc-sim%2Bunsu...@googlegroups.com<atc-sim%252Bunsubscribe@googlegroup­s.com>
> > > > <atc-sim%252Buns...@googlegroups.com<atc-sim%25252Bunsubscribe@googleg­roups.com>
>
> > > > > > > > <atc-sim%2Bunsu...@googlegroups.com<atc-sim%252Bunsubscribe@googlegroup­s.com>
> > > > <atc-sim%252Buns...@googlegroups.com<atc-sim%25252Bunsubscribe@googleg­roups.com>
>
> > > > > > <atc-sim%252Buns...@googlegroups.com<atc-sim%25252Bunsubscribe@googleg­roups.com>
> > > > <atc-sim%25252Bun...@googlegroups.com<atc-sim%2525252Bunsubscribe@goo­glegroups.com>
>
> > > > > > > > > > > > .
> > > > > > > > > > > > For more options, visit this group at
> > > > > > > > > > > >http://groups.google.com/group/atc-sim?hl=en.
>
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the Google
> > > > > > Groups
> > > > > > > > "ATC-SIM" group.
> > > > > > > > To post to this group, send email to atc...@googlegroups.com.
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > atc-sim+u...@googlegroups.com<atc-sim%2Bunsu...@googlegroups.com­>
> > > > <atc-sim%2Bunsu...@googlegroups.com<atc-sim%252Bunsubscribe@googlegroup­s.com>
>
> ...
>
> read more »- Hide quoted text -

turbo2ltr

unread,
Aug 29, 2010, 10:41:28 PM8/29/10
to ATC-SIM
lol, I think I'm done for a little while.. heh.

besides, "fly San Francisco Quiet Bridge Visual land runway 28R" thats
a lot to type. Its hard enough to type in three waypoints.. I type
slow. heh.
> ...
>
> read more »

Me

unread,
Aug 29, 2010, 11:07:02 PM8/29/10
to ATC-SIM
Hey Mike,

I (finally) just downloaded the script but I can't seem to use the new
"V" command at all.
Am I missing something?
> ...
>
> read more »

Me

unread,
Aug 29, 2010, 11:10:39 PM8/29/10
to ATC-SIM
Nevermind.......had to re-start FF first for script to take into
affect!
Thanks.
> ...
>
> read more »

robc856

unread,
Aug 30, 2010, 1:18:05 PM8/30/10
to ATC-SIM
is anyone having this problem?

I installed firefox, installed greasemonkey, restarted firefox, got
the script from Mike and ran atc-sim.com and it worked. I end the
program and when I go back to use it again the script is no longer
running and I can't use it. Greasemonkey says it's enabled. I
uninstalled firefox and reinstalled it and again the script works but
the won't work on the second try again.

Any ideas? Am I doing something wrong?

Cheers,
Rob
> ...
>
> read more »

Me

unread,
Aug 30, 2010, 1:36:41 PM8/30/10
to ATC-SIM
Yeah I saw that too. That's why I posted my question before.
It seems that I had to try over and over re-starting FF and atc-sim
and at some point I got it to work.
Once it works then it will always work, until the next time you re-
start FF.

Let's hope Mike can find why it may be doing that.

turbo2ltr

unread,
Aug 30, 2010, 1:48:26 PM8/30/10
to ATC-SIM
Can you guys run FF, hit cntrl-shift-J which opens the error console.
Click the "errors" button at the top of the window (hit clear if the
window is not empty), then load atc-sim and see if you get any errors.

robc856

unread,
Aug 30, 2010, 2:10:59 PM8/30/10
to ATC-SIM
I just reinstalled FF a third time and cleared the errors. That seems
to have done it. It works fine now.

Thanks again Mike.

Rob

robc856

unread,
Aug 30, 2010, 2:27:13 PM8/30/10
to ATC-SIM
awesome, it totally changes how I input commands, gone are the days
where I was typing like a mad man and people where wondering what I'm
doing. I'm not going to get any work done, lol

Evan Beaton

unread,
Aug 30, 2010, 4:23:47 PM8/30/10
to atc...@googlegroups.com
WOW! Incredible script... I'm so far only using it for multiple waypoints and wow, it's incredible how much more realistic this is. Easier, but I don't feel it's cheating or anything, just a lot more like the real thing. Finally we can essentially recreate SIDs and STARs! Thanks a bunch turbo for helping to make an amazing thing even better!

turbo2ltr

unread,
Aug 30, 2010, 7:05:19 PM8/30/10
to ATC-SIM
Glad you like it. Jay has built a very good and reliable platform
here, very clean code and I'm amazed it's all javascript. What I did
is merely a hack...an ugly one at that. heh.

Sooo... how *do* you guys use this? lol. Just because I wrote the
script doesn't mean I know what to do with it. :)

I'm a non-current private pilot (VFR) and the biggest airport I flew
into is probably MacArthur class Charley on long island. FRG could
get pretty hairy at times, (N255Y, you're # 10 following cherokee in
extended downwind) but no STARS or SID...

I actually had some time to play (instead of test) last night..I was
working PHX and I was simply giving incoming planes in the north
routes like VADRR BOLES FINUX and then vectored them to land on 7/8

And what usually happens is I forget about one of them and they start
circling FINUX and screws everything up because they are now flying
into traffic.. lol.

rob.c...@gmail.com

unread,
Aug 30, 2010, 7:31:30 PM8/30/10
to atc...@googlegroups.com
I find that having a plan for them ahead of time is nice but you have to give an order to them. Know which is going to land first.

Some aircraft I speed up to bring them in faster. You can also assign an aircraft an approach speed after they're on the localizer. Just don't go too high or they'll overshoot.

Usually try to have a runway for departures and another for landing. If you have only one runway, as soon as the landing aircraft is over the threashold and down, send a departing aircraft to position till the runway is clear and depart him.

You really have to tryout different setups and different conditions. Setting the wind changes to often can make it interesting. Lol

Cheers,

Rob
Sent from my BlackBerry device on the Rogers Wireless Network
--
You received this message because you are subscribed to the Google Groups "ATC-SIM" group.
To post to this group, send email to atc...@googlegroups.com.
To unsubscribe from this group, send email to atc-sim+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/atc-sim?hl=en.

Me

unread,
Aug 30, 2010, 8:20:37 PM8/30/10
to ATC-SIM
I made some vectoring diagrams for KSFO and KLAX a while back (only
normal ops). I used some ZOA and ZLA ARTCC (VATSIM) vectoring diagram
to help me out.

KLAX:
http://atc-sim.googlegroups.com/web/KLAX_APP_VECTORS_NORMOPS.JPG?gda=f35hT04AAABH78VCmv4na91CnJnayYmn2GWYa5SzzjhPRqw4EIvLKnkUP3sHxs_-hphAa-TFl-gFjZyXv0bUA9VvwoA1YYgK47Cl1bPl-23V2XOW7kn5sQ

KSFO:
http://atc-sim.googlegroups.com/web/KSFO_APP_VECTORS_NORMOPS.JPG?gda=KPhL7k4AAABH78VCmv4na91CnJnayYmn5JFUt2CjnyD4vPdVw1JtrTMIN4yrWQTZST0LIMy5Lo8FjZyXv0bUA9VvwoA1YYgK47Cl1bPl-23V2XOW7kn5sQ

ZOA ARTCC website link to SFO and SJC vectoring diagram:
http://www.oakartcc.com/downloads/vectordiag.zip

ZLA ARTCC website link to vectoring diagram for LAX, SNA, LAS, ONT,
SAN, SBA, LGB:
http://www.laartcc.org/vectoring.php

So your new script really helps with following these vectoring
diagrams both for arrivals and departures according to wind direction.

It's really fun.
> > helping to make an amazing thing even better!- Hide quoted text -

pandahead

unread,
Aug 31, 2010, 2:08:54 PM8/31/10
to ATC-SIM
Great work, thank you!

Wes

unread,
Sep 5, 2010, 10:22:45 AM9/5/10