Jump to content
The simFlight Network Forums

StuartWhelan

Members
  • Posts

    48
  • Joined

  • Last visited

Posts posted by StuartWhelan

  1. To achieve what your trying, I would be doing something like this. Please understand I have not tested the below code. It may not work, and I can't get to a EPL compiler at the moment.

    Also be aware that the below presumes that when retracted the position is 0. This may not be the case. Let us know if this works. :)

    var(V_FLAP_L)
    defineph(145, FLAPS_LEFT,         0,0,0,0)	// Left Flap Position
    
    :FLAPS_LEFT
    {
      #expand getPH8(V_FLAP_L, 0x0191)	 // Grab the second (high) byte of the Flap Setting
      ifvar(V_FLAP_L, EQU, 0 ) jump FLAPS_LEFT_HI       // If High Flap Setting is 0
      jump FLAPS_LEFT_D           // Otherwise the left flaps are deployed.
    }
    
    :FLAPS_LEFT_HI
    {
      #expand getPH8(V_FLAP_L, 0x0091)	 // Grab the first (low) byte of the Flap Setting
      ifvar(V_FLAP_L, EQU, 0 ) jump FLAPS_LEFT_RET       // If Low Flap Setting is 0 then the flaps are retracted
      jump FLAPS_LEFT_D           // Otherwise the left flaps are deployed.
    }
    
    :FLAPS_LEFT_D
    {
       // Left Flaps are deployed, do something.
    }
    
    :FLAPS_LEFT_RET
    {
       // Left Flaps are Retracted, do something.
    }
    
    

    Now in the EpicInfo.cfg you would need:

    FLAPS_POS_LEFT=1

    Make sense?

  2. I did it like this:

    // First we define our incoming buttons
    
    #define B_GEAR_UP	110
    #define B_GEAR_DOWN	111
    
    // And then we define the outgoing Buttons to Flight Sim
    
    #define BO_GEAR_UP	1	// Device 1, Button 1
    #define BO_GEAR_DOWN	2	// Device 1, Button 2
    
    // Link the buttons to EPL Code
    
    definebutton(B_GEAR_UP,	  on,	GEAR_UP )
    definebutton(B_GEAR_DOWN, on,	GEAR_DOWN )
    
    :GEAR_UP
    {
      enque16(BtnPulse,BO_GEAR_UP)
    }
    
    :GEAR_DOWN
    {
      enque16(BtnPulse,BO_GEAR_DOWN)
    }
    
    In the fs2002cfg
    =================
    The big number after the joystick will probably be different for you.
    
    [JOYSTICK_MAIN {6F1D2B71-D5A0-11CF-BFC7-444553540000}]
    LOCKED=1
    BUTTON_DOWN_EVENT_1=GEAR_UP
    BUTTON_DOWN_EVENT_2=GEAR_DOWN
    

  3. Hi Pete,

    I upgraded WideFS and WideClient to 5.41..

    I am still getting the same effect though, when I choose shutdown all pc's all the WideClient logs show:

    4357730 Shutdown request received!

    4357730 Running on Win95/98/ME, no need for Privilege

    and then they just log out and stay at the login prompt.

    All the PC's normally start up without that login prompt being shown..

    The PC's all shutdown properly and completely when the 'Shutdown' option is chosen off the start menu...

    Very puzzling!

    Attached is the WideServer ini and log, and a Wideclient ini and log

    Cheers,

    Stuart.

    StuartShutdownFiles.zip

  4. I was wondering how easy it would be to have some way to pause FS2002 (through FSIUPC) when you get too close to the ground? The reason is that I plan my flights with FSNavigator and it does not show "real" terrain elevations. I go for a shower or whatever during my flight and I come back to a plane that has crashed into a mountain that I did not know was there!!! Any ideas?

    Thanks

    It would be /really/ easy to write an app that checks radar altitude and pauses Flight Sim.

    The hard part would be stopping it from doing it when your landing.. :)

    I guess that:

    If Gear is up

    AND Vertical speed is zero or climbing.

    AND Radar Altitude is < 500 ft

    Pause.

    It would take about 10 minutes to code, if that is what you want.

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