Board index FlightGear Development Nasal

Spoken ATC

Nasal is the scripting language of FlightGear.

Re: Spoken ATC

Postby rleibner » Sat Sep 09, 2017 2:27 am

Please show me the outputs for
Code: Select all
$ ls /var/cache/fgfs/Nasal
and
Code: Select all
$ ls /var/cache/fgfs/Nasal/SpokenATC
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 269
Joined: Fri May 19, 2017 8:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: Spoken ATC

Postby benih » Sat Sep 09, 2017 11:07 pm

Hi there,
its basicly the content of the ZIP file.

beni@segin:~$ ls /var/cache/fgfs/Nasal /var/cache/fgfs/Nasal/SpokenATC
/var/cache/fgfs/Nasal:
insgesamt 16K
4,0K drwxr-sr-x 3 root users 4,0K Sep 8 14:52 .
4,0K drwsrwsrwx 14 beni users 4,0K Sep 10 00:01 ..
4,0K drwxr-sr-x 3 root users 4,0K Sep 8 14:51 SpokenATC
4,0K -rw-r--r-- 1 root users 1,2K Sep 8 14:52 spoken_atc.nas

/var/cache/fgfs/Nasal/SpokenATC:
insgesamt 100K
4,0K drwxr-sr-x 3 root users 4,0K Sep 8 14:51 .
4,0K drwxr-sr-x 3 root users 4,0K Sep 8 14:52 ..
8,0K -rw-r--r-- 1 root users 4,9K Sep 8 14:51 atc_tools.nas
12K -rw-r--r-- 1 root users 11K Sep 8 14:51 config.xml
4,0K -rw-r--r-- 1 root users 833 Sep 8 14:51 except.apt.xml
4,0K -rw-r--r-- 1 root users 633 Sep 8 14:51 init.nas
36K -rw-r--r-- 1 root users 35K Sep 8 14:51 LICENSE
4,0K -rw-r--r-- 1 root users 1,2K Sep 8 14:51 main.nas
8,0K -rw-r--r-- 1 root users 4,4K Sep 8 14:51 phraseology.xml
4,0K -rw-r--r-- 1 root users 2,1K Sep 8 14:51 README.first
4,0K drwxr-sr-x 4 root users 4,0K Sep 8 14:51 .svn
8,0K -rwxr-xr-x 1 root users 5,4K Sep 8 14:51 voice.nas
User avatar
benih
 
Posts: 1688
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: Spoken ATC

Postby benih » Sun Jan 07, 2018 4:43 pm

Hi, it turned out that my Flightgear was just too old. With the new version it works!
Thank you for your effort!
User avatar
benih
 
Posts: 1688
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: Spoken ATC

Postby clm76 » Mon Jan 08, 2018 8:54 am

Hi Rodolpho,

Some problems with your latest version :
In "main.nas" :
Code: Select all
foreach(var f; ['voice.nas','atc_tools.nas', 'radio.nas'] ) {

"radio.nas" doesn't exist.

In "voice.nas" line 28 :
Code: Select all
var actVer = getprop("/satc/version");

the property "satc/version" doesn't exist or isn't created so an error "nil used in numeric context" occurs at line 30.
clm76
 
Posts: 204
Joined: Tue Oct 30, 2012 9:18 pm
Location: France - LFOH
Callsign: F-GCLM
Version: 2020.4.0
OS: Linux Mint 20.2

Re: Spoken ATC

Postby rleibner » Mon Jan 08, 2018 3:10 pm

Hi clm76,

In fact, radio.nas is an attempt to make audible messages between ATC and other AI aircrafts. But it is not mature enough to be included yet.
About "satc/version" you are right. I will fix that.
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 269
Joined: Fri May 19, 2017 8:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: Spoken ATC

Postby Parnikkapore » Fri Mar 09, 2018 1:50 pm

Hi all,
I made a video feature on the SpokenATC addon - at first I think it was too low-quality but the viewers seem to like it.
So here it goes:
There are free alternatives to (almost) every program you encounter. You just have to find them.
Parnikkapore
 
Posts: 929
Joined: Thu Oct 29, 2015 11:16 am
Callsign: HS-FGS
Version: next
OS: Kubuntu

Re: Spoken ATC

Postby Hooray » Fri Mar 09, 2018 3:44 pm

looks good, feel free to add this to the corresponding wiki page and the newsletter of course.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Spoken ATC

Postby polo199 » Tue Dec 04, 2018 8:43 pm

Hi all,

First, thanks to the OP for this great plugin/idea.

I have some troubles making it working in my Flightgear install. I'm getting the errors in the attached screenshots. Not sure what I did wrong:
- I run Flightgear 2018.3.1 on Windows 7. It seems to work pretty well besides that plugin issue.
- Downloaded the zip in the related Wiki page.
- Extrated everything in my Nasal folder as per instructions.
- Edited the keyboard.xml as per instructions (taking into account the point right below).
- Changed a couple of lines in a couple of files to use key #60 which is more convenient on my keyboard (FR-AZERTY)

If anybody could help... :) I'm a newbie on FGS.

Cheers!

http://ibb.co/0jwC1xF
http://ibb.co/X41hF82

---EDIT---

OK found where the issue was coming from:
  • FG_HOME on Windows is in the user's AppData/local/etc. folder (found it thanks to the dedidated Wiki article). Actually, I mixed up FG_ROOT with FG_HOME.
  • There's a problem with the archive for the Windows version. The Wiki makes references to a key ID 60 whereas Spoken_ATC's config.xml has key ID set to 62
Code: Select all
<?xml version="1.0"?>
...
-<input>

-<keyboard>

-<key n="62">
<name>less-than</name>
<desc>Spoken ATC</desc>

...

-<satc>
<version type="double">2.2</version>
...


After having fixed those 2 things, the plugin works perfectly fine. :)
Last edited by polo199 on Thu Dec 06, 2018 5:27 pm, edited 1 time in total.
polo199
 
Posts: 2
Joined: Mon Dec 03, 2018 1:27 pm

Re: Spoken ATC

Postby rleibner » Wed Dec 05, 2018 5:11 pm

polo199 wrote in Tue Dec 04, 2018 8:43 pm:After having fixed those 2 things, the plugin works perfectly fine. :)


I've just fixed the config.xml
Thanks Polo for the troubleshooting.
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 269
Joined: Fri May 19, 2017 8:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: Spoken ATC

Postby legoboyvdlp » Wed Dec 05, 2018 6:07 pm

Hi,
After landing I am told to contact ground on 121.9. When I do so, it tells me to contact tower and taxi to holding point. I's this intended or maybe it is that the airport does not have a good enough groundnet?
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Spoken ATC

Postby rleibner » Wed Dec 05, 2018 7:48 pm

legoboyvdlp wrote in Wed Dec 05, 2018 6:07 pm:Hi,
After landing I am told to contact ground on 121.9. When I do so, it tells me to contact tower and taxi to holding point. I's this intended or maybe it is that the airport does not have a good enough groundnet?

You are right, it's a bug. I'll fix it in the next revision.
In the meantime, please edit the phraseology.xml file, find the lines:
Code: Select all
  <exrwygnd type="string">Exit Runwaide at first taxiway and contact ground </exrwygnd>
  <exrwygnd type="string">~gognd[1]</exrwygnd>

and replace them with:
Code: Select all
  <exrwygnd type="string">Exit Runwaide at first taxiway and taxi to plattform. Wellcome to </exrwygnd>
  <exrwygnd type="string">%/satc/station-name</exrwygnd>
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 269
Joined: Fri May 19, 2017 8:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: Spoken ATC

Postby legoboyvdlp » Thu Dec 06, 2018 12:26 pm

Sorry - I think another one:

Code: Select all
Initializing addon 'Spoken ATC' version 2.2.0 from C:/Users/redpa/Documents/FlightGear/Custom Aircraft/SpokenATC/addon-main.nas in __addon[org.flightgear.addons.SpokenATC]__
  235.72 [ALRT]:nasal      voice.nas v.2.2 loaded.
  235.72 [ALRT]:nasal      atc_tools loaded.
  235.72 [ALRT]:nasal      Cannot stat file: C:/Users/redpa/Documents/FlightGear/Custom Aircraft/SpokenATC/radio.nas:
 at C:/Users/redpa/Documents/Programs/FlightGear 2018.3.0/data/Nasal/io.nas, line 4
  235.72 [ALRT]:nasal        called from: C:/Users/redpa/Documents/Programs/FlightGear 2018.3.0/data/Nasal/io.nas, line 84
  235.72 [ALRT]:nasal        called from: C:/Users/redpa/Documents/FlightGear/Custom Aircraft/SpokenATC/addon-main.nas, line 84

User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: Spoken ATC

Postby rleibner » Thu Dec 06, 2018 4:13 pm

Yes, I know and will fix it soon.

In the meantime, please edit the addon-main.nas file, find the line:
Code: Select all
foreach(var f; ['voice.nas','atc_tools.nas', 'radio.nas'] ) {


and replace it with:
Code: Select all
foreach(var f; ['voice.nas','atc_tools.nas'] ) {
Rodolfo
*************************
Non-shared knowledge is lost knowledge
User avatar
rleibner
 
Posts: 269
Joined: Fri May 19, 2017 8:17 pm
Location: Uruguay - SUMU
Callsign: CX-BEX
Version: next
OS: Ubuntu 18.04.4

Re: Spoken ATC

Postby polo199 » Thu Dec 06, 2018 7:34 pm

rleibner wrote in Wed Dec 05, 2018 5:11 pm:
polo199 wrote in Tue Dec 04, 2018 8:43 pm:After having fixed those 2 things, the plugin works perfectly fine. :)


I've just fixed the config.xml
Thanks Polo for the troubleshooting.


No worries mate.

Gracias por todo tu trabajo con este addon. :)
polo199
 
Posts: 2
Joined: Mon Dec 03, 2018 1:27 pm

Re: Spoken ATC

Postby RobAndrew » Fri Dec 07, 2018 12:33 am

I've recently downloaded this feature, works great!

I have one question though. How possible is it for such a system to work alongside AI Traffic and put you in a que behind it either in the air or the ground? Also I notice it doesn't give you a transponder number on Arrival. Is this a feature that could possibly be added in future or not?

Thank you very much
RobAndrew
 
Posts: 141
Joined: Thu Jul 12, 2018 5:59 pm
Callsign: G-RAND
Version: 2020.
OS: Windows 10

PreviousNext

Return to Nasal

Who is online

Users browsing this forum: No registered users and 5 guests