@echo off
temp sets your appdata folder to the current directory. (so your save is in the same folder)
set APPDATA=%~dp0
runs java.exe then loads the Minecraft.exe (making it portable)
Java\bin\java.exe -jar "Minecraft.exe"
Hi. I'm currently using java -Xmx800m -jar "<location of minecraft.jar>" to run this game due to the OpenGL error. I renamed the original minecraft.exe to .jar. I would like to know how can I use the same procedure to run minecraft portable?
Hi. I'm currently using java -Xmx800m -jar "<location of minecraft.jar>" to run this game due to the OpenGL error. I renamed the original minecraft.exe to .jar. I would like to know how can I use the same procedure to run minecraft portable?
create a batch file, open notepad and paste this into to it and save it as minecraft portable loader.bat or what ever you want .bat.
now just download the portable version of Java and place the Java folder in the root of your usb pen or in the same folder as Minecraft.exe and your all good to go.
@echo off
temp sets your appdata folder to the current directory. (so your save is in the same folder)
set APPDATA=%~dp0
runs java.exe then loads the Minecraft.exe (making it portable)
Java\bin\java.exe -Xmx800m -jar "Minecraft.exe"
you currently cant do it with this guys version as he has his in a custom exe that loads minecraft.exe using a command line within the exe.
this is how I have mine i dont need the -Xmx800m part. (this is the default minecraft.exe from the website)
Online, yes. Offline, you can play for however much as you like. sure, you won't get updates, but still, it is an excellent game by itself. I'm just saying, if maybe he can remove the actual minecraft code from the dl then that would be legit.
Online, yes. Offline, you can play for however much as you like. sure, you won't get updates, but still, it is an excellent game by itself. I'm just saying, if maybe he can remove the actual minecraft code from the dl then that would be legit.
What are you talking about? The launcher isn't Minecraft; the launcher just logs you in to the server and updates the game. The actual game is minecraft.jar, which I didn't include at all.
Quote from Dodge »
I'm having a problem, it will start downloading something then give an error. Is this supposed to happen (the downloading)?
Yep, that's just the launcher getting the .jar files needed to run the game. What error are you getting?
Rollback Post to RevisionRollBack
mcmapDZ: Simple, lightning-fast interactive web maps.
It was something about failing to download the font or something. I removed the ethernet cable from the computer and it would get a different error, bad video drivers (computers at school are oldcat, but it should still run).
It was something about failing to download the font or something. I removed the ethernet cable from the computer and it would get a different error, bad video drivers (computers at school are oldcat, but it should still run).
OK, if your school is like my school, it probably needs to go through a proxy to access the internet. Seeing as Minecraft doesn't support proxy servers, you just have to download the files at home, unfortunately. The video card driver is probably on Notch's end, so I can't help there, sorry :sad.gif:
Either way, none of the issues are caused by MC Portable. Try the in-browser version and see if you get the same problem.
Rollback Post to RevisionRollBack
mcmapDZ: Simple, lightning-fast interactive web maps.
After that, I did a little searching on the internet and put a ragtag bunch of code together that copies minecraft save data to a temporary folder, and copies it back after the game closes.
@echo off
::This is just a small edit that changes the size of the CMD window
mode con:cols=61 lines=3
::This is a list of things to exclude when copying back to USB to save time.
::If you want you can add more, or even take out stuff if you want everything to be copied over
echo %temp%\.minecraft\resources\ > exclude_copy.txt
echo exclude_copy.txt >> exclude_copy.txt
::Message for user
echo.
echo "Now copying essential startup files."
::copies the minecraft data to a temporary folder so it doesnt lag when playing
xcopy %cd%\data\* %TEMP% /s /i /y | find "\data\" > nul
::temporarily sets APPDATA (in-game variable) to the temporary folder
set APPDATA=%temp%
::Loads minecraft using Java.
%cd%\Java\bin\java.exe -jar "%cd%\bin\Minecraft.exe"
::This is a loop to check if the game is running.
:no2
cls
echo.
echo "The game is now running. Please leave this window open."
ping -n 2 127.0.0.1 | find "Reply" > nul
tasklist /FI "IMAGENAME eq javaw.exe" 2>NUL | find /I /N "javaw.exe">NUL
if "%ERRORLEVEL%"=="0" goto no2
::Copies the save files back
cls
echo.
echo "Now saving essential data. Please do not close this window"
xcopy %TEMP%\.minecraft\* %cd%\data\.minecraft /s /i /y /EXCLUDE:exclude_copy.txt | find "\data\" > nul
::Deletes the excluded file list
del exclude_copy.txt
::Message for user
cls
echo.
echo "Completed. Press any button to exit."
pause | find "continue" > nul
goto end
:end
After the code was written, I just put the right files in the right directories. The folder structure looked like this
Minecraft.bat (this is the batch file above)
bin > Minecraft.exe (This is the default minecraft.exe downloaded from the main site)
data > .minecraft (This is the save game data)
java (these are the Java runtime files downloaded on Pg.1)
Ok I did read the thread but the OP and everyone else seems to be ignoring the question:
Does this work on macs? Because my school uses those even though everyone knows pc's are better...
Rollback Post to RevisionRollBack
Notice: If you notice this notice you will notice that this notice is not worth noticing
Ok I did read the thread but the OP and everyone else seems to be ignoring the question:
Does this work on macs? Because my school uses those even though everyone knows pc's are better...
No it doesn't and NotTarts is ignoring questions about mac, and not even telling us wether or not he'll add support, or make a .jar version
Ok I did read the thread but the OP and everyone else seems to be ignoring the question:
Does this work on macs? Because my school uses those even though everyone knows pc's are better...
No it doesn't and NotTarts is ignoring questions about mac, and not even telling us wether or not he'll add support, or make a .jar version
Sorry I haven't been answering. I've been meaning to, but I keep forgetting to get around to it.
Anyway, unfortunately I don't think I'll ever be able to create a Mac version, as this is written in Windows Batch and I don't have any knowledge of programming languages such as C++ or Objective C.
@crazzn: That's a really awesome script, thanks. The only problem I can see there is that you would lose all your data (technically, it would still be in the temp folder) if your computer shut down mid-game. Can't really see how you could avoid this, though, unless it would be possible to sync the files every 5 minutes or so.
Rollback Post to RevisionRollBack
mcmapDZ: Simple, lightning-fast interactive web maps.
Troll, Begone!
Anyway. Thanks for clearing that mess up since if graphics/mod installation was different than normal I would want to know about it.
Thanks. Now i can keep a backup copy on my thumbdrive. Weee!
Want something to read? Got ten minutes to kill? Here you go!
*passes out*
create a batch file, open notepad and paste this into to it and save it as minecraft portable loader.bat or what ever you want .bat.
now just download the portable version of Java and place the Java folder in the root of your usb pen or in the same folder as Minecraft.exe and your all good to go.
you currently cant do it with this guys version as he has his in a custom exe that loads minecraft.exe using a command line within the exe.
this is how I have mine i dont need the -Xmx800m part. (this is the default minecraft.exe from the website)
What are you talking about? The launcher isn't Minecraft; the launcher just logs you in to the server and updates the game. The actual game is minecraft.jar, which I didn't include at all.
Yep, that's just the launcher getting the .jar files needed to run the game. What error are you getting?
OK, if your school is like my school, it probably needs to go through a proxy to access the internet. Seeing as Minecraft doesn't support proxy servers, you just have to download the files at home, unfortunately. The video card driver is probably on Notch's end, so I can't help there, sorry :sad.gif:
Either way, none of the issues are caused by MC Portable. Try the in-browser version and see if you get the same problem.
The first thing I did was install the Minecraft Save replacement system to save transfer time (http://www.minecraftforum.net/viewtopic.php?f=25&t=58184)
After that, I did a little searching on the internet and put a ragtag bunch of code together that copies minecraft save data to a temporary folder, and copies it back after the game closes.
After the code was written, I just put the right files in the right directories. The folder structure looked like this
Minecraft.bat (this is the batch file above)
bin > Minecraft.exe (This is the default minecraft.exe downloaded from the main site)
data > .minecraft (This is the save game data)
java (these are the Java runtime files downloaded on Pg.1)
Does this work on macs? Because my school uses those even though everyone knows pc's are better...
No it doesn't and NotTarts is ignoring questions about mac, and not even telling us wether or not he'll add support, or make a .jar version
Sorry I haven't been answering. I've been meaning to, but I keep forgetting to get around to it.
Anyway, unfortunately I don't think I'll ever be able to create a Mac version, as this is written in Windows Batch and I don't have any knowledge of programming languages such as C++ or Objective C.
@crazzn: That's a really awesome script, thanks. The only problem I can see there is that you would lose all your data (technically, it would still be in the temp folder) if your computer shut down mid-game. Can't really see how you could avoid this, though, unless it would be possible to sync the files every 5 minutes or so.