Jump to content
The simFlight Network Forums

FlyingCoder

Members
  • Posts

    59
  • Joined

  • Last visited

Everything posted by FlyingCoder

  1. 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?
  2. Hi Paul, managed to solved by reading the cfg and searching the text based on my requirement. Thanks!
  3. 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?
  4. 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?
  5. 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.
  6. Hi John, I just tested with float data type. It works now. Thank you!
  7. 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
  8. 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
  9. 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?
  10. 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!
  11. 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
  12. 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
  13. 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!
  14. *** 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
  15. 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
  16. 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.
  17. 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.
  18. Hi Thomas, i have give a sample code about the problem im having.
  19. 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.
  20. *** 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
  21. 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.
  22. 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
  23. 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;
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.