Jump to content
The simFlight Network Forums

VRI Baro lua not working anymore


Recommended Posts

Hi Pete,

I've always used the lua command for switching between inHg and mbar on the VRinsight M Panel. Today I noticed it doesn't work anymore. I assigned the [Pause Break] key to "LuaToggle VRI_SetBaro", but when I press that key now, nothing happens.

Here's my FSUIPC4.ini file:

[General]
Debug=Please
History=HN59HDNWXVA2W0AJ0XRCD
MouseWheelTrim=No
MouseWheelTrimSpeed=1
FixControlAccel=No
FixMachSpeedBug=No
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=0.5,2.5
TurbulenceDivisor=40,40,80,80
SuppressAllGusts=No
MaxSurfaceWind=0
WindLimitLevel=200
WindDiscardLevel=400
WindAjustAltitude=No
WindAjustAltitudeBy=2000
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=Yes
ClockSyncMins=5
ClearWeatherDynamics=No
OwnWeatherChanges=No
TimeForSelect=4
LoadFlightMenu=No
LoadPlanMenu=No
PauseAfterCrash=Yes
ZapSound=firework
ShortAircraftNameOk=Yes
TCASid=Flight
TCASrange=40
AxisCalibration=No
DirectAxesToCalibs=No
ShowMultilineWindow=Yes
SuppressSingleline=Yes
SuppressMultilineFS=No
AxisIntercepts=No
WeatherReadFactor=2
WeatherRewriteSeconds=1
SimConnectStallTime=1
AdvDisplayHotKey=192,9
UpdatedByVersion=4600
JoystickTimeout=15
SmoothBySimTime=No
BrakeReleaseThreshold=75
SaveDataWithFlights=No
UseProfiles=No
DontResetAxes=No
CustomWeatherModify=No
Console=No
PollGFTQ6=Yes
BlankDisplays=No
ConsoleWindow=0,0,0,0

[GPSout]
GPSoutEnabled=No
Port=COM1
Speed=4800
Interval=2000
PosTo6Decimal=No
Sentences=

[WideServer]
WideFSenabled=Yes

[Axes]
0=0Z,256,D,22,0,0,0
1=0U,256,D,9,0,0,0
2=0V,256,D,10,0,0,0
3=1X,256,D,7,0,0,0
4=1Y,256,D,8,0,0,0
5=1R,256,D,3,36,0,0
6=2X,256,D,11,0,0,0
7=2Y,256,D,12,0,0,0
8=2Z,256,D,23,0,0,0
9=2R,256,D,36,3,0,0
10=2U,256,D,9,0,0,0
11=2V,256,D,10,0,0,0
12=3Z,256,D,22,0,0,0
13=3U,256,D,9,0,0,0
14=3V,256,D,10,0,0,0

[JoystickCalibration]
ExcludeThrottleSet=Yes
ExcludeMixtureSet=Yes
ExcludePropPitchSet=Yes
SepRevsJetsOnly=No
ApplyHeloTrim=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
Throttle1=-13523,-512,512,16383/32
Throttle2=-13393,16383,16383,16383/32
Throttle3=-14433,-512,512,16383/32
Throttle4=-14043,-512,512,16383/32
Flaps=-16383,16383/24
AllowSuppressForPFCquad=Yes
UseAxisControlsForNRZ=No
Throttle=-16253,16256
FlapStarts=-16384,-15232,-14719,-14464
FlapEnds=-16383,-14720,-14465,16384
Spoilers=-11136,16384/16
SteeringTiller=-16384,0,0,16128
LeftBrake=-16383,16384/48
RightBrake=-16383,16384/48
Rudder=-16384,0,0,16128

[Buttons]
5=R3,6,C65976,0
6=U3,6,C65822,0
7=R3,7,C65981,0
8=U3,7,C65823,0
9=U2,22,C65972,0
10=R2,22,C65971,0
11=R2,21,C65966,0
12=U2,21,C65967,0
13=R0,21,C65966,0
14=R0,22,C65971,0
15=R1,6,C65976,0
16=R1,7,C65981,0
17=U0,21,C65967,0
18=U0,22,C65972,0
ButtonRepeat=20,10
21=R3,21,C65966,0
22=R3,22,C65971,0
25=R3,16,C65769,0
26=R3,18,C65769,0
27=R1,0,C65976,0
28=R1,2,C65981,0
32=R3,2,C65607,0
33=R3,3,C65615,0
36=U1,0,C65977,0
37=U1,2,C65982,0
38=U3,21,C65967,0
39=U3,22,C65972,0
40=U1,6,C65977,0
41=U1,7,C65982,0
42=R3,17,C65771,0
43=R3,19,C65771,0
46=P1,4,C66079,0
47=P1,5,C66080,0
48=R0,6,C65976,0
49=U0,6,C65977,0
50=R0,7,C65981,0
51=U0,7,C65982,0
52=P2,15,C65752,0
55=R0,2,C65607,0
56=R0,3,C65615,0
57=P2,4,C66079,0
58=P2,5,C66080,0
59=P0,15,C65752,0
60=P3,15,C65752,0

[JoyNames]
AutoAssignLetters=No
1=Saitek Pro Flight Rudder Pedals
1.GUID={C4A1B3E0-9F61-11DF-8003-444553540000}
2=Saitek Pro Flight Quadrant
2.GUID={C40748A0-9F61-11DF-8002-444553540000}
3=Saitek Pro Flight Yoke
3.GUID={C4A1DAF0-9F61-11DF-8004-444553540000}

[GPSout2]
GPSoutEnabled=No
Port=
Speed=4800
Interval=2000
PosTo6Decimal=No
Sentences=

[Axes.Aircreation582SL]
0=0U,256,D,9,0,0,0
1=0V,256,D,10,0,0,0
2=1X,256,D,11,0,0,0
3=1Y,256,D,12,0,0,0
4=2U,256,D,9,0,0,0
5=2V,256,D,10,0,0,0
6=3X,256,D,11,0,0,0
7=3Y,256,D,12,0,0,0
8=3U,256,D,21,0,0,0
9=3V,256,D,9,0,0,0

[MacroFiles]
1=MD11
2=C172
3=LVLD763

[Buttons.Cessna Skyhawk 172SP Paint1]
0=P1,5,CM2:1,0

[Programs]
RunIf1=READY,CLOSE,C:\Program Files\SerialFP2\SerialFP2.exe

[AutoSave]
AutoSaveEnabled=No

[JoystickCalibration.Feelthere A320 CFM Airbus House]
AllowSuppressForPFCquad=Yes
ExcludeThrottleSet=Yes
ExcludeMixtureSet=Yes
ExcludePropPitchSet=Yes
SepRevsJetsOnly=No
ApplyHeloTrim=No
UseAxisControlsForNRZ=No
FlapsSetControl=0
FlapDetents=No
FlapStarts=-16384,-15232,-14719,-14464
FlapEnds=-16383,-14720,-14465,16384
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
LeftBrake=-14848,16384/48
RightBrake=-14848,16384/48
Throttle1=-13653,-512,512,16383/32
Throttle2=-13393,16383,16383,16383/32
Throttle3=-14823,-512,512,16383/32
Throttle4=-14173,-512,512,16383/32
Spoilers=-11136,16384/16
Flaps=-16383,16383/24
SteeringTiller=-16384,0,0,16128

[VRInsight]
1=COM5,COM3

[VRInsight.MPanl]
Lua=VRI_SetBaro
DriverWrites=Filter
WrFilter.1=BAR?
DriverReads=Filter
RdFilter.1=BAR?+

[LuaFiles]
1=VRI_SetBaro
2=log lvars
3=J41_AP_Display
4=J41_AUTO
5=PMDG_JS41_CD

[Keys]
2=45,8,L5:R,0
8=19,8,L1:T,0

[Axes.BMW 760]
0=0R,256,D,3,36,0,0
1=2X,256,D,7,8,0,0
2=2Y,256,D,4,0,0,0
3=3X,256,D,3,36,0,0

[JoystickCalibration.BMW 760]
AllowSuppressForPFCquad=Yes
ExcludeThrottleSet=Yes
ExcludeMixtureSet=Yes
ExcludePropPitchSet=Yes
SepRevsJetsOnly=No
ApplyHeloTrim=No
UseAxisControlsForNRZ=No
FlapsSetControl=0
FlapDetents=No
FlapStarts=-16384,-15232,-14719,-14464
FlapEnds=-16383,-14720,-14465,16384
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
Throttle=-14848,16384/16
LeftBrake=-14848,16384/48
RightBrake=-14848,16384/48
Throttle1=-16380,-512,512,16380/32
Throttle2=-13393,16383,16383,16383/32
Throttle3=-14823,-512,512,16383/32
Throttle4=-14173,-512,512,16383/32
Spoilers=-11136,16384/16
Flaps=-16383,16383/24
SteeringTiller=-16384,0,0,16128
Rudder=-16384,0,0,16383

[Axes.PBY-5A_Civil_Dutch]
0=0Z,256,D,4,0,0,0
1=1X,256,D,17,0,0,0
2=1Y,256,D,18,0,0,0
3=2X,256,D,7,0,0,0
4=2Y,256,D,8,0,0,0
5=2R,256,D,36,3,0,0
6=2U,256,D,9,0,0,0
7=2V,256,D,10,0,0,0
8=3U,256,D,9,0,0,0
9=3V,256,D,10,0,0,0

[Buttons.PMDG MD-11 KLM Royal Dutch Airlines N/C]
0=P260,5,C66079,0
1=U260,5,C66079,0
2=P260,6,C66080,0
3=U260,6,C66080,0

[Axes.C208B Grand Caravan Executive]
0=0Z,256,D,22,0,0,0
1=0U,256,D,9,0,0,0
2=0V,256,D,5,0,0,0
3=1X,256,D,7,0,0,0
4=1Y,256,D,8,0,0,0
5=1R,256,D,3,36,0,0
6=2X,256,D,6,0,0,0
7=2Y,256,D,12,0,0,0
8=2Z,256,D,23,0,0,0
9=2R,256,D,36,3,0,0
10=2U,256,D,9,0,0,0
11=2V,256,D,10,0,0,0
12=3Z,256,D,22,0,0,0
13=3U,256,D,9,0,0,0
14=3V,256,D,10,0,0,0

[Axes.C208B Grand Caravan Civil]
0=0Z,256,D,22,0,0,0
1=0U,256,D,9,0,0,0
2=0V,256,D,5,0,0,0
3=1X,256,D,7,0,0,0
4=1Y,256,D,8,0,0,0
5=1R,256,D,3,36,0,0
6=2X,256,D,6,0,0,0
7=2Y,256,D,12,0,0,0
8=2Z,256,D,23,0,0,0
9=2R,256,D,36,3,0,0
10=2U,256,D,9,0,0,0
11=2V,256,D,10,0,0,0
12=3Z,256,D,22,0,0,0
13=3U,256,D,9,0,0,0
14=3V,256,D,10,0,0,0

I hope you know how to solve this problem! Thanks in advance!

Regards,

Kevin :wink:

Link to comment
Share on other sites

I've always used the lua command for switching between inHg and mbar on the VRinsight M Panel. Today I noticed it doesn't work anymore. I assigned the [Pause Break] key to "LuaToggle VRI_SetBaro", but when I press that key now, nothing happens.

That Lua plug-in is designed to be run automatically from the parameters in the INI file. If you then re-run it like that you kill the properly running version and the new one starts without having the correct parameters. If you looked in your FSUIPC Log you'd probably see the error reports it gives you!

Here's my FSUIPC4.ini file:

Yes, and here are the sections which run the VRI_SetBaro plug in for you:

[VRInsight]

1=COM5,COM3

[VRInsight.MPanl]

Lua=VRI_SetBaro

DriverWrites=Filter

WrFilter.1=BAR?

DriverReads=Filter

RdFilter.1=BAR?+

Please do read the instructions and follow them. Do NOT assign a key to that plug-in unless you've edited it to put in the correct COM ports and are doing it that way to test some changes.

Regards

Pete

Link to comment
Share on other sites

Thanks for your reply, Pete, but I don't really understand what you're saying. In the instructions the following is stated: You will need to program a button or keypress to "LuaToggle VRI_SetBaro" with parameter 0, and you can then toggle between the two modes. I did assign the [Pause Break] key to "LuaToggle VRI_SetBaro" and everytime I pressed that button, the baro changed from 2992 to 1013. Now that's not working anymore. How dan I get that to work again? If I don't assign a button to it, then how can I switch beteen inHg and mbar?

Regards,

Kevin :wink:

Link to comment
Share on other sites

Thanks for your reply, Pete, but I don't really understand what you're saying. In the instructions the following is stated: You will need to program a button or keypress to "LuaToggle VRI_SetBaro" with parameter 0, and you can then toggle between the two modes.

Ah. Apologies! I missed the fact that you were referring ot the LuaToggle control, not the Lua one!

I did assign the [Pause Break] key to "LuaToggle VRI_SetBaro" and everytime I pressed that button, the baro changed from 2992 to 1013. Now that's not working anymore.

Have you checked the FSUIPC log file? The most likely thing is that the Lua plug-in is failing to open the link to the device. If you've unplugged USB devices and re-connected them it is likely the COM ports have changed and the VSPE link is broken or the ports need reassigning in the FSUIPC INI file. i.e. the line:

[VRInsight]

1=COM5,COM3

may no longer be referring to the device (COM5) and the port paired to the one the SerialFP2 program is using.

The FSUIPC log file will contain any error reports from the plug-in. It is always the first place to look.

Pete

Link to comment
Share on other sites

Now you start talking about COM ports, I decided to open VSPE and SerialFP2 and I made some screenshots of them

...

As you can see, the M Panel is on COM6.

Seems you unplugged it some time, and either plugged it into a different USB socket, or plugged something else in in the mean time which took the COM5 id?

Should I mabye change COM5,COM3 to COM6,COM3? I hope so, that makes it easy to solve! :wink:

Yes, of course. Also SerialFP2 may or may not need to be told (again) to look at COM2, as that is the other side of the VSPE pair you've set up. But only do this if it comes up prompting you to find the device.

Regards

Pete

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.