jaoder Posted December 2, 2011 Report Posted December 2, 2011 I am trying to run the F1MustangSWCtl.lua file included with FSUIPC LUA Plug-ins on FSX and am having some issues getting it to work properly. I copied this file along with the ipcready.lua file to the modules folder as instructed, assigned the switches and buttons to the luaset F1MustangSwCt in FSUIPC profile setup for the A/C got everything working as desired. Shut down FSX then next time I brought the A/C up none of the switch assignments worked, I checked the settings in FSUIPC and they were all still there. So I experimented a little and changed some of the setting over to luatoggle F1MustangSwCl. and those assignments started working cycled FSX brought up the A/C those switches no longer worked. Went back to luaset got them working until I shut down FSX, I am not a programmer or that familiar with LUA (yet) but would like to use this file if possible. I have included my current FSUIPC.ini file. Over all I have found FSUIPC to be an excellent addon to FSX so I'm sure it something I'm missing. Thanks John [General] UpdatedByVersion=4749e History=M7081OI1WQE31OM524YJF MouseWheelTrim=No MouseWheelTrimSpeed=1 FixControlAccel=Yes FixMachSpeedBug=Yes VisibilityOptions=No OneCloudLayer=No CloudTurbulence=No CloudIcing=Yes GenerateCirrus=Yes SuppressCloudTurbulence=No MaxIce=3 MinIce=-1 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=Yes WindSmoothness=2 WindSmoothAirborneOnly=Yes PressureSmoothness=0 TemperatureSmoothness=0 DisconnTrimForAP=No ZeroElevForAPAlt=No ThrottleSyncAll=No WhiteMessages=Yes ShowPMcontrols=No SpoilerIncrement=512 MagicBattery=Yes RudderSpikeRemoval=Yes ElevatorSpikeRemoval=Yes AileronSpikeRemoval=Yes ReversedElevatorTrim=No ClockSync=Yes ClockSyncMins=5 ClearWeatherDynamics=No OwnWeatherChanges=Yes TimeForSelect=4 LoadFlightMenu=Yes LoadPlanMenu=Yes PauseAfterCrash=No BrakeReleaseThreshold=75 SaveDataWithFlights=No ZapSound=firework ShortAircraftNameOk=No UseProfiles=Yes TCASid=Flight TCASrange=50 AxisCalibration=No DirectAxesToCalibs=No ShowMultilineWindow=Yes SuppressSingleline=No SuppressMultilineFS=No AxisIntercepts=No DontResetAxes=No WeatherReadFactor=2 WeatherRewriteSeconds=1 CustomWeatherModify=No SimConnectStallTime=1 Console=No JoystickTimeout=20 PollGFTQ6=Yes BlankDisplays=No GetNearestAirports=No LuaRerunDelay=66 ForceWeatherKey=90,9 ThrottleSyncToggle=110,8 AllEngHotKey=8,8 NewLogKey=33,8 StopLogKey=34,8 EnableMouseLook=No AxesWrongRange=No InitDelay=0 FSVersionUsed="Microsoft Flight Simulator X",10.0.61637.0 SimConnectUsed=10.0.61259.0 [JoyNames] AutoAssignLetters=Yes c=Saitek Pro Flight Rudder Pedals A=Saitek Pro Flight Yoke B=Saitek Pro Flight Quadrant D=Saitek Pro Flight Quadrant 0=Saitek Pro Flight Rudder Pedals 0.GUID={97A07930-2E2C-11E0-8003-444553540000} 1=Saitek Pro Flight Yoke 1.GUID={8538E140-2EC4-11E0-8001-444553540000} 2=Saitek Pro Flight Quadrant 2.GUID={8538E140-2EC4-11E0-8002-444553540000} 3=Saitek Pro Flight Quadrant 3.GUID={5813DF50-18FF-11E1-8001-444553540000} [buttons] ButtonRepeat=20,10 4=RA,6,C66276,0 5=RA,7,C66277,0 6=PA,1,C65791,0 11=RA,14,C65656,0 12=RA,15,C65655,0 13=RA,16,C66151,0 14=RA,17,C66152,0 15=PA,18,C65759,0 16=PA,19,C65758,0 17=RB,0,C66524,0 18=RB,1,C66525,0 19=PA,0,C66684,0 20=UA,0,C66685,0 21=RA,2,C65607,0 22=RA,3,C65615,0 23=P174,6,CM17:6,0 24=PA,9,CM6:1,0 25=PB,4,C65759,0 26=PB,5,CL4:S,16 [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= [WideServer] WideFSenabled=Yes [Axes] 8=BX,256,F,66424,0,0,0 9=BY,256,F,66422,0,0,0 10=BZ,256,F,66425,0,0,0 0=CX,256,F,66387,0,0,0 1=CY,256,F,66388,0,0,0 2=CR,256,F,65764,0,0,0 3=AX,256,F,65763,0,0,0 4=AY,256,F,65694,0,0,0 5=AZ,256,F,66420,0,0,0 6=AU,256,F,66423,0,0,0 7=AV,256,F,66421,0,0,0 11=BX,256,F,66424,0,0,0 12=BY,256,F,66422,0,0,0 13=BZ,256,F,66425,0,0,0 [JoystickCalibration] AllowSuppressForPFCquad=Yes ExcludeThrottleSet=Yes ExcludeMixtureSet=Yes ExcludePropPitchSet=Yes SepRevsJetsOnly=No ApplyHeloTrim=No UseAxisControlsForNRZ=No FlapsSetControl=0 FlapDetents=No 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 Aileron=-16383,0,0,16256/8 SlopeAileron=3 Elevator=-16384,0,0,16192 Rudder=-16384,-64,-64,16127 Throttle1=-16383,-16383,-16383,16383/40 Throttle2=-16383,-512,512,16256/40 SyncSlopeThrottle2=26/26 Mixture1=-16384,8192,8192,16000/32 Mixture2=-16384,8192,8192,16128/32 PropPitch1=-16384,0,512,16383/32 PropPitch2=-16384,0,512,16256/32 SyncSlopePropPitch2=26/26 SlopeRudder=6 LeftBrake=-16384,16383/16 RightBrake=-16384,16383/16 Mixture=-16380,16380 SlopeElevator=2 [Keys] 22=68,8,66279,0 26=88,8,65810,0 28=90,8,66510,0 32=82,8,66732,0 38=123,8,66511,0 43=112,8,66448,0 51=83,9,65815,0 52=68,9,65814,0 54=71,9,65819,0 56=90,9,65816,0 58=86,8,66069,0 62=88,9,65818,0 64=113,8,66452,0 66=114,8,66463,0 68=115,8,66464,0 70=116,8,66465,0 72=117,8,66509,0 74=118,8,66510,0 79=120,8,66102,0 81=84,8,66853,0 83=66,8,65584,0 87=84,9,65901,0 94=78,8,65913,0 96=77,8,65912,0 102=103,8,65912,0 106=105,8,65914,0 107=104,8,65913,0 110=98,8,65911,0 111=99,8,65910,0 112=65,8,65580,0 114=97,8,65913,0 116=100,8,65909,0 117=101,8,65912,0 121=81,8,66288,0 125=87,8,65793,0 126=69,8,65728,0 128=220,8,66854,0 129=83,8,66278,0 [sounds] Path=C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Sound\ Device1=Primary Sound Driver Device2=Digital Audio (S/PDIF) (High Definition Audio Device) Device3=Digital Audio (HDMI) (High Definition Audio Device) Device4=Speakers (High Definition Audio Device) [Profile.F1 Cessna Mustang] 1=F1 Cessna Mustang 2=F1_Cessna_Mustang3 [Axes.F1 Cessna Mustang] 0=CX,256,D,7,0,0,0 1=CY,256,D,8,0,0,0 2=CR,256,D,3,0,0,0 3=AX,256,D,1,0,0,0 4=AY,256,D,2,0,0,0 5=AZ,256,F,66420,0,0,0 6=AU,256,F,66423,0,0,0 7=BY,256,F,66422,0,0,0 8=BZ,256,F,66425,0,0,0 9=DX,256,D,9,0,0,0 10=DY,256,D,10,0,0,0 [Keys.F1 Cessna Mustang] 1=103,8,65912,0 3=104,8,65913,0 8=99,8,66778,0 9=98,8,66781,0 10=97,8,66780,0 75=71,8,L4:T,3 77=77,8,L4:T,17 80=90,8,L4:T,4 82=88,8,L4:T,5 85=67,8,L4:T,7 101=66,8,65584,0 116=135,8,66783,0 119=219,8,66776,0 120=221,8,66777,0 122=85,8,66779,0 124=73,8,66754,0 126=79,8,66784,0 130=75,8,66786,0 132=188,8,66788,0 134=190,8,66787,0 135=76,8,66785,0 139=220,8,66854,0 144=86,8,L4:T,8 146=100,8,66506,190 148=101,8,66506,120 151=102,8,66506,260 154=96,8,66506,110 156=110,8,66506,231 158=82,8,66506,230 162=46,8,66530,0 166=89,8,L4:T,0 167=70,8,L4:T,2 169=84,8,L4:T,6 171=83,8,L4:T,12 173=68,8,L4:T,13 175=69,8,L4:T,16 178=65,8,L4:T,11 181=72,8,L4:T,1 183=78,8,L4:T,18 [buttons.F1 Cessna Mustang] 10=P109,6,CL4:V,0 12=P109,7,CL4:T,10 16=P174,2,C65729,0 17=P174,3,C65724,0 18=U109,6,CL4:T,0 19=U109,7,CL4:T,10 20=P109,0,C66239,0 21=U109,0,C66239,0 22=P109,1,C66052,0 23=U109,1,C66053,0 24=P109,2,C66379,0 25=U109,2,C66379,0 26=P109,3,C66240,0 27=U109,3,C66240,0 28=P109,4,C66059,0 29=U109,4,C66060,0 30=P109,5,C66378,0 31=U109,5,C66378,0 32=P174,0,C65580,18 33=P174,1,C65725,0 37=P174,5,CM17:7,0 40=P174,7,CM17:10,0 41=P174,9,CM19:1,0 42=P174,10,CM19:2,0 43=P174,14,CM19:4,0 44=P174,12,CM19:3,0 45=P174,13,CM19:3,0 46=P174,15,CM19:4,0 47=P174,11,CM19:2,0 48=P174,8,CM19:1,0 49=P174,16,CM19:6,0 50=P174,17,CM19:6,0 51=P174,19,CM19:7,0 52=P174,18,CM19:7,0 53=P174,21,CM20:1,0 54=P174,20,CM20:1,0 55=P174,22,CM19:9,0 56=P174,23,CM19:9,0 57=U174,9,CM19:1,0 58=U174,8,CM19:1,0 59=U174,10,CM19:2,0 60=U174,11,CM19:2,0 61=U174,12,CM19:3,0 62=U174,13,CM19:3,0 63=U174,15,CM19:4,0 64=U174,14,CM19:4,0 65=U174,17,CM19:6,0 66=U174,16,CM19:6,0 67=U174,18,CM19:7,0 68=U174,19,CM19:7,0 69=U174,20,CM20:1,0 70=U174,21,CM20:1,0 71=U174,23,CM19:9,0 72=U174,22,CM19:9,0 73=PD,2,C66079,0 74=PD,3,C66080,0 75=PD,4,C65759,0 76=PD,5,C65758,0 77=PB,4,CL4:T,13 79=PB,5,CL4:S,12 [MacroFiles] 1=AP ALT Hold 2=Mustang_ALT_Hold 3=F1Mustang 4=C510AP 5=F1 MustangAP 6=F1 C510 AP 7=F1 C510 FMS 8=F1 C510 TQ 9=SR 22 GTS 10=SR22GTS 11=SR22GTSLights 12=GNS530 13=SR22AP 14=SR22 PDF 15=SR22 MFD 16=F1 C510 AP2 17=F1C510AP 18=test1 19=F1C510APKNOBS 20=F1APVSDEC 21=SR22GTSMISSING 22=sr22notwrking 23=MFDKNBLH 24=SR22MFDLHKNB 25=F1_182TC_KNOBS 26=F1_182TC_Switchs [LuaFiles] 1=LUA C510 2=LUA C510 2 3=F1MustangAPCtl 4=F1MustangSwCtl 5=Ipcready 6=GFpower 7=ipcDebug [Monitor] Display=1 [Profile.F1 Skylane 182T] 1=F1_Cessna_T182T1 [buttons.F1 Skylane 182T] 10=P109,6,CL1:R,1 12=P109,7,CL1:R,3 16=P174,2,C65729,0 17=P174,3,C65724,0 18=U109,6,CL1:R,1 19=U109,7,CL1:R,3 20=P109,0,C66239,0 21=U109,0,C66239,0 22=P109,1,C66052,0 23=U109,1,C66053,0 24=P109,2,C66379,0 25=U109,2,C66379,0 26=P109,3,C66240,0 27=U109,3,C66240,0 28=P109,4,C66059,0 29=U109,4,C66060,0 30=P109,5,C66378,0 31=U109,5,C66378,0 32=P174,0,C65580,0 33=P174,1,C65725,0 37=P174,5,CM17:7,0 38=P174,4,CM17:6,0 39=P174,6,CM17:10,0 40=P174,7,C66042,0 43=P174,14,C65663,0 44=P174,12,C65662,0 45=P174,13,C65662,0 46=P174,15,C65663,0 49=P174,16,C65893,0 50=P174,17,C65892,0 51=P174,19,CM19:7,0 52=P174,18,C65892,0 55=P174,22,C65894,0 56=P174,23,C65894,0 61=U174,12,C65662,0 62=U174,13,C65662,0 63=U174,15,C65663,0 64=U174,14,C65663,0 65=U174,17,CM19:6,0 66=U174,16,C65893,0 67=U174,18,C65892,0 68=U174,19,CM19:7,0 71=U174,23,C65894,0 72=U174,22,C65894,0 73=P174,21,C65895,0 74=P174,9,C65880,0 75=U174,9,C65880,0 76=P174,8,C65880,0 77=U174,8,C65880,0 78=P174,10,C65879,0 79=U174,10,C65879,0 80=P174,11,CM25:2,0 81=U174,11,CM25:2,0 82=U174,21,C65895,0 83=PA,9,C65895,0 84=UA,9,C65895,0 [Keys.F1 Skylane 182T] 8=99,8,66778,0 9=98,8,66781,0 10=97,8,66780,0 75=71,8,L1:R,2 77=77,8,L1:R,10 80=90,8,L1:R,8 116=135,8,66783,0 119=219,8,66776,0 120=221,8,66777,0 122=85,8,66779,0 124=73,8,66754,0 126=79,8,66784,0 130=75,8,66786,0 132=188,8,66788,0 134=190,8,66787,0 135=76,8,66785,0 139=220,8,66854,0 146=100,8,66506,120 148=101,8,66506,130 154=96,8,66506,110 156=110,8,66506,231 162=46,8,66530,0 177=81,8,66237,0 178=87,8,65858,0 180=65,8,66317,0 183=88,8,66029,0 [Axes.F1 Skylane 182T] 0=CX,256,F,66387,0,0,0 1=CY,256,F,66388,0,0,0 2=CR,256,F,65764,0,0,0 3=AX,256,D,1,0,0,0 4=AY,256,D,2,0,0,0 5=AZ,256,F,66420,0,0,0 6=AU,256,F,66421,0,0,0 7=AV,256,F,66422,0,0,0 8=BX,256,D,9,0,0,0 9=BY,256,D,17,0,0,0 10=BZ,256,D,13,0,0,0 [JoystickCalibration.F1 Skylane 182T] AllowSuppressForPFCquad=Yes ExcludeThrottleSet=Yes ExcludeMixtureSet=Yes ExcludePropPitchSet=Yes SepRevsJetsOnly=No ApplyHeloTrim=No UseAxisControlsForNRZ=No FlapsSetControl=0 FlapDetents=No 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 Aileron=-16383,0,0,16383/8 SlopeAileron=3 Elevator=-16383,0,0,16383/8 Rudder=-16383,0,0,16319/8 Mixture=-16380,16380 LeftBrake=-16384,16383/16 RightBrake=-16384,16383/16 Throttle1=-15082,-15082,-15082,16383/40 Throttle2=-16383,-512,512,16256/40 SyncSlopeThrottle2=26/26 Mixture1=-7021,16383,16383,16383/40 Mixture2=-16384,8192,8192,16128/32 PropPitch1=-16384,0,512,16383/32 PropPitch2=-16384,0,512,16256/32 SyncSlopePropPitch2=26/26 SlopeRudder=5 [JoystickCalibration.F1 Cessna Mustang] AllowSuppressForPFCquad=Yes ExcludeThrottleSet=Yes ExcludeMixtureSet=Yes ExcludePropPitchSet=Yes SepRevsJetsOnly=No ApplyHeloTrim=No UseAxisControlsForNRZ=No FlapsSetControl=0 FlapDetents=No 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 Aileron=-16383,0,0,16383/8 SlopeAileron=3 Elevator=-16384,0,0,16383 SlopeElevator=3 Rudder=-16383,0,0,16383/8 SlopeRudder=6 Mixture=-16380,16380 LeftBrake=-16384,16383/16 RightBrake=-16384,16383/16 Throttle1=-16383,-16383,-16383,16256/40 Throttle2=-16383,-512,512,16383/40 SyncSlopeThrottle2=26/26 Mixture1=-16384,8192,8192,16000/32 Mixture2=-16384,8192,8192,16128/32 PropPitch1=-16384,0,512,16383/32 PropPitch2=-16384,0,512,16256/32 SyncSlopePropPitch2=26/26
Pete Dowson Posted December 2, 2011 Report Posted December 2, 2011 I am trying to run the F1MustangSWCtl.lua file included with FSUIPC LUA Plug-ins on FSX and am having some issues getting it to work properly. I copied this file along with the ipcready.lua file to the modules folder as instructed, assigned the switches and buttons to the luaset F1MustangSwCt in FSUIPC profile setup for the A/C got everything working as desired. Shut down FSX then next time I brought the A/C up none of the switch assignments worked Looking at the ipcReady file provided, it only runs the Mustang lua if this line is true: if ipc.readSTR(0x3D00, 18) == "F1_Cessna_Mustang1" then Since ipcReady.lua is only run at the start, it will only run the Mustang lua if you load a flight initially with the aircraft named (exactly) "F1_Cessna_Mustang1". No others will do. Thereafter you can only run that Lua by assigning a button or key to it and running it that way. I think when the Mustang files were contributed it was probably before the "Auto" facilities were available. Now it would be far better to add this to your FSUIPC INI file: [Auto.F1 Cessna Mustang] 1=Lua F1MustangSwCtl and delete the ipcReady.lua file altogether. Regards Pete
jaoder Posted December 2, 2011 Author Report Posted December 2, 2011 Thanks Pete that did the trick, I had tried the "Auto" before but didn't remove the ipcready.lua file. There are a couple of functions that don't work but the control may have changed with some of the updates to the plane since that was written. I used your Lvar logging file and got a list of all the Lvars so now I can have some fun learning how to write LUA scripts. Thanks again, John
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