Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

How to Switch Between 1.7 and 1.8 in Ease


  • Please log in to reply
48 replies to this topic

#1

scelton315
    scelton315

    Retired Staff

  • Retired Staff
  • 540 posts

Posted 12 September 2011 - 05:18 PM

delt sistm thre thr LL:)L.
Posted Image
JOB WELL DONE!

Register or log in to remove.

#2

JellysMe
    JellysMe

    Zombie Killer

  • Members
  • 209 posts
  • Location: Behind you
  • Minecraft: JellyShark

Posted 12 September 2011 - 05:33 PM

omg THANKS
Posted Image

#3

Aesfaloth

Posted 12 September 2011 - 05:52 PM

Edit: (Removed post-trash so you can just view the important stuff)

Love that idea, makes a lot of things easier^^ Made me think of an idea if its possible to do this MORE easy^^" It's working now:

@echo on
cd \
cd %appdata%
cd Roaming
cd .minecraft
if exist "bin 1.7" goto :1.7
if exist "bin 1.8" goto :1.8
:1.7
rename bin "bin 1.8"
rename "bin 1.7" bin
goto :END
:1.8
rename bin "bin 1.7"
rename "bin 1.8" bin
goto END
:END
exit

I have this directly in my .minecraft folder and a shortcut on my desktop. Because of the cd \ etc. it should work from everywhere though.

#4

Davidson33

Posted 12 September 2011 - 08:48 PM

SWEET the problem is i have no .minecraft foler? O_O How do i find it?

Posted Image


#5

Aesfaloth

Posted 12 September 2011 - 09:10 PM

View PostDavidson33, on 12 September 2011 - 08:48 PM, said:

SWEET the problem is i have no .minecraft foler? O_O How do i find it?

No problem, the .bat-file should work whereever you place it ;-)
To find out such problems: Please use the search function next time. For once: Display hidden folders if you are using windows -> Go to Users:/USERNAME/AppData/Roaming/.minecraft
There you go ;-)

#6

stormpegy

Posted 13 September 2011 - 12:45 AM

As soon as it opens it closes and does not launch MC??

EDIT
now it keeps changing the bin folder names and i dont know witch one is witch???????

#7

Pyro
    Pyro

    Obsidian Miner

  • Members
  • 1358 posts
  • Location: Sweden

Posted 13 September 2011 - 05:43 AM

This .bat file do not run minecraft it just renames the bin folder for an easy way to switch between 1.8 and 1.7

View Postnoobkilla123, on 28 May 2012 - 07:44 PM, said:

c is good but java maked minecraft so java can make better games with blocks so i would pick java

INACTIVE - RARELY VISIT THE FORUMS, IF YOU FOR SOME ODD REASON NEED ME, SEND A PM!


#8

Aesfaloth

Posted 13 September 2011 - 07:43 AM

View Poststormpegy, on 13 September 2011 - 12:45 AM, said:

As soon as it opens it closes and does not launch MC??

EDIT
now it keeps changing the bin folder names and i dont know witch one is witch???????

The fact that it opens and closes instantly is correct. It should not bother the user so it disappears ;-)
And if you have lets say a "bin" folder and a "bin 1.7" folder, you are currently playing 1.8. If you have "bin" and "bin 1.8" you are playing 1.7. So you're playing the version of minecraft which is not mentioned with a number^^

View Postawesomeface811, on 13 September 2011 - 05:43 AM, said:

This .bat file do not run minecraft it just renames the bin folder for an easy way to switch between 1.8 and 1.7

Correct ;-) And Currently I know no code to start it instantly after switching on every device.

If your minecraft.exe (not the jar, it has to be the exe-file) is inside you .minecraft folder you can just add this:

:End
start minecraft.exe
exit

Then it'll autostart the launcher instantly after switching versions. But like I said this only works if your minecraft.exe is inside the .minecraft folder where your bin folders are.

#9

nostro99
  • Location: aaargh (little girl scream), YOUR ON TOP OF ME!!!

Posted 13 September 2011 - 12:09 PM

it is really helpfull
If I am helpful click the little green + on the bottom of my comment/topic
Posted Image

#10

scelton315
    scelton315

    Retired Staff

  • Retired Staff
  • 540 posts

Posted 13 September 2011 - 06:55 PM

Made an update, you can now change bins all from one file :D

Also, you can run the file from anywhere, even your desktop. I just keep mine in my appdata.
Posted Image
JOB WELL DONE!

#11

thesbros
    thesbros

    Diamond Miner

  • Curse Premium
  • Curse Premium
  • 785 posts
  • Location: My house. Where else?
  • Minecraft: thesbros

Posted 13 September 2011 - 07:42 PM

What about for Macs? No Macs? NOOO!!! D:
I make things, that do stuff.

#12

scelton315
    scelton315

    Retired Staff

  • Retired Staff
  • 540 posts

Posted 13 September 2011 - 08:35 PM

View Postops99, on 13 September 2011 - 07:42 PM, said:

What about for Macs? No Macs? NOOO!!! D:

Muhahahahaha! I'm not quite sure what to do on a Mac, I recommend just changing the bin names manually.
Posted Image
JOB WELL DONE!

#13

elmotactics

Posted 14 September 2011 - 05:19 PM

This is much much much simpler...


Posted Image

#14

Dugatee
    Dugatee

    Iron Miner

  • Members
  • 348 posts

Posted 15 September 2011 - 12:15 AM

nice, so do that and copy paste the code into a .txt?

#15

elmotactics

Posted 15 September 2011 - 08:33 AM

View PostDugatee, on 15 September 2011 - 12:15 AM, said:

nice, so do that and copy paste the code into a .txt?

The way he suggests is ridiculously complicated. Just look at the video above your post.

1. Create a new folder.
2. Put the minecraft.exe file in it.
3. Create a .bat file with these lines in it:
set APPDATA=<Location of the folder you just made>
<Path to the minecraft.exe file in that folder>
So it will look something like this:
set APPDATA=C:\Minecraft
C:\Minecraft\Minecraft.exe
4. Run that .bat, it will create a clean separate install of Minecraft that you can then update to 1.8, leaving your original install untouched. Running just the minecraft.exe will launch your default install.
Posted Image

#16

migax3236
  • Minecraft: miguel3236

Posted 15 September 2011 - 06:48 PM

this is to update mods? O.o
i'm not getting it...

#17

Tree09
    Tree09

    Zombie Killer

  • Members
  • 210 posts
  • Minecraft: tree08

Posted 16 September 2011 - 08:56 PM

so can you have more then 2 versions in the bat file? if so how?plz help me cause i want to make mods soon and i need to switch back and forth between versions easier

#18

The_odd_name

Posted 17 September 2011 - 03:00 AM

Well I haven't used dos script in a long long time but this will work and you can keep adding more version as you go as long as u have the files.


If you want minecraft to launch right after you switch at the end in side of :END exit replace with
You will need to move the minecraft.exe into the bin folder.
:End
start minecraft.exe
exit

Make a new txt file in Application Data\.minecraft\bin  place the text below in it save as anyhting.bat and click it pick your version and ur done You will need your old version and the new 1.8.1 version already named minecraft.jar
@echo off
cd \
cd %appdata%
cd .minecraft
cd bin
If exist version.txt (
break
) else (  
echo NotSet> version.txt
)
SetLocal EnableDelayedExpansion
Set _InputFile=version.txt
For /F "tokens=*" %%I IN (%_InputFile%) DO (
Set /a n+=1
Set _var!n!=%%I
)
echo Checking Version.
echo You are currently Running Version %_var1%
set /p ChngVer= Which version would you like to change to?
echo You selected %CHngVer%

if %ChngVer%==%_var1% goto CVer
echo You have selected version %ChngVer%. Changing now.

if %ChngVer%==1.7.3 goto :1.7.3 
if %ChngVer%==1.8.1 goto :1.8.1




:1.7.3
IF exist minecraft.jar (
	rename minecraft.jar "minecraft-1.8.1.jar"
	rename "minecraft-1.7.3.jar" minecraft.jar
	@echo on
	echo %ChngVer%> version.txt
	@echo off
	   	goto :END
	) else (
		goto :Chnv
	) 
:1.8.1
IF exist minecraft.jar (
		rename minecraft.jar "minecraft-1.7.3.jar"
	rename "minecraft-1.8.1.jar" minecraft.jar
	@echo on
	echo %ChngVer%> version.txt
	@echo off
	goto :END
	) else (
		goto :Chnv
	) 

:Chnv
echo on
echo Couldn't locate minecraft.jar
pause
exit

:END
exit



#19

thesbros
    thesbros

    Diamond Miner

  • Curse Premium
  • Curse Premium
  • 785 posts
  • Location: My house. Where else?
  • Minecraft: thesbros

Posted 17 September 2011 - 03:13 AM

Almost done with making a whole new version that works on Macs! I'll edit this post as soon as I get it done.
I make things, that do stuff.

#20

elmotactics

Posted 17 September 2011 - 09:14 PM

View PostTree09, on 16 September 2011 - 08:56 PM, said:

so can you have more then 2 versions in the bat file? if so how?plz help me cause i want to make mods soon and i need to switch back and forth between versions easier

Using this bat file is a gargantuan waste of time. Do this instead:



View PostThe_odd_name, on 17 September 2011 - 03:00 AM, said:

Well I haven't used dos script in a long long time but this will work and you can keep adding more version as you go as long as u have the files.


If you want minecraft to launch right after you switch at the end in side of :END exit replace with
You will need to move the minecraft.exe into the bin folder.
:End
start minecraft.exe
exit

Make a new txt file in Application Data\.minecraft\bin  place the text below in it save as anyhting.bat and click it pick your version and ur done You will need your old version and the new 1.8.1 version already named minecraft.jar
@echo off
cd \
cd %appdata%
cd .minecraft
cd bin
If exist version.txt (
break
) else (  
echo NotSet> version.txt
)
SetLocal EnableDelayedExpansion
Set _InputFile=version.txt
For /F "tokens=*" %%I IN (%_InputFile%) DO (
Set /a n+=1
Set _var!n!=%%I
)
echo Checking Version.
echo You are currently Running Version %_var1%
set /p ChngVer= Which version would you like to change to?
echo You selected %CHngVer%

if %ChngVer%==%_var1% goto CVer
echo You have selected version %ChngVer%. Changing now.

if %ChngVer%==1.7.3 goto :1.7.3 
if %ChngVer%==1.8.1 goto :1.8.1




:1.7.3
IF exist minecraft.jar (
	rename minecraft.jar "minecraft-1.8.1.jar"
	rename "minecraft-1.7.3.jar" minecraft.jar
	@echo on
	echo %ChngVer%> version.txt
	@echo off
	   	goto :END
	) else (
		goto :Chnv
	) 
:1.8.1
IF exist minecraft.jar (
		rename minecraft.jar "minecraft-1.7.3.jar"
	rename "minecraft-1.8.1.jar" minecraft.jar
	@echo on
	echo %ChngVer%> version.txt
	@echo off
	goto :END
	) else (
		goto :Chnv
	) 

:Chnv
echo on
echo Couldn't locate minecraft.jar
pause
exit

:END
exit


Again, huge waste. You can replace all of this with 2 lines of code:

set APPDATA=C:\Minecraft>
<C:\Minecraft\Minecraft.exe>

You can replace the APPDATA directory with any that you want (as long as it has no spaces), and the second line is the location of your Minecraft.exe (again without spaces). This just makes a new Minecraft installation, so you don't have to worry about renaming anything. Make a new installation and update it to 1.8.1, keep your old install as 1.7.3, and even make another that is a modded 1.8.1, etc...
Posted Image