Snark

[1.8.x] VariantPersist v1.1: Automatically remembers your choices. Per part, per game.

Recommended Posts

What it does

When you choose a "default variant" in the editor (by clicking the little "teardrop" icon), this mod automatically saves that preference in the .sfs game file.

That way, the next time you play KSP, your choices will still be there, and you don't have to go around re-setting them every single time you play.

There's no UI, and nothing for you to do. It's silent, invisible, and automatic.

(Your choices are saved per-game, so if you're running multiple games, each one starts "fresh" and your choices are remembered in each one separately.)

Download from SpaceDock
License: MIT
Source code

DefaultVariants.png

 

Why would anyone want this?

I have definite preferences about which part variants I like best. Mk1 command pod? I want the white-with-gray-stripe look, every time. Hammer SRB? I want the one with the orange stripe. And so forth.

I like that the game has the ability for me to pick my "preferred default" (the little teardrop icon in the part panel in the VAB or SPH) so that I don't have to set it for every single part, every single time I place a part. However... the game doesn't remember my choices between play sessions!

Oh, it remembers my choices if I exit and re-enter the VAB. It even remembers them if I exit to the main menu and then load my game again. But as soon as I exit KSP, it forgets all my preferences and I have to re-do them the next time I play. It's downright aggravating to have to go through that every time.

So, I wrote this little mod so that it'll just automatically do what I wish the game did by default, which is to remember my darn choices.

 

How to install

Unzip the contents of "GameData" to your GameData folder, same as with most mods.

 

But what about <mumble mumble editor themes mumble mumble> ?

KSP has an editor feature called "themes", which you can access via the "advanced" menu in the vehicle editor. I gather that the idea is that it allows you to set an overall "theme" so that you can make your whole rocket be white, or your whole rocket be gray/orange, or what-have-you.

IMPORTANT: I have made no attempt whatsoever to make this mod play nice with the "themes" feature. Haven't coded it, haven't tested it, haven't even looked at it.

The "theme" feature in KSP is one of those ideas that sounds kinda cool "on paper", I suppose... but I find that in practice, it's absolutely useless to me. I find the UI confusing, and the in-game behavior counter-intuitive; I've tried tinkering with the feature in the game and it ended up merely confusing and frustrating me.

Furthermore... I don't actually have any use for the feature. "Themes" are not how I play KSP. I think in terms of parts, not "themes": that is, for each part, I have one particular variant that's my favorite "look" for that part, and I usually want that part to have that look. So a feature that goes through and sets all the parts to have the same theme is useless to me.

Therefore, in my own gameplay, I basically just pretend that that feature doesn't exist. So I wrote this mod to make the game do what I want it to do.

I have no idea what this mod will do if you also use the "themes" feature-- maybe it's fine, or maybe they interfere with each other. Don't know, don't care.

Therefore: if you are a player who likes to use the editor's "themes" feature, then this mod may not be for you.

Edited by Snark
Update to v1.1 (KSP 1.8 compatibility)

Share this post


Link to post
Share on other sites

Those tiny quality-of-life mods, quite underappreciated. Thanks for this, Snark! 

Share this post


Link to post
Share on other sites

I didn't even know I needed this, until... Here it is! Thanks.

Share this post


Link to post
Share on other sites

Hi gang,

Just a note that I've released VariantPersist v1.1.  No new features, just updated for KSP 1.8 compatibility.

Share this post


Link to post
Share on other sites

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.