Jump to content
The simFlight Network Forums

Steku2

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Steku2

  1. Is there way to move the eyepoint up and down in MFS2020?

    I mean the commands in MFS2020 controls assignments:

    "Increase cockpit view height"

    "Decrease cockpit view height"

    The FSUIPC7 assignments "Eyepoint up" and "Eyepoint down" don't work.

    I want to assign these commands in FSUIPC because they have strange behavior when assigned directly in the sim: when assigned to keyboard the up/down movement is small and precise, when assigned to yoke button the movement is in much bigger intervals, loks like the autorepeat kicking in with yoke button (Honeycomb Alpha) and not the keyboard. I wonder if this is related to so called "10-debger heading bug" bug happening with this yoke (or any other input device with always-on switches") and triggering autorepeat. Supposedly this bug will be fixed in the MFS2020 World Update 3 (UK) expected 16/02/2021.

    I wonder if the way to go is to assign in FSUIPC to the yoke buttons the keypresses (which in turn are in the sim assigned to the "Increase/decrease cockpit view height") via:

    For keypresses: <Entry number> = <Action><Joy#>,<Btn#>,K<key>,<shifts>
     

  2. I can't convince WideClient to connect with FSUIPC7 and MFS2020.

    Wired LAN. MSF2020 running, flight loaded. FSUIPC7 working as expected on the server side. FSUIPC and WideFS registered via FSUIPC7 installer. Windows Defender firewall disabled on client and server. WideFS function enabled in FSUIPC7. Server name "BEATA-PIOTR". Issue persisting no matter if no server name specified, server name specified or IP specified (parameter names as specified in the manual). Both PC with Windows 10.

    I checked on 2 other PC clients (Win7 and Win10) - WideFS connects. So seems like client side issue.

    Personal data in the logs below replaced by *******************

    FSUIPC7.log

    ********* FSUIPC7, Version 7.0.0 (4th November 2020) by John Dowson *********
    No registry entries found for MSFS - setting paths from APPDATA env variable
    Checking for FS path in 'C:\Users\steck\AppData\Roaming\Microsoft Flight Simulator\UserCfg.opt'
    FS path found = P:\FS2020\Packages\
    WebSocket server found: C:\Users\steck\AppData\Roaming\Microsoft Flight Simulator\FSUIPC7\\Utils\FSUIPCWebSocketServer.exe
    Windows 10 Home 64 Bit reported as Build 19042, Release ID: 2009 (OS 10.0)
    Reading options from "C:\Users\steck\AppData\Roaming\Microsoft Flight Simulator\FSUIPC7\FSUIPC7.ini"
    Checking the Registrations now ...
    User Name="*******************"
    User Addr="*******************"
    FSUIPC7 Key is provided
    WideFS7 Key is provided
          156 System time = 08/12/2020 19:27:12
          156 FLT UNC path = "C:\Users\steck\AppData\Roaming\Microsoft Flight Simulator\"
          187 -------------------------------------------------------------------
          218 Registered HotKey 'InvokeFSUIPCOptionsKey' (key=0x46, modifier=0x1)
          265 FS UNC path = "P:\FS2020\Packages\"
          281 ---------------------- Joystick Device Scan -----------------------
          281 -------------------------------------------------------------------
          359 LogOptions=00000000 00000001
         3218 Simulator detected
         8281 SimConnect_Open succeeded
         8296 Running in "KittyHawk", Version: 11.0.282174.999 (SimConnect: 11.0.62651.3)
         8296 MSFS version = 11.0.282174.999
         8296 Initialising SimConnect data requests now
         8328 C:\Users\steck\AppData\Roaming\Microsoft Flight Simulator\MISSIONS\Custom\CustomFlight\CustomFlight.FLT
         8328 SimObjects\Airplanes\Asobo_C172sp_classic\aircraft.CFG
         8343 User Aircraft ID 1 supplied, now being used
         8359 Aircraft loaded: running normally now ...
         8734 Aircraft="Cessna Skyhawk Asobo"
         8750 System time = 08/12/2020 19:27:21, Simulator time = 10:25:10 (09:25Z)
        11812 Starting WideServer now ...
        14718 -------------------- Starting everything now ----------------------
        14796 LUA.1: Could not open HID
        14859 LUA.2: Could not open HID

    WideClient.ini

    ; PLEASE SEE WideFS documentation for parameter details
    ; =====================================================
    
    [Config]
    Port=8002
    Window=77,197,886,589
    Visible=Yes
    ButtonScanInterval=20
    ClassInstance=0
    NetworkTiming=5,1
    MailslotTiming=1000,1000
    PollInterval=2000
    Port2=9002
    ReconnectMinutes=0
    ResponseTime=18
    ApplicationDelay=0
    TCPcoalesce=No
    WaitForNewData=500
    MaxSendQ=100
    OnMaxSendQ=Log
    NewSendScanTime=50
    Priority=3,1,2
    ServerName=BEATA-PIOTR
    Protocol=TCP
    
    ; -----------------------------------------------
    [User]
    Log=Errors+
    
    ; ===============================================
    [Sounds]
    Path=C:\Users\Test\Desktop\WideFS7\Sound\
    Device1=Primary Sound Driver
    Device2=Lautsprecher (Realtek(R) Audio)
    

    WideClient.log

    ********* WideClient Log [version 7.159] Class=FS98MAIN *********
    Date (dmy): 08/12/20, Time 19:43:06.866: Client name is PRIMETAB
          454 Attempting to connect now
          454 LUA: "C:\Users\Test\Desktop\WideFS7\Initial.LUA": not found
          500 Trying TCP/IP host "BEATA-PIOTR" port 8002 ...
          500 ... Okay, IP Address = 192.168.0.7
         2547 Error on client pre-Connection Select() [Error=10061] Connection refused
         2547 Ready to try connection again
         3547 Attempting to connect now
        61969 Trying TCP/IP host "BEATA-PIOTR" port 8002 ...
        61985 ... Okay, IP Address = 192.168.0.7
       123516 Trying TCP/IP host "BEATA-PIOTR" port 8002 ...
       123516 ... Okay, IP Address = 192.168.0.7
       185110 Trying TCP/IP host "BEATA-PIOTR" port 8002 ...
       185110 ... Okay, IP Address = 192.168.0.7
       246688 Trying TCP/IP host "BEATA-PIOTR" port 8002 ...
       246688 ... Okay, IP Address = 192.168.0.7
       308250 Trying TCP/IP host "BEATA-PIOTR" port 8002 ...
       308250 ... Okay, IP Address = 192.168.0.7
       369813 Trying TCP/IP host "BEATA-PIOTR" port 8002 ...
       369813 ... Okay, IP Address = 192.168.0.7
    
       424344 ****** End of session performance summary ******
       424344 Total time connected = 0 seconds
       424344 Reception maximum:  0 frames/sec, 0 bytes/sec
       424344 Transmission maximum:  0 frames/sec, 0 bytes/sec
       424344 Max receive buffer = 0, Max send depth = 0, Send frames lost = 0
    
       424344 ********* Log file closed (Buffers: MaxUsed 0, Alloc 0 Freed 0 Refused 0) *********

    I would appreciate your advice.


     

  3. Thank you very much. 

    Your adapted script wasn't functional initially, but I added:

    buttons = {}

    and now it works for the buttons above 0-31, exactly what I needed to handle Honeycomb Alpha Yoke Magneto multiposition switch. No longer chasing the buttons on screen with mouse! Let's hope Asobo will soon fix simconnect.

    Years ago, when I was building my H/W panel for FSX, I wouldn't be possible without FSUIPC. New sim arrived, but only with FSUIPC it can be really useful. Thank you for this wonderful piece of software and first-class support!

     

    HidButtons32-39.lua

  4. It works now, but it's a bit erratic. What I'm trying to achieve is to assign Magneto L, BOTH, START switch postions of the Honeycomb Alpha Yoke (buttons 32, 33, 34).

    Whenever I change the position of any switch (or press a button) on the Apha Yoke below 32 switch/button limit it registers twice in the FSUIPC button UI:

    - as "original" button (without LUA) - "C" joystick

    - as "virtual" button (via LUA) - "65" jotstick

    Is the are way to mask in the lua script all the axes and the buttons below 32 and present as virtual switches only the 3 magneto switch positions, above the 32 button limit?

    Here is the relevant part of my config:

    [JoyNames]
    0=Alpha Flight Controls
    0.GUID={D27F6C30-CEB5-11EA-8001-444553540000}
    1=3-osiowy 9-przyciskowy joystick
    1.GUID={54A8FEA0-3755-11E9-8004-444553540000}
    A=CH PRO PEDALS USB
    A.GUID={7EB89080-F0D3-11E7-8001-444553540000}
    B=3-osiowy 9-przyciskowy joystick
    B.GUID={54A8FEA0-3755-11E9-8004-444553540000}
    2=CH PRO PEDALS USB
    2.GUID={7EB89080-F0D3-11E7-8001-444553540000}
    C=Alpha Flight Controls
    C.GUID={D27F6C30-CEB5-11EA-8001-444553540000}
    
    [Buttons]
    PollInterval=25
    ButtonRepeat=20,10
    1=PC,12,Cx01003102,x01     -{offset byte set, offset 3102}-
    2=PC,13,Cx01003102,x00     -{offset byte set, offset 3102}-
    3=PC,14,Cx01003101,x01     -{offset byte set, offset 3101}-
    4=PC,15,Cx01003101,x00     -{offset byte set, offset 3101}-
    6=PC,21,Cx01003125,x00     -{offset byte set, offset 3125}-
    7=PC,20,Cx01003125,x01     -{offset byte set, offset 3125}-
    8=PC,22,C66701,1     -{AVIONICS_MASTER_SET}-
    9=PC,23,C66701,0     -{AVIONICS_MASTER_SET}-
    10=PC,24,C66072,0     -{PITOT_HEAT_ON}-
    11=PC,25,C66073,0     -{PITOT_HEAT_OFF}-
    12=PC,26,Cx010008B2,x01     -{offset byte set, offset 08B2}-
    13=PC,27,Cx010008B2,x00     -{offset byte set, offset 08B2}-
    14=PC,28,C66052,0     -{STROBES_ON}-
    15=PC,29,C66053,0     -{STROBES_OFF}-
    16=PC,30,C66023,0     -{MAGNETO_OFF}-
    17=PC,31,C66024,0     -{MAGNETO_RIGHT}-
    18=PC,16,C65958,0     -{FUEL_SELECTOR_RIGHT}-
    19=PC,17,C65957,0     -{FUEL_SELECTOR_LEFT}-
    20=PB,0,C66059,0     -{LANDING_LIGHTS_ON}-
    21=PB,1,C66060,0     -{LANDING_LIGHTS_OFF}-
    22=PB,2,Cx05000D0C,x01     -{offset byte setbits, offset 0D0C}-
    23=PB,3,Cx09000D0C,x01     -{offset byte clrbits, offset 0D0C}-
    24=PB,4,Cx05000D0C,x08     -{offset byte setbits, offset 0D0C}-
    25=PB,5,Cx09000D0C,x08     -{offset byte clrbits, offset 0D0C}-
    26=RC,5,C65607,0     -{ELEV_TRIM_DN}-
    27=RC,4,C65615,0     -{ELEV_TRIM_UP}-
    28=RC,9,C65879,0     -{HEADING_BUG_INC}-
    29=RC,8,C65880,0     -{HEADING_BUG_DEC}-
    30=RC,7,C65892,0     -{AP_ALT_VAR_INC}-
    31=RC,6,C65893,0     -{AP_ALT_VAR_DEC}-
    33=P65,0,C66025,0     -{MAGNETO_LEFT}-
    34=P65,1,C66026,0     -{MAGNETO_BOTH}-
    35=P65,2,C66027,0     -{MAGNETO_START}-

     

  5. I have no experience with LUA. Where the lua script should be located?

    Following the manual I:

    - modified the data of the Honeycomb Alpha Yoke in the demo lua script:

    Vendor = 0x294B
    Product = 0x1900

    - added the script to the FSUIPC ini:

    [Auto]
    1=HidDemo

    I placed the HidDemo.lua in the same folder as FSUIPC7

    To be honest I have no idea how to make the lua script running. And how to access the virtual buttons in the FSUIPC7 interface.

×
×
  • 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.