Chris.Deadman Posted September 11, 2014 Share Posted September 11, 2014 (edited) KSPPartRemover v1.2.1Removes parts from Kerbal Space Program crafts So I needed to remove about 750+ ladders from my orbital space station in order to perform my docking maneuvers with more than 5FPS After Whack-A-Kerbal-ing for over an hour and lots of backup-restore, I decided a dedicated application could do the job more efficiently. Links: Brief documentation and source-code: https://github.com/ChrisDeadman/KSPPartRemover Latest release: https://github.com/ChrisDeadman/KSPPartRemover/releases/latest Example usage: list-crafts: list-parts: list-partdeps: list-mods: remove-parts: Enjoy LICENSE: The MIT License (MIT) Copyright (c) 2016 ChrisDeadman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Edited February 24, 2022 by Chris.Deadman New version Link to comment Share on other sites More sharing options...
Chris.Deadman Posted September 11, 2014 Author Share Posted September 11, 2014 (edited) KSPPartRemover v1.2.1 Command list-mods no longer lists squad expansion parts as UNKNOWN if expansion is installed Compatible with KSP version: 1.12.3 KSPPartRemover v1.2 New command list-mods: list mods used by the parts in the input file If you don't have a required mod installed it will be listed as UNKNOWN KSP directory needs to be your current directory for this to work! Make loading files much more tolerant (since part information from mods can now be loaded from KSP directory) Compatible with KSP version: 1.12.3 KSPPartRemover v1.1 Switch to .NET Core 3.1 Compatible with KSP version: 1.12.3 KSPPartRemover v1.0 Minor changes to output messages Compatible with KSP version: 1.1.3 KSPPartRemover v0.3 NOTE: command line interface is not backwards compatible! Add support for .sfs files Add support for multiple crafts New command list-crafts: list crafts in the input file New command list-parts: list parts in the input file New command list-partdeps: same as list-parts but also prints dependencies Add craft- and part-filter support via regex (inverse matching supported) Dependent parts are now only removed if they have a "hard" dependency Reduce displayed entries per page from 50 to 20 Fix "output file not found" error - *facepalm* Compatible with KSP version: 1.1 KSPPartRemover v0.2.1.1 preserve formatting of input file when adjusting part properties fix a bug where output files could get corrupted if they were already existing fix bug: throws exception if output file is same as input file lower TargetFramework version from v4.5.1 to v4.5 Compatible with KSP version: 0.24.2 KSPPartRemover v0.2.1 add initial support for .craft files Compatible with KSP version: 0.24.2 KSPPartRemover v0.2 update command-line switches (not compatible with v0.1) replace -p/--part-name command with -r/--remove support part id as argument for --remove aswell as the name add part listing support (-l/--list command) Compatible with KSP version: 0.24.2 KSPPartRemover v0.1 Initial release Compatible with KSP version: 0.24.2 Edited February 24, 2022 by Chris.Deadman New version Link to comment Share on other sites More sharing options...
wiswariat Posted September 21, 2014 Share Posted September 21, 2014 Is there a way to compile this without VisualStudio on Linux/Mac with mono? Link to comment Share on other sites More sharing options...
Chris.Deadman Posted September 24, 2014 Author Share Posted September 24, 2014 (edited) wiswariat said: Is there a way to compile this without VisualStudio on Linux/Mac with mono?Hi,Yes you can use MonoDevelop for that.In case you wanna do it from the console you can use xbuild.Be aware though that for the test project I've added the NUnit reference via NuGet, I don't know how MonoDevelop or xbuild handle this.In case you don't want to build the test project you are fine, no external references in the main project.BR, Deads Edited September 24, 2014 by Chris.Deadman Link to comment Share on other sites More sharing options...
djphllps Posted November 17, 2014 Share Posted November 17, 2014 whenever i open the .exe it just flashes a command window and then goes away what am i doing wrong here? Link to comment Share on other sites More sharing options...
Zeenobit Posted December 5, 2014 Share Posted December 5, 2014 Just wanted to give this tool a well-deserved bump. Worked for me flawlessly in version 0.25, and helped me remove a bunch of faulty parts from a vessel in flight.@djphllps, You can check the github page for usage documentation. You have to run this tool from the command prompt. Link to comment Share on other sites More sharing options...
W1ntermute Posted December 10, 2014 Share Posted December 10, 2014 Could you pls compile these builds into different OS formats? for those of use who don't/can't do it. Thankyou Link to comment Share on other sites More sharing options...
Chris.Deadman Posted January 18, 2015 Author Share Posted January 18, 2015 Zeenobit said: Just wanted to give this tool a well-deserved bump. Worked for me flawlessly in version 0.25, and helped me remove a bunch of faulty parts from a vessel in flight.Awesome, glad to hear that! - - - Updated - - - W1ntermute said: Could you pls compile these builds into different OS formats? for those of use who don't/can't do it. ThankyouHey, sorry for replying so late.Since this is a .NET executable it should work out-of-the box on all platforms supporting mono.To be sure I just tried it out on my Synology NAS which runs a very slim Linux OS and it worked there out-of-the-box.In case you have problems lauching it with "mono KSPPartRemover.exe", I'd ask you to post your error output.BR, Deads Link to comment Share on other sites More sharing options...
WLLP Posted August 20, 2015 Share Posted August 20, 2015 Hey I downloaded this but I cant find the .exe file. Probably something I did I don't really know how to work Github and avoid it if I can. Link to comment Share on other sites More sharing options...
magico13 Posted August 20, 2015 Share Posted August 20, 2015 WLLP said: Hey I downloaded this but I cant find the .exe file. Probably something I did I don't really know how to work Github and avoid it if I can.Despite the fact that this hasn't been updated since 0.24 and has a decent chance of being dead, I'll still help you out because it might be beneficial to you or others in the future.You have to go to the Releases section of the GitHub repository to download any compiled code, usually. That's here: https://github.com/ChrisDeadman/KSPPartRemover/releasesDownload the "KSPPartRemover.v0.2.1.1.zip" file, open it up, and you'll see the .exe right away. Link to comment Share on other sites More sharing options...
Chris.Deadman Posted May 14, 2016 Author Share Posted May 14, 2016 On 8/20/2015 at 9:19 PM, magico13 said: Despite the fact that this hasn't been updated since 0.24 and has a decent chance of being dead, I'll still help you out because it might be beneficial to you or others in the future. You have to go to the Releases section of the GitHub repository to download any compiled code, usually. That's here: https://github.com/ChrisDeadman/KSPPartRemover/releases Download the "KSPPartRemover.v0.2.1.1.zip" file, open it up, and you'll see the .exe right away. Expand Thank you for helping, magico13, really appreciated! This project indeed was pretty much dead, but I decided to revive it for the KSP 1.1 release The new v0.3 includes new listing features and a lot of streamlining, feel free to check it out! BR, Deads Link to comment Share on other sites More sharing options...
Chris.Deadman Posted August 9, 2016 Author Share Posted August 9, 2016 (edited) Version 1.0 is out Grab it here: https://github.com/ChrisDeadman/KSPPartRemover/releases/download/v1.0/KSPPartRemover.v1.0.zip Edited August 9, 2016 by Chris.Deadman Link to comment Share on other sites More sharing options...
juststephen Posted January 30, 2017 Share Posted January 30, 2017 I tried to run your latest version and I couldn't start it up, I downloaded it here https://github.com/ChrisDeadman/KSPPartRemover/releases/download/v1.0/KSPPartRemover.v1.0.zip and I tried running the .exe in Windows 10, any tips on how to fix this? Link to comment Share on other sites More sharing options...
Chris.Deadman Posted February 1, 2017 Author Share Posted February 1, 2017 On 1/30/2017 at 10:30 PM, juststephen said: I tried to run your latest version and I couldn't start it up, I downloaded it here https://github.com/ChrisDeadman/KSPPartRemover/releases/download/v1.0/KSPPartRemover.v1.0.zip and I tried running the .exe in Windows 10, any tips on how to fix this? Expand Hi Stephen, KSPPartRemover is a command-line application, which means you have to run it within your operating system shell. If you look at the first post again you'll see the example usage inside a linux terminal. For the windows terminal (cmd.exe) it's the same, except that you do not need to prepend mono. Hope this helps, BR Chris Link to comment Share on other sites More sharing options...
Autolyzed Yeast Extract Posted December 22, 2017 Share Posted December 22, 2017 On 2/1/2017 at 5:22 PM, Chris.Deadman said: Hi Stephen, KSPPartRemover is a command-line application, which means you have to run it within your operating system shell. If you look at the first post again you'll see the example usage inside a linux terminal. For the windows terminal (cmd.exe) it's the same, except that you do not need to prepend mono. Hope this helps, BR Chris Expand Is this project still a thing or is it effectively discontinued Link to comment Share on other sites More sharing options...
Chris.Deadman Posted December 27, 2017 Author Share Posted December 27, 2017 On 12/22/2017 at 8:22 AM, Pavel ☭ said: Is this project still a thing or is it effectively discontinued Expand Hi Pavel, It still works but I did not add new features to it for a while now. Also never got a lot of feedback, I guess it's not that widely used. Is there a specific reason for your question? Link to comment Share on other sites More sharing options...
flart Posted May 14, 2018 Share Posted May 14, 2018 Does it support save files? Does it support all files in folder? KSPPartRemover.exe -remove-part -i saves\default\Ships\VAB\ -p launchclamp Link to comment Share on other sites More sharing options...
Chris.Deadman Posted May 15, 2018 Author Share Posted May 15, 2018 (edited) On 5/14/2018 at 1:56 PM, flart said: Does it support save files? Does it support all files in folder? KSPPartRemover.exe -remove-part -i saves\default\Ships\VAB\ -p launchclamp Expand Hey flart, Yes it supports save files as well, that's why there is a craftfilter switch as well. I did however not test it with save files of the newer 1.4.3 version, craft files from 1.4.3 are working tho so it should work! It unfortunately does not support all files in folder. But you can do this with command prompt like this: for %F in (saves\default\Ships\VAB\*) do KSPPartRemover.exe remove-parts -i %F -p launchclamp Remember to always have a backup in case something goes wrong, 'cause since you did not specify an output file your input file will be overwritten. BR, Chris Edited May 15, 2018 by Chris.Deadman Link to comment Share on other sites More sharing options...
Chris.Deadman Posted January 14, 2022 Author Share Posted January 14, 2022 (edited) After over 5 years there's finally a new version 1.1 supporting latest KSP 1.12.3 Download link: https://github.com/ChrisDeadman/KSPPartRemover/releases/tag/v1.1 Edited February 11, 2022 by Chris.Deadman Fix download url Link to comment Share on other sites More sharing options...
Chris.Deadman Posted February 11, 2022 Author Share Posted February 11, 2022 (edited) New version is out with new list-mods functionality Download here for windows or linux: https://github.com/ChrisDeadman/KSPPartRemover/releases/latest Edited February 24, 2022 by Chris.Deadman New version Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now