Jump to content

[All OS][Java][0.2.19] DataSwitcher- Instance Manager


magico13

Recommended Posts

  • 4 weeks later...

I just wanted to thank you for this. I've become an obsessive modder of this game and of course, KSP just simply doesn't want to handle 150+ mods at the same time especially when several of them are parts packs even with ATM and OpenGL. :sticktongue: I've been looking for a simple straightforward tool to manage swapping between installs and this works flawlessly for me. Hopefully anyone else looking for a simple way to manage multiple mod setups will find your tool and use it. I couldn't recommend it highly enough.

I think the only suggestion I could make would be to find a way (if possible) to allow this to be executed from the desktop. My Windows setup will not allow me to run .jar files with admin rights from the desktop so I have to use the command line to get it running. A very small price to pay for such wonderful functionality and I have no issue with it personally. As I'm not a coder I have no idea if this could even be done but I do think it would make it more accessible to people if they could run it more easily.

Great job and thanks again!

Link to comment
Share on other sites

Windows 8 unfortunately decided to no longer let you run .jars as administrator, which annoys me greatly when I want to swap out instances on my laptop. I had to write a really small .bat script, which can be run as an administrator, that starts DataSwitcher. I'm not at home right now, but it's something along the lines of (when I get home I can upload my actual script):


cd PathToFolderContainingDataSwitcherJarFile
java -jar DataSwitcher.jar

Then I right click on that file (mine's called switch.bat) and run as administrator. I can keep the jar file in some other folder then (mines in Documents) but put that file on the desktop as a sort of shortcut. There might be a way to have it automatically use administrator privileges so you can just double click, but I don't know it. Right clicking and running as administrator's still a lot simpler than having to go through the terminal every time.

I really should do some work on this if people are going to keep finding it. There are a few things I really need to implement, like a better fallback mode and the ability to open an instance folder from within the program.

Edit: Here's the exact contents of the file I use.


cd C:\Users\Michael\Documents
java -jar DataSwitcher-0.2.18.jar

Edited by magico13
Link to comment
Share on other sites

  • 4 months later...

Okay so what I did was select my GameData folder inside the actual KSP game folder and gave it the name "Stock." In the Stock Folder in the DataSwitcher folder, I added in just the original Squad folder. At this time I had all sorts of mods in the actual GameData folder so I figured I would see it change to just the Squad one. When I clicked activate, all it did was change the name of the Squad folder to "Squad_DSbak" I also tried the same thing but this time I created the instance with a file path to the KSP folder and then imported the GameData folder and changed the mods I wanted from the DataSwitcher folder. When I clicked activate this time, it changed the name of the GameData folder to "GameData_DSbak"

I'm not sure if I'm doing something wrong but any help would be great!

Link to comment
Share on other sites

What's happening is what I mentioned in the other thread, most likely. Because of the .DS_Store file in each directory it encounters an error (saying the file already exists) and that causes it to silently fail (it probably still says "Creating Links..."). If you remove the .DS_Store file from the instance folder (it's a hidden file unfortunately, so you'll have to enable viewing hidden files) it should work properly. When I get home tonight I'll try to fix the bug.

If you open up the log.txt file in the DataSwitcher folder you should see something like "java.nio.file.FileAlreadyExistsException: /Users/mmarvin2/Downloads/KSP/.DS_Store" followed by a bunch of "at blah.blah.blah". You can post the entire contents of that log if you like, but I'm pretty sure that's the issue.

Btw, back up your GameData folder (and saves) just in case it doesn't work properly, that way you won't lose anything, until you're sure things are working correctly.

Edit: I updated the download link in the first post with a new version that I think will fix the hang that was happening. You won't have to manually delete the .DS_Store file anymore, and it should now work with any files along with directories.

The problem was that it was specifically looking only for directories, making a backup of them, then creating the symlinks. But it made symlinks for files and directories, resulting in it trying to overwrite a file and thus failing. It should now properly handle files as well.

Edited by magico13
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...