Jump to content
The simFlight Network Forums

John Dowson

Members
  • Posts

    13,281
  • Joined

  • Last visited

  • Days Won

    271

Everything posted by John Dowson

  1. You should check if the calculator code for the preset is working or not first (as explained). Also check that it is being sent - activate logging for Buttons * Keys as well as events, and check your FSUIPC7.log file to confirm that it is being sent. You can also post your FSUIPC7.log file here and I can check it.
  2. I'm not sure and cannot really help as I don't have this aircraft...maybe it is a timing issue? What happens if/when the gear is UP and you send the gear-off calculator code e.g. using Add-ons->WASM->Execute Calculator code using 30 (L:switch_455_73X) - 10 div s0 :1 l0 0 > if{ 45501 (>K:ROTOR_BRAKE) l0 -- s0 g1 } l0 0 < if{ 45502 (>K:ROTOR_BRAKE) l0 ++ s0 g1 } ? Try that to confirm the preset actually works. If so, you may need to add a delay, to allow time for the Gear-up to complete. before sending the gear-off ccode. If the calc code doesn't work, I cannot help with that - maybe ask on the MF discord channel. John
  3. You need to have the WASM installed and enabled to use presets - check the Advanced User guide, un the WASM section. If the WASM is enabled correctly, you should see the menu entries active under the Add-ins->WASM menu - try listing lvars to confirm the WASM is installed and connected. Note that you need an aircraft loaded and ready-to-fly (i.e. not in the MSFS menu). Also check that you are using the latest version of FSUIPC7, v7.3.4 - if not, update. John
  4. That would be good, thanks. The best place for this would be to create a topic in either the FAQ sub-forum or the User Contributions sub-forum. It would be better to do this as a post, rather than a document. But if you prefer to do this in Word 2003, you could export this as a pdf and attach it to a post in one (or both) of those sections. John
  5. No. If the lua is auto-running, why assign a button to start it? You cannot assign a button to a function in a lua script. To use the lua, you need to add some event.button calls which would call the appropriate lua function when one of your rotary buttons was detected. I have put together a script for you to try this - download to your FSUIPC7 installation folder and change the following variables to match your hardware: The script should be auto-started, preferably from a PMDG profile section: PMDGAutoBrake.lua (NB. script not tested as I don't have this aircraft!] What happened? Did you look at the log or try logging *Buttons & Keys + Events) to see what is happening? There is no point just saying 'it doesn't work'... Also, if writing your own presets, you should test the calculator code first using the Add-ons->WASM->Execute Calculator Code menu option, to check that it has the desired affect. Otherwise you could follow the advice of @mtjoeng and install LINDA...
  6. What list? Check that you are using the latest version of FSUIPC7, v7.3.4. If so, there should be a preset you can use for this: Preset: PMDG B737-7 GEAR OFF John
  7. Ok, that is interesting....but I can't see any changes between these versions that would cause this... Could you show me an FSUIPC7.log file from both versions please. John
  8. All the FSUIPC documentation is installed under your Documents folder, as well as a README.txt that is contained in the zip file you downloaded. You should at least read the README,txt and the Installation and Registration guide, which will tell you what is installed and where. However, if you are using an unregistered version for use by an FSUIPC client application, you don't normally need to do anything, and any config needed should be specified in the documentation for your client program. I cannot see how this can be related to FSUIPC7. As a test, uninstall FSUIPC7 (using the uninstallFSUIPC7.exe that will be in your FSUIPC7 installation folder) and see if you get the same problem. John
  9. Maybe, why not just try that as a preset, like the one I showed? But it would be better to use lua and do it properly, although it probably doesn't matter....whatever works for you really! Thanks @mtjoeng! John
  10. That is interesting, thanks! I keep forgetting Andrew has released his module for the MSFS PMDG 737. But that script/extract is also missing the functions PMDG_MPNL_AUTOBRAKE_move(numberOfpositions) PMDG_MPNL_AUTOBRAKE_show () - as well as the definition of the PMDG_EVT....Can you show those - as well as any other dependent functions. You always have to be careful extracting lua scripts from LINDA as there can be many dependencies, but it is a good reference to check how things work / what is available. @737AndiYou could try using LINDA if you are not familiar with lua. Or you could add the lvar L:switch_460_73X (which golds the current switch position) to an offset, and then use that as an offset condition for overloaded preset assignments...
  11. You can have multiple assignments to a button by manual editing the ini file. However, if you do this they will always be applied, regardless of the rotary position. Is there an lvar that you can use to determine the current rotary position? If so, you could add that to an offset and use that to determine the current rotary position, but O don't think this would work that well as the update of the lvar value will be a lot slower than the the check on this for the assignments. This seems strange, as if you are decreasing 6 times, and then increasing twice, isn't that the same as decreasing 4 times? BUT. lookig at the calc code for those 2 presets. they are the same....shouldn't the inc one use 46002? But you can do this by adding your own preset (to the myevents.txt file) that does this, e.g. PMDG_B737_AUTOBRAKE_MULTIPLE#46001 (>K:ROTOR_BRAKE) 46001 (>K:ROTOR_BRAKE) 46001 (>K:ROTOR_BRAKE) 46001 (>K:ROTOR_BRAKE) 46001 (>K:ROTOR_BRAKE) 46001 (>K:ROTOR_BRAKE) 46002 (>K:ROTOR_BRAKE) 46002 (>K:ROTOR_BRAKE) You could then (possibly) add an offset condition , if the current state of the switch is available in an lvar then you can add that to an offset and use that, and then overload the assignment to call the correct number if inc/decs depending on the current position. But its probably to do this in lua.... John
  12. No. You don't need to use event files any more - they have been superseded by presets. However, you can still use them if you prefer that method, but you would need to install the MF event module WASM to handle those events. The event files included with FSUIPC7 are also now quite old (and I won't be updating them any more) and not complete (and possibly out-of-date).
  13. There is no event file for the PMDG. However, you can create one if you wish, using the MobiFlight cip file. You would then also need the MobiFlight WASM module installed to handle those events. As event files have basically now been superseded by presets, I am no longer providing event files. There are no custom events provided and handled by the PMDG 737 as far as O a, aware - the custom events for this aircraft use the Rotor Brake control, with the parameter indicating the purpose/control. BUT, this will have nothing to do with your MCP not being able to connect. I don't know what your issue is with this and cannot really help you either. You need to contact whoever provides the software for this.
  14. Where have you installed FSUIPC7? Make sure that it is not in a windows protected folder, such as under your Documents or Program Files folder. Also, check that it is not there but with the extension hidden - make sure that 'Hide extensions for known file types' is not checked in your Windows Explorer options. It should certainly be in your FSUIPC7 installation folder, alongside your FSUIPC7.log file, and is created the first time you run FSUIPC7.
  15. MF presets have been included with FSUIPC7 since v7.2.16 - you do not need to use MobiFlight. The latest version, v7.3.4 (released yesterday) contains the latest MF events.txt file. To use these with FSUIPC7. you need the FSUIPC WASM installed and enabled (which you will have if using lvars), and they are assignable as any other control - in the drop-down menu for assignments. Please see the Advanced User guide for details on presets, as well as all other functionality provided by the FSUIPC WASM module.
  16. Why don't you just execute the script: ipc.execCalcCode(“1 (>L:LIGHTING_LANDING_1) 0 1 r (>K:2:LANDING_LIGHTS_SET) 1 1 r (>K:2:TAXI_LIGHTS_SET)”) Or avoid lua altogether and assign to the preset Preset: NOSE LIGHTS TAXI?
  17. Did you check that FSUIPC7 is running? Where/what software is this error message from? There is no *.evt file for the PMDG 737. Event files only provide access to custom events that are handled by either the aircraft or a WASM module. The event files that come with FSUIPC7 are mainly for use with the MobiFlight event module, although there is also one for the FBW A320. However, you do not really need use event files any more as they have been replaced by presets. A preset is a name attached to a calculator code string, which when used is applied by the FSUIPC WASM module. Event files are events that are mapped to similar calculator code strings but this is done in the handling module, usually the MF event module. The PMDG 737 seems to have implemented its custom controls using parameters for the Rotor Brake control. You can assign to this control directly, if you know the parameter values to use (I believe someone posted a spreadsheet containing these...somewhere...) - otherwise you can use (or at least take a look at) the preset calculator code, or see what is being used by a preset. For a searchable list of available presets, please see the MG HubHop resource: https://hubhop.mobiflight.com/presets/ John P.S. You seem to have raised the same question twice - I will delete the other one
  18. It is John - Peter retired several years ago, although he still occasionally helps out. They seem to be working for most folks...I cannot confirm as I do not have this aircraft at the moment... See https://hubhop.mobiflight.com/. Please read the Advanced User Manual for information on presets and on how to use the WASM to access lvars, hvars etc. You do not need to use MobiFlight to use presets. MF presets are included (in the events.txt file) with FSUIPC7 and they processed/applied using the FSUIPC7 WASM module. You can use the MFConnector.exe to download the latest events file and copy it to your FSUIPC7 installation folder if you wish (i.e. when there are new presets not in the one that is distributed with FSUIPC7), or you can just add any new preset manually to the events.txt file, or the myevents.txt file.
  19. You should complain/raise a ticket with Fenix as their installing is overwriting your original exe.xml with its own. It should update the existing exe.xml rather than replacing it. Yes - see attached. Bit its not that difficult - you just need to paste the new <Launch.Addon>...</Launch.Addon> section into your original exe.xml, withing the SimBase.Document element: exe.xml Take a backup of your exe.xml. If any installer overwrites or corrupts it in any way, you can go back to the original, look at the new exe.xml and copy the <Launch.Addon>...</Launch.Addon> section to the working exe.xml. John
  20. FYI, v7.3.4 was released yesterday which contains the latest MF events.txt file, as well as several bug fixes. John
  21. No - I added that ini parameter which, when activated, will try to do thus by calling the unregister_all_named_vars function, but this doesn't seem to make a difference. It should really be up to MSFS/Asobo (or maybe the aircraft developers) to do this - I don't think there is anything else I can do. I will look into increasing the maximum no of lvars available for the next release. However, there has to be some limit. It is recommended to clear your Community folder of (especially) aircraft that you are not using before starting MSFS. Many people use the MSFS addons linker for this. This also improves load times.
  22. I am confused by your post. You say: but also: So some presets work for other aircraft, but non for the PMDG 737? If so, then it sounds like FSUIPC7 is functioning correctly and applying the preset calculator code, but if this has no affect then it is a problem with the calculator code, not FSUIPC7. Check the preset/calculator code on the MF hubhop preset list, and report any problems to MobiFlight. FSUIPC is aircraft agnostic - you can apply any preset to any aircraft. There are no specific files (apart from those you create) for any aircraft. But there were no PMDG presets available for the PMDG in the events.txt file provided by FSUIPC7 until v7.3.4 (released yesterday). If not using this version, download and try that as it includes a more current MF events.txt file (from yesterday).
  23. This is already provided and is called myevents.txt - it is recommended to use thus file to add your own presets as the events.txt file will be updated/replaced when you re-install FSUIPC7. It is also recommended to submit any presets derived to the community-led MobiFlight HubHop preset list. Please see the Advanced user guide on using presets for details. This was released yesterday in v7.3.4 (as well as including the latest MF events.txt file, amongst other updates/bug fixes). Can you check this with the latest version as I think I have made further changes, but this does sound like an MSFS issue. If you don't want to use the MSFS key bindings, you can remove them - or set-up an empty profile for the keyboard as you would for other controllers if/when assigning in FSUIPC.
×
×
  • 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.