Jump to content
The simFlight Network Forums

buick552

Members
  • Posts

    58
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by buick552

  1. I sure will. I am looking forward to receiving this new library (dll) to start communicating with this server. You and Dowsons have contributed a lot to this community. We really owe you a lot.
  2. Oh my god.. Paul.. you are awesome.. Thank you very much. I will download and start working on it as soon as possible.
  3. Hi Paul, is it possible to show an example of that server and of the TCP/IP communication via VB.net?
  4. Sir, thank you for the quick reply. Sorry, I didn't know it was reported, well.. if that's a known issue, I don't think you need to increase the LVAR limit. Thank you for your efforts sir.
  5. Also, I noticed that, when you list LVars on FSUIPC, other aircraft's LVARs are listed even though the selected aircraft is another one.
  6. Mr Dowson, I am having a strange issue on MSFS, or maybe on FSUIPC these days . I have FBW A320, LSH Maddog MD82, PMDG's B737 and JustFlight's BAE 146. I have an application which extracts data from FSUIPC via FSUIPCclient.dll. The problem is, these aircraft suppress each other's LVARs. For example, when I start with FBW A320, everything works fine, then I change the aircraft and select another one, say it is MD82, the application can not find MD 82's parkbrake LVAR, seatbelt LVAR etc. You disable other aircraft by using MSFS Addon Linker (another application), start the MSFS, start MD82, this time everything works fine. You enable FBW A320, start MSFS with FBW, this time FBW's parking brake LVAR can not be found. MD82 works fine. When an aircraft works fine, the others don't. If you disable all others and enable only the one you will fly, it's ok. What might be the problem sir?
  7. Paul, I appreciate your precise and quick answer. Thank you very much. Things are clearer now, let's see what we can do about this..
  8. Paul, to be clearer... My app has a dll which reads LVars on specific aircraft. For example, PMDG 738ngxu, Leonardo's MD82, QWings 787 and some more aircraft like these do not use standart offsets for lights. That's why I created a dll. If the aircraft is one of them then the app asks the dll to read the Lvar and return the value. The dll currently searches for the values of strobe, nav light, beacon, landinglight, taxi light, seatbelt light, door and parking brake. As far as I see, all specific aircraft produce "a number" in return when you ask for the value of the Lvar. So.. let's say the user is on widefs. If my dll asks the aircraft for the value of an Lvar (one the Lvars above), and receives a numeric answer, is it possible to put that value on a free offset, and then the app goes and reads the value of that offset? Would it also be a workaround instead of slowing down the dll?
  9. Well.. I am having the same problem.. any improvement on the issue? Besides, is there any way to detect if the user runs widefs? I'd like to try this work around only if the user is on widefs. Normal users should go as they were.
  10. Ahh.. that easy? I have been looking for on the net for the last 2 hours. Sir, thanks a lot..
  11. Gents.. I know my question will be too "basic level" but I really will appreciate if somebody could tell me how I could get LTS_PositionSw from PMDG_737_NGX_Offsets I am using Visual Basic.. I just need one example.
  12. Hey folks.. where can we get the full LVARs list of PMDG's B738? .. or .. maybe I should ask first.. is there any legal problems if I ask my first question? I am a fully licenced PMDG B738 owner.
  13. Paul, I couldn't use this ReadLVar facility on my app. I am on Visual Basic and I use these codes to get data from the sim... OpenFSUIPC() Dim groundspeed As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H2B4) gloGS = (groundspeed.Value * 1.9438445) / 65536.0 ... What is the required code for VB to get LVAR value?
  14. Since the LUA John Dowson previously added is unavailable, i tried to do smt by myself.. only to fail.. what's wrong with this code gentlemen? local pBrakePosition = 0 while true do pBrakePosition = ipc.readLvar("L:A32NX_PARK_BRAKE_LEVER_POS"); if pBrakePosition >= 1 then pBrakePosition = 32767 end ipc.writeUW(0x0024, pBrakePosition) ipc.sleep(1000) end
  15. Well, this LUA is unavailable to download. Can you send it again please?
  16. 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.
  17. 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?
  18. 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.
  19. 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?
  20. 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.
  21. 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.
  22. 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.
  23. 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?
×
×
  • 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.