Jump to content

[1.12.x] PAPI Lights (Precision approach path indicator)


linuxgurugamer

Recommended Posts

11 minutes ago, Daniel Prates said:

Thanks linux. By the way, saving settings during a flight does not seem to work, it doesn't matter what I do and next flight it will be back to the original setting (3 degrees glidepath, 1.5 degrees deviation). I went directly into the config and changed it there to have a permanent alteration. 

Ok, thanks for the report.  I'll probably fix it this evening during my coding stream

Link to comment
Share on other sites

@Daniel Prates

"One thing I never understood about PAPI lights, where exactly is the exact glidepath? Is it where I get two reds and two whites?"

 

@linuxgurugamer already replied, just adding some notes:

  • There are some sayings that help pilots to remember it, this is only valid for VFR Flights, but with experience it become obvious:
  •  
  • WHITE over WHITE -  "You're gonna fly all night") (You are too high!!)
  • RED over WHITE – "You're all right!"
  • RED over RED – "You're dead" (You are too low!!)

 

About the replication details, I will replicate it later at night and return here.

Edited by pmborg
Link to comment
Share on other sites

2 hours ago, pmborg said:

@Daniel Prates

"One thing I never understood about PAPI lights, where exactly is the exact glidepath? Is it where I get two reds and two whites?"

 

@linuxgurugamer already replied, just adding some notes:

  • There are some sayings that help pilots to remember it, this is only valid for VFR Flights, but with experience it become obvious:
  •  
  • WHITE over WHITE -  "You're gonna fly all night") (You are too high!!)
  • RED over WHITE – "You're all right!"
  • RED over RED – "You're dead" (You are too low!!)

 

About the replication details, I will replicate it later at night and return here.

I love those memory helpers. Like "dead foot", dead engine. Seems naive and obvious, until you verify  how many accidents happen because the pilot killed the wrong engine.

Link to comment
Share on other sites

@linuxgurugamer

"About the replication details, I will replicate it later at night and return here. "

Hello,

So with this list of addons:

KSP: 1.8.1 (Win64) - Unity: 2019.2.2f1 - OS: Windows 10  (10.0.0) 64bit
000_AT_Utils - 1.9
ClickThroughBlocker - 0.1.9.5
Filter Extensions - 3.2.4.1
TexturesUnlimited - 1.5.9.24
Toolbar - 1.8.0.5
USI Tools - 1.3
ToolbarControl - 0.1.9.4
Airplane Plus - 26.0.5
Antenna Helper - 1.0.7.2
B9 Animation Modules - 1.6
B9 Part Switch - 2.13
B9 Aerospace - 6.6
B9 Aerospace - 6.6
B9 Aerospace HX Parts - 6.6
BetterTimeWarpContinued - 2.3.12.4
Better Looking Oceans - 1.3.0.3
CivilianPopulation - 3.0.0.7
Community Category Kit - 5.0
Community Resource Pack - 1.3
CommunityTechTree - 3.4.1
Community Trait Icons - 1.0
ConfigurableContainers - 2.4.8
CryoEngines - 1.1.1
CryoTanks - 1.4.2
Community Terrain Texture Pack - 1.0.4
Draggable_Navball - 1.0.1.2
Environmental Visual Enhancements - 1.8.0.2
FieldTrainingLab - 1.0.3.4
Firespitter - 7.15
FShangarExtender - 3.6
GroundConstruction - 2.6
Hangar - 3.5
HeatControl - 0.5.1
HideEmptyTechTreeNodes - 1.1.2
Interstellar Fuel Switch - 3.14.2.1
WaterTanks - 1.5.1
RasterPropMonitor - 0.31.3
KAS - 1.5.7239.36651
Kerbal Engineer Redux - 1.1.7.1
Kerbal Foundries - 2.4.8.18
Kerbal Joint Reinforcement - 4.1.15
Kerbal Inventory System - 1.24.7279.41031
Kopernicus - 1.8.1.1
KSC Switcher - 1.8
KSP-AVC Plugin - 1.4.1.4
KSPWheel - 0.16.14.33
MoarFilterExtensionConfigs - 1.0.5.1
ModularFlightIntegrator - 1.2.7
ModuleAnimateGenericEffects - 0.0.1.1
Docking Port Alignment Indicator - 6.8.6
NearFutureProps - 0.6.2
OPT Legacy Spaceplane Parts - 1.6.2
OPT Reconfig - 1.9.2
PartInfo - 0.0.2
PatchManager - 0.0.17.1
Photon Sailor - 1.4.11.5
Kerbal Planetary Base Systems - 1.6.10
Pmborg - 1.2
Portrait Stats - 1.0.18
RealPlume - Stock - 3.0.1
Real Scale Boosters - 0.16
AmpYear - 1.5.6
DeepFreeze Continued... - 0.27
SCANsat - 1.1.8.14
ShowFPS - 0.2.2.1
SimpleConstruction - 4.0.2.3
ExtraplanetaryLaunchpads - 6.7
Space Age - 1.1.1
SpaceY Expanded - 1.4
SpaceY Lifters - 1.17.2
StationPartsExpansionRedux - 1.3.3
TarsierSpaceTechnology - 7.10
TextureReplacer - 4.1.3
TAC Life Support - 0.14
TooManyOrbits - 1.1.6.2
Kerbal Alarm Clock - 3.12
Alternate Resource Panel - 2.9.3
TweakScale - 2.4.3.10
USI Core - 1.3
USI Exploration Pack - 1.3
Freight Transport Tech - 1.3
Konstruction - 1.3
USI-LS - 1.3
MKS - 1.3
NuclearRockets - 1.3
KSP Interstellar Extended - 1.25.10.5
IVA Kerbal Identifier - 1.1
ZeroMiniAVC - 1.1.0.1

 

from menu just return to a saved game (attached) and then:

 

LOGS and saved files:

https://www.dropbox.com/s/8orw4ypb9tvajx7/LOGS.zip?dl=0

 

 

 

Link to comment
Share on other sites

0.5.0.5

  • Fixed saving and loading of light data
  • Moved lights.cfg into PluginData *** VERY IMPORTANT ***
  • Removed about 1000+ lines of old code related to the old Toolbar & Blizzy Toolbar 
5 hours ago, pmborg said:

@linuxgurugamer

"About the replication details, I will replicate it later at night and return here. "

Hello,

Please try it again using the current release, I changed some code which may be related.  When I just tested it, it seems to be working now.

 

Link to comment
Share on other sites

17 hours ago, linuxgurugamer said:

0.5.0.5

  • Fixed saving and loading of light data
  • Moved lights.cfg into PluginData *** VERY IMPORTANT ***
  • Removed about 1000+ lines of old code related to the old Toolbar & Blizzy Toolbar 

Please try it again using the current release, I changed some code which may be related.  When I just tested it, it seems to be working now.

 

Hello,

Unfortunately is still the same as shown in last video.

Link to comment
Share on other sites

5 hours ago, pmborg said:

Hello,

Unfortunately is still the same as shown in last video.

Yes it is weird for me too. The issue I reported seems fixed (the saved changed settings remain changed) but the lights do not seem to appear where they should. And it is a fluctuating issue too; at one time it was fine, then it disappeared, then (and this is the weirdest) they appeared backwards, meaning, i saw the lights at the wrong end of the runway - i.o.w., the ones on the closer header didn't appear, but I could see the ones on the farthest header.

Link to comment
Share on other sites

9 hours ago, pmborg said:

Hello,

Unfortunately is still the same as shown in last video.

I notice that you are running some sort of planet pack which adds stars.  Can you please try it without?

Also, please go into the flight scene and see if they appear at that time.

4 hours ago, Daniel Prates said:

Yes it is weird for me too. The issue I reported seems fixed (the saved changed settings remain changed) but the lights do not seem to appear where they should. And it is a fluctuating issue too; at one time it was fine, then it disappeared, then (and this is the weirdest) they appeared backwards, meaning, i saw the lights at the wrong end of the runway - i.o.w., the ones on the closer header didn't appear, but I could see the ones on the farthest header.

If they don't appear where they should, what scene are you in, and where are they actually appearing?

 

Edit:  Both of you, log files, please

Edited by linuxgurugamer
Link to comment
Share on other sites

Hello @linuxgurugamer

I have done a try without kopernicus which automatically offload all planet/starts addons.

The result is still the same unfortunately , please check my last log the problem is exactly the same with the same behavior or this new one of today (without kopernicus): https://www.dropbox.com/s/f43eqvu9kp7sfnh/KSP-log-papi.zip?dl=0

Edited by pmborg
Link to comment
Share on other sites

2 minutes ago, pmborg said:

Hello @linuxgurugamer

I have done a try without kopernicus which automatically offload all planet/starts addons.

The result is still the same unfortunately , please check my last log the problem is exactly the same with the same behavior or this new one of today: https://www.dropbox.com/s/f43eqvu9kp7sfnh/KSP-log-papi.zip?dl=0

Ok, thanks.  I'm still trying to replicate it, will go through your logs this evening

Link to comment
Share on other sites

16 hours ago, linuxgurugamer said:

If they don't appear where they should, what scene are you in, and where are they actually appearing?

 

Edit:  Both of you, log files, please

Sorry Linux. Well, they appear unbiasedly in KSC view and flight view. They glitch in flight view certainly. 

I deleted it, thinking maybe a fresh install would do it (also, it was from CKAN. I will try to get it from github to see if it makes a difference). Will do so and, if the problem persists, log will follow. 

Edited by Daniel Prates
Link to comment
Share on other sites

1 hour ago, Daniel Prates said:

Sorry Linux. Well, they appear unbiasedly in KSC view and flight view. They glitch in flight view certainly. 

I deleted it, thinking maybe a fresh install would do it (also, it was from CKAN. I will try to get it from github to see if it makes a difference). Will do so and, if the problem persists, log will follow. 

Can you either explain in detail what you mean by glitching in flight or get a video showing it?

Link to comment
Share on other sites

1 hour ago, linuxgurugamer said:

Can you either explain in detail what you mean by glitching in flight or get a video showing it?

In the first minutes of the flight the lights are going to be there, reds and white pointing in the correct angle. Then sometime later not; and later on in the same flight they disapear alltogether; further on they appear in the wrong facing etc

But forget it for now; I will reinstall it and report again.

Reinstalled. This happened:

1 - Viewing from the KSC it seems fine. But during a flight, it start allright but then change. Taking off and gaining a distance from the runway you can still see them, but then they disappear, and even though running back into the runway and completing a landing, I never saw them again.

2 - I had changed the glideslope and the tolerance during the flight (is that it?). Was landing, they were gone... then I clicked 'reset config' (or whatever that is) and ... well, they appeared again, but again seeing from the back (that is, I saw the lights on the farther header, so, wrong). 

3 - Finish flight, recover the craft, go back to KSP view... and the lights are back on. 

I will be sending my log. 

A question: is there a necessary relation between the glideslope and the tolerance? I set mine to 5 degrees GS, and a wide array of tolerances - 1.5, 3, 5 ... did no difference.

Edited by Daniel Prates
Link to comment
Share on other sites

8 hours ago, pmborg said:

Hello @linuxgurugamer

I have done a try without kopernicus which automatically offload all planet/starts addons.

The result is still the same unfortunately , please check my last log the problem is exactly the same with the same behavior or this new one of today (without kopernicus): https://www.dropbox.com/s/f43eqvu9kp7sfnh/KSP-log-papi.zip?dl=0

 

Not sure yet what is going on, but please, delete the PAPIPlugin/settings.cfg, it now lives in the PluginData directory, as mentioned in the release notes:

 

On 3/2/2020 at 8:41 PM, linuxgurugamer said:

Moved lights.cfg into PluginData *** VERY IMPORTANT ***

 

You seem to have a number of mods installed which might be causing issues.  

I loaded your save and it behaved properly for me.  I know it's tedious, but could you start off with a minimal install, see if it fails, and if it does, then send me the save directory, log file and list of mods?

Thanks

Link to comment
Share on other sites

16 hours ago, linuxgurugamer said:

 

Not sure yet what is going on, but please, delete the PAPIPlugin/settings.cfg, it now lives in the PluginData directory, as mentioned in the release notes:

 

 

You seem to have a number of mods installed which might be causing issues.  

I loaded your save and it behaved properly for me.  I know it's tedious, but could you start off with a minimal install, see if it fails, and if it does, then send me the save directory, log file and list of mods?

Thanks

Hello, @linuxgurugamer

Yes I was doing this drill down, I have now a short list of mods that are causing the problem:

https://imgur.com/R3Gw9tw R3Gw9tw.png

Edited by pmborg
Link to comment
Share on other sites

[1]

After remove all mods and bring them all again in sets of 5 or 6, all was working again.

But as soon as I launched a ship in runway PAPI disappeared again...:S

 

[2]

My best shot that I have is that this problem appear when these lines appear in log, but not 100%:

sample1:

[LOG 20:16:00.176] ScaleModList: listSize 984 maxListSize 592
[LOG 20:16:00.377] [Space3B]: ground contact! - error. Moving Vessel  down -0.731m
[LOG 20:16:00.381] Unpacking Space3B
[LOG 20:16:00.679] [UIMasterController]: ShowUI

 

sample2:

[LOG 20:48:46.878] ScaleModList: listSize 984 maxListSize 592
[LOG 20:48:47.059] [Concord-130pax-Mach4.8]: ground contact! - error. Moving Vessel  down -0.228m
[LOG 20:48:47.059] Unpacking Concord-130pax-Mach4.8
[LOG 20:48:47.095] [UIMasterController]: ShowUI

 

[3]

I have a video where one of my concord planes pass the lights and they disappear and never comeback at takeoff, not sure if is needed.

 

 

Edited by pmborg
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...
  • 1 year later...

Some issues.

Lights would not actually appear until I saved the lights.cfg and then reloaded it (reloading the lights.cfg that came with the MOD would not do it) - file contents did change, see below.

After that I had to reload each time I changed from VAB, SPH, Tracking, etc. to Flight scene to get the lights to appear again - so some needed reloading isn't happening.

Original lights.cfg


LightGroup
{
	Name = Squad: KSC
	Body = Kerbin
	// KSC
	LightArray // KSC 270
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -0.054508
		Longitude = -74.517635
		Heading = 270
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 7
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
	LightArray // KSC 090
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -0.043285
		Longitude = -74.699352
		Heading = 90
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 7
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
}
LightGroup
{
	Name = Squad: Island Airfield
	Body = Kerbin
	// Island Airfield
	LightArray // IA 270
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -1.522161
		Longitude = -71.878231
		Heading = 270
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 25
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
	LightArray // IA 090
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -1.513927
		Longitude = -71.946915
		Heading = 90
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 18
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
}


LightGroup
{
	Name = Squad: Dessert Airfield
	Body = Kerbin
	LightArray // Dessert Airfield 90
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -6.581017
		Longitude = -144.047136
		Heading = 0
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 7
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
	LightArray // Dessert Airfield 270
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -6.472295
		Longitude = -144.031711
		Heading = 180
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 7
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
}

Saved out of the game lights.cfg

// PAPIPlugin

LightGroup
{
	Name = Squad: KSC
	Body = Kerbin
	LightArray
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -0.054508000000000001
		Longitude = -74.517634999999999
		Heading = 90
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 7
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
	LightArray
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -0.043284999999999997
		Longitude = -74.699352000000005
		Heading = 270
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 7
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
}
LightGroup
{
	Name = Squad: Island Airfield
	Body = Kerbin
	LightArray
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -1.5221610000000001
		Longitude = -71.878231
		Heading = 90
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 25
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
	LightArray
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -1.513927
		Longitude = -71.946915000000004
		Heading = 270
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 18
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
}
LightGroup
{
	Name = Squad: Dessert Airfield
	Body = Kerbin
	LightArray
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -6.5810170000000001
		Longitude = -144.04713599999999
		Heading = 180
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 7
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
	LightArray
	{
		Type = PAPIArray
		Namespace = PAPIPlugin.Arrays
		Latitude = -6.4722949999999999
		Longitude = -144.031711
		Heading = 0
		GlideslopeTolerance = 1.5
		TargetGlideslope = 3
		HeightAboveTerrain = 7
		PartCount = 4
		LightRadius = 8
		LightDistance = 6
	}
}


Headings get inverted for some reason, Longitudes shift, and the Latitudes get a rounding error (I assume)

Also, KSPCommunityFixes seems to prevent it from loading at all FWIW.
 

Link to comment
Share on other sites

14 hours ago, tg626 said:

Also, KSPCommunityFixes seems to prevent it from loading at all FWIW.

Please post in that thread, this isn't the first mod it's doing that to.

14 hours ago, tg626 said:

Lights would not actually appear until I saved the lights.cfg and then reloaded it (reloading the lights.cfg that came with the MOD would not do it) - file contents did change, see below.

After that I had to reload each time I changed from VAB, SPH, Tracking, etc. to Flight scene to get the lights to appear again - so some needed reloading isn't happening.

Been a long time since I looked at/used this.  Will have to refresh,wondering if this is a change due to the game version

Link to comment
Share on other sites

14 minutes ago, linuxgurugamer said:

Been a long time since I looked at/used this.  Will have to refresh,wondering if this is a change due to the game version

Honestly I decided I didn't care for it, but in the process of auditioning the MOD I had this experience and thought I'd pass it on.

Cheers!

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...