Jump to content
The simFlight Network Forums

John Dowson

Members
  • Posts

    12,264
  • Joined

  • Last visited

  • Days Won

    250

Everything posted by John Dowson

  1. Btw, where is that cockpit VC image from? That doesn't look like the virtual cockpit that I see in the C510. What are those lighting switches that you say do not work? There are various Input Events for the lights, so try those. For the generator switch, you can use the Input Event ELECTRICAL_Alternator_2 with values/parameters 0, 1 & 2 for the 3 positions. In the down position (2), it will only stay there momentarily and then spring back to the central position (1), as it does in the VC. John
  2. Not really. This doesn't really make sense. All your assignments are kept in the ini file (or files). The myevents.txt file just holds your preset definitions. I could have kept these in a [myOffsets] section of the ini file I suppose, but as the MobiFlight presets are provided via the events.txt file, I thought I would use the same mechanism for user-defined presets. Why not? What do you mean? You should use Input Events when available, I see no reason not to. No need to attached this as I know what is available as I have this aircraft. I don't see why they shouldn't. There can be a short delay when using Input Events for incrementing/decrementing the Input Event value, as a round trip to the FS is needed to get the updated value before a next increment/decrement, but this is the same as when using lvars. John
  3. First, you posted in the Announcements sub-forum, where it explicitly states NOT for support requests. Please post in the correct forum for support. I have moved your post. It it is not working, it can be due to one of three things: 1. There is an issue with the assignment and FSUIPC is not sending the key press when you press the button. You can easily check this by activating logging for Buttons and key operations, open the logging console (check Send to console window) and see if the keysend command is logged. 2. The keyboard shortcut Ctrl+[ is not assigned to control the TOGA switch. Check this in your P3D key assignments. Note the default assignment for TOGA is Shift+Ctrl+G. You can also set logging for Events (non-axis controls) and you should see the AUTO_THROTTLE_TO_GA event logged. 3. The default AUTO_THROTTLE_TO_GA command does not work for the PMDG NGX aircraft. PMDG aircraft use their own custom controls for many buttons/switches. Looking at the header field for the NG3 (for the MSFS version, I do not have this aircraft for P3D) I can see the following custom controls: #define EVT_CONTROL_STAND_TOGA1_SWITCH (THIRD_PARTY_EVENT_ID_MIN + 684) #define EVT_CONTROL_STAND_TOGA2_SWITCH (THIRD_PARTY_EVENT_ID_MIN + 687) To use the PMDG custom controls, see this FAQ entry: John
  4. Can you please attach your FSUIPC6.log file so that I can see your assignments. Are you calibrating with detents, or sending those Flaps Decr and Flaps 1 (not sure what the first extension would be in this aircraft) commands on entering/leaving an axis range? If so, I don't understand why you would want to do this if you have also assigned the axis itself to the Flaps Set control. And the Flaps Incr/Decr events/controls do not take a parameter. If not calibrating with detents, maybe try this - see page 45 of the User Guide. Best to do this with the axis assigned using Send direct to FSUIPC calibration, but can use Send to FS as normal axis if this gives issues.
  5. Please also note that I have already advised on how to assign for the battery, avionics, starter - all of these are easily controlled using Input Events. For any further questions on the C510, can you please use the other thread you created for this: I would like to keep information on how to use FSUIPC7 to control this aircraft in one place, so it is easy to find for other users. So, please post in that thread for anything that you are having difficulties with - and please re-read what I have already said in that thread. John
  6. Any errors setting client data calculator code are NOT due to the calculator code itself, it means that the calculator code could not be sent to the sim/WASM for some reason. Any errors in the calculator code itself will be logged in the FSUIPC_WASM.log file (or possibly the MSFS console) and not in the FSUIPC7.log file. Looking at your log file. the errors are reported as the WAPI hasn't yet connected to the FSUIC7 WASM module and so the calculator code could not be sent to the sim, i.e. they are logged before this message is logged" Basically you are trying to do things too early - just be more patient. Once you have loaded an aircraft and are ready-to-fly, wait for a short while before trying to do anything. Usually it is best to wait until the lvars have been loaded, i.e. when this is logged: The reception of lvars is also logged in the FSUIPC7 main window. And if using InputEvents, you need to wait until all these are loaded and initial values received, which in your log is here: i.e. approximately 2 minutes after FSUIPC7 is started. The number of Input Events is also logged in the FSUIPC7 main window. I will look into your other questions, as well as taking another look at the C510, at the weekend. I believe SU15 should be released tomorrow, and I will release FSUIPC 7.4.12 shortly afterwards, which has improved handling for Input Events - this may be useful for the C510 so please update once released. John Later: could you just give me a list of the buttons/switches that you are having issues with, and I will take a look at each and let you know how to assign to them in FSUIPC7. This will be quicker and easier for me than going through your files or lua code.
  7. First, run MSFS and FSUIPC7 and load the PMDG aircraft to the ready-to-fly state. Then, open the FSUIPC7 axis assignments panel and create your profile lets say you call the profile PMDG-737. You will be asked if you want to import your axes - agree to this. Then click Ok, and then exit FSUIPC7. Next, open your FSUIPC7 in an editor. Find the profile section and edit the aircraft name to use a substring, e.g. Next, rename all the following sections to make them profile specific: [JoystickCalibration] -> [JoystickCalibration.PMDG-737] [Buttons] -> [Buttons.PMDG-737] [Keys] -> [Keys.PMDG-737] and also the following, but only if using them: [Auto] -> [Auto.PMDG-737] [LvarOffsets] -> [LvarOffsets.PMDG-737] [InputEventOffsets] -> [InputEventOffsets.PMDG-737] Then re-start FSUIPC7 and you should be good-to-go. Cheers, John
  8. The latter, i.e. you have created that and forgotten about it. FSUIPC does create a file called FSUIPC5.JoyNames.csv, but you do not need to copy that - it is created on-the-fly. John
  9. Seems like you are using some different controllers now as well: 1. There is no longer a HOTAS Warthog Joystick, but a Right VPC Stick WarBRD 2. The rudder pedals have changed from Mad Catz Pro Flight Combat Rudder Pedals to Saitek Pro Flight Combat Rudder Pedals I have also switched the assignments for these, i.e. what was assigned to the HOTAS Warthog Joystick are now assigned to the Right VPC Stick WarBRD, and what was assigned to the Mad Catz Pro Flight Combat Rudder Pedals are now assigned to the Saitek Pro Flight Combat Rudder Pedals. The pedal assignments should be ok, but you should revise your assignments to the Right VPC Stick WarBRD. So, please try the attached ini file. Any issues, let me know and please re-attach your updated .log and .ini files. I have also update your profile aircraft names to use substrings. However, you seem to have two profiles for the 777 so I have left these: This is the same aircraft so you should use just one profile. I am not sure which one you want to use, but choose one profile, delete the other profile (all profile sections), and then set the aircraft name to be a useful substring, e.g. John FSUIPC5.ini
  10. You can edit the MSFS.bat file to remove the display of if you like, but why not just not install the desktop icon installed by the FSUIPC installer. To do this, you need to select the auto-start via the EXE.xml method (and de-select the MSFS.bat method) during installation (if you want FSUIPC7 auto-started) and also uncheck the installation of the desktop icon on the last installer page. If you want to use the MSFS.bat but just not show the splash screen, change this line: start mshta "%splash%" to this ::start mshta "%splash%" i.e. comment it out John
  11. You also need to copy across the FSUIPC5.key file or re-register, as well as any lua files (*.lua), macro files (*.mcro) and additional drivers (*.dll) that you are using, if any. Just copying across your ini file is also not enough, as the GUIDs of your devices will also have changed, and so some manual editing of the ini is needed. This is far easier if you are using the JoyLetters facility on your old PC, but please attach both your FSUIPC5.ini and FSUIPC5.lg files from your new PC and I will take a look. John
  12. That seems to be the same as the documentatin link I always give when people ask about this: https://docs.flightsimulator.com/flighting/html/Additional_Information/Reverse_Polish_Notation.htm Looks like this has recently been updated - until recently this was very sparse and only gave the basics! Looks a lot better now... Not sure now - I usually only use the stacks/registers if the value is needed in multiple places... Looking at the calc code now, it doesn't look correct...it is not possible to set a B:var via calc code...that is why an lvar is introduced, to control the b:var via using that xml update.
  13. After the latest AS update, the API documentation is now available in the AS documentation folder (Active_Sky_API.pdf) - could you take a look at this? I am not sure what information I should request. I would have thought to use the GetCurrentConditions call. However I am not sure how useful this is - it seems to return the first string only from the Conditions tab of the AS UI - i.e. the Metar data. This is what this returns when on the runway at LEVX (Vigo, Spain): @POS 201348Z 28012KT 250V320 9999 FEW019 SCT024 FEW028 16/10 Q1015 RMK ADVANCED INTERPOLATION For comparison, this is what the AS UI shows under the Conditions tab: The GetMetarInfoAt call using the ICAO LEVX gives the following string: LEVX 201400Z 28012KT 250V320 9999 FEW019 SCT024 FEW028TCU 16/10 Q1015 NOSIG I guess I could extract the wind direction/speed, temperature, etc from the Metar string.... Or would the basic weather data (WindDirection, WindSpeed, Temperature, Pressure) at the aircraft position, using the GetAtmoshere call, be sufficient?
  14. That is why I needed to see the log file! I don't think you should change this even if possible - if it is running with elevated privileges then I', pretty sure its doing this for a reason... Sorry but if AS is being ran with elevated privileges and FSUIPC not, then I don't think it will be possible to have AS auto-started by FSUIPC7. I do have AS for MSFS so will take a look when I get time (after the SU15 release). You could maybe try adding an entry to the MSFS EXE.xml file instead to see if that can start AS.
  15. Can you please show me/attach your FSUIPC7.log and FSUIPC7.ini files. John
  16. Your ini file shows that you have assigned to the Lua control and not the LuaValue control: This is also confirmed by your log file, which shows the lua script continually being restarted (which is what using the Lua control will do): Not sure why as the image you attached shows LuaValue - can you please check again. Your assignment should look like this: It is only running as it is being started/re-started each time the axis valuer changes. As well as changing the assignment from using Lua to LuaValue, you also need to have the lua auto-started. To do this, you need to add an [Auto] section, i.e. John
  17. So FSUIPC7 on the client PC cannot connect to MSFS? Did you configure your SimConnect.xml file correctly? Can you please attach your FSUIPC7.log and FSUIPC7.ini files as well as your SimConnect.xml file please and I will take a look. What log file? What cfg file?
  18. Are you using MSFS2020 / FSUIPC7? If so, please use the specific sub-forum for FSUIPC7. I will move your post. I don't have the LVFR so cannot look into how the elevator trim works for this aircraft. You can try using FSUIPC's logging facilities to see what is being used - activate logging for Events and Input Events and open the logging console (Log -> Open Console), increment and decrement the elevator trim in the VC and see if anything is logged. If so, try using those evens (or input events). If nothing is logged, try listing the available lvars to see if any of those look applicable. As a final resort, you can inspect the model behavior of the VC trim controls using the development facilities provided by MSFS to see how they work, and then try and duplicate that (usually using calculator code via a preset) - see https://www.badcasserole.com/uncovering-input-events-using-the-msfs2020-model-behavior-dialog/ on how to do this. John
  19. You are using a very old and unsupported version - please update to the latest and only supported version, 7.4.11. John
  20. No, sorry. Probably a good thing to log though - I will look into this. For now, you will have to use the Windows Task manager which will tell you if a process is running with elevated privileges or not. Ok. Then if when running FSUIPC without elevated privileges your client does not connect, but running with elevated privileges it does, then the reason must be that FSUIPC is running with elevated privileges, no? I can think of no other reason for this behavior. John
  21. What has changed? Has anything been updated? If this only affects vPilot, gave you asked on their support? You need to determine what has changed. Try logging to see what events/controls are being sent - use Event logging in FSUIPC and see what events are logged when you alter the com1/2 frequencies. Maybe also look into the PFC driver logging as well (see the PFC User guide for the driver you are using). John
  22. This implies that FSUIPC7 is being ran with elevated privileges. All FSUIPC clients must be ran at the same privilege level as FSUIPC otherwise they will not connect.
  23. Maybe I should look into seeing if it can handle support for me.....would save me a lot of time!
  24. This is not actually correct anymore, but was correct on initial release, and should really have been 'when MSFS starts FSUIPC7 via the EXE.xml file'. However, now that the default auto-start has been switched from using the EXE.xml file to the MSFS.bat file, it should be: “Please note that this feature is only activated when using the auto-start facility, either via the MSFS' EXE.xml file or the FSUIPC' MSFS.bat file (via the Desktop icon)” This is all explained in the latest FSUIPC7 Advanced User guide (for 7.4.12) which I have attached below. If you remove the DetectToConnectDelayAuto ini parameter, auto-tuning will run automatically, no need to add the StartUpTuningActive ini parameter. Otherwise, you can leave the DetectToConnectDelayAuto ini parameter and add StartUpTuningActive=Yes to force auto-tuning. Only if it is needed. If you are using auto-start via the MSFS.bat file / FSUIPC 'MSFS' Desktop icon, then you must use this to start MSFS (and FSUIPC7) as this is where the auto-start component is. If you are using the EXE.xml auto-start method, then it doesn't matter how you start MSFS. Basically it is active if auto-started and not manually started via using the FSUIPC7.exe. Why don't you take a look at your log file as this will log auto-start activity. Looking at the log you attached, this shows that FSUIPC7 was auto-started and auto-tuning was active: Note your log file ends after 70.89 seconds and was attached while FSUIPC7 was still running. Auto-tuning terminates and updates your FSUIPC7.ini when MSFS gets to the main menu (and FSUIPC7 is connected at this stage). What is happening in your case is that you are getting to the main menu, selecting a flight and starting the flight before FSUIPC7 is connected. Therefore FSUIPC7 is not detecting MSFS in the main-menu state and so not updating the auto-start parameters. However, it WILL do this once you terminate your flight and go back to the main menu. If you exit before doing this, auto-start will just activate the next time that you run MSFS. If you want auto-start to do its job, you can always wait for a short while (until FSUIPC7 connects) when you get to the main menu to allow this state to be detected by FSUIPC7. 30-40 seconds should suffice. Anyway, I really wouldn't worry about this to much. Your system loads pretty fast, and the auto-tuning process will do its job and probably reduce the DetectToConnectDelayAuto parameter to either its minimum or until it detects an error, and then increases it again. Note that I will release 7.4.12 when SU15 is released. It is already available from the Announcements sub-forum if using the SU15 beta. John FSUIPC7 for Advanced Users.pdf
×
×
  • 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.