Board index FlightGear Support Tools ATC-pie

ATC-Pie batch launcher for Windows

ATC-pie is a radar air traffic control simulation program for the FlightGear multi-player network.

ATC-Pie batch launcher for Windows

Postby it0uchpods » Sun Oct 30, 2016 7:00 pm

Hello, here is how to run ATC-Pie on Windows based PCs.

Tested on ATC-Pie 0.9.3 and 0.9.4 (dev branch)

Download the launcher from my repo: https://github.com/it0uchpods/ATC-Pie-L ... master.zip

This is an easy way to launch ATC-Pie on a Windows based PC.

The following systems will work:
Windows XP (Service Pack 2 or later)
Windows Vista
Windows 7
Windows 8
Windows 8.1
Windows 10

Installation and Use:

Copy ATC-pie.bat and LaunchConfig.ini to ATC-pie folder.

You need WinPython with QT5 for this to work. The best version to use is 3.4.4.1, which can be downloaded here:
x86 (32bit): https://sourceforge.net/projects/winpyt ... e/download
x64 (64bit): https://sourceforge.net/projects/winpyt ... e/download

Install it to any directory you like, but make note of this directory!

Open ATC-pie.bat
Select option 3 "WinPython Directory" and press Enter.
Select option 2 "Change WinPython Directory" and press Enter.
Type (or paste) in the directory which you installed WinPython and press Enter.
Select option 1 "Back to Main Menu" and press Enter.

Setup is complete!!!

To launch at an airport:
Open ATC-pie.bat
Select option 1 "Launch at an airport (ICAO)" and press Enter.
Type the ICAO code of the airport you wish to launch at and press Enter. (ex: EHAM)

To launch with other modes or arguments:
Open ATC-pie.bat
Select option 2 "Enter arguments" and press Enter.
Type the arguments you wish to use, and press Enter. Do not include ATC-pie.py. Only include arguments. (ex: EHAM --map-range=150)

I may add native support for more options later.
If you have problems, you can report them here on this thread.

I am working with Micky to keep this working on the latest versions of ATC-pie.

Enjoy!
Josh
it0uchpods/WTF411

FGFS Aircraft Developer
Lead Programmer at it0uchpods Design Group
Download High Quality Aircraft from it0uchpods Hangar
User avatar
it0uchpods
 
Posts: 3528
Joined: Tue Oct 06, 2015 12:51 pm
Version: 2018.2.1
OS: Windows 10 x64

Re: ATC-Pie batch launcher for Windows

Postby oscar6662 » Sun Oct 30, 2016 10:47 pm

Thanks. A cool implementation that did a friend of mine is:

Code: Select all
@echo off
set /p var= Airport:
cd ATC PIE DIRECTORY
PythonDIRECTORY\Python.exe ATC-pie.py %var%


It basicly asks you for the airport when double clicking
Todo bien todo correcto? Y yo que me alegro!!!
#keepKSFO

Sir. Berenguer
oscar6662
 
Posts: 118
Joined: Thu Nov 05, 2015 5:52 pm
Callsign: AA2234
IRC name: N/A
Version: 3.4.0.
OS: windiws.7.pro.

Re: ATC-Pie batch launcher for Windows

Postby it0uchpods » Mon Oct 31, 2016 1:41 am

Mine is more advanced :D

And I have support for launching in Custom arguments, and future center modes.

Plus, mine remembers the Python Directory by saving it in a ini file. And WinPython already has PYQT5 installed.
it0uchpods/WTF411

FGFS Aircraft Developer
Lead Programmer at it0uchpods Design Group
Download High Quality Aircraft from it0uchpods Hangar
User avatar
it0uchpods
 
Posts: 3528
Joined: Tue Oct 06, 2015 12:51 pm
Version: 2018.2.1
OS: Windows 10 x64

Re: ATC-Pie batch launcher for Windows

Postby Parnikkapore » Sat Nov 26, 2016 9:14 am

I've ported this to Bash, so it would work with Linux and Mac OS!
Full code below:
Code: Select all
#! /bin/bash
cd YOUR_ATCPIE_DIRECTORY
#Update ATC-pie
clear
echo "---Updating ATC-pie---"
git pull
echo "--Enter to continue--"
read
clear
echo "ATC-Pie Launcher bash port by Parnikkapore (V1.0)"
echo "Main Menu"
echo "1) Launch at an airport"
echo "2) Enter arguments"
echo "e) Exit"
read mmenu
#******************#
case $mmenu in
   1|AD|TW|TWR|APT)
      echo "Please pick an airport"
      read AD
      clear
      python3 ./ATC-pie.py `echo $AD`
      ;;
   e)
      exit;;
   2|*)
      echo -n "Enter the arguments (Do not include ATC-pie.py): "
      read ops
      clear
      python3 ./ATC-pie.py `echo $ops`
      ;;

esac

Change YOUR_ATCPIE_DIRECTORY to where you installed ATC-pie. This will let you use the launcher in menus.
NOTE THAT THIS ASSUMES YOU HAVE DOWNLOADED ATC-PIE VIA GIT! If this is not the case, remove the "git pull".
There are free alternatives to every program you encounter. You just have to find them.
Parnikkapore
 
Posts: 760
Joined: Thu Oct 29, 2015 10:16 am
Callsign: HS-FGS
Version: next [PPA]
OS: Mint 18

Re: ATC-Pie batch launcher for Windows

Postby mickybadia » Tue Dec 06, 2016 10:00 pm

Hi,
I am afraid the new launcher will make those efforts obsolete, but I thank you for your contributions.
Hopefully users will now all find an easy way in.
Michael
mickybadia
 
Posts: 394
Joined: Tue Sep 24, 2013 9:12 am

Re: ATC-Pie batch launcher for Windows

Postby Parnikkapore » Tue Dec 06, 2016 11:15 pm

Whoa, real thanks micky!
However, my launcher also does auto-update from Git, so I'll keep it in.
There are free alternatives to every program you encounter. You just have to find them.
Parnikkapore
 
Posts: 760
Joined: Thu Oct 29, 2015 10:16 am
Callsign: HS-FGS
Version: next [PPA]
OS: Mint 18

Re: ATC-Pie batch launcher for Windows

Postby it0uchpods » Wed Dec 07, 2016 3:31 am

The git-pull is very useful.
Sadly I have no way to do that windows.

Nice job porting it to bash!
It's easier, since python3 is installed to the system, so none of that directory defining stuff. :D

I'd like to see this new launcher!

Josh
it0uchpods/WTF411

FGFS Aircraft Developer
Lead Programmer at it0uchpods Design Group
Download High Quality Aircraft from it0uchpods Hangar
User avatar
it0uchpods
 
Posts: 3528
Joined: Tue Oct 06, 2015 12:51 pm
Version: 2018.2.1
OS: Windows 10 x64

Re: ATC-Pie batch launcher for Windows

Postby elgaton » Wed Dec 07, 2016 8:23 pm

it0uchpods wrote in Wed Dec 07, 2016 3:31 am:Sadly I have no way to do that windows.

Just install Git for Windows and you should be set ;)
NIATCA 2nd admin, regular ATC at LIPX and creator of the LIPX custom scenery
elgaton
 
Posts: 1107
Joined: Tue Mar 19, 2013 4:58 pm
Callsign: I-ELGA/LIPX_TW
Version: Git
OS: Windows + Arch Linux

Re: ATC-Pie batch launcher for Windows

Postby Parnikkapore » Thu Dec 08, 2016 12:01 am

If you choose Git for Windows, you must pick "use git in command prompt".
There are free alternatives to every program you encounter. You just have to find them.
Parnikkapore
 
Posts: 760
Joined: Thu Oct 29, 2015 10:16 am
Callsign: HS-FGS
Version: next [PPA]
OS: Mint 18

Re: ATC-Pie batch launcher for Windows

Postby it0uchpods » Thu Dec 08, 2016 6:54 pm

I use git bash
I like the linux terminal more than windows, so I like being able to use the ls command etc.
it0uchpods/WTF411

FGFS Aircraft Developer
Lead Programmer at it0uchpods Design Group
Download High Quality Aircraft from it0uchpods Hangar
User avatar
it0uchpods
 
Posts: 3528
Joined: Tue Oct 06, 2015 12:51 pm
Version: 2018.2.1
OS: Windows 10 x64

Re: ATC-Pie batch launcher for Windows

Postby it0uchpods » Thu Dec 08, 2016 6:58 pm

Micky, a dumbed down version of this may still be useful for Windows users, as the launcher is Python correct?

WinPython plus a simple script is still a good idea, if you want to get it running on Windows in the quickest way possible.
it0uchpods/WTF411

FGFS Aircraft Developer
Lead Programmer at it0uchpods Design Group
Download High Quality Aircraft from it0uchpods Hangar
User avatar
it0uchpods
 
Posts: 3528
Joined: Tue Oct 06, 2015 12:51 pm
Version: 2018.2.1
OS: Windows 10 x64


Return to ATC-pie

Who is online

Users browsing this forum: No registered users and 1 guest