caerfinon / KerbinSideRemasteredTLA

The Life Aquatic - Contracts Pack for underwater and ocean surface missions
https://forum.kerbalspaceprogram.com/index.php?/topic/203096-v106-kerbin-side-remastered-the-life-aquatic/
MIT License
0 stars 1 forks source link

Dive Site Mission Coral Lagoon 1st Waypoint is not underwater #7

Closed caerfinon closed 3 years ago

caerfinon commented 3 years ago

Waypoint generates 120 meters above sea-level instead of below.

caerfinon commented 3 years ago

So Issue #7 is a data bug that the first waypoint was not underwater (fixed) but it is also a Contract Configurator bug that does not like it when you specify a waypoint altitude value using non deterministic means - like say a random number from 0 to 7.

I ran into this in KSRGAP trying to fix the height of different KK statics above the real terrain value and I could not solve it. But as most runways were close to the ground it could be worked around.

Unfortunately this isn't true with the Site Dive contracts. The only way to make it work with the 4 different waypoints at significantly different height values is to force a deterministic value for the altitude. And to do that each site needs to have its own contract configuration file. The data defining all the sites is still in group.cfg file but the 8 contract files are just duplicate code with the value of one variable hard set to refer to the correct index.

It's dreadfully inefficient, but it works. If the issue is ever fixed in CC, i can revert back to one code file.

caerfinon commented 3 years ago

v1.0.2 corrects