3

I recently made a "minecraft usb" that allows me to play minecraft on both a windows, and a mac machine (my main machine.) The root directory has two folders, "MC_MAC" and "MC_WIN". Everything works great, but I'm looking for a way to make the two installations use the same "saves" file, so that I don't have to keep copying and recopying worlds from the Mac "saves" to the "windows" saves.

I thought of using the "Alias" function on mac, but that probably wouldn't translate well onto a windows machine.

Thoughts?

(Bonus points for getting the one "source" file to sync with the saves file on my mac when I plug in the usb...)

[Edit]

So far, I've got answers about how to run minecraft completely off a USB. This isn't my problem, I've gotten the game to work fine on both mac and windows, running completely off my 16GB Flash-drive, and leaving no trace (so far as I can tell) on the host machine, be it windows or mac.

Seeing as the MC for mac is a .app and MC for windows is a .exe, I can't use one install on both computers. And seeing as I have two installs, with each one generating it's own set of files, I have two save folders.

What I need is some way to make both installs read from and write to just one save folder.

9
  • 1
    Minecraft is a jar file. It can be executed on any system, so as far as I know you shouldn't have to do anything special.
    – SaintWacko
    Commented Dec 10, 2012 at 14:31
  • How are you making it keep the saves file on the USB drive in the first place? Commented Dec 10, 2012 at 16:38
  • How are you starting Minecraft and make it use the files on the USB?
    – Bobby
    Commented Dec 10, 2012 at 18:03
  • 2
    @AntoniDevlin - I'm saying you shouldn't need separate folders for mac/pc, so there should be only a single saves folder. This has been my experience on linux/pc, anyways. Perhaps it's different with a mac.
    – SaintWacko
    Commented Dec 10, 2012 at 21:42
  • 1
    So the running it on the Mac puts the saves on the USB in [USB]/Library/Application Support/minecraft/saves? Then all you're missing is to make your Windows copy keep its saves there too? That's doable. Can you tell us where Windows is saving the worlds right now? Is it on the USB, or on the Windows machine? Give us something we can work with! :) Commented Dec 11, 2012 at 17:38

1 Answer 1

1

I understand that you have modified Minecraft so that it writes onto the USB drive, but not in the same place for each version. All you need is a symlink to make the Mac side do what you want.

First, delete the Mac side's saves, then in a shell, run the following (based on your comment mentioning the path for Mac; adjust the path to the Windows side as needed):

cd '/Volumes/myusb/Library/Application Support/Minecraft'
ln -s '../../../whatever-the-path-is-to-the-windows-side/saves' ./saves

If I haven't got the Mac-side path right, then make sure the count of ..s is adjusted to match. To test your symlink, run ls saves and you should see your list of worlds.

Most applications, including Minecraft, will follow a symlink as if it is not there, so this should do the trick. (Note that when viewed by the Finder, a symlink appears identical to an alias, but an alias will not function as needed here. An alias is more like a Windows shortcut — it is not automatically traversed by file system calls.)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.