Jump to content
The simFlight Network Forums

[Updated Post] Tail Number replaced by Airline Call Sign (Need to identify ATC traffic)


Recommended Posts

Hey everyone,

Within the past 24 hours I was clueless to what I was even attempting to do and now I have got a pretty good idea and some basic functionality going. I am trying to make a Discord Bot that sits on FSX Host Computer that will see all the Tail Signs for the Different Airplanes in the server and will move the Channel they are in based on the COM1 Frequency selected by the Pilot. I have gotten it working on an individual level using Address 313C for the Tail Number and Address 034E for the COM1 Frequency. Now I want to do this but for all the Air/Ground traffic. For example in this case assuming there is a single Aircraft on the server I would be able to see the Tail Number using Address E096 which is the AI ground traffic ATC id[1]* and the COM1 Frequency using Address E0A6.

*Note this is for ground traffic but works the same way if the Aircraft is in the air.

The problem I am running into is showed in the picture below. For some reason FSUIPC will replace the Tail Number with the Airline Call Sign. This could show up as "Navy" or "Pacifica" but the problem is I am getting duplicates with no way of identifying each aircraft individually therefore breaking my Bot. 

 

I hope this helps clarify my situation. I was looking into Address D000 and F000 as shown in the FSUIPC4 Offsets Status document but I am not good with Bytes and don't really understand offsets. I really want to make this bot for the Flight Sim Community once its stable I will release it on GitHub. I hate how terrible in-game communications are and always wanted get use out of the Plane Radios with Discord. I believe every server should just be able to open a Jar file input a few variables and have realistic COMs. Any help is greatly appreciated! Screenshot of the Interrogate is below and I also posted a quick GIF of my current progress. 

 

Thanks everyone!

 

CrazzMC

 

cXB6SE6.png

As you can see below it doesn't pick up G-BAFM, N-ACAB, UKR1337 and NAVAD163. But it does pick up the local guys. Problem is it replaces NAV001 with NAVY. Not sure where the tailsign goes.

 

DiscordCommer.gif

Here you can see I get it working if the "Pilot" has the script running, but this isn't that nice as I would rather have the script running on the Server Host computer. 

Edited by crazzmc
Necessary clarification
Link to comment
Share on other sites

Hi CrazzMC,

On 8/12/2019 at 5:39 PM, crazzmc said:

For some reason FSUIPC will replace the Tail Number with the Airline Call Sign.

Are you sure its not just the Airline? If the state of the AI aircraft is 'Initialising' (128) or 'Sleeping' (129), then you will get just the 'Airline'.

Note that you can also change the ATC id used using the TCASid parameter, which can be changed from FSUIPC's Miscellaneous tab - see the Advanced User Guide (p5).

You can also try the attached lua script which will log all 96 ground/air slots for you - drop it into your modules folder and assign it to a key or button press. This gives output such as the following:

Quote

765450 LUA.0: Ground slot 0: id=-452, idATC=SHAMROCK , bState=128, com1=2485
   765450 LUA.0: Airborne slot 0: id=-469, idATC=SHAMROCK 245, bState=140, com1=1847
   765450 LUA.0: Ground slot 1: id=-460, idATC=SHAMROCK , bState=129, com1=2485
   765450 LUA.0: Airborne slot 1: id=-471, idATC=RYANAIR 8206, bState=140, com1=1847
   765450 LUA.0: Ground slot 2: id=-477, idATC=AIR CHINA , bState=129, com1=2485
   765450 LUA.0: Airborne slot 2: id=-487, idATC=EASY 3215, bState=140, com1=1847
   765450 LUA.0: Ground slot 3: id=-486, idATC=AIRFRANS , bState=129, com1=2485
   765450 LUA.0: Airborne slot 3: id=-490, idATC=Pacifica 132, bState=140, com1=1847
   765450 LUA.0: Ground slot 4: id=-495, idATC=AIRFRANS , bState=128, com1=2485
   765466 LUA.0: Airborne slot 4: id=-496, idATC=EASY 263, bState=140, com1=1847
   765466 LUA.0: Ground slot 5: id=-504, idATC=SPEED BIRD , bState=129, com1=2485
   765466 LUA.0: Airborne slot 5: id=-503, idATC=G-JGJG, bState=140, com1=2330
   765466 LUA.0: Ground slot 6: id=-519, idATC=SPEED BIRD , bState=129, com1=2485
   765466 LUA.0: Airborne slot 6: id=-505, idATC=EASY 239, bState=140, com1=1847
   765466 LUA.0: Ground slot 7: id=-537, idATC=SPEED BIRD , bState=129, com1=2485
   765466 LUA.0: Airborne slot 7: id=-518, idATC=G-VTDN, bState=140, com1=2725
   765466 LUA.0: Ground slot 8: id=-538, idATC=EMIRATES , bState=129, com1=2485
   765466 LUA.0: Airborne slot 8: id=-520, idATC=EASY 214, bState=140, com1=1847
   765466 LUA.0: Ground slot 9: id=-546, idATC=SPEED BIRD , bState=129, com1=2485
   765466 LUA.0: Airborne slot 9: id=-521, idATC=Orbit 751, bState=140, com1=1847
   765482 LUA.0: Ground slot 10: id=-554, idATC=SPEED BIRD , bState=129, com1=2485
   765482 LUA.0: Airborne slot 10: id=-528, idATC=SPEED BIRD 11, bState=140, com1=1847
   765482 LUA.0: Ground slot 11: id=-560, idATC=SPEED BIRD , bState=129, com1=2485
   765482 LUA.0: Airborne slot 11: id=-536, idATC=Orbit 207, bState=140, com1=1847
   765482 LUA.0: Ground slot 12: id=-566, idATC=SPEED BIRD , bState=129, com1=2485
   765482 LUA.0: Airborne slot 12: id=-541, idATC=G-DAGR, bState=140, com1=1847
   765482 LUA.0: Ground slot 13: id=-849, idATC=Orbit , bState=129, com1=2485
   765482 LUA.0: Airborne slot 13: id=0, idATC=World Tra 9478, bState=140, com1=1847
   765482 LUA.0: Ground slot 14: id=-583, idATC=SPEED BIRD , bState=129, com1=2485
   765482 LUA.0: Airborne slot 14: id=-584, idATC=RYANAIR 281, bState=140, com1=1972
   765497 LUA.0: Ground slot 15: id=-588, idATC=SPEED BIRD , bState=129, com1=2485
   765497 LUA.0: Airborne slot 15: id=-591, idATC=EASY 8217, bState=140, com1=1847
   765497 LUA.0: Ground slot 16: id=-593, idATC=SPEED BIRD , bState=129, com1=2485
   765497 LUA.0: Airborne slot 16: id=-594, idATC=RYANAIR 5998, bState=140, com1=1847
   765497 LUA.0: Ground slot 17: id=-598, idATC=SPEED BIRD , bState=129, com1=2485
   765497 LUA.0: Airborne slot 17: id=-611, idATC=SPEED BIRD 239, bState=140, com1=1847
   765497 LUA.0: Ground slot 18: id=-603, idATC=SPEED BIRD , bState=129, com1=2485
   765497 LUA.0: Airborne slot 18: id=-629, idATC=RYANAIR 1183, bState=140, com1=1847
   765497 LUA.0: Ground slot 19: id=-607, idATC=SPEED BIRD , bState=129, com1=2485
   765497 LUA.0: Airborne slot 19: id=-645, idATC=VUELING 7293, bState=140, com1=2315
   765497 LUA.0: Ground slot 20: id=-615, idATC=SPEED BIRD , bState=129, com1=2485
   765497 LUA.0: Airborne slot 20: id=-648, idATC=AIR PORTUG 346, bState=140, com1=1847
   765497 LUA.0: Ground slot 21: id=-619, idATC=SPEED BIRD , bState=129, com1=2485
   765513 LUA.0: Airborne slot 21: id=-672, idATC=Pacifica 6977, bState=140, com1=3077
   765513 LUA.0: Ground slot 22: id=-623, idATC=SPEED BIRD , bState=129, com1=2485
   765513 LUA.0: Airborne slot 22: id=-681, idATC=F-GGNM, bState=140, com1=1840
   765513 LUA.0: Ground slot 23: id=-627, idATC=SPEED BIRD , bState=129, com1=2485
   765513 LUA.0: Airborne slot 23: id=-694, idATC=G-VLZQ, bState=140, com1=3517
   765513 LUA.0: Ground slot 24: id=-631, idATC=SPEED BIRD , bState=129, com1=2485
   765513 LUA.0: Airborne slot 24: id=-708, idATC=Orbit 1524, bState=140, com1=1847
   765513 LUA.0: Ground slot 25: id=-635, idATC=SPEED BIRD , bState=129, com1=2485
   765513 LUA.0: Airborne slot 25: id=-729, idATC=G-SLXM, bState=140, com1=1972
   765528 LUA.0: Ground slot 26: id=-639, idATC=SPEED BIRD , bState=129, com1=2485
   765528 LUA.0: Airborne slot 26: id=-730, idATC=G-ZTBB, bState=140, com1=1895
   765528 LUA.0: Ground slot 27: id=-640, idATC=SPRINGBOK , bState=129, com1=2485
   765528 LUA.0: Airborne slot 27: id=-732, idATC=Orbit 1971, bState=140, com1=1972
   765528 LUA.0: Ground slot 28: id=-643, idATC=SPEED BIRD , bState=129, com1=2485
   765528 LUA.0: Airborne slot 28: id=-733, idATC=World Tra 3064, bState=140, com1=2525
   765528 LUA.0: Ground slot 29: id=-851, idATC=Pacifica , bState=129, com1=2485
   765528 LUA.0: Airborne slot 29: id=-739, idATC=F-VAMB, bState=140, com1=1895
   765528 LUA.0: Ground slot 30: id=-651, idATC=SPEED BIRD , bState=129, com1=2485
   765544 LUA.0: Airborne slot 30: id=-742, idATC=World Tra 9733, bState=140, com1=1847
   765544 LUA.0: Ground slot 31: id=-655, idATC=SPEED BIRD , bState=129, com1=2485
   765544 LUA.0: Airborne slot 31: id=-743, idATC=SPEED BIRD 987, bState=140, com1=1847
   765544 LUA.0: Ground slot 32: id=-659, idATC=SPEED BIRD , bState=129, com1=2485
   765544 LUA.0: Airborne slot 32: id=-745, idATC=EC-SGG, bState=140, com1=1895
   765544 LUA.0: Ground slot 33: id=-856, idATC=World Travel , bState=129, com1=2485
   765544 LUA.0: Airborne slot 33: id=-746, idATC=SPEED BIRD 851, bState=140, com1=1847
   765544 LUA.0: Ground slot 34: id=-667, idATC=SPEED BIRD , bState=128, com1=2485
   765560 LUA.0: Airborne slot 34: id=-747, idATC=F-EANR, bState=140, com1=1840
   765560 LUA.0: Ground slot 35: id=-671, idATC=SPEED BIRD , bState=129, com1=2485
   765560 LUA.0: Airborne slot 35: id=-748, idATC=SPEED BIR 1419, bState=140, com1=1847
   765560 LUA.0: Ground slot 36: id=-674, idATC=SPEED BIRD , bState=129, com1=2485
   765560 LUA.0: Airborne slot 36: id=-750, idATC=SPEED BIRD 234, bState=140, com1=1847
   765560 LUA.0: Ground slot 37: id=-677, idATC=SPEED BIRD , bState=129, com1=2485
   765560 LUA.0: Airborne slot 37: id=-753, idATC=Orbit 6215, bState=140, com1=1972
   765560 LUA.0: Ground slot 38: id=-680, idATC=SPEED BIRD , bState=129, com1=2485
   765560 LUA.0: Airborne slot 38: id=-754, idATC=EASTFLIGH 9701, bState=140, com1=1847
   765560 LUA.0: Ground slot 39: id=-683, idATC=SPEED BIRD , bState=128, com1=2485
   765575 LUA.0: Airborne slot 39: id=-756, idATC=EASY 2093, bState=140, com1=2645
   765575 LUA.0: Ground slot 40: id=-686, idATC=SPEED BIRD , bState=129, com1=2485
   765575 LUA.0: Airborne slot 40: id=-764, idATC=JERSEY 1360, bState=140, com1=1847
   765575 LUA.0: Ground slot 41: id=-689, idATC=SPEED BIRD , bState=129, com1=2485
   765575 LUA.0: Airborne slot 41: id=-770, idATC=LUFTHANSA 2482, bState=140, com1=1847
   765575 LUA.0: Ground slot 42: id=-692, idATC=SPEED BIRD , bState=129, com1=2485
   765575 LUA.0: Airborne slot 42: id=-772, idATC=G-QTCZ, bState=140, com1=3077
   765575 LUA.0: Ground slot 43: id=-695, idATC=SPEED BIRD , bState=129, com1=2485
   765575 LUA.0: Airborne slot 43: id=-777, idATC=QATARI 15, bState=140, com1=1847
   765575 LUA.0: Ground slot 44: id=-698, idATC=SPEED BIRD , bState=129, com1=2485
   765575 LUA.0: Airborne slot 44: id=-780, idATC=RYANAIR 8348, bState=140, com1=1847
   765575 LUA.0: Ground slot 45: id=-701, idATC=SPEED BIRD , bState=129, com1=2485
   765575 LUA.0: Airborne slot 45: id=-797, idATC=WIZZAIR 1309, bState=140, com1=1847
   765575 LUA.0: Ground slot 46: id=-704, idATC=SPEED BIRD , bState=129, com1=2485
   765575 LUA.0: Airborne slot 46: id=-816, idATC=Orbit 3850, bState=140, com1=1847
   765575 LUA.0: Ground slot 47: id=-848, idATC=World Travel , bState=129, com1=2485
   765591 LUA.0: Airborne slot 47: id=-817, idATC=American  6374, bState=140, com1=1972
   765591 LUA.0: Ground slot 48: id=-710, idATC=SPEED BIRD , bState=129, com1=2485
   765591 LUA.0: Airborne slot 48: id=-826, idATC=World Tra 7186, bState=140, com1=1972
   765591 LUA.0: Ground slot 49: id=-713, idATC=SPEED BIRD , bState=129, com1=2485
   765591 LUA.0: Airborne slot 49: id=-839, idATC=G-YUVS, bState=140, com1=2330
   765591 LUA.0: Ground slot 50: id=-845, idATC=World Travel , bState=129, com1=2485
   765591 LUA.0: Airborne slot 50: id=-841, idATC=Orbit 4662, bState=140, com1=2645
   765591 LUA.0: Ground slot 51: id=-719, idATC=SPEED BIRD , bState=129, com1=2485
   765591 LUA.0: Airborne slot 51: id=-855, idATC=F-VYHG, bState=140, com1=2875
   765591 LUA.0: Ground slot 52: id=-722, idATC=SPEED BIRD , bState=129, com1=2485
   765591 LUA.0: Airborne slot 52: id=0, idATC=, bState=0, com1=0
   765591 LUA.0: Ground slot 53: id=-725, idATC=SPEED BIRD , bState=129, com1=2485
   765591 LUA.0: Airborne slot 53: id=0, idATC=, bState=0, com1=0
   765591 LUA.0: Ground slot 54: id=-846, idATC=Orbit , bState=129, com1=2485
   765591 LUA.0: Airborne slot 54: id=0, idATC=, bState=0, com1=0
   765606 LUA.0: Ground slot 55: id=-731, idATC=SPEED BIRD , bState=129, com1=2485
   765606 LUA.0: Airborne slot 55: id=0, idATC=, bState=0, com1=0
   765606 LUA.0: Ground slot 56: id=-734, idATC=SPEED BIRD , bState=129, com1=2485
   765606 LUA.0: Airborne slot 56: id=0, idATC=, bState=0, com1=0
   765606 LUA.0: Ground slot 57: id=-737, idATC=SPEED BIRD , bState=129, com1=2485
   765606 LUA.0: Airborne slot 57: id=0, idATC=, bState=0, com1=0
   765606 LUA.0: Ground slot 58: id=-740, idATC=SPEED BIRD , bState=129, com1=2485
   765606 LUA.0: Airborne slot 58: id=0, idATC=, bState=0, com1=0
   765606 LUA.0: Ground slot 59: id=-752, idATC=CATHAY , bState=129, com1=2485
   765606 LUA.0: Airborne slot 59: id=0, idATC=, bState=0, com1=0
   765606 LUA.0: Ground slot 60: id=-760, idATC=JERSEY , bState=129, com1=2485
   765606 LUA.0: Airborne slot 60: id=0, idATC=, bState=0, com1=0
   765606 LUA.0: Ground slot 61: id=-762, idATC=JERSEY , bState=129, com1=2485
   765606 LUA.0: Airborne slot 61: id=0, idATC=, bState=0, com1=0
   765606 LUA.0: Ground slot 62: id=-766, idATC=KLM , bState=129, com1=2485
   765606 LUA.0: Airborne slot 62: id=0, idATC=, bState=0, com1=0
   765622 LUA.0: Ground slot 63: id=-768, idATC=LUFTHANSA , bState=129, com1=2485
   765622 LUA.0: Airborne slot 63: id=0, idATC=, bState=0, com1=0
   765622 LUA.0: Ground slot 64: id=-773, idATC=QANTAS , bState=129, com1=2485
   765622 LUA.0: Airborne slot 64: id=0, idATC=, bState=0, com1=0
   765622 LUA.0: Ground slot 65: id=-853, idATC=Pacifica , bState=129, com1=2485
   765622 LUA.0: Airborne slot 65: id=0, idATC=, bState=0, com1=0
   765622 LUA.0: Ground slot 66: id=-837, idATC=Pacifica , bState=129, com1=2485
   765622 LUA.0: Airborne slot 66: id=0, idATC=, bState=0, com1=0
   765622 LUA.0: Ground slot 67: id=-850, idATC=Pacifica , bState=129, com1=2485
   765622 LUA.0: Airborne slot 67: id=0, idATC=, bState=0, com1=0
   765622 LUA.0: Ground slot 68: id=-783, idATC=SRILANKAN , bState=129, com1=2485
   765622 LUA.0: Airborne slot 68: id=0, idATC=, bState=0, com1=0
   765622 LUA.0: Ground slot 69: id=-784, idATC=SWISS , bState=128, com1=2485
   765622 LUA.0: Airborne slot 69: id=0, idATC=, bState=0, com1=0
   765622 LUA.0: Ground slot 70: id=-832, idATC=Pacifica , bState=129, com1=2485
   765638 LUA.0: Airborne slot 70: id=0, idATC=, bState=0, com1=0
   765638 LUA.0: Ground slot 71: id=-840, idATC=Pacifica , bState=129, com1=2485
   765638 LUA.0: Airborne slot 71: id=0, idATC=, bState=0, com1=0
   765638 LUA.0: Ground slot 72: id=-836, idATC=World Travel , bState=129, com1=2485
   765638 LUA.0: Airborne slot 72: id=0, idATC=, bState=0, com1=0
   765638 LUA.0: Ground slot 73: id=-835, idATC=Pacifica , bState=129, com1=2485
   765638 LUA.0: Airborne slot 73: id=0, idATC=, bState=0, com1=0
   765638 LUA.0: Ground slot 74: id=-794, idATC=VUELING , bState=129, com1=2485
   765638 LUA.0: Airborne slot 74: id=0, idATC=, bState=0, com1=0
   765638 LUA.0: Ground slot 75: id=-795, idATC=VUELING , bState=129, com1=2485
   765638 LUA.0: Airborne slot 75: id=0, idATC=, bState=0, com1=0
   765638 LUA.0: Ground slot 76: id=-800, idATC=G-BZQC, bState=128, com1=2485
   765638 LUA.0: Airborne slot 76: id=0, idATC=, bState=0, com1=0
   765638 LUA.0: Ground slot 77: id=-801, idATC=Orbit , bState=128, com1=2485
   765638 LUA.0: Airborne slot 77: id=0, idATC=, bState=0, com1=0
   765653 LUA.0: Ground slot 78: id=-802, idATC=World Travel , bState=128, com1=2485
   765653 LUA.0: Airborne slot 78: id=0, idATC=, bState=0, com1=0
   765653 LUA.0: Ground slot 79: id=-803, idATC=Orbit , bState=129, com1=2485
   765653 LUA.0: Airborne slot 79: id=0, idATC=, bState=0, com1=0
   765653 LUA.0: Ground slot 80: id=-804, idATC=World Travel , bState=129, com1=2485
   765653 LUA.0: Airborne slot 80: id=0, idATC=, bState=0, com1=0
   765653 LUA.0: Ground slot 81: id=-808, idATC=Orbit , bState=129, com1=2485
   765653 LUA.0: Airborne slot 81: id=0, idATC=, bState=0, com1=0
   765653 LUA.0: Ground slot 82: id=-809, idATC=World Travel , bState=129, com1=2485
   765653 LUA.0: Airborne slot 82: id=0, idATC=, bState=0, com1=0
   765653 LUA.0: Ground slot 83: id=-812, idATC=D-ASPQ, bState=129, com1=2485
   765653 LUA.0: Airborne slot 83: id=0, idATC=, bState=0, com1=0
   765653 LUA.0: Ground slot 84: id=-813, idATC=Pacifica , bState=129, com1=2485
   765653 LUA.0: Airborne slot 84: id=0, idATC=, bState=0, com1=0
   765653 LUA.0: Ground slot 85: id=-815, idATC=Orbit , bState=129, com1=2485
   765653 LUA.0: Airborne slot 85: id=0, idATC=, bState=0, com1=0
   765669 LUA.0: Ground slot 86: id=-818, idATC=American Paci , bState=129, com1=2485
   765669 LUA.0: Airborne slot 86: id=0, idATC=, bState=0, com1=0
   765669 LUA.0: Ground slot 87: id=-820, idATC=Orbit , bState=129, com1=2485
   765669 LUA.0: Airborne slot 87: id=0, idATC=, bState=0, com1=0
   765669 LUA.0: Ground slot 88: id=-822, idATC=Orbit , bState=129, com1=2485
   765669 LUA.0: Airborne slot 88: id=0, idATC=, bState=0, com1=0
   765669 LUA.0: Ground slot 89: id=-823, idATC=Pacifica , bState=129, com1=2485
   765669 LUA.0: Airborne slot 89: id=0, idATC=, bState=0, com1=0
   765669 LUA.0: Ground slot 90: id=-825, idATC=Pacifica , bState=129, com1=2485
   765669 LUA.0: Airborne slot 90: id=0, idATC=, bState=0, com1=0
   765669 LUA.0: Ground slot 91: id=-827, idATC=Pacifica , bState=128, com1=2485
   765669 LUA.0: Airborne slot 91: id=0, idATC=, bState=0, com1=0
   765669 LUA.0: Ground slot 92: id=-828, idATC=Pacifica , bState=129, com1=2485
   765669 LUA.0: Airborne slot 92: id=0, idATC=, bState=0, com1=0
   765669 LUA.0: Ground slot 93: id=-859, idATC=Orbit , bState=129, com1=2485
   765684 LUA.0: Airborne slot 93: id=0, idATC=, bState=0, com1=0
   765684 LUA.0: Ground slot 94: id=-834, idATC=Pacifica , bState=129, com1=2485
   765684 LUA.0: Airborne slot 94: id=0, idATC=, bState=0, com1=0
   765684 LUA.0: Ground slot 95: id=-831, idATC=Orbit , bState=129, com1=2485
   765684 LUA.0: Airborne slot 95: id=0, idATC=, bState=0, com1=0

John

 

logAI.lua

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.