Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    500+ This must be a daytime job
    Join Date
    Feb 2006
    Location
    N/A
    Posts
    511
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    FSX-Main Exit Toggle FSUIPC Offset?

    Looking to have the Main Exit Toggle work in FSX as an FSUIPC Offset; has anyone got an updated Offset? The past was 3367 or 3376, or using 3110 with bit number (need to verify this), but these were for FS9. Thus, the reason for looking to find an Offset for FSX.

    Why? Want to have an Offset or Send Key to FS via FSUIPC (Shift-E main door toggle, with 2-4 for other doors as well). Using InterfaceIT, we set a switch to work for the On/Down state to send Shift-E to FS via FSUIPC and nothing happens (still looking into this). Therefore, want to try Offset...

    BSD

  2. #2
    500+ This must be a daytime job
    Join Date
    Jul 2013
    Posts
    948
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    BSD

    For FSX

    Offset 3367 byte length 1 This byte shows doors that are open, one bit per door: 2^0 = Exit1 … 2^3 = Exit 4

    David

  3. #3
    500+ This must be a daytime job
    Join Date
    Feb 2006
    Location
    N/A
    Posts
    511
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    David,

    Is this 3367 the Output references that would indicate that the doors are opened (as in how it would indicate in the Overhead door status Annunciators)? Is there a Input reference Offset? One that would send for the door to open/close or toggle?

    BSD

  4. #4
    500+ This must be a daytime job
    Join Date
    Jul 2013
    Posts
    948
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    BSD

    Simply, I do not know I checked the FSX offset list and did not find any other reference to door(s)
    The list says that this offset is both read/write so it might be worth trying to write to this offset and see if it works!

    Regards

    David

  5. #5
    150+ Forum Groupie
    Join Date
    Jul 2006
    Location
    Kansas
    Posts
    157
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    How would SIOC script be written to open exit 1? I know what I have below is not correct.

    Var 0116, name doors, Link FSUIPC_INOUT, Offset $3367, Length 1 // doors
    {
    IF &doors = 0
    {
    &Door1= 0
    }
    IF &doors = 1
    {
    &Door1= 1
    }
    }
    Var 0117, name Door1, Link IOCARD_OUT, Output 33 // Door one light
    Home of the world's first South American DC-8 jetliner.
    Home of the Blue Angel F-4 Phantom simulator.

  6. #6
    500+ This must be a daytime job
    Join Date
    Jan 2007
    Posts
    564
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    Quote Originally Posted by blueskydriver View Post
    Is this 3367 the Output references that would indicate that the doors are opened (as in how it would indicate in the Overhead door status Annunciators)? Is there a Input reference Offset? One that would send for the door to open/close or toggle?
    You've evidently not noticed the actual amount of detail provided. The offsets reference list for FSX has two columns to the right, one for reading and the other for writing, and the entry for 3367 shows ok for both. It notes that the writing is done by sending an event to SimConnect. So you can control each door (of the 4 available in FSX) by changing its bit in 3367, OR by using the same event which FSUIPC4 would send -- "toggle aircraft exit" with 1, 2, 3 or 4 as the parameter. Of course in the latter case you'd test 3367 to see if it was already open or closed. Changing 3367 itself saves you that trouble.

    Pete

  7. #7
    500+ This must be a daytime job
    Join Date
    Feb 2006
    Location
    N/A
    Posts
    511
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    Hi Peter,

    This post was from a good while back and DC8 must've been looking along the same lines. However, if I remember right, I had a older verison of the FSUIPC Offsets List that only showed 3367 as an FS2004 offset. Later on I got an updated list and found the 3367 was as you mentioned, with the SimConnect references. So, I did manage to use 3367 as intended...

    Thank you for following up on this,

    John

  8. #8
    500+ This must be a daytime job
    Join Date
    Jan 2007
    Posts
    564
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    Quote Originally Posted by blueskydriver View Post
    However, if I remember right, I had a older verison of the FSUIPC Offsets List that only showed 3367 as an FS2004 offset. Later on I got an updated list and found the 3367 was as you mentioned, with the SimConnect references. So, I did manage to use 3367 as intended...
    There have always been two lists since FSX came out -- the "older list" you mention is for FS9 and before, only. The "FSUIPC4 Offsets Status List" is the prime offset reference for FSX and has been since FSX appeared. It started to become too confusing to include FSX in the original document which tried to cover everthing preceding FSX since FS98!

    Pete

  9. #9
    150+ Forum Groupie
    Join Date
    Jul 2006
    Location
    Kansas
    Posts
    157
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    Quote Originally Posted by Peter Dowson View Post
    You've evidently not noticed the actual amount of detail provided. The offsets reference list for FSX has two columns to the right, one for reading and the other for writing, and the entry for 3367 shows ok for both. It notes that the writing is done by sending an event to SimConnect. So you can control each door (of the 4 available in FSX) by changing its bit in 3367, OR by using the same event which FSUIPC4 would send -- "toggle aircraft exit" with 1, 2, 3 or 4 as the parameter. Of course in the latter case you'd test 3367 to see if it was already open or closed. Changing 3367 itself saves you that trouble.

    Pete
    I did notice the detail but with my near zero programming skills I dont understand how to turn it into SIOC script. When the offset is a simple on/off 1 or 0 I can write script to read/write.

    John, would you mind posting your script for me to see? Thanks.
    Home of the world's first South American DC-8 jetliner.
    Home of the Blue Angel F-4 Phantom simulator.

  10. #10
    150+ Forum Groupie
    Join Date
    Jul 2006
    Location
    Kansas
    Posts
    157
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FSX-Main Exit Toggle FSUIPC Offset?

    I found this SIOC script works nicely to read the status of Exit One and to toggle a corresponding output on an OC USB outputs card.

    Justin

    // * FileName : Door.txt
    // * Date : 3/6/2013



    Var 0001, name Exits, Link FSUIPC_IN, Offset $3367, Length 1 // Exit offset
    {
    &Exit1 = TESTBIT &Exits ,0 // bit 0 is for exit number one. 1 would indicate exit two.
    }
    Var 0002, name Exit1, Link IOCARD_OUT, Output 8 // Exit 1 indicator
    Home of the world's first South American DC-8 jetliner.
    Home of the Blue Angel F-4 Phantom simulator.

Page 1 of 2 12 LastLast