Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello Pete,

Could you please help me clear this bit of code I wrote for opening aircraft exits?

Using FS9, FSUIPC version 3.7.5.0, Saitek Yoke and two throttle quadrants

Key "K" assigned in FS to "Select exit"

Code in FSUIPC.ini:

[buttons]

1=P3,16,K75,8

2=P3,18,K75,8

3=P3,18,K50,8

4=P1,0,K75,8

5=P1,0,K51,8

6=P1,2,K75,8

7=P1,2,K52,8

Line 1 should open main exit (but. 16 on joy 1) = key "K" (correctly opens main exit)

Lines 2 and 3 should open second exit (but. 18 on joy 1) = key "K" then "2" (opens main exit)

Lines 4 and 5 should open main cargo door (but. 0 on joy 2) = key "K" then "3" (opens main exit)

Lines 6 and 7 should open 2nd cargo door (but. 2 on joy 2) = key "K" then "4" (opens main exit)

EDIT: Forgot to add that pressing keys "K" alone and "K" with "2","3" and "4", respectively, correctly open all the doors as it should.

What am I missing here? My old brain is turning to clay...

Thank you in advance! :)

Regards,

Jure

Posted
Key "K" assigned in FS to "Select exit"

...

EDIT: Forgot to add that pressing keys "K" alone and "K" with "2","3" and "4", respectively, correctly open all the doors as it should.

Why not use the FS controls instead of Key Presses? There's a control for the doors, and SELECT 14 controls for the selections. I think they should work better. Never did like keypresses. All they do is get converted to FS controls in any case. Better to use them direct where you can.

Either way, please use the FSUIPC logging (keys and buttons, events too) to see what it is seeing and doing.

Regards

Pete

Posted

Pete,

Key "K" assigned in FS to "Select exit"

...

EDIT: Forgot to add that pressing keys "K" alone and "K" with "2","3" and "4", respectively, correctly open all the doors as it should.

Why not use the FS controls instead of Key Presses?

I couldn't find more than one Aircraft Exit in FS Controls and went straight to key presses! Of course, now it makes perfect sense.... Select 1, 2,3,4... :roll: Thank you very much for the advice!

Out of curiosity, I will also check the logs to see what is going on.

Thanks again!

Regards,

Jure

Posted

Hi again, Pete,

I am glad to say that using FS Controls to assign four aircraft exits to joy buttons worked perfectly!

I learned something new and I think I'll get more adventurous now... 8)

Much obliged!

Regards,

Jure

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.