-
Notifications
You must be signed in to change notification settings - Fork 109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding 5579a87
A simple equality check does not work. Note the fixed length format of airway.icaos. It's not just a list of identifiers, but contains more information.
Index 0: Type (A=Airport, V=VOR, W or I = Waypoint or Intersection, etc.)
Index 1 and following: I assume that's the region
Index 7, 8, 9, 10, 11: Identifier, padded with spaces for shorter than 5 character waypoints
airway.icaos = ["VEB NIK ","WEB DENUT","WEB LUMEN","WEB BULAM","WEB DIBLI","WEG RAPIX","WEG SUNUP","WEG TEBRA","WEG KOPUL","WEG UNSAD","WEG NILON","WEG GILDA","VEG LAM ","WEG HEMEL","WLT EKSEN","WLT EKMIM","WLT UPKUL","WLT EMKUD","WLT OSGED","WLT PESOX","WLT SIVKU","WLT APSER","WLT ETAMP","WLT EMGIM","VLT YAA ","VLT IST ","WLT FENER","WLB VADEN","WLY UTEKA","WLY DONIV","WLY PELOV","WLY TISAK","WLY TONDO","WED RENKA","WED GONBA","WED STAUB","WED MAMOR","WED UNKUL","WED UPALA","WED INBED","WED AMOSA","WED IBAGA","WED BARSU","WED KOMIB","WED TUSOS","WED BIBEG"]
With the following code in line 448, I was able to add the NIK -> L610 -> LAM airway
let lastWaypointIcao = airway.icaos.find(icao => icao.substring(7, 12) === lastWaypointIdent.padEnd(5, " "));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate comment. Removed.
@tscharlii i see. i switched up icao and ident and didnt properly look into it because it was late ^^ |
Temporarily removes current highlighted index jumping to your last completed section
…FS-Mods/fspackages into CJ4-0.4.1-Fixes
…mprovements Add passenger briefing announcements Restrict only one announcement to play at once Add chime to seatbelt lights Improvements to climate control knob sound Fix passenger sounds stopping when switching to outside view Fix chime playing when battery is turned on
Fix Bugs!
TODO
Things we don't fix here we should create issues for after release
Audio (still on another branch)