English Rebel Posted May 24, 2013 Report Posted May 24, 2013 Pete I'm trying to get a conditional button entry in the INI file to work but so far I've not had any luck. Button 72,0 is a latching switch and it needs to be in the down (ON) position before button 72,7 operates. In Buttons + Switches for button 72,0 I used Button Flag Set for ON and Button Flag Clear for OFF (I also set APU OFF for the switch OFF position too). Can you please take a look at my INI file to see if I've got the syntax wrong. Thanks Alan [General] UpdatedByVersion=4900 History=HQ46AE9HVH2QCOVXPPI3P InitDelayDevicesToo=No UseMidMouseBtn=Yes MouseWheelMove=No MouseWheelTrim=No MouseWheelTrimSpeed=1 JoystickTimeout=20 PollGFTQ6=Yes BlankDisplays=No FixControlAccel=No FixMachSpeedBug=No DeleteVehiclesForAES=Yes AutoScanDevices=Yes VisibilityOptions=No OneCloudLayer=No CloudTurbulence=No CloudIcing=No GenerateCirrus=No SuppressCloudTurbulence=No MaxIce=-4 MinIce=-4 UpperWindGusts=No SuppressWindTurbulence=No SuppressWindVariance=No WindTurbulence=No TurbulenceRate=1.0,5.0 TurbulenceDivisor=20,20,40,40 SuppressAllGusts=No MaxSurfaceWind=0 WindLimitLevel=200 WindDiscardLevel=400 WindAjustAltitude=No WindAjustAltitudeBy=2000 SmoothBySimTime=No WindSmoothing=No WindSmoothness=2 WindSmoothAirborneOnly=Yes PressureSmoothness=0 TemperatureSmoothness=0 DisconnTrimForAP=No ZeroElevForAPAlt=No ThrottleSyncAll=No WhiteMessages=No ShowPMcontrols=No SpoilerIncrement=512 MagicBattery=No RudderSpikeRemoval=No ElevatorSpikeRemoval=No AileronSpikeRemoval=No ReversedElevatorTrim=No ClockSync=No ClockSyncMins=5 ClearWeatherDynamics=No OwnWeatherChanges=No TimeForSelect=4 LoadFlightMenu=No LoadPlanMenu=No PauseAfterCrash=No BrakeReleaseThreshold=75 SaveDataWithFlights=No ZapSound=firework ShortAircraftNameOk=Substring UseProfiles=Yes EnableMouseLook=No AxesWrongRange=No TCASid=Flight TCASrange=40 AxisCalibration=No DirectAxesToCalibs=No ShowMultilineWindow=No SuppressSingleline=No SuppressMultilineFS=Yes AxisIntercepts=No DontResetAxes=No InitDelay=0 GetNearestAirports=Yes OOMcheck=Yes WeatherReadFactor=2 WeatherRewriteSeconds=1 CustomWeatherModify=No SimConnectStallTime=1 LuaRerunDelay=66 Console=No ConsoleWindow=150,150,827,545 LogExtras=x2 LogAxes=Yes LogLua=Yes FSVersionUsed="Microsoft Flight Simulator X",10.0.61472.0 SimConnectUsed=10.0.61259.0 LogEvents=Yes LogReads=Yes LogButtonsKeys=Yes [window.LUA display] Docked=7350, 2828, 3532, 2459 [JoyNames] AutoAssignLetters=Yes A=BU0836 Interface B=Virtual Joystick A.GUID={486EF670-8BD6-11E2-8001-444553540000} B.GUID={7BA4DE70-8BDA-11E2-8002-444553540000} 0=BU0836 Interface 0.GUID={486EF670-8BD6-11E2-8001-444553540000} 1=Virtual Joystick 1.GUID={7BA4DE70-8BDA-11E2-8002-444553540000} 2=Virtual Joystick 2.GUID={80C212B0-8BDA-11E2-8003-444553540000} 3=Virtual Joystick 3.GUID={A30E3C60-BBDA-11E2-8007-444553540000} C=Virtual Joystick C.GUID={80C212B0-8BDA-11E2-8003-444553540000} D=Virtual Joystick D.GUID={A30E3C60-BBDA-11E2-8007-444553540000} [WideServer] WideFSenabled=Yes AdvertiseService=1 Port=8002 Port2=9002 [sounds] Path=E:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Sound\ Device1=Primary Sound Driver Device2=SAMSUNG-1 (NVIDIA High Definition Audio) Device3=Digital Audio (S/PDIF) (High Definition Audio Device) Device4=Digital Audio (S/PDIF) (High Definition Audio Device) [AutoSave] AutoSaveEnabled=No Next=1 Interval=60 Files=10 SaveOnGround=No [GPSout] GPSoutEnabled=No Port=COM0 Speed=4800 Interval=2000 PosTo6Decimal=No Sentences= [GPSout2] GPSoutEnabled=No Port=<none set> Speed=4800 Interval=2000 PosTo6Decimal=No Sentences= [Programs] [ClientNames] 1=AVIONICS [Monitor] Display=1 [JoystickCalibration] AllowSuppressForPFCquad=Yes ExcludeThrottleSet=Yes ExcludeMixtureSet=Yes ExcludePropPitchSet=Yes SepRevsJetsOnly=No ApplyHeloTrim=No UseAxisControlsForNRZ=No FlapsSetControl=0 FlapDetents=Yes ReverserControl=66292 Reverser1Control=66422 Reverser2Control=66425 Reverser3Control=66428 Reverser4Control=66431 MaxThrottleForReverser=256 AileronTrimControl=66731 RudderTrimControl=66732 CowlFlaps1Control=66162 CowlFlaps2Control=66163 CowlFlaps3Control=66164 CowlFlaps4Control=66165 SteeringTillerControl=0 MaxSteerSpeed=60 Elevator=-11276,3360,7264,11936 Rudder=-15892,-164,546,15182 RightBrake=-16384,15798 !1=T PropPitch=-16380,16380 Throttle1=-10768,22,512,14406/48 Throttle2=-9944,36,512,14830/48 FlapStarts=-16384,128,7432,12528 FlapEnds=-11731,1504,8216,16384 Flaps=0,16380 Spoilers=13240,15944 Reverser=-16380,16380 Aileron=-10216,-450,352,9472 SlopeRightBrake=6 SlopeAileron=2 LeftBrake=-16384,-9445 [Axes] 0=AX,256,D,3,0,0,0 1=AY,256,D,8,0,0,0 2=AZ,256,D,7,0,0,0 3=AU,256,D,8,0,0,0 4=AV,256,D,8,0,0,0 5=AS,770,D,1,0,0,0 6=AT,576,D,2,0,0,0 7=BX,256,D,9,0,0,0 8=BY,287,D,10,0,0,0 9=BZ,256,D,22,0,0,0 10=BU,256,D,22,0,0,0 11=BV,256,D,23,0,0,0 12=BS,824,D,22,0,0,0 13=CX,256,D,9,0,0,0 14=CY,256,D,10,0,0,0 15=CU,256,D,10,0,0,0 16=CV,256,D,23,0,0,0 [buttons] Buttonrepeat=20,10 0=PB,0,Cx0D0073F8,x01 2=PB,5,Cx050073F8,x20 4=PB,1,Cx050073F8,x02 5=PB,14,C66040,16211 6=UB,1,Cx090073F8,x02 7=UB,0,Cx090073F8,x01 8=PB,2,Cx050073F8,x04 9=UB,2,Cx090073F8,x04 10=PB,3,Cx050073F8,x08 11=UB,3,Cx090073F8,x08 12=PB,4,Cx050073F8,x10 13=UB,4,Cx090073F8,x10 14=UB,5,Cx090073F8,x20 15=PB,13,Cx050073D5,x40 18=UB,13,Cx090073D5,x40 19=PB,7,Cx050073F9,x01 20=UB,7,Cx090073F9,x01 21=PB,8,Cx050073F9,x02 22=UB,8,Cx090073F9,x02 23=PB,9,Cx050073F9,x04 24=UB,9,Cx090073F9,x04 25=PB,10,Cx050073F9,x08 26=UB,10,Cx090073F9,x08 27=PB,11,Cx050073F9,x10 28=UB,11,Cx090073F9,x10 29=PB,12,Cx050073F9,x20 30=UB,12,Cx090073F9,x20 31=RB,19,Cx110073FD,x00FF0001 32=RB,18,Cx210073FD,x00FF0001 33=RB,23,Cx110073FC,x00FF0001 34=RB,22,Cx210073FC,x00FF0001 35=RB,21,Cx210073D2,x00FF0001 36=RB,20,Cx110073D2,x00FF0001 37=RB,25,Cx110073D7,x00FF0001 38=RB,24,Cx210073D7,x00FF0001 39=RB,27,Cx210073D8,x00FF0001 40=RB,26,Cx11000049,x00FF0001 41=RB,29,C65883,1 42=RB,28,C65884,1 70=PB,6,C65821,0 71=UB,6,C65821,-4096 72=P72,0,C1003,1 73=R72,1,C65615,0 74=R72,2,C65607,0 75=R72,4,C66279,1 76=R72,5,C66276,1 77=R72,3,C66278,4 78=PC,4,Cx02000BC8,x0000 80=PC,5,C65820,0 81=UC,5,C65820,-4096 82=PC,6,C65821,0 83=UC,6,C65821,-4096 84=PC,2,C65983,0 85=UC,2,C65987,0 86=PC,3,C65988,0 87=UC,3,C65992,0 88=UC,4,Cx02000BC8,x7FFF 89=R72,6,C66277,1 90=P72,7,C66704,1 91=U72,0,C1004,1 92=U72,0,C66705,1 93=P72,7,C66704,1 94=U72,7,C66704,1 95=CP(F+72,0)72,7 [MacroFiles] 1=iFly737 2=leveld767 [LuaFiles] 1=ipcReady 2=linda
Pete Dowson Posted May 27, 2013 Report Posted May 27, 2013 I'm trying to get a conditional button entry in the INI file to work but so far I've not had any luck. Button 72,0 is a latching switch and it needs to be in the down (ON) position before button 72,7 operates. In Buttons + Switches for button 72,0 I used Button Flag Set for ON and Button Flag Clear for OFF (I also set APU OFF for the switch OFF position too). Er, if the button 72,7 action has to be conditional on another REAL button, why on Earth are you using buttons flags? The condition can just be on the button directly, surely? What's the Flag for? Falgs are for remembering states of things, not for detecting the actual current state of a real button or switch! And why do you want to make things so complicated when all the simplere examples are direct conditions on buttons? Can you please take a look at my INI file to see if I've got the syntax wrong. It wouyld save a lot of effort if you'd simply paste the relevant part no the who;e file! Here: 72=P72,0,C1003,1 ... 90=P72,7,C66704,1 91=U72,0,C1004,1 92=U72,0,C66705,1 93=P72,7,C66704,1 94=U72,7,C66704,1 95=CP(F+72,0)72,7 Apart from the fact you are trying to use Flags for no good reason, the flag you are using is denoted by the parameter 1 on the button 72,0 flag assignments. 1 = 0 x 256 + 1, so the flag is actually F0,1, but you are testing flag 72,0 which doesn't even exist! (Flags are only available for the standard joystck numbers, 0-15). Not only that, but on line 95, the one with the invalid flag reference, you don't specify any action! You end with the button number only. What od you think that could do? Why not follow the examples in the documentation? Don't use flags, which you obviously don't understand and which cannot be used with vitual joystick numbers in any case. Pete
English Rebel Posted May 27, 2013 Author Report Posted May 27, 2013 Pete The reason I tried using flags is that this entry in the INI file didn't work. Is the syntax not correct ( I followed the example in the Advanced User Guide). Switch 72,7 operates the APU irrespective of the position of switch 72,0 Alan 90=P72,0,C1126,0 91=U72,0,C66705,0 92=CR(+72,0)72,7,C66704,1 93=P72,7,C66704,1 94=U72,7,C66704,1
Pete Dowson Posted May 27, 2013 Report Posted May 27, 2013 Pete The reason I tried using flags is that this entry in the INI file didn't work. Is the syntax not correct ( I followed the example in the Advanced User Guide). Switch 72,7 operates the APU irrespective of the position of switch 72,0 Alan 90=P72,0,C1126,0 91=U72,0,C66705,0 92=CR(+72,0)72,7,C66704,1 93=P72,7,C66704,1 94=U72,7,C66704,1 Of course it does, because as well as the Conditional line 92=CR(+72,0)72,7,C66704,1 you also have 72,7 sending exactly the same control when Pressed and when Released! 93=P72,7,C66704,1 94=U72,7,C66704,1 Pete
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now