Jump to content
The simFlight Network Forums

Recommended Posts

Posted

I wonder if this would be possible with FSUIPC?

By default, pressing the in-game key button to change to an instrument view will result in a smooth camera transition to the selected view. I do not want this transition. When selecting the instrument view from the camera selection window the change will be direct, as desired. But I do not want to use the selection window, I want to use a shortkey button instead.

Is it possible within FSUIPC to mimick the press from the selection window and bind this to a key? Or would it be in some other way possible to directly change instument view with a shortkey?

Posted

For view controls, you can try the available FS controls for switching views:
    NEXT_VIEW
    PREV_VIEW
    NEXT_SUB_VIEW
    PREV_SUB_VIEW

However, if you want to assign a key or button to jump straight to a specific view, you gave two options:
   - try the available presets (see https://hubhop.mobiflight.com/presets/ and search for Camera). These are the generic camera entries available in the MF evemts.txt file:

Quote

//All vendors/All Aircraft/Camera
CAMERA_ACTION_COCKPIT_VIEW_RESET#1 (>A:CAMERA ACTION COCKPIT VIEW RESET,bool)
CAMERA_ACTION_COCKPIT_VIEW_SAVE#1 (>A:CAMERA ACTION COCKPIT VIEW SAVE:index,Bool)
External_Quick_View_-_Quick_View_1#3 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
External_Quick_View_-_Quick_View_2#3 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
External_Quick_View_-_Quick_View_3#3 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
External_Quick_View_-_Quick_View_4#3 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
External_Quick_View_-_Quick_View_5#3 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
External_Quick_View_-_Quick_View_6#3 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
External_Quick_View_-_Quick_View_7#3 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 6 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
External_Quick_View_-_Quick_View_8#3 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 7 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
External_View_-_Default#3 (>A:CAMERA STATE,Enum) 1 (>A:CAMERA SUBSTATE,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Fin_View#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Front_Cabin_Crew_Seat#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 12 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Front_Left_Door_Enter#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 14 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Front_Right_Middle_Seat#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 13 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Left_Engine#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Left_Wing_Window_#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 6 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Left_front_Window#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 8 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Nose_gear#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Passanger_Look_Aft#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 15 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Passanger_look_Forward#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 16 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Rear_Left_Middle_Seat#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 11 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Rear_Top_View#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 10 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Right_Engine#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Right_Wing_Window#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 7 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Right_front_Window#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 9 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Underbelly_Close#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Fixed_Camera_ShowCase_-_Underbelly_Far#5 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Free_Camera_-_Camera_Drone#4 (>A:CAMERA STATE,Enum) 0 (>A:CAMERA SUBSTATE,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_CB_WALL#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 8 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_Dual_MCDU_Cap___FO#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_EFB_CAPTAIN#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 9 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_EFB_FO#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_FCU_and_ECAM__Angled_#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_MCDU_Captain#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_OVERHEAD__Angled_#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 6 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_PEDESTAL__Angled_#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_PFD_ND#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Instrument_View_-_UPPER_OVERHEAD#2 (>A:CAMERA STATE,Enum) 5 (>A:CAMERA SUBSTATE,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 7 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Pilot_View_-_Close#2 (>A:CAMERA STATE,Enum) 1 (>A:CAMERA SUBSTATE,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Pilot_View_-_Copilot#2 (>A:CAMERA STATE,Enum) 1 (>A:CAMERA SUBSTATE,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Pilot_View_-_Landing#2 (>A:CAMERA STATE,Enum) 1 (>A:CAMERA SUBSTATE,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Pilot_View_-_Normal#2 (>A:CAMERA STATE,Enum) 1 (>A:CAMERA SUBSTATE,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Quick_View_-_Front__Zoom_in_#2 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Quick_View_-_Left_120_Degree#2 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 4 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Quick_View_-_Left_45_Degree#2 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Quick_View_-_Left_90_Degree#2 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 0 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Quick_View_-_Rear_180_Degree#2 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 1 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Quick_View_-_Right_120_Degree#2 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 7 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Quick_View_-_Right_45_Degree#2 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 6 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)
Quick_View_-_Right_90_Degree#2 (>A:CAMERA STATE,Enum) 3 (>A:CAMERA SUBSTATE,Enum) 3 (>A:CAMERA VIEW TYPE AND INDEX:0,Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:1,Enum)

- try the camera offsets:
    0x026D - Camera State
    0x026E - Camera Substate
    0x026F / 0x0270 - Camera View Type and Index
  Best to log these first to see what values they hold for the views you want to access via a key or button press. You can then either assign to update these offsets to the relevant values, or create a preset to do this.

Also please see other support requests on controlling views. Start with this one, which also contains links to several other similar topics:

That should be enough to get you started. If you require further assistance, let me know.

 

Posted

Hello John,

Thank you for answering.

I tried the first method however nothing happens when I press the key.

This is what the settings looks like.

image.png.c8bdaa4813e0265df3fd417dff7772d0.png

Quote

[Keys]
12=77,8,PInstrument_View_-_OVERHEAD__Angled_,0     -{M: Press=Preset Control }-

 

Surely I am missing something or not?

Posted

I tried that preset in the PMDG 737 and it is working as expected here.

Have you used any presets before, and if so were they working?

Do you have the WASM installed and enabled? Could you please attach your FSUIPC7.log and FSUIPC7.ini files and I will take a look.

Note that i am on holiday from this evening, back on support on Tuesday 6th. So unfortunately I will not be able to look into this further until later next week.

Also ,ale sure that you are using the latest version of FSUIPC7, version 7.4.16. If you install that and accept the defaults, the WASM should be installed and enabled, but if not enabled you can enable from Add-ons->WASM->Enable.

Try that and any issues attach those files and I will take a look next week.

John

Posted

Thank you, I had WASM installed but it was not active. I assigned the the keys and it works fine now. Had to change some of the presets for the desired camera changes and put them in my own myevents.txt file.

Only one problem left. Sometimes after launching MSFS the shortkeys do not work. FSUIPC has started but none of the keys work. If I then restart FSUIPC manually the keys work again. I can't really reproduce this, it seems random. Sometimes it works, sometimes not.

Posted
On 8/4/2024 at 1:46 PM, CaptainPatrick said:

Only one problem left. Sometimes after launching MSFS the shortkeys do not work. FSUIPC has started but none of the keys work. If I then restart FSUIPC manually the keys work again. I can't really reproduce this, it seems random. Sometimes it works, sometimes not.

Can you please activate logging for Buttons & Keys and show me / attach a FSUIPC7.log file from when the keys don't work and I will take a look.

John

Posted
8 hours ago, CaptainPatrick said:

First time starting MSFS: keys working correctly. After restarting MSFS: keys do not work.

And when you restart MSFS, is FSUIPC7 again auto-started? And when this happens, if you restart FSUIPC7 the keys then work?

8 hours ago, CaptainPatrick said:

I have attached the .log.

The log shows no key presses were received by FSUIPC7.

The next time this happens, can you try disconnecting FSUIPC7 from MSFS and reconnecting, via FSUIPC's MSFS menu.

This seems to be an issue that occurs occasionally - FSUIPC7 requests all key presses when it connects, but sometimes no keys are sent, and no error is received. I am not sure why this is, or what I can do about it. And I cannot reproduce this behavior here.

In your log, I see you are auto-running lua script PMCO_FNX32X.lua which is exiting if the Fenix A320 isn't loaded. Rather than doing this, you should only start the script in an auto profile section for the Fenix A320.

Posted
8 hours ago, John Dowson said:

And when you restart MSFS, is FSUIPC7 again auto-started? And when this happens, if you restart FSUIPC7 the keys then work?

Both yes.

8 hours ago, John Dowson said:

The next time this happens, can you try disconnecting FSUIPC7 from MSFS and reconnecting, via FSUIPC's MSFS menu.

Yes, that works aswell. Seems like it is really easy to reproduce for me as it happens every time I restart MSFS. It just does not happen with the first start.

9 hours ago, John Dowson said:

In your log, I see you are auto-running lua script PMCO_FNX32X.lua which is exiting if the Fenix A320 isn't loaded. Rather than doing this, you should only start the script in an auto profile section for the Fenix A320.

I installed it per the readme of this addon: https://flightsim.to/file/39243/pmco-fnx32x-pilot-monitoring-callouts-for-the-fenix-a320-add-on

However, if I want to follow your advice, would this be the correct way to load it for ALL Fenix A320's?

[Profile.Fenix A320]
1=FenixA320

[Auto.Fenix A320] 
1=Lua PMCO_FNX32X

And what about the "FenixA320". Does this refer to the "Title" within the aircraft.cfg? What if someone's custom livery does not start with "FenixA320"?

Posted
9 hours ago, CaptainPatrick said:

However, if I want to follow your advice, would this be the correct way to load it for ALL Fenix A320's?

[Profile.Fenix A320]
1=FenixA320

[Auto.Fenix A320] 
1=Lua PMCO_FNX32X

Yes, looks ok to me.

9 hours ago, CaptainPatrick said:

And what about the "FenixA320". Does this refer to the "Title" within the aircraft.cfg?

Yes.

9 hours ago, CaptainPatrick said:

What if someone's custom livery does not start with "FenixA320"?

Its a substring match, so the aircraft Title must contain that string to match. If there is a livery that doesn't contain this., it will not match and therefore the profile will not load. Uoi would have to add any such aircraft to the profile. Alternatively, you can switch to using the folder name to match profiles, by setting the UseAirLocForProfiles ini parameter - see the Advanced User guide for details. Note however that if you change to this method you wil have to redo all your current profile sections (i.e. remove the current aircraft names from the profile sections and re-attach each aircraft to its profile.

9 hours ago, CaptainPatrick said:

Seems like it is really easy to reproduce for me as it happens every time I restart MSFS. It just does not happen with the first start.

Ok. As it seems like a timing issue, you could try increasing the DetectToConnectDelayAuto ini parameter. Try increasing by 5 (seconds) or so, and keep increasing to see if this stops happening. Other than that, I don't know why this seems to affects some people and not others. I could possibly look to see if I can test for this (e.g. send a test key combination to MSFS and see if it is returned) and reconnect (or re-request) id this fails, but I would rather determine the root cause.

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.