FlyingCoder
-
Posts
59 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by FlyingCoder
-
-
Hi Paul, managed to solved by reading the cfg and searching the text based on my requirement. Thanks!
-
I see. Since the CFG is not an XML it wont be like searching based on property. Do i have to search based on text? CFG is just text based i supposed?
-
Hi Paul,
Thanks and noted. Anyway, i looked at the aircraft.cfg, theres one line called ui_createdby. Is there anyway i can get or read the ui_createdby line? -
Hi guys,
Am i trying to make my application detect different aircrafts. This is because different aircraft developed by different developers, uses different parking brake variable. Like PMDG, FENIX, and Flybywire, They use their own custom Lvars which i have to detect if i am using PMDG or fenix or FBW. Now, how do i able to detect if i am flying a fenix aircraft or pmdg aircraft or FBW aircraft? Hope to get some help. Thank you. -
Hi John,
I just tested with float data type. It works now. Thank you! -
I'm using c# for my application. 32-bit float i believe is float or double? Which one should i use for the FLT32. There is no FLT32 type in c#.
Example code
public Offset<Int32> Engine1fuelUsed = new Offset<Int32>(0x090C);// Engine 1
Hope to get some clarification thank you -
18 minutes ago, John Dowson said:
How can I possibly answer that?
Yes.
These may or may not hold the correct value - try monitoring those offsets, using FSUIPC's offset monitoring facilitis, as you fly and see if the values increase from 0...
If they don't work, you can use the PMDG offsets (from the Offset Mapping for PMDG 737 document - should also apply to the 738):6494 4 FLT32 FUEL_QtyCenter LBS 6498 4 FLT32 FUEL_QtyLeft LBS 649C 4 FLT32 FUEL_QtyRight LBS You would need to initially read and save the quantities at the start of the flight, and then whenever you want to know how much fuel has been used simply read them again and subtract that number from the initial values.
Hi John,
Sorry, i am using your Offset and getting 115503102 and increasing.
I forgot about PMDG 737 offsets. I will take a look at it and see if these solution work. Thank you -
4 hours ago, John Dowson said:
You can try the following offsets which hold the GENERAL ENG FUEL USED SINCE START indexed simvar for 4 engines: 0x090C. 0x09A4, 0x0A3C. 0x0AD4
Hi John,
What is the expected result? I'm flying the PMDG 738. Do i have to get value of all engines then add them up? -
Hi,
Is there any offset that i can get fuel used? If there aren't any, what is the formula to calculate or get the fuel used for the flight? Thank you!
-
Hi John,
Thanks and will do. I am using .netframework 4.7 for my windows app. However, after i use your latest FSUIPCclient dll, i am getting object reference not set to an object when trying to call GSX boarding.FsLVar GSX_Getboardingstate = MSFSVariableServices.LVars["L:FSDT_GSX_BOARDING_STATE"]; // Gives the object not set reference error // after using latest FSUIPC Client DLL
I have also included the fsuipc-lvar module in my MSFS community folder.
Before this, there was no issue. Is it compatibility issue where the latest version of FSUIPCclient only supports .net6.0?
Also, im using your c# application sample to view the Lvars in MSFS but the app does not show any Lvars available. FSUIPC said there are 220 ish Lvars.
Do advise me if its compatibility issues or what i could have done wrong. Thank you
-
Hi John,
Apology for the late reply as i am away. Thank you for your suggestion and reply.
For the PAX number, does it varies for different aircrafts?
Regards,
PikoSim -
Hi Pete,
I am using your FSUIPC for my own application.
Firstly, I would like to ask, how am i able to get the exact model or type of the aircraft that user if flying or loaded. For example, Fenix A320. Fenix A320 has different liveries. How do i know if that particular user or simmer is using Fenix A320 regardless of its livery?
Secondly, i am using LVAR for fenix as an example to get the number of PAX being loaded using GSX. Lets say boarded is 50pax. I did a a short flight which is around 1hr or so. Took off, application states 50pax. Landed and deboard the pax and noticed that it reset back to 0pax. How do i prevent this from being reset?
I hope to get your answer. Thank you! -
*** Moved to .Net dll client sub-forum ***
Hi,
I am currently making my own C# winform application and i cant seem to get the readLvar to be working. I am trying to read the passengers boarding from the GSX pro for MSFS. This is my code.
FSUIPCConnection.Process(); myTextbox.Text = FSUIPCConnection.ReadLVar("L:FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL").ToString(); Console.WriteLine("Reading passengers on board from GSX " + " - " + FSUIPC.FSUIPCConnection.ReadLVar("L:FSDT_GSX_NUMPASSENGERS_BOARDING_TOTAL"));
Data will be 0 and i dont know why. Am i missing something? Using the latest FSUIPC 7. I have the FSUIPC_lvar installed in the ocmmunity folder. I hope to get some guidance here. thanks -
Hi join,
Ready gates for example to detect if they are at a certain gate. Or basically readying the gates of an airport from MFS. I understand that the gates are different from P3D where there in MFS, the gates will be in numbers
-
Hi, i would like to ask if the latest SDK or FSUIPC7 is able to read gates ? I am developing an program to detect gates.
-
Hi paul,
Thanks for the advice. I am testing this on MSFS and it works. I used the MAkeRwy from P3D and try it on MSFS and it seems to work. IT detects if player is at gate or not at gate.
-
2 hours ago, Thomas Richter said:
Hi Paul,
I got that work years ago just for testing but never used it later with C++ CLR.
C++ CLR is the C++ fully based on .Net, not native C++, that's why you use still the .Net framework like WinForm.
Thomas
Hi Thomas,
i have give a sample code about the problem im having.
-
2 hours ago, Paul Henty said:
I don't use C++ but I had some users in the past using the DLL in a C++ project so it is possible.
Can you say more about what the problem is exactly? Are there error messages? Does your project compile? Did the DLL install OK from NuGet?
I had tried here but I couldn't get it to install from NuGet. That could be because I don't know anything about configuring the options in C++.
Paul
Hi Paul,
As now, i am having problem trying to get the IsPlayerAtGate. Reason why i dont use C# to code is because of reverse engineering that is why im using C++ CLR WinForm. Anyway, the issue i am having right now is the getting gate id to be displayed in the drop downlist.I can't seem to get Select to be working because there is not such extension. I believe Select is using Linq? Im not to sure.
this->gatedropdwn->Items->AddRange(selectedAirport->Gates->ToArray());
This code below will always give & print out NULL. The code below in at the Timer so it will check.
FsGate ^gate = this->selectedAirport->Gates[this->gatedropdwn->Text]; if (gate != nullptr) { if (gate->IsPlayerAtGate) { atgatestatuslbl->Text = "At Gate"; } else { atgatestatuslbl->Text = "Not at gate!"; } } else { cout << "Null"; }
Hope to get your help here.
-
*** Moved to FSUIPC7 / MSFS sub-forum ***
Hello, i am wondering if MakeRwy is available for MSFS? Can it be used in MSFS and if so, how do i use it ? Thanks
-
Hi, i would like to ask, is the FSUIPC Client DLL usable in C++ CLR ? Im currently developing it using C++ CLR Winform to develop a software and i am looking to find gate number and if user is at the airport or gate etc. I tried importing to reference but cant seem to use it.
-
Sure no problem !
-
Okay it works now! Thank you John and pete for helping me out! I will write a small document to integrate with GSX if i have time! xD
-
Okay, how about my FSUIPC? Are they correct?
-
Alright. I have used the one you mentioned. Kinda get the idea that 0x7nnnn = nnnn is 66C0. This is the pdated code.
Regarding about the LVars,
DWORD result; unsigned int test = 0x766C0; FSUIPC_Write(0x0D6C, 4, &test,&result); FSUIPC_Write(0x0D70, 40, ":FSDT_GSX_CATERING_STATE", &result); FSUIPC_Read(0x766C0, 4, &test, &result); FSUIPC_Process(&result); cout << test;
Altitude bug with application on MSFS live weather
in FSUIPC Client DLL for .NET
Posted
I'm making my own ACARS. During testing, i realised that my application using FSUIPC altitude when using live weather is not the same as not using live weather. Cruising at FL230 with live weather, will not detect at im FL230. While, when i off the live weather, the altitude at my planes goes 1000ft up. Is this MSFS issue or FSUIPC issue?