diff --git a/Einstellungen.bat b/Einstellungen.bat index 1cad3cc..241d078 100755 --- a/Einstellungen.bat +++ b/Einstellungen.bat @@ -6,7 +6,7 @@ if not exist PCs\mc-config.bat goto Minecraft-Portable call PCs\mc-config.bat REM Version Prüfen -set aktuelleversion=7.2 +set aktuelleversion=8.0 if not %Version%==%aktuelleversion% goto Minecraft-Portable goto startprogram @@ -25,32 +25,34 @@ echo. set /p launcher=Bitte Zahl eingeben: if %launcher%==0 goto startprogram if %launcher%==1 goto minecraft -if %launcher%==2 goto technic -goto startprogram - -:technic -del PCs\%computername%.bat -echo set jar=TechnicLauncher>>PCs\%computername%.bat -echo set Java=%Java%>>PCs\%computername%.bat -echo set ram=%ram%>>PCs\%computername%.bat +if %launcher%==2 goto minecraft goto startprogram :minecraft del PCs\%computername%.bat +REM Switch to other launcher +if %launcher%==2 goto technic echo set jar=Minecraft>>PCs\%computername%.bat +:pc-config-launcher-switch-rest echo set Java=%Java%>>PCs\%computername%.bat echo set ram=%ram%>>PCs\%computername%.bat goto startprogram +:technic +echo set jar=TechnicLauncher>>PCs\%computername%.bat +goto pc-config-launcher-switch-rest + :menu32 -echo [1] = RAM einstellen -echo [2] = Update Suchen -echo [3] = Launcher +echo [1] = Launcher +echo [2] = RAM einstellen +echo [3] = Standart Launcher +echo [4] = Update Suchen echo. set /p ei=Bitte zahl eingeben: -if %ei%==1 goto RAM -if %ei%==2 goto Update -if %ei%==3 goto launcher +if %ei%==1 goto launcher +if %ei%==2 goto RAM +if %ei%==3 goto Standart-Launcher +if %ei%==4 goto Update echo Falsche Eingabe, der Befehl: %ei% gibt es nicht. echo Bitte nochmal Versuchen ping localhost -n 10>nul @@ -126,18 +128,21 @@ goto RAM :startprogram CLS call PCs\%computername%.bat -title %starter% Einstellungen [Version: %Version%] [RAM: %ram%B] [Java: %java% Bit] [PC: %computername%] [Launcher: %jar%] -if /i %processor_architecture%==x86 goto menu32_beta +call PCs\mc-config.bat +title %starter% Einstellungen [Version: %Version%] [RAM: %ram%B] [Java: %java% Bit] [PC: %computername%] [Launcher: %jar%] [ St. Launcher: %sjar% ] +if /i %processor_architecture%==x86 goto menu32 echo [1] = Launcher echo [2] = Java Einstellen echo [3] = RAM einstellen -echo [4] = Update Suchen +echo [4] = Standart Launcher +echo [5] = Update Suchen echo. set /p ei=Bitte zahl eingeben: if %ei%==1 goto launcher if %ei%==2 goto Java if %ei%==3 goto RAM -if %ei%==4 goto Update +if %ei%==4 goto Standart-Launcher +if %ei%==5 goto Update echo Falsche Eingabe, der Befehl: %ei% gibt es nicht. echo Bitte nochmal Versuchen ping localhost -n 10>nul @@ -146,3 +151,31 @@ goto startprogram :Update start https://github.com/daniel156161/Minecraft-Portable goto startprogram + +:Standart-Launcher +cls +echo [0] Zuruch ins menu +echo. +echo [1] Minecraft Launcher +echo [2] Technic Launcher +echo. +set /p launcher=Bitte Zahl eingeben: +if %launcher%==0 goto startprogram +if %launcher%==1 goto Standart-Launcher-mc-config +if %launcher%==2 goto Standart-Launcher-mc-config +goto startprogram + +:Standart-Launcher-mc-config +call PCs\mc-config.bat +del PCs\mc-config.bat +echo set Version=%aktuelleversion%>>PCs\mc-config.bat +echo set starter=%starter%>>PCs\mc-config.bat +REM sjar to other +if %launcher%==2 goto technic-mc-config +REM sjar to Minecraft +echo set sjar=Minecraft>>PCs\mc-config.bat +goto startprogram + +:technic-mc-config +echo set sjar=TechnicLauncher>>PCs\mc-config.bat +goto startprogram \ No newline at end of file diff --git a/Minecraft-Portable.bat b/Minecraft-Portable.bat index 58fdb11..9d4e3cf 100755 --- a/Minecraft-Portable.bat +++ b/Minecraft-Portable.bat @@ -2,7 +2,7 @@ color a REM Ladet Config oder erstellt Config (aktuelle Versions Variable) -set aktuelleversion=7.2 +set aktuelleversion=8.0 :start if not exist PCs\mc-config.bat goto Config-erstellen @@ -45,6 +45,8 @@ exit REM Configs :Config-erstellen mkdir PCs +echo set sjar=Minecraft>>PCs\mc-config.bat +:createconfig echo set Version=%aktuelleversion%>>PCs\mc-config.bat echo set starter=Minecraft-Portable>>PCs\mc-config.bat call PCs\mc-config.bat @@ -54,12 +56,8 @@ goto start :Config-loeschen del PCs\mc-config.bat -echo set Version=%aktuelleversion%>>PCs\mc-config.bat -echo set starter=Minecraft-Portable>>PCs\mc-config.bat -call PCs\mc-config.bat -title %starter% -color a -goto start +echo set sjar=%sjar%>>PCs\mc-config.bat +goto createconfig :logic-error echo Logic datei konnte nicht gefunden werden diff --git a/README.md b/README.md index bdb5b65..093ae16 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,23 @@ TechnicLauncher by https://www.technicpack.net/ 64 Bit Java: Download Java Portable form https://portableapps.com/apps/utilities/java_portable_64 and then start the .paf.exe file, put the files into bin/ after export after that all is done and you can run the Minecraft-Portable.bat file + +###PC\mc-config.bat will create after first start +set Version=8.0 versionnumber +set starter=Minecraft-Portable Programmname +set sjar=Minecraft Standart Launcher for PC\Computername.bat + +###PC\Computername.bat will create after first start +set jar=Minecraft mc-config will set this to Standart Launcher at first but you can switch it into any other Launcher into the Einstellungen.bat +set Java=64 will have the right java vor this machine you are on +set ram=1G 1G are standart but you can change it into the Einstellungen.bat too + +###bin\mc-logic.bat +is very important please don't delete or change it into any way only you understand what you are doing + + +###Checksum +md5 checksum: 2e4a57736ccdf6cad214e2d1dc0d4dc2 MinecraftLauncher.exe +md5 checksum: 90bc201e2c55cb3b42af3d74156bddff TechnicLauncher.jar + +when you don't trust me you can download the Launchers form they original webside and but it into the bin\ folder with the right names like here above diff --git a/bin/mc-logic.bat b/bin/mc-logic.bat index cb7a7dd..f8a6505 100755 --- a/bin/mc-logic.bat +++ b/bin/mc-logic.bat @@ -12,6 +12,7 @@ goto End :Java-erstellen if /i %processor_architecture%==64 goto Java-erstellen-64Bit if /i %processor_architecture%==AMD64 goto Java-erstellen-64Bit +:Java-64Bit-error del PCs\%computername%.bat echo set jar=%jar%>>PCs\%computername%.bat echo set Java=32>>PCs\%computername%.bat @@ -47,7 +48,7 @@ echo set ram=%ram%>>PCs\%computername%.bat goto End :mc-config-pc-ordner -echo set jar=Minecraft>>PCs\%computername%.bat +echo set jar=%sjar%>>PCs\%computername%.bat if /i %processor_architecture%==64 goto mc-config-pc-ordner-64Bit if /i %processor_architecture%==AMD64 goto mc-config-pc-ordner-64Bit echo set Java=32>>PCs\%computername%.bat @@ -72,12 +73,6 @@ REM Überbrüft Java :Java-ckeck if /i %processor_architecture%==x86 goto Java-64Bit-error goto End -:Java-64Bit-error -del PCs\%computername%.bat -echo set jar=%jar%>>PCs\%computername%.bat -echo set Java=32>>PCs\%computername%.bat -echo set ram=%ram%>>PCs\%computername%.bat -goto End :Update call PCs\%computername%\mc-config.bat