Bourrinopathe Posted April 19, 2019 Report Posted April 19, 2019 (edited) Hi there! I'd like to know if there's a way to edit a file to implement more button mapping options. The idea would be to allow ON/OFF positions to several functions so it's easy to use a rocker, 2-position switch, momentary switch, etc. to handle those functions without checking. Using a single button/press on a device does not provide the same level of confidence/efficiency a real 2-position switch/rocker would in a real cockpit. I'd find it very useful for the following functions/circuits: I'm not sure how the mapping is defined in X-Plane and if it's possible to edit them, or if the specific dataref can be modified that way. Any help to edit/add those would be greatly appreciated (devs or users). Thanks! (still addicted to that flying supercar btw <3) Edited April 19, 2019 by Bourrinopathe Quote
Coop Posted April 19, 2019 Report Posted April 19, 2019 All the datarefs can be set to ensure everything is what you need it to be. A list of datarefs can be found here: https://www.notion.so/torquesim/4be24447f9b243b58aefc302d2ed5112?v=f0c5f70ac745461d9dba230a4b24e7bd Make sure to use the "afm/pr/switches/****" datarefs (Not the afm/pr/f/switches). Let me know if this helps! 1 Quote
Bourrinopathe Posted April 20, 2019 Author Report Posted April 20, 2019 (edited) @Coop Perfect reference! Thank you! I managed to add the commands to the device configuration using a FlyWithLua script. I'm testing a few additional commands and I'll adjust depending on my devices configuration. The switches are controlled perfectly and correctly animated, but I'm missing the sound effect. Is there something I can do to play the sound as I'm triggering the command? Edited April 20, 2019 by Bourrinopathe Quote
Coop Posted April 20, 2019 Report Posted April 20, 2019 Glad that's working. Sounds are only triggered by the command being pushed, so if you use your own hardware, the FMOD sound would not be triggered. Quote
Bourrinopathe Posted April 21, 2019 Author Report Posted April 21, 2019 (edited) Good enough I captured the sound effects from X-Plane and tried to use FlyWithLua to play them but it didn't work (I'm absolutely new to lua in general). Maybe it's my script, maybe it's something else (FMOD vs OpenAL?). So, I just used VoiceAttack to add the sounds to my switches, and it's now just as I wanted. Thanks again for your help @Coop! Edited April 21, 2019 by Bourrinopathe 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.