Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

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.

share|improve this question
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 Dec 10 '12 at 14:31
    
How are you making it keep the saves file on the USB drive in the first place? –  SevenSidedDie Dec 10 '12 at 16:38
    
How are you starting Minecraft and make it use the files on the USB? –  Bobby Dec 10 '12 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 Dec 10 '12 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! :) –  SevenSidedDie Dec 11 '12 at 17:38

1 Answer 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.)

share|improve this answer
    
+1. This is how I would have answered. –  Qix Dec 22 '12 at 22:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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