Jump to content
The simFlight Network Forums

John Dowson

Members
  • Posts

    11,452
  • Joined

  • Last visited

  • Days Won

    226

Posts posted by John Dowson

  1. 1 hour ago, jr2mey said:

    I am curious to know if it's possible to use the IPC.SET() to create a global on a client computer and have it read on the server computer to initiate a macro or lua script without having to use a polling timer.

    Please see the FSUIPC Lua Library document - the ipc.set finction is documented as follows:

    Quote

    Stores a Lua value (any simple type -- i.e. numbers, strings, booleans) as a Global with the given name. This can be retrieved by this or any other Lua plug-in by using “ipc.get”. This mechanism provides a way for a Lua plug-in to pass values on to successive iterations of itself, or provide and retrieve values from other Lua plug-ins.

    With effect from FSUIPC version 4.958, in combination with WideClient version 6.999z2, the ‘Globalness’ of these values extends between Clients and Server in a WideFS network, so can be used to communicate values and strings over the network without resorting to user offsets. This only works if Server and Clients are in the same workgroup.

    Use of this should be sparing – the Windows Mailslot system is used and may not cope with excessive use very well. Also note that there is no backlog – the globals are only broadcast when being set (by ipc.set), so anything set before a client is actually running won’t be seen by it. Also the Network protocol used is not checked – messages are not guaranteed to arrive. Retries, maybe by a system of Acknowledgement values, are up to the plug-in and would be advisable in any “mission-critical” application of this facility.

    Note that there are limits on the sizes for network Globalness: the variable names must not be greater than 32 characters, and string values should be no longer than 384 characters. Values outside these limits do not participate.

     

    1 hour ago, jr2mey said:

    Looking over the event lua library, I am not seeing one that I can use to monitor globals or any changes to them.

    Given the above, why not?

    John

  2. 7 hours ago, DaveSCUSA said:

    Do you use the Alpha and Bravo with your C510. If so, could you show a few entries that work?

    I have the Alpha and Bravo on my flight system, but I don't have the C510 installed there yet - and haven't used this system for quite a while now and everything will need updating.
    I also don't fly this aircraft - I purchased to help others out with assignments as it is quite different from most other aircraft.

    7 hours ago, DaveSCUSA said:

    Specifically, when I turn my Alpha battery switch on - cockpit remains dark. Turn the battery on via Air manager, turns on. AVN PWR doesn't turn on with the Alpha, works with Air Manager. Also, no joy with the Alternators.

    Ok, I can look into the assignments needed for the batteries and the alternator.

    7 hours ago, DaveSCUSA said:

    Please can you give me some examples from your setup to help me thru this.

    As I said, I don't currently have this fully configured - only a couple of assignments on my development system. However, I will take a look and get back to you.

    Looking at your ini, these assignments are wrong:

    Quote

    22=PF,137,PC510_Pitot_Switch_On,0        -{Pitot_Switch_On}-
    23=PF,138,PC510_Pitot_Switch_Off,0    -{Pitot_Switch_Off}-

    and should be:

    Quote

    22=PF,137,CPC510_Pitot_Switch_On,0        -{Pitot_Switch_On}-
    23=PF,138,CPC510_Pitot_Switch_Off,0    -{Pitot_Switch_Off}-

    Did you manually change this?

    John

  3. 30 minutes ago, xkoote said:

    The event between 32906 and 33422 is a successful programming and implementation of selecting a button in the cockpit. (SD ENG page). The events between 37812 and 38047 show how even though I programmed the button exactly the same way as the previous one. It does not work.

    What event/control numbers are those? Third-party events start at number 69632, and the first/lowest custom event number shown in that web page is this one:
        EVT_MD11_PED_CPT_RADIO_PNL_XFER_BT_LEFT_BUTTON_DOWN            69644
    i.e. event 69664.

    If you look at the log file you posted, you will see this:

    Quote

         4140 Mapping custom control numbers 69632 - 84232

    So this is the range you can use for third-party events (also known as custom controls). Looks like the TFI Design MD-11 uses third-party control numbers from 69644 to 96323, so you currently won't be able to use those above 84232. This is currently a hard-coded maximum. For the next release I will add an additional ini parameter so that the max custom control/event number can be specified. I will release the next version shortly after SU15 is released, which should be any day now. Once I have made this change, I will also post details in this topic and can maybe supply you a beta version to test (if not released yet).

    Your log file shows errors when using custom events above 84232:

    Quote

        37812 Button changed: bRef=0, Joy=2 (L), Btn=11, Pressed
        37812 [Buttons.TFDi Design MD-11 GE Factory Rollout N111MD] 70=PL,11,C86094,0
        37812 FS Control Sent: Ctrl=86094, Param=0  <86094>
        37812 Exception 1 "ERROR", Ref 19655, Index param 2 on TransmitClientEvent, object=1, id=86094 (????), data=0
        38031 Button changed: bRef=0, Joy=2 (L), Btn=11, Released
        38031 [Buttons.TFDi Design MD-11 GE Factory Rollout N111MD] 71=UL,11,C86095,0
        38031 FS Control Sent: Ctrl=86095, Param=0  <86095>
        38047 Exception 1 "ERROR", Ref 19656, Index param 2 on TransmitClientEvent, object=1, id=86095 (????), data=0

    These other errors in your log file:

    Quote

         5109 [Buttons.TFDi Design MD-11 GE Factory Rollout N111MD] 17=PJ,31,CPMD11 AutoBrake OFF,0
         5109  [ERROR]: Error setting Client Data Calculator Code [-2147467259]: '1 (>L:md11_ctr_autobrake_sw,number)'
         5109 Button changed: bRef=0, Joy=1 (J), Btn=16, Pressed
         5109 [Buttons.TFDi Design MD-11 GE Factory Rollout N111MD] 31=PJ,16,CPMD11 No Smoking AUTO,0
         5109  [ERROR]: Error setting Client Data Calculator Code [-2147467259]: '1 (>L:md11_ovhd_lts_no_smoke_sw,number)'
         5109 Button changed: bRef=0, Joy=1 (J), Btn=18, Pressed
         5109 [Buttons.TFDi Design MD-11 GE Factory Rollout N111MD] 32=PJ,18,CPMD11 Seatbelt AUTO,0
         5109  [ERROR]: Error setting Client Data Calculator Code [-2147467259]: '1 (>L:md11_ovhd_lts_seat_belts_sw,number)'
         5109 Button changed: bRef=0, Joy=1 (J), Btn=24, Pressed
         5109 [Buttons.TFDi Design MD-11 GE Factory Rollout N111MD] 34=PJ,24,CPMD11 Landing Light Left OFF,0
         5109  [ERROR]: Error setting Client Data Calculator Code [-2147467259]: '0 (>L:md11_ovhd_lts_ldg_l_sw,number)'
         5109 [Buttons.TFDi Design MD-11 GE Factory Rollout N111MD] 35=PJ,24,CPMD11 Landing Light Right OFF,0
         5109  [ERROR]: Error setting Client Data Calculator Code [-2147467259]: '0 (>L:md11_ovhd_lts_ldg_r_sw,number)'
         5109 [Buttons.TFDi Design MD-11 GE Factory Rollout N111MD] 36=PJ,24,CPMD11 Taxi Light OFF,0
         5109  [ERROR]: Error setting Client Data Calculator Code [-2147467259]: '0 (>L:md11_ovhd_lts_nose_sw,number)'
    ...etc

    are because you are trying to use  buttons assigned to presets before everything is loaded. You cannot use presets/lvars/hvars until the WAPI has established a connection and the initial set of lvars have been received, which is logged here:

    Quote

        12047 -------------------- Starting everything now ----------------------
        12047 Starting WideServer now ...
        12047 Starting WAPI....
        12047   [INFO]: **** Starting FSUIPC7 WASM Interface (WAPI) version 1.0.4 (WASM version 1.0.3) using connection -1
        12047   [INFO]: Connected to MSFS
        12109 Lvars received: 1584 L:vars & 0 H:vars now available

    So you need to wait a short while (an additional 7 seconds or so) after the aircraft is loaded before you try and operate it via FSUIPC7 assignments to presets.

    John

  4. I have added a new ini parameter that goes in the [JoyNames] section that will allow you to ignore a device, which hopefully should help with this issue.
    I have attached a beta release below if you could try it. To use this to ignore the phantom Xbox controller, add
        IgnoreDevice=0x28DE,0x11FF
    to your [JoyNames] section.

    I have only added this to the HID scanning which should be sufficient, but if there are still issues I can look into ignoring in the reg scanning as well.

    FSUIPC7.exe

     

    John

     

     

  5. 9 hours ago, DaveSCUSA said:

    i messed up as the profiles in the Profiles folder weren't working.

    Are you using "profiles in separate files" then? The usual reason for profiles not loading is that the aircraft name doesn't match the names of the aircraft in the profile entry, usually due to a different livery being used. To prevent this, when you add an aircraft to a profile, you should edit the name of the aircraft in the profile section of the ini file to a shorter substring to catch all variants of the aircraft. This is my entry for the C510:

    Quote

    [Profile.C510]
    DontLogThese=67227,65568,65962,66523
    1=Cockspur C510

    The profile used is not logged, but if general button or key definitions are overridden by a profile, then this should be logged.

    If you are having issues, please explain and attach both your FSUIPC7.ini, your FSUIPC7.log and also your profile ini, if using profiles-in-separate-files.

    John

  6. 1 hour ago, Bambiigamingttv said:

    I have the same issue, both Edge and Opera gx will not download the latest version due to an virus in the file

    As already noted many times, there is now a false-positive report in Windows Defender since the recent update (1,409.80 from 06/04/2024 or maybe a day or two earlier or later, depending upon when the update was pushed). This is definitely a false positive and I have reported it to Microsoft and am awaiting a response.

    There is nothing that I can do about this at the moment. To download and install FSUIPC7 (on Windows 11, 10 should be similar), you will have to temporarily allow this threat. To do this, go to the Windows Security panel and select the Virus & threat protection page, ant then select Protection History. Select the entry for the installer (should be the first entry), and then under the Actions menu select Allow. This will allow you to download and run the installer.

    Once you have installed FSUIPC7, Go back to the main Virus & threat protection page, click on Allowed threats, select the entry just added (will be Trojan:Win32/nyonm) and click Don't Allow.

    You will need to do this to install FSUIPC7 for the time being. Hopefully Microsoft will resolve this issue soon.

    Note that when downloading from fsuipc.com you may also get an 'insecure download blocked' warning. This is a separate issue and is because the fsuipc.com site is still on http and not https (sorry, haven't had time to update this yet, been on my to-do list for several years...). Just click Keep (or similar) in your browser. The file itself will still be downloaded over https so this is not an issue.

    For other users who are experiencing this, there is no point posting about this as it is a known issue. I will update this topic when I get a response from Microsoft or have any new information.

    It also seems that the latest beta release doesn't have this issue (no idea why!), so you can also use/try this if you do not want to allow the current installer to run, available here: https://fsuipc.simflight.com/beta/Install_FSUIPC7beta.exe

    John

  7. It seems that the latest beta release is not affected by this - I don't know why. This is an exe rather than a zip, so is missing some documentation (README.txt and changes.txt files), but you can try downloading this if you have issues with the official release:
        https://fsuipc.simflight.com/beta/Install_FSUIPC7beta.exe

    However, there will most probably still be issues with BitDefender and the RegistrationChecker in this version.

    John

  8. First, note that the gauges display the temperature in Fahrenheit, but the offset holds the temperature in Celsius.

    However, there does seem to be an issue. When I start the PMDG 737 I see the offset increase in value from 0 up to around 80, and if I adjust the temperature this can go above 100C!
    This is obviously not correct, and should be reported to PMDG.

    John

     

  9. FSUIPC just populates the PMDG offsets with the data received from the aircraft. If it is not holding the correct value, then this can be due to one of two things:
       1. The PMDG data format has changed. I can check this.
       2. The data PMDG is sending is not correct. I cannot do anything about this and this should be reported to PMDG.

    I will take a look at 1 and get back to you.

    John

    • Like 1
  10. 7 hours ago, h512243512 said:

    i just sovled problem by sending direct to calibration  and then i calibrate it 

    Ah, ok...

    7 hours ago, h512243512 said:

    it is weird , it should be working when i choose to send to fs as normal axis

    This depends. Some add-on aircraft don't work well when assigned using Send to FS as normal control  and are then also calibrated in FSUIPC7, due to the priority levels. The aircraft will intercept the initial axis control, pre-calibration, rather than the calibrated axis control.

    Anyway, glad your issue is fixed.

    John

  11. 12 hours ago, JakedarlingYT said:

    FSUIPC7 splash-screen never popped up

    Can you show me the InstallFSUIPC7.log please, from when you re-installed after renaming the UserCfg.opt file. Also please attach your FSUIPC7.log file, which will be in your FSUIPC7 installation folder.

    12 hours ago, JakedarlingYT said:

    i belived to have fixed it because it poped up when i opened it

    The auto-start issue is not fixed - you started FSUIPC7 manually. You can continue to do this to use FSUIPC7, but if you want this to be automatically started then this issue will need to be fixed. There is a FAQ entry on auto-start issues - see 

     

    John

  12. Yes, I can see this now after virus definitions update. I have allowed an exception and downloaded and checked the file, and it is the same one as uploaded and so this will be a false-positive.
    I will report this to windows, and also see if I can fix here. I think the problem is that the installer runs an embedded program to check the registration details and it is this that is being flagged. This program was recently updated (recompiled only) so I will try with the older version. If that also fails, I will have to remove the registration validation until this issue is fixed.

    Sorry about this - I will try and fix this asap....for now, please add an exception for the installer to allow it to be downloaded and ran.

    John

  13. Just now, JakedarlingYT said:

    i bit confused on the last part where you say remove or reanme this file!

    What is confusing about this? If that file is present, the installer will assume you are using a Steam installation. If that file is not found, then an MS Store installation is assumed. Renaming that file will therefore tell the installer to install for MS Store, not Steam.

    John

  14. 11 hours ago, Kimchi said:

    buttons being switched and stuff, maybe this is not a false positive but actual a real problem?

    No, it is a false positive. I have no viruses, and SimMarket also scans all files for viruses and they have not reported anything.
    As the virus is reported in the RegistrationChecker program, can you not install and skip registration?

    1 hour ago, Reggie Fowler said:

    can't even download to my desktop.

    Are you using BitDefender? What is it saying, and why is this different from other users reporting this issue - others users could download but had problems running it due to the issue with the RegistrationChecker program. If it is your browser blocking the download, you can tell the browser to download anyway.

     

    1 hour ago, Reggie Fowler said:

    So I can't even try the workaround they have posted to possible fix the problem. 

    What workaround did they post? Can you please provide a reference.

    It must be possible to either disable BitDefender when downloading/installing, or adding an exception to allow the program to run.
    Can this not be done?

     

     

  15. 24 minutes ago, JakedarlingYT said:

    i not tried lauching game just yet as i am in midflight of doing a flight

    But you shouldn't install FSUIPC7 when running MSFS. But try re-launching MSFS after you have finished your flight and see if FSUIPC7 starts. If not, can you at least try starting it manually, by double-clicking the FSUIPC7.exe in windows Explorer - does it then work?

    35 minutes ago, JakedarlingYT said:

    i have downloaded the game off xbox app on pc bec i have a subscription

    Then I would expect that you are using an MS Store installation, but your log file indicates that FSUIPC7 is installing for Steam.
    Did you previously have a steam version installed but are now using the xbox version? If so, please remove or rename this file:
        C:\Users\jaked\AppData\Roaming\Microsoft Flight Simulator\UserCfg.opt
    and re-install.

    Do you know where your Community folder is - is it at that location I mentioned?

    John

  16. 14 minutes ago, JakedarlingYT said:

    but the App aint running when i lauch the game

    Do you mean that FSUIPC7 is not running? Do you not see the FSUIPC7 splash-screen when MSFS is started and loading?

    Did you install FSUIPC7 firectly from within the zip file rather than extracting the installer from the zip file first? It looks like it:

    Quote

    Running in folder 'C:\Users\jaked\AppData\Local\Temp\Rar$EXa25064.24679.rartemp\Install_FSUIPC7'

    Please try extracting the installer before running it.

    The Community folder for your Steam installation also looks rather strange:

    Quote

    Community folder is: C:\Games\Microsoft Flight Simulator\HLM_Packages\Community\

    Is this correct?

    Anyway, please try installing again and extract the installer before running it. Then run MSFS. Do you see the FSUIPC7 splash screen? If so, FSUIPC7 is running.
    If not, there may be an issue with your EXE.xml file. Please show me/attach this file, as well as your new InstallFSUIPC7.log file:
        C:\Users\jaked\AppData\Roaming\Microsoft Flight Simulator\EXE.xml

    Are you running MSFS as admin or as a standard user? If running as admin, you may need to set the FSUIPC7.exe to also be ran as admin (and also all FSUIPC7 clients).

    John

  17. Again, what aircraft are you using?

    I don't see how FSUIPC's aileron calibration can change the display in the attitude indicator. What the calibration will do is adjust the values sent to the FS when you move the aileron axis, so axis positions below the centre will send the negative parameter range (-16384 to 0) and axis positions above the centre will send the positive range (0 - 16384).
    Are you sure that you weren't doing something else to configure the attitude indicator?

    22 minutes ago, h512243512 said:

    i want the center is a bit shifted to the right for training purpose.

    It should be with those settings - have you tried it?
    There has been absolutely no change in this area for a very long time.

  18. 5 hours ago, h512243512 said:

    but this time whatever center point i set  it just stay the same position

    Sorry, but what do you mean by this? Do you see the In/Out numbers changing when you move the axis? Are the numbers registered when you press the Set button?
    What aircraft are you using, and which aileron axis? Can you also attach your FSUIPC7.ini file please.

    John

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