Skip to content

Commit

Permalink
Merge pull request #49 from KSP2Community/dev
Browse files Browse the repository at this point in the history
Version 0.12.0
  • Loading branch information
jan-bures committed Feb 1, 2024
2 parents bbc7b73 + 64c3fff commit 5cf21c0
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 148 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@
This project aims to bring together community bug fixes for Kerbal Space Program 2 in one centralized place.

## Compatibility
- Tested with Kerbal Space Program 2 v0.2.0.0.30291
- Tested with Kerbal Space Program 2 v0.2.1.0.30833
- Requires **[SpaceWarp 1.6.0+](https://github.com/SpaceWarpDev/SpaceWarp/releases/)**
- Requires **[Patch Manager 0.6+](https://github.com/KSP2Community/PatchManager/releases/)**

## Implemented fixes
- **KSP 2 Save Fix** by [jayouimet](https://github.com/jayouimet) - Replaces the Control Owner Part to the first available Command module or to the Root part if not found when it is set to null.
- **Vessel Landed State Fix** by [munix](https://github.com/jan-bures) - Checks if the vessel's state is Landed when not actually near the ground and resets it. Should fix [this persistent bug](https://forum.kerbalspaceprogram.com/topic/220260-incorrect-landed-state-causing-lack-of-trajectory-lines/).
- **Velocity Display Precision Fix** by [arthomnix](https://github.com/arthomnix) - Fixes the digit after the decimal point on the navball velocity display always being zero at velocities above 100m/s.
- **Suppress Transmissions Falsely Urgent Fix** by [schlosrat](https://github.com/schlosrat) - Suppresses unhelpful map view log messages.
- **VAB Redo Tooltip Fix** by [coldrifting](https://github.com/coldrifting) - Fixes the VAB Redo button tooltip not being at the same height as the button.
- **Revert After Recovery Fix** by [munix](https://github.com/jan-bures) - Fixes the Revert buttons being enabled after recovering a vessel.
- **Experiment Biome Pause Fix** by [dmarcuse](https://github.com/dmarcuse) - Fixes experiments that don't care about biome pausing when the biome changes.
- **Stock Mission Fix** by [Cheese](https://github.com/cheese3660) - Fixes the incorrect completion conditions of the mission _Second Dibs: Gold Edition_.
- **Stock Mission Fix** by [Cheese](https://github.com/cheese3660) - Fixes the incorrect completion conditions of some stock missions.
- **Resource Manager UI Fix** by [munix](https://github.com/jan-bures) - Fixes the Resource Manager bug where moving a tank from the right pane back to the left pane caused it to duplicate.
- **Decoupled Craft Name Fix** by [munix](https://github.com/jan-bures) - Decoupled and docked/undocked vessels get names based on the original vessels instead of "Default Name" and "(Combined)".

Expand All @@ -36,4 +34,4 @@ To see what fixes are planned to be implemented, you can visit the [Issues page]
If you want to toggle any of the included fixes off, you can do so in game: `Main menu` -> `Settings` -> `Mods` -> `Community Fixes`. The changes will apply after restarting the game.

## Contributing
If you'd like to contribute to this project, please take a look at [our wiki](https://github.com/KSP2Community/CommunityFixes/wiki/Adding-your-fix).
If you'd like to contribute to this project, please take a look at [our wiki](https://github.com/KSP2Community/CommunityFixes/wiki/Adding-your-fix).
3 changes: 3 additions & 0 deletions plugin_template/patches/three_is_company.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:missions #KSP2Mission_Secondary_Ike_LandingCrewed > missionStages > _0 > ConditionSet > PropertyCondition {
RequireCurrentValue: true;
}
10 changes: 5 additions & 5 deletions plugin_template/swinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
"name": "Community Fixes",
"description": "Community project that aims to bring together bug fixes for KSP 2.",
"source": "https://github.com/KSP2Community/CommunityFixes",
"version": "0.11.0",
"version": "0.12.0",
"version_check": "https://github.com/raw/KSP2Community/CommunityFixes/main/plugin_template/swinfo.json",
"ksp2_version": {
"min": "0.2.0",
"min": "0.2.1",
"max": "*"
},
"dependencies": [
{
"id": "com.github.x606.spacewarp",
"version": {
"min": "1.6.0",
"min": "1.9.0",
"max": "*"
}
},
{
"id": "PatchManager",
"version": {
"min": "0.6.0",
"min": "0.9.3",
"max": "*"
}
}
]
}
}

This file was deleted.

This file was deleted.

20 changes: 13 additions & 7 deletions src/CommunityFixes/Fix/VesselLandedState/VesselLandedStateFix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ public class VesselLandedStateFix: BaseFix
{
private void LateUpdate()
{
var gameStateConfiguration = Game?.GlobalGameState?.GetGameState();
if (gameStateConfiguration is { IsFlightMode: true })
if (Game?.GlobalGameState?.GetGameState() is not { IsFlightMode: true })
{
var vessel = Game?.ViewController?.GetActiveSimVessel();
if (vessel is { Situation: VesselSituations.Landed, AltitudeFromTerrain: > 50, SrfSpeedMagnitude: > 5 })
return;
}

var vessel = Game?.ViewController?.GetActiveSimVessel();
if (vessel is
{
vessel.Landed = false;
}
Situation: VesselSituations.Landed or VesselSituations.Splashed,
AltitudeFromSurface: > 50, SrfSpeedMagnitude: > 5
})
{
vessel.Landed = false;
vessel.Splashed = false;
}
}
}
}

0 comments on commit 5cf21c0

Please sign in to comment.