Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Using FSUIPC7 in the usual way I have tried assigning both keys and buttons to different cockpit views such as View_Up, View Down, View_Left and View_Right without success. It could be I'm suffering another "senior moment" (more like a senior day in this case  🤔  ). I have also tried using calculator code and presets, all to no avail. I frequently use a little Lua script to test things, and an example is below. I know the script runs because the test message at the end of the script is displayed as expected. When this script runs, just as when I try assigning a button or key to a view, nothing happens as far as the view from the aircraft is concerned. I have tried different aircraft with the same result. Other FSUIPC7 key and button assignments are working. The Asobo control bindings for the views also work.

If you have an idea on what I might be doing wrong or overlooking, or you have successfully assigned a key or button to execute a "view command" using FSUIPC7 ver 7.4.16 without the same key or button also being assigned to a default Asobo view command, please let me know.

Thanks,

Al

Here is my Lua test script:

ipc.execCalcCode(" (>K:VIEW_LEFT) ")   -- view left
ipc.sleep(2000)
ipc.control(65680)   -- view left
ipc.sleep(2000)

--*************** Window to Display Test Message *****************
 w = wnd.open("MSFS_Test", WND_FIXED, 20,90,600,20)     --  Script uses FSUIPC Window (wnd) library for message display 
 -- These set the colors and font to be used.
 -- The size "-1" means the largest font to fit 1 line(s) inside the window
 wnd.backcol(w, 0x000)       -- black
 wnd.textcol(w, 0x6C0)       --green
 wnd.font(w, WND_ARIAL,-1)
 wnd.clear(w)               -- clear window
 wnd.text(w, " MSFS TEST SCRIPT " )      --     Getting this message shows code above ran 
 ipc.sleep(2000)
 wnd.clear(w)               -- clear window

 

  • ark1320 changed the title to "VIEWS" Assignment Problem
Posted
5 hours ago, ark1320 said:

Using FSUIPC7 in the usual way I have tried assigning both keys and buttons to different cockpit views such as View_Up, View Down, View_Left and View_Right without success. It could be I'm suffering another "senior moment" (more like a senior day in this case  🤔  ). I have also tried using calculator code and presets, all to no avail. I frequently use a little Lua script to test things, and an example is below. I know the script runs because the test message at the end of the script is displayed as expected. When this script runs, just as when I try assigning a button or key to a view, nothing happens as far as the view from the aircraft is concerned. I have tried different aircraft with the same result. Other FSUIPC7 key and button assignments are working. The Asobo control bindings for the views also work.

If you have an idea on what I might be doing wrong or overlooking, or you have successfully assigned a key or button to execute a "view command" using FSUIPC7 ver 7.4.16 without the same key or button also being assigned to a default Asobo view command, please let me know.

The view controls have not been working since MSFS was released - from the README.,txt file:

Quote

Limitations
===========
Quite a few events/controls that are available in MSFS are not available (or are provided but have
no effect/don't work) for use by 3rd party applications via the provided SDKs. These include:
   - events for view control
   - events for slew control
   - events for weather

For view and slew control, you can assign in MSFS or assign in FSUIPC7 but to the default key assignments
used for view/slew control in MSFS.

You can also control use using the camera presets (under MobiFlight -> All vendors -> All Aircraft -> Camera).
Or you can set the simvars CAMERA STATE, CAMERA SUBSTATE, CAMERA VIEW TYPE AND INDEX:0 & CAMERA VIEW TYPE AND INDEX:1 individually via offsets 0x026D, 0x026E, 0x026F & 0x0270.

John

Posted
7 hours ago, John Dowson said:

The view controls have not been working since MSFS was released - from the README.,txt file:

John, thanks for the info. I had tried some presets (like View Left) but they send the same K event as in my Lua script above and didn't work. I will have to work with the Asobo default view bindings I think.

Regards,

Al

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.