Jump to content
The simFlight Network Forums
Sign in to follow this  
shortspecialbus

(FSUIPC5) Unable to permanently delete key setting in GUI, also unknown green message

Recommended Posts

Hi Pete,

Two issues I'm seeing, both potentially my error.  First off, I have no key bindings normally.  I was testing something, and bound the space bar to Mouselook Toggle.  I decided I didn't want it, and tried to get rid of it via the following steps:

1.) Start keybind for space

2.) Hit "Clear" below the keybind

3.) Hit "Confirm" below the keybind and then "OK." 

4.) Confirm key unbound, reopen FSUIPC GUI, and confirm key unbound in there.  It doesn't do anything in the sim nor show up as bound when checking in the FSUIPC GUI at this point.

However, after closing flightsim, I note that the keybind remains in the FSUIPC.ini file and I confirm it's back the next time I start P3Dv4:

[Keys]
1=32,8,66734,0 	-{Space: Press=MOUSE_LOOK_TOGGLE }

Am I doing something wrong here?  Or is there a bug?  This is the only keybind I have in either the main file or the aircraft profiles (set to "Folder").

Second, I seem to have a green message bar about "Air = 49.something" stuck on the screen.  I can't find the relevant logging option.  The only guess I have about where it's coming from might be the one Lua I have enabled, the Carb Air one.  Here's some files:

FSUIPC5.ini

[General]
UpdatedByVersion=5101g
History=TYRVQOLJKT686I7EV1UF0
InitDelayDevicesToo=No
Annotate=Yes
NewInterceptTextMenu=No
UseSystemTime=No
UseMidMouseBtn=Yes
MouseWheelMove=No
MouseWheelTrim=No
MouseWheelTrimSpeed=1
JoystickTimeout=20
FixControlAccel=No
FixMachSpeedBug=No
AutoScanDevices=Yes
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
TimeForSelect=4
LoadFlightMenu=No
LoadPlanMenu=No
PauseAfterCrash=No
BrakeReleaseThreshold=75
SaveDataWithFlights=No
ZapSound=firework
ShortAircraftNameOk=Substring
UseProfiles=Files
EnableMouseLook=No
DelayedMouseLookZoom=No
WideLuaGlobals=Yes
AxesWrongRange=No
TCASid=Flight
TCASrange=40,3
AxisCalibration=No
DirectAxesToCalibs=No
ShowMultilineWindow=Yes
SuppressSingleline=No
SuppressMultilineFS=No
AxisIntercepts=No
DontResetAxes=No
ThreadAffinityMask=x0
LuaAffinityMask=x0
InitDelay=0
GetNearestAirports=Yes
LogOptionProtect=Yes
TimeForLuaClosing=2
WeatherReadFactor=2
WeatherRewriteSeconds=1
CustomWeatherModify=No
SimConnectStallTime=1
InitialStallTime=10
NormalStallTime=1
LuaRerunDelay=66
Console=No
FSVersionUsed="Lockheed Martin® Prepar3D® v4",4.0.23.21468
SimConnectUsed=4.0.0.0

[Traffic Limiter]
AirportPreference=50
PlannedAirportsPreference=50
GroundPreference=50
NearerPreference=50
TargetFrameRate=0
TrafficLimit=200

[Auto]
1=Lua A2A_CarbHeat

[JoyNames]
AutoAssignLetters=Yes
0=MFG Crosswind V2
0.GUID={542137C0-27F6-11E6-8002-444553540000}
1=PFC Yoke
1.GUID={06221670-F844-11E5-8018-444553540000}
2=Saitek Pro Flight TPM System
2.GUID={06178F20-F844-11E5-8012-444553540000}
3=Mad Catz Pro Flight Cessna Trim Wheel
3.GUID={061D3470-F844-11E5-8017-444553540000}
4=TQ6
4.GUID={0601BD30-F844-11E5-8004-444553540000}
Y=PFC Yoke
M=Saitek Pro Flight TPM System
W=Mad Catz Pro Flight Cessna Trim Wheel
T=TQ6
P=MFG Crosswind V2

[Axes]
PollInterval=10
RangeRepeatRate=10

[Buttons]
PollInterval=25
ButtonRepeat=20,10
1=PY,6,K121,8 	-{Key press: F10}-
2=PY,7,K120,8 	-{Key press: F9}-

[MacroFiles]
1=1_A2A_P180
2=2_A2A_C182
3=3_A2A_PA-24-250

[LuaFiles]
1=A2A_CarbHeat
#2=log lvars
#3=gitlua
#4=ipcini
#5=ipcinit
2=log lvars

[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
LeftBrake=-16383,16384/16
RightBrake=-16383,16239/16
Throttle=-16254,16320
PropPitch=-16190,16383
Mixture=-16384,1625

[Profile.Piper Cub]
1=A2A Piper Cub

[Profile.Cessna 182]
1=C182

[Profile.Cherokee 180]
1=Piper Pa-28-180

[Profile.Comanche 250]
1=Piper Pa-24-250

[Window.LUA display]
Docked=7347, 2457, 3571, 2539

[Profile.PMDG 737]
1=Boeing 737-7H4NGX Southwest Airlines Winglets
2=PMDG 737-800NGX American Airlines (N880NN)

[Profile.Cessna 172]
1=C172R

[Profile.Lancair Legacy]
1=RealAir Lancair Legacy V2

[AutoSave]
Next=1
Interval=60
Files=10
SaveOnGround=No
AutoSaveEnabled=No

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

[GPSout2]
GPSoutEnabled=No
Port=<none set>
Speed=4800
Interval=2000
PosTo6Decimal=No
SimModeIndicator=No
Sentences=

[WideServer]
WideFSenabled=Yes
AdvertiseService=1
Port=8002
Port2=9002

[Sounds]
Path=F:\Prepar3D v4\Sound\
Device1=Primary Sound Driver
Device2=Speakers (Sound Blaster Recon3Di)
Device3=DELL U3011-8 (NVIDIA High Definition Audio)
Device4=Speakers (Turtle Beach Ear Force Stealth 450)
Device5=SPDIF-Out (Sound Blaster Recon3Di)

[Keys]
1=32,8,66734,0 	-{Space: Press=MOUSE_LOOK_TOGGLE }-

(I know commenting out the LUAs didn't do much - I also renamed the ones that didn't re-add themselves and renumber so that they wouldn't load)

A2A_CarbHeat.lua

function Cabin_Vent(control, Vent_in)
Vent_Out = (Vent_in + 16383)/327.67
ipc.writeLvar("L:CabinVent", Vent_Out)
end

function Carb_Air(control, Air_in)
Air_Out = (Air_in + 16383)/327.67
ipc.writeLvar("L:Eng1_CarbAirSwitch", Air_Out)
ipc.display("Air = "..Air_Out, 1)
end

function Carb_Heat(control, Heat_in)
--Heat_Out = 100- ((Heat_in + 16383)/327.67)
Heat_Out = ((Heat_in + 16383)/327.67)
ipc.writeLvar("L:Eng1_CarbHeatSwitch", Heat_Out)
end

function Cowl_Flaps(control, Cowl_in)
Cowl_Out = ((Cowl_in + 16383)/327.67)
ipc.writeLvar("L:Eng1_CowlFlapsLever", Cowl_Out)
end

event.offset(0x66D0,"SW","Carb_Air")
event.offset(0x66D2,"SW","Carb_Heat")
event.offset(0x66D4,"SW","Cabin_Vent")
event.offset(0x66D6,"SW","Cowl_Flaps")

And finally, a screenshot:

qo1qx0Sh.png

(full size: http://i.imgur.com/qo1qx0S.png )

I don't see anything that should be displaying that, but I'm likely missing something obvious.

Thanks,

-stefan

Share this post


Link to post
Share on other sites

I solved my own problem with the air = thing. I apparently copied an older debug version of that Lua in and the display is there plain as day. No idea how I missed that. My bad. Keybind question still stands. 

-stefan 

Share this post


Link to post
Share on other sites
5 hours ago, shortspecialbus said:

4.) Confirm key unbound, reopen FSUIPC GUI, and confirm key unbound in there.  It doesn't do anything in the sim nor show up as bound when checking in the FSUIPC GUI at this point.

However, after closing flightsim, I note that the keybind remains in the FSUIPC.ini file and I confirm it's back the next time I start P3Dv4:

You misunderstand the options on that Tab, or you've not read the documentation.

"Clear" does not delete the assignment in the INI. You can reload it using the "Reload" key. Clear just clears your input there so you can re-assign it. To delete a key assignment you need to use the right-hand side of that options tab. Do you not see where it says "Review or delete settings here" in the display box at the top, and you haven't noticed the "Delete this entry" button at the bottom?

Pete

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

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