Skip to content

Commit

Permalink
Actualización código fuente instalador
Browse files Browse the repository at this point in the history
Se actualiza el código de la herramienta instalador, tanto en inglés como en español, para hacer el código más liviano, amigable, y para incluir las versiones 1.20 y 1.20.1 de Minecraft.
  • Loading branch information
ngdplnk committed Aug 30, 2023
1 parent 582d6d7 commit 3d6aae1
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 84 deletions.
87 changes: 45 additions & 42 deletions var/windows/installer/maincode_installer_eng.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@ cls
echo Server Installer for Minecraft
echo --------------------------------------
echo(
echo You are in the Main Menu
echo Main Menu
echo(
echo (I) Install a Server
echo (L) Versions List
echo (C) License
echo (S) Exit
echo (1) Install a Server
echo (2) Version List
echo (3) License
echo (4) Exit
echo(
set /P menu=Select one of the options =
if /I "%menu%" EQU "I" goto :version
if /I "%menu%" EQU "L" goto :vslist
if /I "%menu%" EQU "D" goto :dbmode
if /I "%menu%" EQU "C" goto :about
if /I "%menu%" EQU "S" goto :exit
if /I "%menu%" EQU "1" goto :version
if /I "%menu%" EQU "2" goto :vslist
if /I "%menu%" EQU "3" goto :about
if /I "%menu%" EQU "4" goto :exit
if /I "%menu%" EQU "5" goto :dbmode
goto :init

:version
cls
echo Server Installer for Minecraft
echo --------------------------------------
echo(
echo You can return to the Main Menu with "N"
echo (1) Back to Main Menu
echo (2) Version List
echo(
echo Also, you can see through the Versions List with "L", or
echo(
set /P version=Type the Minecraft Version for your new Server=
if /I "%version%" EQU "N" goto :init
if /I "%version%" EQU "L" goto :vslist
echo You can select one of the options above or
set /P version=Type the Minecraft Version for your new Server=
if /I "%version%" EQU "1" goto :init
if /I "%version%" EQU "2" goto :vslist
if /I "%version%" EQU "1.2.1" set version=1.2.1& set link=https://assets.minecraft.net/1_2/minecraft_server.jar& goto :install
if /I "%version%" EQU "1.2.2" set version=1.2.2& set link=https://assets.minecraft.net/1_2/minecraft_server.jar& goto :install
if /I "%version%" EQU "1.2.3" set version=1.2.3& set link=https://assets.minecraft.net/1_2/minecraft_server.jar& goto :install
Expand Down Expand Up @@ -123,7 +123,7 @@ echo(
echo You selected Version %version%
echo(
echo Necessary files will be downloaded from the Internet
echo Then a folder will be created on the Desktop with the files of your Server
echo A folder will be created on the Desktop with the files of your Server
echo(
pause
cls
Expand Down Expand Up @@ -163,17 +163,22 @@ goto :listo
:eula
cd %USERPROFILE%\Desktop\Server\
echo eula=true>eula.txt
goto :listo2
goto :ok

:listo2
:ok
cls
echo Server Installer for Minecraft
echo --------------------------------------
echo(
echo Server has been installed
echo(
pause
goto :init
echo (1) Back to Main Menu
echo (2) Exit
echo(
set /P okay=Select one of the options=
if /I "%okay%" EQU "1" goto :init
if /I "%okay%" EQU "2" goto :exit
goto :ok

:vslist
cls
Expand All @@ -183,9 +188,9 @@ echo(
echo Here you will find the list showing the available versions for your Minecraft Server.
echo This list could change in future updates.
echo(
echo (1) See Available Versions List
echo (1) See Available Versions
echo (2) Back to Main Menu
echo (3) Go to Install Server
echo (3) Install a Server
echo(
set /P vslista=Select one of the options =
if /I "%vslista%" EQU "1" goto :stblist
Expand Down Expand Up @@ -289,21 +294,20 @@ echo Server Installer for Minecraft
echo --------------------------------------
echo(
echo Debug Mode shows all the commands that are executed by the console during each process.
echo This mode is useful for developers to detect problems with the code more easily.
echo This mode is useful for developer to detect problems with the code more easily.
echo It is not recommended to activate this mode if you really do not know how to cope with it.
echo(
echo (N) Enable Debug Mode
echo (M) Disable Debug Mode
echo (V) Back to Main Menu
echo (1) Enable Debug Mode
echo (2) Disable Debug Mode
echo (3) Back to Main Menu
echo(
set /P debug=Select one of the options =
if /I "%debug%" EQU "N" goto :dbinit
if /I "%debug%" EQU "M" goto :undbinit
if /I "%debug%" EQU "V" goto :init
if /I "%debug%" EQU "1" goto :dbinit
if /I "%debug%" EQU "2" goto :undbinit
if /I "%debug%" EQU "3" goto :init
goto :dbmode

:dbinit
cls
@echo off
cls
echo(
Expand All @@ -312,23 +316,22 @@ echo(
pause
cls
@echo on
cls
echo Server Installer for Minecraft
echo --------------------------------------
echo(
echo You are in the Main Menu
echo Main Menu
echo(
echo (I) Install a Server
echo (L) Version List
echo (C) License
echo (S) Exit
echo (1) Install a Server
echo (2) Version List
echo (3) License
echo (4) Exit
echo(
set /P menu=Select one of the options =
if /I "%menu%" EQU "I" goto :version
if /I "%menu%" EQU "L" goto :vslist
if /I "%menu%" EQU "D" goto :dbmode
if /I "%menu%" EQU "C" goto :about
if /I "%menu%" EQU "S" goto :exit
if /I "%menu%" EQU "1" goto :version
if /I "%menu%" EQU "2" goto :vslist
if /I "%menu%" EQU "3" goto :about
if /I "%menu%" EQU "4" goto :exit
if /I "%menu%" EQU "5" goto :dbmode
goto :init

:undbinit
Expand Down
87 changes: 45 additions & 42 deletions var/windows/installer/maincode_installer_esp.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@ cls
echo Instalador de Servidores para Minecraft
echo --------------------------------------
echo(
echo Estas en el Menu Principal
echo Menu Principal
echo(
echo (I) Instalar un Servidor
echo (L) Lista de Versiones
echo (C) Licencia
echo (S) Salir
echo (1) Instalar un Servidor
echo (2) Lista de Versiones
echo (3) Licencia
echo (4) Salir
echo(
set /P menu=Elige una de las opciones =
if /I "%menu%" EQU "I" goto :version
if /I "%menu%" EQU "L" goto :vslist
if /I "%menu%" EQU "D" goto :dbmode
if /I "%menu%" EQU "C" goto :about
if /I "%menu%" EQU "S" goto :exit
if /I "%menu%" EQU "1" goto :version
if /I "%menu%" EQU "2" goto :vslist
if /I "%menu%" EQU "3" goto :about
if /I "%menu%" EQU "4" goto :exit
if /I "%menu%" EQU "5" goto :dbmode
goto :init

:version
cls
echo Instalador de Servidores para Minecraft
echo --------------------------------------
echo(
echo Puedes volver al Menu Principal con "N"
echo(
echo Tambien, puedes ver la Lista de Versiones con "L", o
echo(
echo (1) Volver al Menu Principal
echo (2) Lista de Versiones
echo(
echo Puedes elegir una de estas opciones o
set /P version=Escribe la Version de Minecraft para tu nuevo Servidor=
if /I "%version%" EQU "N" goto :init
if /I "%version%" EQU "L" goto :vslist
if /I "%version%" EQU "1" goto :init
if /I "%version%" EQU "2" goto :vslist
if /I "%version%" EQU "1.2.1" set version=1.2.1& set link=https://assets.minecraft.net/1_2/minecraft_server.jar& goto :install
if /I "%version%" EQU "1.2.2" set version=1.2.2& set link=https://assets.minecraft.net/1_2/minecraft_server.jar& goto :install
if /I "%version%" EQU "1.2.3" set version=1.2.3& set link=https://assets.minecraft.net/1_2/minecraft_server.jar& goto :install
Expand Down Expand Up @@ -123,7 +123,7 @@ echo(
echo Seleccionaste la Version %version%
echo(
echo Se descargaran los archivos necesarios desde Internet
echo Luego se creara una carpeta en el Escritorio con los archivos de tu Servidor
echo Encontraras una carpeta en el Escritorio con los archivos de tu Servidor
echo(
pause
cls
Expand Down Expand Up @@ -163,17 +163,22 @@ goto :listo
:eula
cd %USERPROFILE%\Desktop\Servidor\
echo eula=true>eula.txt
goto :listo2
goto :ok

:listo2
:ok
cls
echo Instalador de Servidores para Minecraft
echo --------------------------------------
echo(
echo Se ha instalado el Servidor
echo(
pause
goto :init
echo (1) Volver al Menu principal
echo (2) Salir
echo(
set /P okay=Elige una de las opciones=
if /I "%okay%" EQU "1" goto :init
if /I "%okay%" EQU "2" goto :exit
goto :ok

:vslist
cls
Expand All @@ -183,9 +188,9 @@ echo(
echo Aqui encontraras la lista que muestra las versiones de Minecraft disponibles.
echo Esta lista podria cambiar en futuras actualizaciones.
echo(
echo (1) Ver Lista de Versiones Disponibles
echo (1) Ver Versiones Disponibles
echo (2) Volver al Menu Principal
echo (3) Ir a Instalar un Servidor
echo (3) Instalar un Servidor
echo(
set /P vslista=Elige una de las opciones =
if /I "%vslista%" EQU "1" goto :stblist
Expand Down Expand Up @@ -289,21 +294,20 @@ echo Instalador de Servidores para Minecraft
echo --------------------------------------
echo(
echo El Modo Debug muestra todos los comandos que son ejecutados por la consola durante cada proceso.
echo Este modo le es util a los desarrolladores para detectar problemas con el codigo de manera mas facil.
echo Este modo le es util al desarrollador para detectar problemas con el codigo facilmente.
echo No se recomienda activar este modo si realmente no sabes como sobrellevarlo.
echo(
echo (N) Activar Modo Debug
echo (M) Desactivar Modo Debug
echo (V) Volver al Menu Principal
echo (1) Activar Modo Debug
echo (2) Desactivar Modo Debug
echo (3) Volver al Menu Principal
echo(
set /P debug=Elige una de las opciones =
if /I "%debug%" EQU "N" goto :dbinit
if /I "%debug%" EQU "M" goto :undbinit
if /I "%debug%" EQU "V" goto :init
if /I "%debug%" EQU "1" goto :dbinit
if /I "%debug%" EQU "2" goto :undbinit
if /I "%debug%" EQU "3" goto :init
goto :dbmode

:dbinit
cls
@echo off
cls
echo(
Expand All @@ -312,23 +316,22 @@ echo(
pause
cls
@echo on
cls
echo Instalador de Servidores para Minecraft
echo --------------------------------------
echo(
echo Estas en el Menu Principal
echo Menu Principal
echo(
echo (I) Instalar un Servidor
echo (L) Lista de Versiones
echo (C) Licencia
echo (S) Salir
echo (1) Instalar un Servidor
echo (2) Lista de Versiones
echo (3) Licencia
echo (4) Salir
echo(
set /P menu=Elige una de las opciones =
if /I "%menu%" EQU "I" goto :version
if /I "%menu%" EQU "L" goto :vslist
if /I "%menu%" EQU "D" goto :dbmode
if /I "%menu%" EQU "C" goto :about
if /I "%menu%" EQU "S" goto :exit
if /I "%menu%" EQU "1" goto :version
if /I "%menu%" EQU "2" goto :vslist
if /I "%menu%" EQU "3" goto :about
if /I "%menu%" EQU "4" goto :exit
if /I "%menu%" EQU "5" goto :dbmode
goto :init

:undbinit
Expand Down

0 comments on commit 3d6aae1

Please sign in to comment.