Jump to content
The simFlight Network Forums

John Dowson

Members
  • Posts

    13,305
  • Joined

  • Last visited

  • Days Won

    272

Posts posted by John Dowson

  1. Can you please let me know what sim and what version of FSUIPC you are using (or show me your FSUIPC log file)

    15 minutes ago, hkhoanguyen said:

    just when I added event.key to run another function then my push back GSX keypress is not working anymore (that means the GSX Menu is opened but number pressed is not working)

    Ok, so different from your original post....!  You are saying that your script worked, but when you added the extra event.key call + function then it stopped working - correct?
    Does your aftertakeoff() function get called when you press the '191' key? Is you loop function still getting called by the timer?  Have you tried activating logging for lua plugins?

     

  2. What sim and version of FSUIPC are you using?

    You could try activating key press logging, to see what VK keycode is logged when you press your key. Key code 191 is Numpad 7 (with NUMLOCK ON) according to the manual, BUT these keys vary from keyboard to keyboard. On my keyboard, Numpad 7 with NUMLOCK ON  is vk=103.

    1 hour ago, hkhoanguyen said:

    does not work anymore

    So it previously worked?  What has changed? Maybe your NUMLOCK is OFF?

     

  3. 7 hours ago, TimDog350 said:

    It crashes when I select the Live option in game.

    What crashes - MSFS or FSUIPC7? As I said, if its MSFS, you need to report to Asobo. If its FSUIPC7, I need more information - you FSUIPC7.log for a start, and also any crash entry in the Windows event viewer.

    7 hours ago, TimDog350 said:

    I'll have any go with the Live option (people online using the same realism settings I'm using)

    But multi-player and AI traffic type are different settings. You can have aircraft traffic type set to AI Offline or Real-time Online (or Off), and also multiplayer data set to on/off independently So, are you saying MSFS crashes or FSUIPC7 crashes, and is this when you have aircraft traffic type set to Real-time Online AND multiplayer data set to on only?

    Sorry, but I need more information as I don't understand what the problem is or what you are requesting.

  4. 19 hours ago, MockTurtle said:

    hi john. here's the link. i've tried/tested it on my setup and yeah, fsuipc seems to be ''blocking' my setting changes

    I have a steam installation, and I've tested this and experience the same - my settings aren't saved if I close and restart with FSUIPC7 still running. Very strange.

    There is nothing in FSUIPC7 that could prevent this - its only a SimConnect client as far as MSFS is concerned. I'll do some more tests and maybe report to Asobo.

     

  5. 12 minutes ago, IanAbel said:

    Example: hit ESC get the "4" value, but then opening any menu such as General/Assistance/Controls  etc, doesn't seem to change the x3365 value... remains at zero.

    No, the x3365 value only supports 'main menu', i.e. when you cancel the flight. In dialog menus are not currently supported - they will be accessible when in escape pause.

     

    • Thanks 1
  6. 1 hour ago, TimDog350 said:

    Are there any plans for FSUIPC7 to be able to read live multiplayer planes?

    There are no facilities in SimConnect (that I am aware of) that are specifically for multi-player traffic. Aren't multi-player traffic treated simply as other AI aircraft, from the user perspective?

    1 hour ago, TimDog350 said:

    when using the live multiplayer option, the game crashes and when it doesn't it only sees AI planes

    so MSFS crashes? That should be reported to MSFS/Asobo.

    1 hour ago, TimDog350 said:

    I asked over on the P2A forums and it was requested to ask here

    I'm not sure what, if anything, FSUIPC can do with mult-player traffic, or if distinguishing multiplayer traffic from AI traffic is even useful. I'll look into it at some point.

  7. 14 minutes ago, cavaricooper said:

    I know this is a WIP...

    But it isn't....!

    14 minutes ago, cavaricooper said:

    however, I remember Pete discussing the possible ability to use button presses to control the camera (Alt+1, Alt+9 etc.) as a workaround.  I too would love this ability as the Control Mapping for this is still broken in MSFS.  Is this close to being implemented... atm all I get when I try and map Alt+9 is (null).

    The problem is that the events to control the camera are currently not working when sent via SimConnect. Due to this, the suggested work around was to assign the camera movement events to keys in MSFS, and then assign your POV switches to those keypresses in FSUIPC. This should work, but there is nothing to implement for this in FSUIPC.

    Be aware that you shouldn't assign using the ALT modifier though as this is no longer supported in MSFS.

  8. On 10/2/2020 at 6:24 PM, MrChocolateBear said:

    Specifically, I'm interested in FLAP SPEED EXCEEDED, GEAR SPEED EXCEEDED, MAX RATED ENGINE RPM.

    I have added these in the attached version
        0x0B4E 1 Byte    FLAP SPEED EXCEEDED
        0x0B4F 1-Byte    GEAR SPEED EXCEEDED
        0x0C0C 4-Byte (integer) MAX RATED ENGINE RPM

    I've only checked these in the C172 at the moment, and the MAX RATED ENGINE RPM seems to come through ok (2700) but I havn't seen the flap/gear speed exceeded flags changed, so not sure if these are currently working.

    FSUIPC7.exe

     

  9. Sorry, but I cannot help with other products that use FSUIPC7. You need to talk to LINDA, ACARS and SLC support for this.

    There is an issue with the pause state indicator in that build, due to changes in the 1.9.3.0 release of MSFS. I'm not sure if that would affect LINDA and ACARS, but you can try the following build where this issue has been corrected:  

    FSUIPC7.exe

    • Thanks 1
  10. On 10/2/2020 at 6:24 PM, MrChocolateBear said:

    What is the best way to determine when the user is actually in game (not the main menu)?

    Can you try the attached version, in which offset 0x3365 should contain 1 when in the menus and 0 when in game. You may also want to read in conjunction with offset 0x0264, the pause indicator. I say this as the in-menu flag gets reset as soon as you go into the game, but this takes quite a while (up to a minute) and the sim is set to a pause state just before the in-menu flag is cleared and then unpaused when the 'READY TO FLY' state is reached.

    FSUIPC7.exe

  11. On 10/2/2020 at 6:51 PM, John Dowson said:
    On 10/2/2020 at 6:24 PM, MrChocolateBear said:

    What is the best way to determine when the user is actually in game (not the main menu)?

    Its not possible to do this reliably at the moment unfortunately. We are awaiting SDK updates to do this reliably.

    Thomas has pointed out that you can determine the menu/in-game status by looking at the Filename events. I'll look into this today and see if I can get offset 0x3365 correctly reflecting this status.

    12 hours ago, MrChocolateBear said:

    I have a follow-up question regarding which variables are used to determine when a stall has occurred - would that be comparing ZERO LIFT ALPHA to INCIDENCE ALPHA or handled some other way?

    You could check the stall warning flag at offset 0x036C.

  12. 1 hour ago, Matthew Twomey said:

    I wanted to understand if they're being re-compiled anew on each execution

    Yes. Each time you start a lua function, it will be compiled and ran. This its why it is better, for many use-case scenarios, to have a lua pre-compiled and running (from the [Auto] ini section). and then waiting on events to activate.

     

  13. 20 minutes ago, MrChocolateBear said:

    What is the best way to determine when the user is actually in game (not the main menu)?

    Its not possible to do this reliably at the moment unfortunately. We are awaiting SDK updates to do this reliably.

    21 minutes ago, MrChocolateBear said:

    Is there any way of determining what the max landing weight of an aircraft is?

    Not sure about "landing" weight. There is a sim variable for Max Gross Weight if thats what you are looking for, which is in offset 0x1334.

    25 minutes ago, MrChocolateBear said:

    If there are simVars I'd like added, what is the method for requesting that / handling it on my own? Specifically, I'm interested in FLAP SPEED EXCEEDED, GEAR SPEED EXCEEDED, MAX RATED ENGINE RPM.

    I'll look into adding these to the offset area. I'll let you know when done.

    John

  14. Hi Keith,

    35 minutes ago, Stinger2k3 said:

    In the sim there are Set Battery 1 thru to 4, Master Battery On and Off, Set Master Battery, Toggle Master Battery.

    unfortunately the only event for batteries listed in the SDK/SimConnect is the Toggle Master Battery event. There is also a simvar ELECTRICAL MASTER BATTERY  that you can use, via offsets 0x281C and 0x3102, but there are no individual events or variables for battery1 and battery2.

    10 minutes ago, Stinger2k3 said:

    Toggle Master Battery, and input parameter 1 and 2 into the same offset.

    That is strange! But I presume this is just a parameter to the toggle event, no? Nothing to do with offsets.

    Toggle controls are usually just that - a toggle control with no parameters. So does sending this control with no parameters (or a parameter of 0) toggle all batteries, and if you give a parameter (1-4) then it just toggles that battery?

    10 minutes ago, Stinger2k3 said:

    So i guess I will need to use a Lua script to do this?

    You can also give a parameter to the control in the assignments panel to test this.

    I'll take a look at this in more detail when I get a chance.

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