Jump to content

[1.12.x] KSP Craft Organizer Improved - VAB/SPH tags + craft searching


linuxgurugamer

Recommended Posts

Forum user @Ker_nalewrote this several years ago, but hasn't been around for over a year, so I've decided to adopt it with some improvements.  Original thread is here:  https://forum.kerbalspaceprogram.com/index.php?/topic/145176-*

What is it?

Plugin that allows to search crafts in VAB/SPH by name or by tag and to load saved crafts across save games.

Here is an imgur gallery that should explain everything:

(direct link to imgur because galleries sometimes do not work properly on forum)

Dependencies Updated

Contributors

The icons in launcher toolbar were created by forum user cy4n. Thanks a lot :).

Changes by LGG

  • Added ability to read/load from the Subassemblies folder
  • Added new default tags
  • Added AutoTag button, to auto tag Crewed, NonCrewed, & Stock
  • Added Must have/Not have
  • Added a RequireAll option to each group
  • Resized window (made it smaller)
  • Moved all GUIStyle creations into RegisterToolbar.UpdateStyle(), this fixes memory leaks/unnecessary overhead where GUIStyles were being recreated every loop
  • Fixed tree view in tag window so +/- are not on separate lines
  • Reformatted all files using VisualStudio tools
  • Moved textures into PluginData to eliminate need for KSP to load them
  • Replaced texture loading method with method from ToolbarController
  • Fixed multiple directories with same name but different case (works on Linux/Mac, not so well on Windows.  Specifically, Views/views now all in Views2, Services/services now in Services2)
  • Add sort by  Crew Capacity
  • Fixed second settings window from being opened if one is already open
  • Adjusted size of settings window if using KSP skin
  • Add display ksp version
  • Added toggle to show KSP version 
  • Added toggle to show stock files (stock setting is used initially)
  • Fixed screen going grey
  • Added ability to move craft files to a different directory
  • Added search for all directories called "Ships" in all mod directories, will include them under stock settings.  This is not a feature of the stock loader
  • Added include for DLC Ships directores.  This IS a feature of the stock loader
  • Added display of directory where craft comes from (only when from a mod)
  • Added toggle for Only Stock Craft

Availability

How to install: unzip downloaded archive and put it in "Kerbal Space Program/GameData" folder.

 

Edited by linuxgurugamer
Link to comment
Share on other sites

12 hours ago, Daniel Prates said:

.... 6 hours later ..... 

If this is in "beta" it may as well be considered final, Ive been using it and it seems flawless.

I have one final thing to add, just haven't figured out the UI for it yet.  I'd like to add the ability to move a craft file between folders

Link to comment
Share on other sites

  • 2 weeks later...
On 11/2/2021 at 6:39 PM, Gordon Dry said:

How do I disable the huge amount of debug logging? I get thousands of lines like

[LOG 23:31:53.784] -INFO- System.Boolean[0][4176.94]: LoadFromStock
 

 

Well, it IS a beta.  That being said, I don't think that's from this mod.  I've searched for the text, it isn't in the mod.

New beta in a few minutes

Link to comment
Share on other sites

New beta, 1.7.0.1

  • Add sort by  Crew Capacity
  • Fixed second settings window from being opened if one is already open
  • Adjusted size of settings window if using KSP skin
  • Add display ksp version
  • Added toggle to show KSP version 
  • Added toggle to show stock files (stock setting is used initially)
     

https://github.com/linuxgurugamer/ksp-craft-organizer/releases/tag/1.7.0.1

 

This is a release candidate.  If no issues show up, it will become a release

Link to comment
Share on other sites

New Release Candidate

1.7.0.3

  • Moved toggle for showing KSP version to setting screen
  • Fixed screen going grey
  • Added ability to move craft files to a different directory
  • Added search for all directories called "Ships" in all mod directories, will include them under stock settings.  This is not a feature of the stock loader
  • Added include for DLC Ships directories.  This IS a feature of the stock loader
  • Added display of directory where craft comes from (only when from a mod)
  • Added toggle for Only Stock Craft

https://github.com/linuxgurugamer/ksp-craft-organizer/releases/tag/1.7.0.3

 

This is now feature complete.  Once released, I'll be updating the OP.

 

Edited by linuxgurugamer
Link to comment
Share on other sites

  • 7 months later...
  • 4 weeks later...

EDIT: I saw your post on Kat's Craft Manager thread; a shame the license doesn't allow for outside modifications :( the mod seems to still work though

 

Hey there! Would it be possible to add a custom "name" auto-tag feature?  Craft Manager had a tag feature that searches craft names for given values and then applies tags to them automatically if they're met.

...
	TAG
	{
		tag_name = L-Lifter
		RULE
		{
			attribute = name
			comparator = includes
			value = L-
		}
	}
	TAG
	{
		tag_name = P-Plane
		RULE
		{
			attribute = name
			comparator = includes
			value = P-
		}
	}
	TAG
	{
		tag_name = X-Experimental
		RULE
		{
			attribute = name
			comparator = includes
			value = X-
		}
	}
...

^ Here's an example of some of the auto-tags I created for Craft Manager. I name my vehicles with designators at the beginning (X-SP-Doggerel for an Experimental Spaceplane named Doggerel, L-Allegro for a Lifter named Allegro, etc.), and having them automatically tagged is very useful.

Edited by HafCoJoe
Link to comment
Share on other sites

I've also encountered troubles trying to move craft into folders; when I select multiple craft files the option to move them is greyed out. I'm guessing I missed something?

I selected a number of craft to try and move them into a 'Mission' folder, but the 'Move selected' button is greyed out, and I can't click on the folders:
LL1nKbF.png

Sidenote, I did a test to see if I could add name/[designator] to see if that might auto-tag if the name had the designator, and while it didn't work that way, I discovered you can do this:
ap5HHJr.png
Some functionality for making custom categories maybe?

Edited by HafCoJoe
Link to comment
Share on other sites

  • 2 months later...
On 7/27/2022 at 6:50 PM, HafCoJoe said:

I've also encountered troubles trying to move craft into folders; when I select multiple craft files the option to move them is greyed out. I'm guessing I missed something?

I selected a number of craft to try and move them into a 'Mission' folder, but the 'Move selected' button is greyed out, and I can't click on the folders:

@linuxgurugamer I had the same problem: the "Move selected" button was grayed out. The problem continued after leaving and returning to VAB. A full KSP restart fixed the problem.

Here's a log from while the problem was happening. https://drive.google.com/file/d/1jcCnoYI7Eg80AfoR57miQTMisCVmfMIN/view?usp=sharing

 

Link to comment
Share on other sites

  • 2 months later...

New release, 1.7.2

  • 1.7.1 (never released)
    • Added craft history
      • Do backup after every change
      • Do backup after every save
      • backup at regular timed intervals
    • Moved settings into stock settings from local conf file 
  • 1.7.2 
    • Made buttons for folder selection smaller
    • Added toggle to list folders first or last
    • Added toggle to show or hide history folders
Link to comment
Share on other sites

  • 2 weeks later...

Hi linux, loving this mod so far! Another on the list of must-haves for me now!

Just one small bug I've noticed, interacting with folders (going in an out of them) resets all edits made to tags since the window was opened. This can be avoided by simply not switching folders while making changes to tags, but it can be annoying if you forget. Otherwise, everything's working great, keep it up!

Link to comment
Share on other sites

  • 2 weeks later...

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