Jump to content

KSPPartRemover v1.2.1


Recommended Posts

 


KSPPartRemover v1.2.1

Removes 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 :D
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:

example-list-crafts.png

list-parts:

example-list-parts.png

list-partdeps:

example-list-partdeps.png

list-mods:

example-list-mods.png

remove-parts:

example-remove-parts.png

 

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 by Chris.Deadman
New version
Link to comment
Share on other sites

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 by Chris.Deadman
New version
Link to comment
Share on other sites

  • 2 weeks later...
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 by Chris.Deadman
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

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

  • 1 month later...
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! :D

- - - Updated - - -

Could you pls compile these builds into different OS formats? for those of use who don't/can't do it. Thankyou

Hey, 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

  • 7 months later...
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/releases

Download 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

  • 8 months later...
On 20.8.2015 at 11: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.

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 :cool:
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

  • 2 months later...
  • 5 months later...
On 1/30/2017 at 11: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?

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

  • 10 months later...
On 2/1/2017 at 12: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

Is this project still a thing or is it effectively discontinued

Link to comment
Share on other sites

On 12/22/2017 at 9:22 AM, Pavel ☭ said:

Is this project still a thing or is it effectively discontinued

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

  • 4 months later...
On 5/14/2018 at 3: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 

 

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 by Chris.Deadman
Link to comment
Share on other sites

  • 3 years later...
  • 4 weeks later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...