New Events can be added to scripts distributed with Oi4FSv2 date 2022-02-06

This is the forum to discuss and ask questions related to the new Oi4FS app for MSFS 2020
Post Reply
mvr1918
Site Admin
Posts: 1633
Joined: Thu Aug 30, 2012 3:35 pm

New Events can be added to scripts distributed with Oi4FSv2 date 2022-02-06

Post by mvr1918 »

The following Events are implemented in all Oi4FS v2.1 airplane drivers:

EVENT_PARKING_BRAKE, "PARKING_BRAKES");
EVENT_GEAR, "GEAR_TOGGLE");
EVENT_FLAPS_DN, "FLAPS_INCR");
EVENT_FLAPS_UP, "FLAPS_DECR");
EVENT_SPOILERS_ARM_TOGGLE, "SPOILERS_ARM_TOGGLE");
EVENT_SPOILERS_TOGGLE, "SPOILERS_TOGGLE");



If a user of Oi4FS has free hardware buttons on an Opencockpits hardware module, these buttons can be interfaced to any of the new EVENTS.

Do as follows to implement any or all of these EVENTs to an airplane script:

1. Open SIOC.exe
2. Load airplane script(i.e. OiMS320v1.4.ssi)
3. Click Edit Script in SIOC's window
4. Go to the bottom of the script and add an EVENT
Adding Event to script.png
Adding Event to script.png (64.45 KiB) Viewed 719 times
5.
Var 2853 is SPOILER_ARM_TOGGLE
Var 2854 is SPOILER_TOGGLE
Var 2855 is PARKING_BRAKES
Var 2856 is GEAR
Var 2857 is FLAPS_DECR
Var 2858 is FLAPS_INCR

In the example here a new EVENT is linked as a Static Var to device 32, input 34
6. Save the modified script
Andycyxu
Posts: 28
Joined: Thu Aug 21, 2014 12:10 am

Re: New Events can be added to scripts distributed with Oi4FSv2 date 2022-02-06

Post by Andycyxu »

Hi, is there somewhere a list of variables of what I can add? I am most interested in Aerosoft CRJ, lots of buttons on EFIS not programmed to do anything STA/WPT/CTR etc... maybe we could have MIN button rotary switch between HPA/IN.

Thanks
Andycyxu
Posts: 28
Joined: Thu Aug 21, 2014 12:10 am

Re: New Events can be added to scripts distributed with Oi4FSv2 date 2022-02-06

Post by Andycyxu »

yes, no, maybe ?

or all is there already written in your ssi file for crj and all i can do is just assign to a corresponding device/switch that I have on myt hardware ? I tried looking around there does not seem to be any kind of crj sdk...
mvr1918
Site Admin
Posts: 1633
Joined: Thu Aug 30, 2012 3:35 pm

Re: New Events can be added to scripts distributed with Oi4FSv2 date 2022-02-06

Post by mvr1918 »

At this time there is no additional events for the CRJ available. The CRJ doc in the Oi4FS package states which events that are implemented in the driver code.
Will additional events be implemeted in a future update of the CRJ code? At this time there is no plans.
Post Reply