Jump to content

[HELP] Strut Stripper


Xyphos

Recommended Posts

I want to make a simple editor plugin that can remove all struts (and optionally fuel ducts) from a vessel, I know C# but I'm clueless on how to make the plugin.

 

The reason for wanting to remove them is that sometimes they go astray, needlessly increase the part count and/or become obsoleted.

Edited by Xyphos
Link to comment
Share on other sites

Unfortunately about the only documentation is user generated. The best thing to do is download mods that do something similar and look through the source code. That said the community is very helpful and there are a number of good tutorials  - see Mod Development Links Compilation. There are also instructions to get debugging going and other good info - check the stickies at the top of the Addon Development thread (and sub threads). Also someone's making a Wiki for the API.

Far from an expert but my first thought would be to use something like foreach (Part p in EditorLogic.SortedShipList) {...} looking for the struts/fuel lines then finding the editor function to remove parts (I haven't done that yet so no clue what it's called).

 

Good luck!

Link to comment
Share on other sites

  • 1 year later...

This feature is already implemented on PartWizard:
 



Posting in this old thread since it was the very first one that I found on my search. Since I found my answer elsewhere, I'm posting it here in the hope to being of use when someone reaches here as I did.

Link to comment
Share on other sites

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...