Code Update and Cleanup, Update README.md

This commit is contained in:
2020-03-04 23:39:44 +01:00
parent 90d8702e33
commit 436a74474e
4 changed files with 79 additions and 33 deletions
+52 -19
View File
@@ -6,7 +6,7 @@ if not exist PCs\mc-config.bat goto Minecraft-Portable
call PCs\mc-config.bat call PCs\mc-config.bat
REM Version Prüfen REM Version Prüfen
set aktuelleversion=7.2 set aktuelleversion=8.0
if not %Version%==%aktuelleversion% goto Minecraft-Portable if not %Version%==%aktuelleversion% goto Minecraft-Portable
goto startprogram goto startprogram
@@ -25,32 +25,34 @@ echo.
set /p launcher=Bitte Zahl eingeben: set /p launcher=Bitte Zahl eingeben:
if %launcher%==0 goto startprogram if %launcher%==0 goto startprogram
if %launcher%==1 goto minecraft if %launcher%==1 goto minecraft
if %launcher%==2 goto technic if %launcher%==2 goto minecraft
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
goto startprogram goto startprogram
:minecraft :minecraft
del PCs\%computername%.bat del PCs\%computername%.bat
REM Switch to other launcher
if %launcher%==2 goto technic
echo set jar=Minecraft>>PCs\%computername%.bat echo set jar=Minecraft>>PCs\%computername%.bat
:pc-config-launcher-switch-rest
echo set Java=%Java%>>PCs\%computername%.bat echo set Java=%Java%>>PCs\%computername%.bat
echo set ram=%ram%>>PCs\%computername%.bat echo set ram=%ram%>>PCs\%computername%.bat
goto startprogram goto startprogram
:technic
echo set jar=TechnicLauncher>>PCs\%computername%.bat
goto pc-config-launcher-switch-rest
:menu32 :menu32
echo [1] = RAM einstellen echo [1] = Launcher
echo [2] = Update Suchen echo [2] = RAM einstellen
echo [3] = Launcher echo [3] = Standart Launcher
echo [4] = Update Suchen
echo. echo.
set /p ei=Bitte zahl eingeben: set /p ei=Bitte zahl eingeben:
if %ei%==1 goto RAM if %ei%==1 goto launcher
if %ei%==2 goto Update if %ei%==2 goto RAM
if %ei%==3 goto launcher if %ei%==3 goto Standart-Launcher
if %ei%==4 goto Update
echo Falsche Eingabe, der Befehl: %ei% gibt es nicht. echo Falsche Eingabe, der Befehl: %ei% gibt es nicht.
echo Bitte nochmal Versuchen echo Bitte nochmal Versuchen
ping localhost -n 10>nul ping localhost -n 10>nul
@@ -126,18 +128,21 @@ goto RAM
:startprogram :startprogram
CLS CLS
call PCs\%computername%.bat call PCs\%computername%.bat
title %starter% Einstellungen [Version: %Version%] [RAM: %ram%B] [Java: %java% Bit] [PC: %computername%] [Launcher: %jar%] call PCs\mc-config.bat
if /i %processor_architecture%==x86 goto menu32_beta 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 [1] = Launcher
echo [2] = Java Einstellen echo [2] = Java Einstellen
echo [3] = RAM einstellen echo [3] = RAM einstellen
echo [4] = Update Suchen echo [4] = Standart Launcher
echo [5] = Update Suchen
echo. echo.
set /p ei=Bitte zahl eingeben: set /p ei=Bitte zahl eingeben:
if %ei%==1 goto launcher if %ei%==1 goto launcher
if %ei%==2 goto Java if %ei%==2 goto Java
if %ei%==3 goto RAM 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 Falsche Eingabe, der Befehl: %ei% gibt es nicht.
echo Bitte nochmal Versuchen echo Bitte nochmal Versuchen
ping localhost -n 10>nul ping localhost -n 10>nul
@@ -146,3 +151,31 @@ goto startprogram
:Update :Update
start https://github.com/daniel156161/Minecraft-Portable start https://github.com/daniel156161/Minecraft-Portable
goto startprogram 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
+5 -7
View File
@@ -2,7 +2,7 @@
color a color a
REM Ladet Config oder erstellt Config (aktuelle Versions Variable) REM Ladet Config oder erstellt Config (aktuelle Versions Variable)
set aktuelleversion=7.2 set aktuelleversion=8.0
:start :start
if not exist PCs\mc-config.bat goto Config-erstellen if not exist PCs\mc-config.bat goto Config-erstellen
@@ -45,6 +45,8 @@ exit
REM Configs REM Configs
:Config-erstellen :Config-erstellen
mkdir PCs mkdir PCs
echo set sjar=Minecraft>>PCs\mc-config.bat
:createconfig
echo set Version=%aktuelleversion%>>PCs\mc-config.bat echo set Version=%aktuelleversion%>>PCs\mc-config.bat
echo set starter=Minecraft-Portable>>PCs\mc-config.bat echo set starter=Minecraft-Portable>>PCs\mc-config.bat
call PCs\mc-config.bat call PCs\mc-config.bat
@@ -54,12 +56,8 @@ goto start
:Config-loeschen :Config-loeschen
del PCs\mc-config.bat del PCs\mc-config.bat
echo set Version=%aktuelleversion%>>PCs\mc-config.bat echo set sjar=%sjar%>>PCs\mc-config.bat
echo set starter=Minecraft-Portable>>PCs\mc-config.bat goto createconfig
call PCs\mc-config.bat
title %starter%
color a
goto start
:logic-error :logic-error
echo Logic datei konnte nicht gefunden werden echo Logic datei konnte nicht gefunden werden
+20
View File
@@ -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 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 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
+2 -7
View File
@@ -12,6 +12,7 @@ goto End
:Java-erstellen :Java-erstellen
if /i %processor_architecture%==64 goto Java-erstellen-64Bit if /i %processor_architecture%==64 goto Java-erstellen-64Bit
if /i %processor_architecture%==AMD64 goto Java-erstellen-64Bit if /i %processor_architecture%==AMD64 goto Java-erstellen-64Bit
:Java-64Bit-error
del PCs\%computername%.bat del PCs\%computername%.bat
echo set jar=%jar%>>PCs\%computername%.bat echo set jar=%jar%>>PCs\%computername%.bat
echo set Java=32>>PCs\%computername%.bat echo set Java=32>>PCs\%computername%.bat
@@ -47,7 +48,7 @@ echo set ram=%ram%>>PCs\%computername%.bat
goto End goto End
:mc-config-pc-ordner :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%==64 goto mc-config-pc-ordner-64Bit
if /i %processor_architecture%==AMD64 goto mc-config-pc-ordner-64Bit if /i %processor_architecture%==AMD64 goto mc-config-pc-ordner-64Bit
echo set Java=32>>PCs\%computername%.bat echo set Java=32>>PCs\%computername%.bat
@@ -72,12 +73,6 @@ REM Überbrüft Java
:Java-ckeck :Java-ckeck
if /i %processor_architecture%==x86 goto Java-64Bit-error if /i %processor_architecture%==x86 goto Java-64Bit-error
goto End 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 :Update
call PCs\%computername%\mc-config.bat call PCs\%computername%\mc-config.bat