-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:KSP-KOS/KOS
- Loading branch information
Showing
585 changed files
with
40,313 additions
and
7,514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
cd Resources | ||
rm *.dll | ||
cd ../doc | ||
rm -r gh-pages | ||
rm -r build | ||
cd ../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then | ||
echo "Build from within the home repository, encryption enabled." | ||
wget --quiet https://github.com/KSP-KOS/KSP_LIB/blob/master/kos-${KSP_VERSION}.tar.enc?raw=true -O kos-${KSP_VERSION}.tar.enc | ||
openssl aes-256-cbc -K $encrypted_6287ee711a27_key -iv $encrypted_6287ee711a27_iv -in kos-${KSP_VERSION}.tar.enc -out kos-${KSP_VERSION}.tar -d | ||
else | ||
echo "Build from pull request outside of the home repository, encryption disabled." | ||
wget --quiet https://github.com/KSP-KOS/KSP_LIB/blob/master/kos-${KSP_VERSION}.tar?raw=true -O kos-${KSP_VERSION}.tar | ||
fi | ||
|
||
mkdir -p Resources | ||
tar -xvf kos-${KSP_VERSION}.tar -C Resources/ | ||
|
||
python --version | ||
pip --version | ||
# workaround for not being able to use pip outside of a python project | ||
export PATH=$HOME/.local/bin:$PATH | ||
pip install --user $USER sphinx_rtd_theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
cd doc | ||
sphinx-build -b html -q -W -d build/doctrees source gh-pages | ||
#make html | ||
cd ../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Auto detect text files and perform LF normalization | ||
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/ | ||
* text=auto | ||
|
||
*.cs diff=csharp | ||
|
||
*.csproj text=auto merge=union | ||
*.sln text=auto eol=crlf merge=union |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
bin/ | ||
obj/ | ||
# VisualStudio | ||
[Bb]in/ | ||
[Oo]bj/ | ||
*.suo | ||
packages/ | ||
/src/kOS.sln.ide | ||
|
||
# Monodevelop | ||
[Ee]xported[Oo]bj/ | ||
*.userprefs | ||
|
||
# Unity | ||
[Ll]ibrary/ | ||
[Tt]emp/ | ||
/*.pidb | ||
/*.user | ||
|
||
# Build products and files generated during gameplay | ||
Resources/GameData/kOS/Plugins/ | ||
!Resources/GameData/kOS/ICSharpCode.SharpZipLib.dll | ||
|
||
# Symlink to KSP directory | ||
KSPdirlink | ||
|
||
# OS Specific | ||
.DS_STORE* | ||
[Tt]humbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
language: csharp | ||
solution: src/kOS.sln | ||
sudo: false | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- python-sphinx | ||
- nunit-console | ||
|
||
env: | ||
global: | ||
- KSP_VERSION="1.0.5" | ||
|
||
# Pre-shared token for pushing notifications to slack chat | ||
notifications: | ||
slack: ksp-kos:51DTQ4ZBP9SlGNnLWJ5D84vp | ||
|
||
# Before the install the library dlls need to be downloaded | ||
before_script: | ||
- chmod +x .ci/travis/before_script.sh && ./.ci/travis/before_script.sh | ||
|
||
script: | ||
- xbuild /p:Configuration=Release $TRAVIS_SOLUTION | ||
# I know framework 4.0 is wrong, just trying it to see if it fixes the test | ||
- nunit-console -framework=4.0 src/kOS.Safe.Test/bin/Release/kOS.Safe.Test.dll | ||
# - chmod +x .ci/travis/script-sphinxdocs.sh && ./.ci/travis/script-sphinxdocs.sh | ||
|
||
# Cleanup the downloaded resources | ||
after_script: | ||
- chmod +x .ci/travis/after_script.sh && ./.ci/travis/after_script.sh | ||
|
||
before_deploy: | ||
- mkdir src/kOS/bin/dist | ||
- tar -zcvf src/kOS/bin/dist/build_$TRAVIS_BUILD_NUMBER.tgz src/kOS/bin/Release/kOS*.dll | ||
|
||
deploy: | ||
provider: s3 | ||
access_key_id: "AKIAINHSGTBU5O3DKV2Q" | ||
secret_access_key: "$S3_DEPLOY_SECRET" | ||
bucket: "kos-artifacts" | ||
skip_cleanup: true | ||
local_dir: "src/kOS/bin/dist/" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
Pull Requests | ||
============= | ||
|
||
* All PRs must be related to an open issue | ||
* If a PR changes the scripting API, it must include all related changes to the documentation. | ||
|
||
Setting Up Your Environment | ||
=========================== | ||
|
||
1. Copy `Resources/GameData/kOS` to `$KSP/GameData/`, `where $KSP` is your | ||
Kerbal Space Program installation directory. | ||
|
||
2. Download the latest KSPAPIExtensions.dll from | ||
https://github.com/Swamp-Ig/KSPAPIExtensions/releases, and copy | ||
it to `$KSP/GameData/kOS/Plugins`. | ||
|
||
3. Create a file at src/kOS/kOS.csproj.user conaining the following XML, | ||
replacing /path/to/KSP with your own KSP install directory. | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<ReferencePath> | ||
/path/to/KSP/KSP_Data/Managed; | ||
/path/to/KSP/GameData/kOS/Plugins | ||
</ReferencePath> | ||
</PropertyGroup> | ||
</Project> | ||
|
||
4. If you want building the solution to update the dlls in your KSP | ||
directory, create a symbolic link called `KSPdirlink` from the root | ||
of this repository to your KSP installation directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
PART | ||
{ | ||
|
||
name = Cherry Light | ||
module = Part | ||
author = Peter Goddard (pgodd) and Brad White (hvacengi) | ||
mesh = model/cherrylight.mu | ||
scale = 1 | ||
rescaleFactor = 1 | ||
node_stack_bottom = 0, -0.01, 0, 0, -90, 0, 0 | ||
node_attach = 0.0, -0.01, 0.0, 0, -90, 0, 0 | ||
TechRequired = advElectrics | ||
cost = 500 | ||
entryCost = 1200 | ||
category = Utility | ||
subcategory = 0 | ||
title = Cherry Light | ||
manufacturer = kOS Peripherals | ||
description = Watch out! It's the coppers! Fool your friends, be the life of the party with our simulated police style light. Not for use by real police. | ||
attachRules = 1,1,0,0,0 | ||
mass = 0.001 | ||
dragModelType = default | ||
maximum_drag = .002 | ||
minimum_drag = .002 | ||
angularDrag = 2 | ||
crashTolerance = 9 | ||
maxTemp = 2400 | ||
MODULE | ||
{ | ||
name = ModuleLight | ||
lightName = PowerLight | ||
isOn = true | ||
lightR = 0.5 | ||
lightG = 0 | ||
lightB = 0 | ||
} | ||
MODULE | ||
{ | ||
name = kOSLightModule | ||
resourceAmount = 0.02 | ||
animationName = Rotation | ||
} | ||
} |
Binary file modified
BIN
+0 Bytes
(100%)
Resources/GameData/kOS/Parts/kOSMachine0m/KR-2042_uv_layout_1_EMIS.mbm
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Resources/GameData/kOS/Parts/kOSMachine0m/KR-2042_uv_layout_1_d_NRM.mbm
100644 → 100755
Binary file not shown.
Binary file modified
BIN
-1 MB
(75%)
Resources/GameData/kOS/Parts/kOSMachine0m/KR-2042_uv_layout_d.mbm
100644 → 100755
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+4 MB
Resources/GameData/kOS/Parts/kOSMachine0mLegacy/KR-2042_uv_layout_1_EMIS.mbm
Binary file not shown.
Binary file added
BIN
+4 MB
Resources/GameData/kOS/Parts/kOSMachine0mLegacy/KR-2042_uv_layout_1_d_NRM.mbm
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
PART | ||
{ | ||
// --- general parameters --- | ||
name = kOSMachine0m | ||
module = Part | ||
author = SMA and Peter Goddard | ||
|
||
// --- asset parameters --- | ||
mesh = model/model.mu | ||
scale = 1 | ||
rescaleFactor = 1 | ||
|
||
// --- node definitions --- | ||
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z, connector node size | ||
node_stack_bottom = 0.0, -0.04, 0.0, 0.0, -1.0, 0.0, 0 | ||
node_stack_top = 0.0, 0.03, 0.0, 0.0, 1.0, 0.0, 0 | ||
|
||
|
||
// --- Tech tree --- | ||
TechRequired = precisionEngineering | ||
|
||
// --- editor parameters --- | ||
cost = 1200 | ||
entryCost = 6800 | ||
category = -1 | ||
subcategory = 0 | ||
title = KR-2042 b Scriptable Control System | ||
manufacturer = Compotronix | ||
description = Would you trust life and limb to a mindless autopilot, powered by untested software you hastily wrote yourself? Spacefaring kerbals would! | ||
|
||
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision | ||
attachRules = 1,0,1,1,0 | ||
|
||
// --- standard part parameters --- | ||
mass = 0.08 | ||
dragModelType = default | ||
maximum_drag = 0.2 | ||
minimum_drag = 0.2 | ||
angularDrag = 2 | ||
crashTolerance = 9 | ||
maxTemp = 3400 | ||
|
||
MODULE | ||
{ | ||
name = kOSProcessor | ||
diskSpace = 5000 | ||
} | ||
|
||
RESOURCE | ||
{ | ||
name = ElectricCharge | ||
amount = 5 | ||
maxAmount = 5 | ||
} | ||
|
||
MODULE | ||
{ | ||
name = ModuleLight | ||
lightName = PowerLight | ||
useAnimationDim = true | ||
lightBrightenSpeed = 8 | ||
lightDimSpeed = 4 | ||
resourceAmount = 0.01 | ||
animationName = PowerLight | ||
useResources = true | ||
startEventGUIName = "Power Off" | ||
endEventGUIName = "Power On" | ||
} | ||
|
||
|
||
} |
Binary file modified
BIN
-5.74 KB
(88%)
Resources/GameData/kOS/Parts/kOSMachine1m/model.mu
100644 → 100755
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+4 MB
...eData/kOS/Parts/kOSMachine1m/model000.mbm → ...eData/kOS/Parts/kOSMachine1m/model002.mbm
100644 → 100755
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-51 KB
(49%)
Resources/GameData/kOS/Parts/kOSMachineRad/Model.mu
100644 → 100755
Binary file not shown.
Empty file.
Oops, something went wrong.