rkusa / DATIS

DCS World Automatic Terminal Information Service (ATIS) broadcasted through Simple Radio Standalone (SRS)
MIT License
90 stars 21 forks source link

DATIS does not work with dedicated server (1.0.0-beta.2) #45

Closed hawaiianryan808 closed 4 years ago

hawaiianryan808 commented 4 years ago

1.0.0-beta.2 seems to work when you run multiplayer from the full game GUI, but when you run a dedicated server instance, none of the ATIS stations work.

DCS version 2.5.6.47404.

SRS version 1.8.0.2.

Seems to have broken after DATIS 1.0.0-alpha.10.

Here's a log sample:

2020-05-07T10:29:34.409677400-04:00 INFO datis - Starting DATIS version 1.0.0-beta.2 ...
2020-05-07T10:29:34.409677400-04:00 INFO datis::mission - Using SRS Server port: 5002
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission - ATIS Stations:
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission -   - Laughlin Airport (Freq: 119825000, Voice: Windows built-in TTS (Voice: "David"))
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission -   - Henderson Executive Airport (Freq: 120775000, Voice: Windows built-in TTS (Voice: "David"))
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission -   - Creech AFB (Freq: 290450000, Voice: Windows built-in TTS (Voice: "David"))
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission -   - McCarran International Airport (Freq: 132400000, Voice: Windows built-in TTS (Voice: "David"))
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission -   - North Las Vegas (Freq: 118050000, Voice: Windows built-in TTS (Voice: "David"))
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission -   - Boulder City Airport (Freq: 118475000, Voice: Windows built-in TTS (Voice: "David"))
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission -   - Tonopah Test Range Airfield (Freq: 118100000, Voice: Windows built-in TTS (Voice: "David"))
2020-05-07T10:29:34.753435200-04:00 INFO datis::mission -   - Nellis AFB (Freq: 122000000, Voice: Windows built-in TTS (Voice: "David"))
2020-05-07T10:29:34.956564900-04:00 INFO datis::mission - No Carrier stations found ...
2020-05-07T10:29:35.159678600-04:00 INFO datis::mission - No custom Broadcast stations found ...
2020-05-07T10:29:35.159678600-04:00 INFO datis - Resuming ...
2020-05-07T10:29:36.159673600-04:00 ERROR datis_core - ATIS Laughlin Airport failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:29:36.159673600-04:00 INFO datis_core - Restarting ATIS Laughlin Airport in 60 seconds ...
2020-05-07T10:29:37.597174900-04:00 ERROR datis_core - ATIS Henderson Executive Airport failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:29:37.597174900-04:00 INFO datis_core - Restarting ATIS Henderson Executive Airport in 60 seconds ...
2020-05-07T10:29:38.394049500-04:00 ERROR datis_core - ATIS Creech AFB failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:29:38.394049500-04:00 INFO datis_core - Restarting ATIS Creech AFB in 60 seconds ...
2020-05-07T10:29:39.190928400-04:00 ERROR datis_core - ATIS McCarran International Airport failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:29:39.190928400-04:00 INFO datis_core - Restarting ATIS McCarran International Airport in 60 seconds ...
2020-05-07T10:29:39.987803500-04:00 ERROR datis_core - ATIS North Las Vegas failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:29:39.987803500-04:00 INFO datis_core - Restarting ATIS North Las Vegas in 60 seconds ...
2020-05-07T10:29:40.800313200-04:00 ERROR datis_core - ATIS Boulder City Airport failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:29:40.800313200-04:00 INFO datis_core - Restarting ATIS Boulder City Airport in 60 seconds ...
2020-05-07T10:29:41.628427600-04:00 ERROR datis_core - ATIS Tonopah Test Range Airfield failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:29:41.628427600-04:00 INFO datis_core - Restarting ATIS Tonopah Test Range Airfield in 60 seconds ...
2020-05-07T10:29:42.425301100-04:00 ERROR datis_core - ATIS Nellis AFB failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:29:42.425301100-04:00 INFO datis_core - Restarting ATIS Nellis AFB in 60 seconds ...
2020-05-07T10:30:36.300415300-04:00 ERROR datis_core - ATIS Laughlin Airport failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:30:36.300415300-04:00 INFO datis_core - Restarting ATIS Laughlin Airport in 60 seconds ...
2020-05-07T10:30:37.847499800-04:00 ERROR datis_core - ATIS Henderson Executive Airport failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:30:37.847499800-04:00 INFO datis_core - Restarting ATIS Henderson Executive Airport in 60 seconds ...
2020-05-07T10:30:38.628626300-04:00 ERROR datis_core - ATIS Creech AFB failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:30:38.628626300-04:00 INFO datis_core - Restarting ATIS Creech AFB in 60 seconds ...
2020-05-07T10:30:39.378088-04:00 ERROR datis_core - ATIS McCarran International Airport failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:30:39.378088-04:00 INFO datis_core - Restarting ATIS McCarran International Airport in 60 seconds ...
2020-05-07T10:30:40.134137200-04:00 ERROR datis_core - ATIS North Las Vegas failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:30:40.134137200-04:00 INFO datis_core - Restarting ATIS North Las Vegas in 60 seconds ...
2020-05-07T10:30:40.878344600-04:00 ERROR datis_core - ATIS Boulder City Airport failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:30:40.878344600-04:00 INFO datis_core - Restarting ATIS Boulder City Airport in 60 seconds ...
2020-05-07T10:30:42.378102400-04:00 ERROR datis_core - ATIS Tonopah Test Range Airfield failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:30:42.378102400-04:00 INFO datis_core - Restarting ATIS Tonopah Test Range Airfield in 60 seconds ...
2020-05-07T10:30:43.174977-04:00 ERROR datis_core - ATIS Nellis AFB failed: failed to get abs time: unknown method to_lat_lng
2020-05-07T10:30:43.174977-04:00 INFO datis_core - Restarting ATIS Nellis AFB in 60 seconds ...

DATIS.log

DATIS-debug.log

rkusa commented 4 years ago

Hi, thanks for the report! It works for me on a dedicated server, so could be that Scripts/Hooks/datis-hook.lua was not properly updated on your server? You can make sure by opening that file and searching for to_lat_lng. If it is not there, the file is not the most recent one.

In case you are comparing the GUI and dedicated Server on the same machine, is maybe one executed with another user account so that it uses another Saved Games/DCS directory?

hawaiianryan808 commented 4 years ago

Ah, you're right. My automatic script to copy files over to my server instances neglected the scripts/hooks directory!

All tested and working now. Thanks a bunch!