Skip to content

Commit 262536b

Browse files
committed
Initial Repo Setup
0 parents  commit 262536b

File tree

9 files changed

+185
-0
lines changed

9 files changed

+185
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Source/.vs/
2+
Source/bin/
3+
Source/obj/
4+
Source/packages/
5+
Source/*.user
6+
Gamedata/KSPCommunityPartModules/Plugin/*.pdb

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Sofie
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# KSPCommunityPartModules
2+
3+
This mod is a collection of part modules that are frequently used by multiple mods.
4+
It was created to avoid the frequent copying of modules between mods which made maintaining the modules more difficult and sometimes resulted in incompatibility between mods' modules.
5+
This mod by itself will not have any effects, it is meant to be used as a dependency for other mods.
6+
7+
This mod is meant as community project, so feel free to propose additional module ideas by opening an issue, or to contribute with a pull request.
8+
9+
### Download and installation
10+
11+
Compatible with **1.12.3** and up - Available on [CKAN]
12+
13+
**Installation**
14+
- Go to the **[GitHub release page](https://github.com/KSPModdingLibs/KSPCommunityPartModules/releases)** and download the newest file named `KSPCommunityPartModules_x.x.x.zip`
15+
- Open the downloaded *.zip archive
16+
- Open the `GameData` folder of your KSP installation
17+
- Delete any existing `KSPCommunityPartModules` folder in your `GameData` folder
18+
- Copy the `KSPCommunityPartModules` folder found in the archive into your `GameData` folder
19+
20+
### Included part modules
21+
22+
[CKAN]: https://forum.kerbalspaceprogram.com/topic/197082-ckan-the-comprehensive-kerbal-archive-network-v1332-laplace-ksp-2-support/

Source/HOW_TO_BUILD.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
This project makes use of KSPBuildTools.
2+
KSPBT is meant to make building KSP Plugins simpler.
3+
To do so KSPBT needs a reference to your KSP install, KSPBT will look in default locations for steam installations on all operating systems.
4+
But if your copy of KSP is not in any of these locations you will need to tell KSPBT where it is.
5+
You can do this either by setting an enviroment variable named KSP_ROOT in your operating system that points to the ksp folder.
6+
Or more likely by creating a (insert SolutionName here).props.user file in the same directory as the solution. that contains the following:
7+
8+
<?xml version="1.0" encoding="utf-8"?>
9+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
10+
<PropertyGroup>
11+
<KSPRoot>(PATH TO YOUR KSP FOLDER)</KSPRoot>
12+
</PropertyGroup>
13+
</Project>
14+
15+
16+
This file is not git tracked meaning any contributor will need to create this file manually if their install is not in a default location.
17+
For more information, look at the readme of KSPBT here:
18+
https://github.com/KSPModdingLibs/KSPBuildTools
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectGuid>{9639AFEF-CCE4-4814-B385-F3CA3568A6D8}</ProjectGuid>
7+
<OutputType>Library</OutputType>
8+
<AppDesignerFolder>Properties</AppDesignerFolder>
9+
<RootNamespace>KSPCommunityPartModules</RootNamespace>
10+
<AssemblyName>KSPCommunityPartModules</AssemblyName>
11+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<Deterministic>true</Deterministic>
14+
<TargetFrameworkProfile />
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>portable</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<DebugType>none</DebugType>
27+
<Optimize>true</Optimize>
28+
<OutputPath>bin\Release\</OutputPath>
29+
<DefineConstants>TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<ItemGroup>
34+
<PackageReference Include="KSPBuildTools" Version="0.0.2-alpha.5" />
35+
</ItemGroup>
36+
<ItemGroup>
37+
<Compile Include="Properties\AssemblyInfo.cs" />
38+
</ItemGroup>
39+
<ItemGroup>
40+
<Content Include="HOW_TO_BUILD.txt" />
41+
</ItemGroup>
42+
<ItemGroup/>
43+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
44+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup>
4+
<BinariesOutputRelativePath>..\GameData\$(SolutionName)\Plugin</BinariesOutputRelativePath>
5+
</PropertyGroup>
6+
</Project>

Source/KSPCommunityPartModules.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.9.34622.214
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KSPCommunityPartModules", "KSPCommunityPartModules.csproj", "{9639AFEF-CCE4-4814-B385-F3CA3568A6D8}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{9639AFEF-CCE4-4814-B385-F3CA3568A6D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{9639AFEF-CCE4-4814-B385-F3CA3568A6D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{9639AFEF-CCE4-4814-B385-F3CA3568A6D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{9639AFEF-CCE4-4814-B385-F3CA3568A6D8}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {91D88F51-692B-4559-BD0D-33F49D96FBAC}
24+
EndGlobalSection
25+
EndGlobal

Source/Properties/AssemblyInfo.cs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("KSPCommunityPartModules")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("KSPCommunityPartModules")]
13+
[assembly: AssemblyCopyright("Copyright © 2024")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("9639afef-cce4-4814-b385-f3ca3568a6d8")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
37+
38+
[assembly: KSPAssembly(name: "KSPCommunityPartModules"
39+
, versionMajor: 0
40+
, versionMinor: 0
41+
, versionRevision: 1)]

0 commit comments

Comments
 (0)