Jump to content
The simFlight Network Forums

buick552

Members
  • Content Count

    41
  • Joined

  • Last visited

  • Days Won

    1

buick552 last won the day on October 31 2018

buick552 had the most liked content!

Community Reputation

2 Neutral

About buick552

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    Stuttgart
  1. Sir, I've been away from home for some time, I haven't checked back the forums either. Thank you very much for the reply. I will try the version 3 ASAP.
  2. Owww... I didn't know you had a new version of the dll Paul. I will check it as soon as I get home. Does it require new coding for old applications?
  3. Paul, I badly need an example code for visual basic which shows reading an Lvar value and then assigning to an offset value. Can you simply give me an example code block which sends PMDG 738's seatbelt switch LVar value to an offset? I've created a great application by your marvellous dll, it works on standart offsets so far, but I'd like to start improving it by making some special dll s for some specific aircraft.
  4. Sfakman, I had the same problem. I have coded an application for my virtual airline, it actually tracks the flights and reports at the end, I use Paul's marvellous dll, I wanted to give the pilots a chance to reposition their aircraft at the place where they parked it on their last flight, it works perfectly on FS9, FSX and p3d, but not on XPlane. The aircraft suddenly goes to 30.000 something feets, did you work it out?
  5. I find the *.air file via Paul Henty's dll. The dll brings *.acf file when used with XPUIPC. You can determine if it's Xplane or not by the file extension (air or acf). If it's acf then Sim is XPlane. If it's air then do some more code to determine if it''s FS9, FSX or p3d** by the FSUIPC version.
  6. Ahh Paul, I really didn't know I could use LVAR facility with your marvellous dll. (How did I not see that before? 🙂 ) Sir, thank you very much, for your help and for creating such a great dll. I will do lots of things with this facility. Thanks again.
  7. Hi, my answer will be with VB coding. Try OpenFSUIPC() FSUIPCConnection.Close() Catch ex As Exception FSUIPCConnection.Close() MsgBox("FSUIPC Not Found or FS is not running !") Exit Sub End Try ... ... You may continue your code blocks but if OpenFSUIPC produces an error, the SUB will be stopped due to error handling with a messagebox and the code will not be run anymore.
  8. Dear friends, hello. I am very sorry to bother you with such a small issue, maybe you explained this issue a hundred times, but I am very new to LUA programming, and I need some help from you to make me start moving. My Virtual Airline recorder application gets data from sim by the help of FSUIPC client (Coded with .NET), but unfortunately FSLabs Airbus aircraft does not produce any data about flaps. What I want to do is to create a LUA file, which continously checks one of the LVARS (I already know the name of LVAR and the values it gets according to the flap lever position), then I want this LUA to assign a value to our FSUIPC OFFSET used for flaps (0x0BDC). ------------------------------------------------------------------------------------- Here is the LVAR info : VC_PED_FLAP_LEVER0=UP110=Flap1210=Flap2310=Flap3410=Flap4 And here is the code that I tried to make : -------------------------------------------------------------------------------------- flappos=ipc.readLVar("L:VC_PED_FLAP_LEVER") if flappos == nil then -- if there is no LVAR like this do nothing because the pilot is not flying an FSLabs Airbus else if flappos == 0 then -- if there is an LVAR like this and if it is 0 then do nothing because FSUIPC already returns 0 else -- if there is an LVAR with this name and if its value is not 0 then lets begin if flappos >= 100 and flappos < 200 then ipc.writeUD(0x0BDC, 4096) end if flappos >= 200 and flappos < 300 then ipc.writeUD(0x0BDC, 8192) end if flappos >= 300 and flappos < 400 then ipc.writeUD(0x0BDC, 12288) end if flappos >= 400 then ipc.writeUD(0x0BDC, 16384) end end end -------------------------------------------------------------------------------------- Since I dont have FSLabs aircraft in my inventory, I will create a LUA file and send it someone to check, but I want to make sure if the code is fine. This is my first time in LUA coding, I will appreciate your guidings. My first question is, will that code run automatically as long as the sim runs if I place ... ---------------------------------------------------------------------------------------------- [AUTO] 1=Lua nameoftheLUAfile ---------------------------------------------------------------------------------------------- as the last line in FSUIPC.ini ? Second question is... Is the code OK?
  9. It will also help to identify TA-TL altitudes.
  10. Sir, is it possible to get elevation data of any point on FS by providing the coordinates? My application has all the coordinates for all airports, I'd like to detect the elevation of the airport which the pilot wants to fly to. Because, my application checks if the pilot has turned ON the LDG LIGHTS during approach when descending below 10.000 ft. But there are some airports whose elevations are already 8.000 to 10.000 ft (especially on South American continent) If possible, I'd like to detect the landing airport's elevation during the flight preparations.
  11. Hello Dear Flightsimmers, I would like to make another approach to this issue. I'd like to detect turbulent conditions on aircraft to start a cabin announcement, something like "ladies and gentlemen, currently we are on a turbulent condition, please get back to your seats and keep your seatbelts fastened until bla bla..." Should I continously watch the vertical speed and airspeed readings to detect this situation or do you guys offer me a better way, like maybe there is an offset that i can get this state directly through fsuipc connect dll?
  12. Thank you Paul, appreciate it. By the way, it was my mistake about vb. I used visual studio 2010 for the recorder, the language is visual basic.
  13. Hi, i just would like to know if it's possible to place objects into some specific coordinates of the sim by using codes. Here is what i am up to : We have built a helicopter virtual airline which uses a flight recorder coded by vb and the program runs on Paul's marvellous client. When the program is run, i want it place an object such as a car, a human, a burning ship etc. to a coordinate, the limits specified on a database, so that the helicopter pilot is given a mission to locate the burning ship, or land within the proximity of the car, human etc. I hope i am clear enough about what we want to create. Has anyone tried something like that? Or anybody just light me up with a very small idea, and i will go after it by myself. Currently, our recorder program can create random missions to go from some airport to another, or best, it tells you to land at a town or village which doesnt have any airports, the landing points are taken from a large database of our website. So we are pursuing a different adventure. I will appreciate any help.
  14. I will ask another question. Lets say we want to check pilots' actions during their flights and seatbelt sign is one of the check items. But the problem with the seatbelt offsets is many different aircraft have different offsets for seatbelt usage. For example, standart seatbelt offset is 341D, pmdg ngx 738 offset is 649F, pmdg 777 ofset is 647B, pmdg 747 offset is 6C2B. And probably other addons are using different offset values also. Is there any way to detect which offset is activated when some switch is turned on or off?
×
×
  • 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.