
Airbuspilot
Members-
Posts
149 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Everything posted by Airbuspilot
-
Hello, tried to find some helpful Informations here in the Forum and at Google. Unfortunally without Success. So, i want to ask here, if it is possible to read Data from a XML File and assign them to Variables in a LUA Script? An Example Code would also be highly appreciated. Thanks in Advance and Greets from Germany Joachim FlugDaten.xml
-
Fsuipc provided MyDisplay.lua doesn't work
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Had a look this Morning. You are right. 28.56€ for a bigger Text in FS-Windows isn't worth that much Money. The Update Price of 14.28€ i would pay for it. Unfortunately i had no previous Version of WideFS. Joachim -
Fsuipc provided MyDisplay.lua doesn't work
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Yes, that is the Problem. Bigger Fonts in Windows are effecting everything. Maybe you can give me a "special Price" for WideFS? :-) I knwo, you distribute over SimMarket. But if possible, i could buy also direct from you? Joachim -
Fsuipc provided MyDisplay.lua doesn't work
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Just for better Understanding. WideClient sounds like networked PCs? So, i need a License and of Course a second PC? Joachim -
Fsuipc provided MyDisplay.lua doesn't work
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
okay, so i misunderstand the Difference between the Display Library and the Command ipc.Display. Is there a Chance for me, to Display a Text that was sizeable to a bigger Font? in ipc.display i just found a Text Colour Option. I don't have WideClient. Joachim -
The FSUIPC-included MyDisplay.lua doesn't work. In the Manuals i can't find the Reason for that Malfunction. So i attached the My.Display.log In the Fsuipc Menu, i assigned this Lua to a Joystick Button. When starting it, right on Line 2 the Error occurs stating attempt to index global 'display' (a nil value) Could you please take a look in it and hopeful provide a Solution. Thank you. Joachim MyDisplay.log
-
Yes, i mean those global Variables, that are controlling the Workflow of my Scripts. Meanwhile i solved it by my self. There was a Value that i had set the wrong Way. Please allow me some little last Questions. Maybe you could have a Look at the attached, real small Script. Those issued "ipc.sleep" Commands are pausing the Workflow? I mean. that i.E. after the runlua on Line 12, there is a Pause in the Workflow, before the Condition on Line 14 is checked for controlling the further Workflow? I am assuming, that a Value of 1000 represents 1 Second. Is this assuming right or could it vary depending on the CPU Speed i.E.? Joachim FlightLog.lua
-
In Fact, this Part of the Script is an "One Time only" Job. So, i deleted the looping Code and it will be doing, what i want it to do. Maybe you could provide a little Help with the following Problem. When starting P3Dv4, loading the Aircraft and starting a Scenario, FSUIPC5.log is logging. Starting my Script with the JoystickButton, FlightLog.log is logging. That's really great to figure out some of the Problems. If i found and corrected a Part of the Code, i will try it again. I learned with the Command "LuaKillAll" all the Luas will be stopped from running. But starting the corrected Script again, it will not work right, because the Variables are not reset even if i reset them in the Code manually. So, i have to cancel and restart the Sim every Time, after a Correction of my Script. Also the Re-Simconnect will not solve this Problem. It would be very, very helpful, if you could provide a Way that makes the Restart of the Sim unnecessary. Thanks in Avance. Joachim
-
Sorry, but you got me completely wrong at this Point. I meant, that i tried Hours for Hours to solve the Problem by my self before posting for Help in the Forum. I am sure, that it is not a Problem of Lua or FSUIPC. It is a Problem with my Coding maybe due to a lack of Knowledge. But again, i didn't ask you directly to study and debug my Code. Sure, i am glad if you could help me. But if you had no Time or don't like to help this Way, it is okay. So, i hope any other User could take some Time and will try to help. Seems, i didn't clearly expressed the Problem in the initial Post? I thought, i did. In the initial Post, i described, that i start the "SubScript" with the ipc.macro Command. Meanwhile i tried it with runlua - in fact with the same Results. Will try to find my self, where the Fault in my Script is. Joachim
-
I didn't asked you, to study and debug my Files. But maybe an other User will have the Time, to look in there and have a Hint for me. BTW: Such Comments aren't really helpful. I used the Logging Features of FSUIPC but they don't give me a Trace of the Problem. You can be sure, that i only post for Help in this Forum, if i have absolutely no other Option. However, thanks for your Answer. Joachim
-
Hello, In the attached Files, i try to run a Lua Script that runs another Script insisde via the ipc.macro Command. When running the Main Script, it starts the SubScript. But it seems, that the SubScript would be leaved before it has done it's full Job and a little later it will be called again by the Main Script. So, my Question is, if it is possible, to force the SubScript to do it's full Job without leaving and starting again. And if it is possible, what do i have to do? Short Description of the desired WorkFlow for the PMDG B777F (newest Version for P3Dv4) B777F is set to Electrical Power up for using the CDUs. FlightLog.lua read the Reg of the Aircraft, here D-ALFA, turns on the CDU FS Actions Menu and then turn on the CDU Fuel Page. This will work without any Problems. Then it calls the Macro Lua:PMDGFuelInput. In that LuaFile, a File has to be read and then the Input of the Values into the CDU begins. There seems to be the Problem, that the whole Workflow of the Scripts will leave the SubScript before all is done. Further it seems, that it will be called again, and again, and again. Hope, i could express the Problem the right Way. Any Help will be highly appreciated. Thanks in Advance. Joachim FlightLog.lua PMDGFuelInput.lua PMDGInitialFuelQty.txt
-
P3Dv3 Script didn't work anymore in P3Dv4
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Hi Pete, thanks for your Help. That brought the Solution. Joachim -
Need Help about the attached Scripts. In P3Dv3 with FSUIPC 4.9xx they worked well. Now in P3Dv4 with FSUIPC 5.103 the Following Error occured: 318797 *** LUA Error: ...\Simulatoren\Fliegen\P3Dv4\Modules\B777FuelInput.lua:6: attempt to index global 'file' (a nil value) Please have a look at the attached FSUIPC5.log. Maybe you can provide some Help. Thanks in Advance FlightLog.lua B777FuelInput.lua FSUIPC5.log
-
Lua Debug Line by Line
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
Okay, i understand your Point of View in this Things. Thanks for your Answers. Joachim -
Lua Debug Line by Line
Airbuspilot replied to Airbuspilot's topic in FSUIPC Support Pete Dowson Modules
My Problem with this is the small Window and Font in FSUIPC. My Eyes are sick and i need a bigger Font. If possible, i would highly appreciate, if you would overhaul the Window in this Part. Maybe i am not the only one, who needs it. I don't know, if i opt that in or if it was set at the Installation Process. I will try it again and send you the Log. As an older Cobol Developer, i am using IBMs Rational Developer for System Z. If i will trace a Programm at the Runtime, i can set Breakpoints to temporary stop the Programs Workflow. It is possible, to monitor, set or change a Variables Value and then continue the Workflow. So it is possible, to check the Programs Behavior depending on a Variables Value and the Workflow of the Program itself. Also i can set the Font Options to have more convenience for my Eyes. -
Hello together, is it possible, to Debug a Lua Script Line by Line? I started the Script with the Lua Debug in FSUIPC Menu. This starts the Logging in a File. One Line is in the Log File. But now? What do i have to do, to get the next Line? Hope, i could express my Problem correct. Further i would know, if it is possible, to do a Trace of the Lua Script at the Runtime with the Ability to set Breakpoints. This would be great to see, the Scripts Workflow. Thanks in Advance for your Answers. Joachim
-
Sorry, but i have to come back again. I did not get this to work. Maybe you could help me, when having a Look at the Files. The Aim of this Script is, to PowerUp the T7, what works real good. After that, the B777FuelInput.lua should be invoked. The Aim here is, to read a File with the Initial Fuel Qty and automatically key this Data into the CDU. After that, some other Things had to be done and recorded to a XML-File. Thanks in Advance for your Help. FlightLog.lua B777FuelInput.lua B777InitialFuelQty.txt
-
okay, thanks for the fast Response. I will try it this Way and see, if it brings the Healing. :-)
-
Sorry, but i have to come back for a Solution of this Problem: Tried the Workflow with your Advise for the Auto Section in the Fsuipc ini File. I did'nt get it to work correct. So, i try now with Macros. Everything went okay, except from the following Problem, i can't solve by myself. Would be very glad, if you have a Solution. That is the Code in FlightLog.lua, that involves the B777PowerUp.lua if ipc.get("B777PowerOn") == "N" then ipc.macro("Lua:B777PowerUp") end The Code in the B777PowerUp.lua works fine, except for the last Function of the DualJetwaySwitch (Key) on the CDU. Can someone please have a Look at it? Thank you. B777PowerUp.lua B777PowerUp.log
-
That is the Problem. I have to do Compare OPs, to avoid LUA Errors on arithmetic OPs or dividing by Zero Errors. So, when reading the Initial Fuel Data from the File, i got the calculated Fuel for the Flight and can do all further Calculations with this Value. This Problem occurs only with the PMDG777. So i think, i had find a Solution, that i will try this Morning. Hope, it works. Have a nice Sunday and thanks for your Answer.
-
I am back again with a Question. Read and Assign of the Data from the File will work fine. But, these are FuelData and have to be numerics, because i have to do further Calculations with them. When i run the Lua, this Error occurs:112422 *** LUA Error: D:\Simulatoren\Fliegen\P3Dv32\Modules\FlightLog.lua:163: attempt to compare number with string Is it possible, to read out the Data from the File as Numerics? And if so, how have i to do it.? Thanks in Advance for your Help.
-
Hope, i solved it by myself. There was a malformed Typing in Variablen.lua, which stopped the Module from running. It seems, that after the Module had stopped, no one of the Variables were visible in other Modules, even if the Mistake was very late in the Module. Now i will code all the needed Modules. If i encounter any further Problems, i would appreciate, if you could help again. Again, special Thanks for your outstanding Support.
-
In Variablen.lua i set it with ipc.set("KiloPoundFaktor", 0.453592) In FlightLog.lua, i will receive it with KPF = ipc.get("KiloPoundFaktor") This also leads to the LUA-Error with a nil Value in KPF. Seems, that i do something wrong, or that it is not possible, to make Variables outside the Modules visible. If anybody had some further Ideas, i would highly appreciate them.