-
Content Count
5,767 -
Donations
$0.00 -
Joined
-
Last visited
Community Reputation
2,027 ExcellentAbout Lorby_SI
-
Rank
Developer
Contact Methods
-
Website URL
http://www.lorby-si.com
Profile Information
-
Gender
Male
Flight Sim Profile
-
Commercial Member
No
-
Online Flight Organization Membership
none
-
Virtual Airlines
No
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
If you wonder how to refresh the EFB "mid-flight", for example if you swap the background image when the simulation is already running - there may be a solution, but it is not for the faint of heart. And it will completely reset the EFB. In theory this should then show the new background image. 0. Make sure that the sim is not running. 1. Find this file: \Community\fnx-aircraft-320\html_ui\Pages\VCockpit\Instruments\FNX32X\EFB\EFB_Captain.js and open it in Notepad++ 2. Change the code to this (new code in bold font) 3. Save. Now you can force a refresh by triggering the LVar from AAO or any other app: 1 (>L:REFRESH_EFB_CAPT, Number) -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
Two additional helpful SimBrief scripts: https://www.avsim.com/forums/topic/643187-simbrief-read-wind-information/?do=findComment&comment=5080391 -
A few additional helpful AAO scripts: This opens SimBrief ready to input a new flight (EXEC:https://dispatch.simbrief.com/options/new) This downloads the entire OFP package from SimBrief into a file "ofp.xml" on your desktop. This can be opened and read with any text editor. (WSH:jscript|AaoEntry) function AaoEntry(){ // your SimBrief user name goes here var sbuser = '<yoursimbriefnamehere>'; // query SimBrief var xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); var commandStr = "https://www.simbrief.com/api/xml.fetcher.php?username=" + sbuser; xmlHttpReq.open("POST", commandStr, false); xmlHttpReq.send(); var content = xmlHttpReq.responseText; var fso = new ActiveXObject("Scripting.FileSystemObject"); // your Windows user name goes here var outFile = fso.OpenTextFile("C:\\Users\\<yourusername>\\Desktop\\ofp.xml", 2, true, -1); outFile.Write(content); outFile.Close(); }
-
Visibility Variable on Rotary Encoder Icon Text?
Lorby_SI replied to EuroTexan's topic in AxisAndOhs Support
These "blocks" are default assets of the touch strip, we only have limited control over them. I would recommend using the "Rotary Encoder Canvas" instead? This Action works like a Multigauge (=you can layer images and text over each other, with animations, visibility and transparency), and you are free to design the touch strip any way you want. -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
I'm sorry, but after checking it our with the latest version of the Fenix, I have come to the conclusion that my idea won't work. The sim is not reporting the actual location of the aircraft.cfg in use at all, it is always pointing at the "Master" file in the Fenix folders. It is not possible to find the correct file that way. The only option would be if you combine all aircraft.cfgs into one and point the script at that files. But honestly, I would stick to SimBrief. That sounds like the best solution to me. -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
Correct. You would have to make a new aircraft.cfg somewhere else, where you simply collect all the others into one single file. Then point the script at that, it should be able to figure it out. The next version of AAO will have an LVar "(L:AirFile, String)" that will (for MSFS) contain the current path to the airfile.cfg. It is up to you to send me that email 🙂 -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
(WSH:jscript|AaoEntry) function AaoEntry(){ var acTitle = (A:TITLE, String); var fso = new ActiveXObject("Scripting.FileSystemObject"); var acfg = "<pathtoyourcommunityfolder>\\fnx-aircraft-320\\SimObjects\\Airplanes\\FNX_320_CFM\\aircraft.cfg"; if (fso.FileExists(acfg)){ var tStream = fso.OpenTextFile(acfg, 1, false, 0); var text = tStream.ReadAll(); tStream .close(); var sPos = text.indexOf("\"" + acTitle + "\""); if (sPos > 0){ sPos = text.indexOf("atc_parking_codes", sPos); if (sPos > 0){ sPos = text.indexOf("\"", sPos) + 1; var ePos = text.indexOf("\"", sPos); if (ePos > 0){ var acIcao = text.substring(sPos + 1, ePos); var srcImgName = "C:\\ProgramData\\Fenix\\FenixSim A320\\efb\\img\\" + acIcao + ".jpg"; var trgImgName = "C:\\ProgramData\\Fenix\\FenixSim A320\\efb\\img\\bg.jpg"; fso.CopyFile(srcImgName, trgImgName, true); } } } } } -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
It is quite simple. It reads the contents of the aircraft.cfg into a single string variable. Then it tries to find the position where the model that you are currently flying is defined (Title="Value from the AVar"). If it can locate that, then it will try to find the airline tag. The problem here is, that the developer of the livery has probably written the "Title=" part differently from what the script expects, so it can't even find that. I am currently looking at an aircraft.cfg that I have for the Fenix, and that file doesn't even have the icao_airline property in it. So the whole exercise is probably pointless, the parser in the script would have to be a lot smarter - and the developers would have to be more dilligent. I guess the "atc_parking_codes" property is more what you need? [VERSION] major = 1 minor = 0 [VARIATION] base_container = "..\fnx320" [FLTSIM.0] title = "FenixA320_AZAIBIKD" model = "" panel = "" sound = "" texture = "AZAIBIKD" description = "Description placeholder" wip_indicator = 2 ui_manufacturer = "Airbus" ui_type = "A320" ui_variation = "Alitalia 'Classic'" ui_typerole = "Commercial Airliner" ui_createdby = "Fenix Simulations" ui_certified_ceiling = 39800 ui_max_range = 3500 ui_autonomy = 7 ui_fuel_burn_rate = 5300 atc_id = "I-BIKD" atc_airline = "Alitalia" atc_flight_number = "1123" atc_heavy = 0 atc_parking_types = "GATE,RAMP,CARGO" atc_parking_codes = "AZA" isUserSelectable = 1 isAirTraffic = 0 canBeUsedByAITraffic = 0 -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
Please take note of my text above. Your script will always only find this one livery - and none of the others. Because in this aircraft.cfg there is only the one. I only see two options: 1. You create an aircraft.cfg of your own in a different location, where you collect all the required information (the [FLTSIM:] sections) of all the aircraft.cfg that belong to the Fenix or 2. You send me an email with your proof of purchase to the support address (last page of the AAO manual). I can add an LVar that contains the path to the current aircraft configuration in MSFS, but I can only do that in a new AAO version. Be mindful that my current development version has already been compiled towards SU15 -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
I'm sorry, but that can't be the correct file. It is in the completely wrong place. "The" aircraft.cfg is always where the SimObject is, for example here: \Community\fnx-aircraft-320\SimObjects\Airplanes\FNX_320_CFM\aircraft.cfg \Community\fnx-aircraft-320-AZAIBIKD\SimObjects\Airplanes\FNX320_AZAIBIKD\aircraft.cfg The Fenix can have a multitude of aircraft.cfgs, because the different "liveries" are actually different aircraft altogether. On my computer I have 8 different aircraft.cfg for the Fenix. Unless I change AAO to tell you the actual path to the current file, you would have to "fake" an aircraft.cfg of your own where you combine all the [FLTSIM.x] sections of all the other aircraft.cfg files. -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
(WSH:jscript|AaoEntry) function AaoEntry(){ var acTitle = (A:TITLE, String); var fso = new ActiveXObject("Scripting.FileSystemObject"); var acfg = "<pathtoyourcommunityfolder>\\fnx-aircraft-320\\SimObjects\\Airplanes\\FNX_320_CFM\\aircraft.cfg"; if (fso.FileExists(acfg)){ var tStream = fso.OpenTextFile(acfg, 1, false, 0); var text = tStream.ReadAll(); tStream .close(); var sPos = text.indexOf("Title=\"" + acTitle + "\""); if (sPos > 0){ sPos = text.indexOf("icao_airline=", sPos); if (sPos > 0){ var ePos = text.indexOf("\"", sPos + 15); if (ePos > 0){ var acIcao = text.substring(sPos + 14, ePos); var srcImgName = "C:\\ProgramData\\Fenix\\FenixSim A320\\efb\\img\\" + acIcao + ".jpg"; var trgImgName = "C:\\ProgramData\\Fenix\\FenixSim A320\\efb\\img\\bg.jpg"; fso.CopyFile(srcImgName, trgImgName, true); } } } } } Be mindful that the Fenix has more than one aircraft.cfg. AAO theoretically knows the path to each cfg and could write it into an LVar - but not in the version you have, this would have to be coded in the next version of AAO. The parser above is very dumb. It assumes that every aircraft.cfg of the Fenix will look the same (=identical upper/lower case, same amount of spaces and quotes.) It will be up to you to make sure that this is indeed the case. -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
Done. -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
That would only work for non-Marketplace aircraft. You could write a JScript program that reads (A:TITLE, String), then loads the Fenix's aircraft.cfg (you know where that is) and then parses the desired information. -
Fenix change the EFB wallpaper automatically ICAO
Lorby_SI replied to ptimale's topic in AxisAndOhs Support
The command in AAO is supposed to overwrite the target. -
So - did you use my script above? Did it do what you wanted? Should it be doing something else? What is the use case here? Isn't that value just a prediction, outdated once you actually get to that point?