Jump to content
The simFlight Network Forums

NaMcO

Members
  • Posts

    43
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by NaMcO

  1. Hello Paul, First of all, thank you for your great DLL. It's of major help. Now, straight to the point... I am trying to read FlightSimLabs A319/A320 lights, and when reading the LVARs directly on the PC with the simulator, everything works smoothly and correctly. When reading them on a remote PC with a properly working WideFS and WideClient, these methods don't seem to work reliably. I can read regular simulator data, but the LVAR values aren't updated correctly. Sometimes i turn on the strobe, nav and landing lights and nothing happens. Then i decide to turn on the taxi lights and ALL lights turn on. If i turn the taxi lights off again, EVERYTHING turns off. This might happen with taxi lights as the trigger or strobe or nav... it seems to happen randomly. Do you have any idea of what might be going on here? Some sort of sync failure... Unsupported commands through WideFS maybe? Thank you, Nuno
  2. Yes i meant WideClient. I see it's a dead end, i'll just relaunch it if it does crash. Thanks for your replies. Nuno
  3. Hello Pete, I have an old registration for WideFS, will this work on the new FSUIPC5? I can't seem to find a way to purchase it on SimMarket, so i'm asking before making the FSUIPC5 purchase. Also, and if you don't mind me reporting this here, WideFS has what seems to be a bug: When i remove an AUDIO device from the PC WideFS is running on, it frequently crashes. I found this out because i have a USB headset and most of the times when i disconnect it, it makes WideFS crash. It is reproducible and does it very very often. Thanks, Nuno
  4. Funny. As for the ERJ, it would surely be nice to have a revamp of the original model, with additional ND and FMS fixes (disappearing waypoints in approaches, lack of proper representation of SIDs and STARs, etc). I'd pay again for these.
  5. Thank you! EDIT: I am now using FSUIPCConnection.IsConnectionOpen to perform additional checks and the error detection routine is working flawlessly and implemented in a way that looks much better than previously did :) Thank you again.
  6. Wow, amazing. I'll get to work with this and report back. Thank you very much Paul! EDIT: I cannot see the attachment?
  7. Hello, I am facing a few issues when handling FSUIPC errors on a simulator crash/freeze. What i do when i receive an error from my FSUIPC thread is: - Close FSUIPC connection; - Enter a loop trying to open the connection, once it succeeds, resume the logging method (also runs on a different thread). The issue is, apparently, that FSUIPCConnection.Close() isn't doing its job. The user reporting this said to me that P3D freezes for a few seconds (30-ish), and then resumes operation. I know the connection isn't being closed because i built a debug version for him and i'm getting this error: [09:06] FSUIPCBUSY: False // Check that the thread isn't busy [09:06] UIPCERROR: FSUIPC.FSUIPCException: FSUIPC Error #1: FSUIPC_ERR_OPEN. The connection to FSUIPC is already open. So, i am thinking about closing the connection every time i try to open it, on my error handler method like this: private void OpenFSUIPC_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { FSUIPCConnection.Close(); // This will be added to prevent "already open" errors if (e.Error == null) { OpenFSUIPCTimer.Enabled = false; // Once the error is null, disable the open connection timer FlightTimer.Enabled = true; // Enable the log timer } } My question is, is this the best way to handle the error, is there a problem of successively trying to close the connection without knowing if it is open? I don't recall the .NET client having a method returning something like "is the connection already open", or i would use that instead. Maybe i'm being just too much of a perfectionist (i know i am) and trying to do things in the most correct way possible, so i decided to ask here for some advice. Thank you very much. Nuno
  8. I don't know if this is relevant, i also tried the new x64 client and was able to successfully compile my ACARS in 64-bit. It seems to be working flawlessly. Nice work!
  9. Yeah the 737 is the EVO. I'll have a go at Wilco, see if they have anything. Thank you.
  10. Is there an update to the Airbus models for P3D or something similar? I just went through my orders and cannot find anything there. What about the 737PIC and ERJ? Thank you.
  11. Hello Paul and thank you for your quick reply. I'm feeding the method with (example)... double distance = findDistance(ap_deplng, ap_deplat); ...where the ap_deplng and ap_deplat variables are strings like '-9.13952' and '38.7813'. When i am at the departure airport and i feed the method with the coordinates for the departure airport, it should return a value very close to '0' because that's where i am. This works fine in 'en-US', but when i change the locale to "pt-PT" for instance, the value returned is '3389... something'. If i change the ',' to '.' in my windows settings, everything returns back to normal. A few minutes ago after finally deciphering MSDN help, i tried doing this before InitializeComponent(); is called... Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US", false); And everything works fine in every computer. This set the thread culture to en-US, fortunately i only run one thread... Nuno
  12. Hello, I am using the method below to get a distance from where the aircraft is to a given point: private double findDistance(string newLon, string newLat) { FsLatLonPoint ICAO; FsLongitude lon1 = new FsLongitude(Convert.ToDouble(newLon)); FsLatitude lat1 = new FsLatitude(Convert.ToDouble(newLat)); ICAO = new FsLatLonPoint(lat1, lon1); lon1 = new FsLongitude(playerLongitude.Value); lat1 = new FsLatitude(playerLatitude.Value); FsLatLonPoint currentPosition = new FsLatLonPoint(lat1, lon1); double distance = 0; distance = currentPosition.DistanceFromInNauticalMiles(ICAO); return distance; } The method works perfectly on a system with '.' (dot) as a decimal separator, but anyone using the program on, say, a Portuguese computer where the decimal separator is a ',' (comma) will yield incorrect results. In english, the value of lon1 before processed will be {E000° 00.00'} and on a Portuguese computer it will be {E000° 00,00'} and the routines in the DLL don't seem to cope with that. What is the best way to solve this culture issue? I tried converting to string where i can change the comma for a dot easily, but then i cannot feed the FsLatLonPoint with the string and couldn't really find a way to convert the datatypes... Thank you very much, Nuno
  13. Thank you very much. I don't have much experience yet with C# so these sometimes slip under :oops: It's all good now, i can get the engine status correctly. As far as the Aircraft info is concerned, i'll check it out later, but these offsets should provide all i need. Once again, thank you for your prompt responses. Nuno
  14. Hello everyone, I am trying to find when engines start and i am aware that there is an offset for it. I am using: private Offset<int> eng1Ignition = new Offset<int>("AcarsData", 0x0894); to obtain this offset's value but i am positive i'm doing something wrong. eng1Ignition.Value doesn't return the expected value and the documentation states "0894 2 Engine 1 combustion flag (TRUE if engine firing)". This got me confused because TRUE is a boolean value and if i set my offset like this: private Offset<bool> eng1Ignition = new Offset<bool>("AcarsData", 0x0894); i get an exception. Can someone be so kind to point me in the right direction here? In another subject, i'm also having difficulties understanding the Aircraft Information data. I'm trying to retrieve the full name of the aircraft in use (ex: 'Airbus A320 Air Malaysia'), and if possible its registration, but i don't seem to find where to look into this information. I found this on the C# example 'private Offset<string> aircraftType = new Offset<string>("AircraftInfo", 0x3160, 24);' but i can't seem to be able to squeeze anything out of it except "AIRBUS" or "BOEING" or the company callsign. Any help would be appreciated. Thank you everyone, Nuno
×
×
  • 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.