
Airbuspilot
Members-
Posts
149 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Everything posted by Airbuspilot
-
Thanks for your outstanding Support. I will try it tomorrow and hope, it will work. Hope, i can find an Example, how to use it exactly.
-
Hmmm, that seems not to work. Or maybe i am doing it wrong. I have build the Variablen.lua File, that holds all Variables, needed to operate my FlightLog.lua. In this File, there is an Entry declared global KiloPoundFaktor = 0.453592 Made the necessary Entry in FSUIPC.ini [Auto.B772] 1=Lua Variablen and [LuaFiles] 1=FlightLog 2=log lvars 3=record to csv 4=LvarsToTxt 5=Variablen But it seems, that the declared Variables are not "visible" for other Modules. Because running the FlightLog.lua leeds to this Error 363672 *** LUA Error: D:\Simulatoren\Fliegen\P3Dv32\Modules\FlightLog.lua:174: attempt to perform arithmetic on global 'KiloPoundFaktor' (a nil value) It makes also no Difference, if i declare that Variable as global or not. Everytime the same Error occurs. Any Idea to solve this?
-
Thanks for your Reply. The Value comes from an external Program (MS Access) and will be saved in B777FuelQty.txt. It is the only Entry in this File. Now i will read this with file = io.open("B777FuelQty.txt","r") InitialFuelQty = file:read() file:close() Let's say, the FileEntry is 15000. Is the above Code enough to assign 15000 in the File to the Variable InitialFuelQty in LUA? If so, how do i read more Entrys in a File, i.E. Line by Line or comma separated?
-
aaah, okay and thanks for your Response. I will try it out.
-
ipc.keypressplus with F-Keys
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
And i wondered, why the Search for the word keypress didn't show a Match. Thank you very, very much for your Help. -
ipc.keypressplus with F-Keys
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Hi Thomas, thanks for your Reply. Yes, the ASCII Table works fine for Characters and Numerics. But the Special Keys are not listed. In Petes Documents there is i.E. the ALT-Key described with the Numeric Code 16. Shift and Ctrl are listed with 1 and 2. These Codes doesn? t correspond with the ASCII Code Table. F-Keys are also not described in ASCII or Extended ASCII Tables. So, i asked for a Collection especially for LUA accepted Codes. Joachim -
First of all, thanks for your Reply. If this works for me too, that was pretty easy. If i understand that right, you have separate Lua Files created, they were named i.E. B777captain.lua? But, what is the "Connector" between [Auto.B777] and the separate Files? Do i have to make special Entrys in each File?
-
Hello together, is there a List, where all the LUA accepted KeyCodes are listed in one File? Especially the F-Keys, like F1, F2, etc.. Thanks in Advance for your Answers Joachim
-
PMDG 777X Open Door with LUA
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
No, normally, i do not read somethings, that are'nt there. But please understand my Point of View. When i ask for a Solution of a Problem, i did all i can before asking. I was very angry, when reading your Comment, if i am unable to add two Numbers. Let's calm down and forget it. Meanwhile, i solved this Problem. The Value to open a Door on the PMDG772 is 100. The Values, i tried, were much to small to make the Doors Movement visible. Joachim -
Hello together, again i have a Question. As we all know, have different Aircraft their different Needs. My actual Module blows up and grows bigger and bigger. I think, it is Time, to outsource the Aircraft Specific Code in separate Lua-Files for each Plane. So i want to build a Lua File as MainControl. This Module will call a Module, that holds all the needed global Variables in one Place and makes them visual for all following Steps. Then the MainControl reads the Aircraft Data from the Sim and decicdes, which Module for the specific Aircraft has to be called. For better understanding (i hope), i have made a WorkFlowSchema, that is attached. My Question now is, if this is possible. Also i need to know, how to call them. Do i have to call or is it enough to call them with the function() Command? Please keep in Mind, that i would create a separate for each Aircraft. Thanks in Advance for your Answers. Joachim
-
PMDG 777X Open Door with LUA
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Don't need a Calculator to calculate it. Did it with my Brain and composed it to ipc.control(83656,1) The only Thing here is, that this did'nt have any Effect. Also trying with ,0 and ,2 and ,3 and ,4 and at least with ,5. Without any Success. So, i thought, i had to calculate an other Way, i.E. by calculating in Hex or any other Prorammers Calculations. That's the Reason, why i asked. Sorry for asking. I will try to find Solutions in other Forums. You can close this Topic. Last but not least, i am not that dumb, that you maybe Think. -
PMDG 777X Open Door with LUA
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
I know, how to use the ipc.control. With this one ipc.control(66695,1), i operate the Jetway, if there is one and the Aircraft is a Passenger Jet. What i don't know, is how to compute the stated Number? Maybe somebody could help me, to put this Information, token from the 777 SDK, together to a ipc.control Command? #define THIRD_PARTY_EVENT_ID_MIN 0x00011000 // equals to 69632 and #define EVT_DOOR_CARGO_MAIN (THIRD_PARTY_EVENT_ID_MIN + 14024) Thanks in Advance to anybody, who will help. Joachim -
PMDG 777X Open Door with LUA
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Yes, there is something similar in the 777X SDK Folder. Unfortunally, i don't know, how to put this in a LUA Code, similar to my above given Example. Do you have a Hint for me please, how to realize i.E. (THIRD_PARTY_EVENT_ID_MIN + 14005) in a LUA-Code Line? Thanks in Advance Joachim -
PMDG 777X Open Door with LUA
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Hello Pete, thanks for your fast Reply. Afaik, yes. Only the Entry1L could be opened with the FS Door Toggle. Especially on the Freighter the Main Cargo Door could'nt be operated by FS Door Toggle Commands. Seems, this is only possible over the Menu key in the CDU. Here is my Lua Code, that should open the Main Cargo Door. DoorStateCM = ipc.readLvar("L:7X7XmaincargoDoor") if DoorStateCM == 0 then ipc.writeLvar("L:7X7XmaincargoDoor", 100) end If i execute this, the Door will flicker between open and Close. Do you have any Idea, what is wrong with that Code? Thanks again for your Help. Joachim -
Hello there, need a little Help or a Code Example for opening Doors on the PMDG 777X only by LUA-Script. I don't want to use Keys or Buttons to do that. In Example, the MainEntry1L should be opened, at the Moment, the GSX Stairway Car is placed. Could anbody please help, solving this Issue? Only the Code for opening the Door is needed. I am familiar with the Readout of GSX LVARS. Thanks in Advance Joachim
-
Hello Folks, again i will ask for a little Help. With those Lines of Code Monat, Tag = ipc.readStruct(0x0244, "2SB") Jahr = ipc.readSW(0x024A) Flugdatum = (string.format("%02d.%02d.%02d", Tag, Monat, Jahr)) Try to read out the Local Date Values. For Month and Year this works fine. But the Day doesn't fit the Day of the actual Date. Tried some other ReadValues like "2UW", "2UB", "2SW". It leads all to the same Result. Month and Year are correct, Day is not. I would be very glad, if someone could help. Thanks in Advance. Joachim
-
Data Entry in a Window
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Thanks for your Explanation. Understand your Words and will try ipc.ask. Joachim -
Data Entry in a Window
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Thanks for your fast Response, Pete. Yes, i meant a transparent and undockable Window. The User should be able, to use the Keyboard for entering some Information like TakeOffRunway, Gate, LandingRunway, etc.. Hope, i could express the right Way, what i want to do? Joachim -
Hello Folks, studying the LUA Manuals from Pete. Found something about displaying a User Window. Unfortunally i didn't found anything about the Possibility to enter Data in a Window and work with them in my LUA-Script. Do you have any Experience with such an Input-Window, where i can Key in some Informations to work with them further in my Script? Thanks in Advance, Joachim
-
Export several Data from P3Dv3 to a XML File
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Solved it. Forgot to remove the \n at the Site where i put the Value into the Variable. Thanks again for your Help. -
Export several Data from P3Dv3 to a XML File
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Thank you so much. The .. was the missing Part. Your Code leads to the following Result. <DienstBeginn>16:53 </DienstBeginn> in the XML-File. But it should be in one Line and look like this: <DienstBeginn>16:53</DienstBeginn> Do you have any Suggestion, how to get this Result? Thanks in Advance -
Export several Data from P3Dv3 to a XML File
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
The xml-File would be created. Seems it is not possible to write into the Documents Folder. Use the FlightSim\Modules Folder and it went well. So, now i have to know, how to the write the Value in my Variable DienstBeginn to the File. The Variable will be set with this Command DienstBeginn = (string.format("%02d:%02d\n", hour, min)) With this Command, i write to the File f:write("\r\ <DienstBeginn>DienstBeginn</DienstBeginn> The Result of this Command in the xml-File is <DienstBeginn>DienstBeginn</DienstBeginn> but it should be <DienstBeginn>16:30</DienstBeginn> Do you have any Suggestion, how to resolve this Problem? Thanks, Joachim -
Export several Data from P3Dv3 to a XML File
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Luke, i wondered why there is no Response from you. So i thought, it is not possible, to save the DataFiles from your Logbook to my own Cloud? As far as i understand, it is only saving the Data to your Servers in the States or somewhere else available, right? Pete, think, the Time has come, to request your Help. Attached to this Post, i had my FlightLog.lua and the corresponding Log-File. Something in here is from your record to csv.lua. Especially the File Command "f = assert(io.open(........" Could you please take a short look into the Files? I would highly appreciate, if you could please give me a Hint, where my Fault with the File is. It will not be created. By the Way: Is it possible, to print a VariableName like DienstBeginn to the File without a string.format Command? The Variable DienstBeginn holds the LocalTime when the Sim is ready to Fly. Thanks in Advance and Greetings, Joachim Modules.zip