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
@echo off | |
tasklist /FI "IMAGENAME eq KSP_x64.exe" 2>NUL | find /I /N "KSP_x64.exe">NUL | |
if "%ERRORLEVEL%"=="0" ( | |
echo KSP is running!! | |
pause | |
exit /b | |
) | |
copy /y ksp.log ksp.log.original | |
start /wait D:\fnr.exe --cl --silent --dir "D:\SteamLibrary\steamapps\common\Kerbal Space Program" --fileMask "*.log" --excludeFileMask "*.dll, *.txt" --useRegEx --find "\[WRN.*\].*Texture isn't eligible for DXT compression, width and height must be multiples of 4" --replace "" | |
start /wait D:\fnr.exe --cl --silent --dir "D:\SteamLibrary\steamapps\common\Kerbal Space Program" --fileMask "*.log" --excludeFileMask "*.dll, *.exe" --useRegEx --find "\[WRN.*\].*File.*(MissionScoreInfo.cfg|Debug.cfg).*does not exist" --replace "" |
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
@echo off | |
echo file renaming watch active | |
:loop | |
if exist "D:\Steam Games\steamapps\common\Kerbal Space Program\Ships\Script\operations.txt" ( | |
timeout 1 | |
rename "D:\Steam Games\steamapps\common\Kerbal Space Program\Ships\Script\operations.txt" "Kerbin II Orbital.ops.ks" | |
) | |
goto loop |
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
@echo off | |
SET /A count = 0 | |
echo quicksave renaming watch active | |
:loop | |
if exist "D:\Steam Games\steamapps\common\Kerbal Space Program\saves\Kerbal Space Agency\quicksave.sfs" ( | |
timeout 1 | |
rename "D:\Steam Games\steamapps\common\Kerbal Space Program\saves\Kerbal Space Agency\quicksave.sfs" "quicksave%count%.sfs" | |
set /A count = %count% + 1 | |
) | |
goto loop |
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
var Twitter = require('twitter'); | |
var client = new Twitter({ | |
consumer_key: '', | |
consumer_secret: '', | |
access_token_key: '', | |
access_token_secret: '' | |
}); | |
var maxPos = null; |
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
set tailwheel to ship:partstagged("tail")[0]:getmodule("modulewheelbase"). | |
set mainwheels to ship:partstagged("main"). | |
set state to "speedup". | |
until false { | |
if state = "speedup" and ship:velocity:surface:mag >= 25 { | |
set state to "slowdown". | |
tailwheel:setfield("friction control", 0). | |
mainwheels[0]:getmodule("kspwheelbase"):setfield("friction multiplier", 0). | |
mainwheels[1]:getmodule("kspwheelbase"):setfield("friction multiplier", 0). |
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
when ship:altitude >= 70000 then { | |
if kuniverse:canquicksave { | |
// works if the engines are not thrusting | |
kuniverse:quicksaveto(ship:name). | |
} else { | |
// works under any circumstances | |
kuniverse:quicksave. | |
// wait for the engines to stop thrusting then saveto | |
when kuniverse:canquicksave then { | |
kuniverse:quicksaveto(ship:name). |
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
// unfortunately this doesn't work great. Trim setting is not shown by moving the flight tabs | |
// furthermore while AFBW obeys trim when set with keys, setting with kOS causes a re-center of control during input | |
set pitchTrim to 0. | |
set yawTrim to 0. | |
set ship:control:pitchtrim to pitchTrim. | |
set ship:control:yawtrim to yawTrim. | |
until false { | |
clearscreen. | |
on AG3 { | |
set pitchTrim to pitchTrim + 0.01. |
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
// draw vector from ship to comm station | |
until false { | |
vecdraw(V(0,0,0), latlng(-0.126280218823762,-74.6060470283197):altitudeposition(75), green, "", 1.0, true, 5). | |
wait 0.1. | |
clearvecdraws(). | |
}. |
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
// from https://redd.it/5eitfp | |
print "Estimation:"+round(1+abs(ETA:PERIAPSIS-ETA:APOAPSIS) * (arcsin(orbit:body:radius/(orbit:body:radius+altitude))/90))+ " s.". |
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
@PHYSICSGLOBALS | |
{ | |
// http://forum.kerbalspaceprogram.com/index.php?/topic/15451-the-mass-of-a-kerbal/ | |
// only affects craft mass in flight, not in the editor! | |
@kerbalCrewMass = 0.03125 | |
} |
NewerOlder