13 Commits

Author SHA1 Message Date
48be1ab8cb Update to 1.14.1 2019-05-18 00:14:43 +03:00
c5a9489349 Merge pull request #6 from scpketer/master
Fixed syntax, some variables were wrapped into % not $
2018-06-17 20:22:07 +03:00
625f7cff96 Fixed syntax, some variables were wrapped into % not $ 2018-06-15 13:13:01 +04:00
6afec28969 Merge pull request #5 from scpketer/master
added linux shell,
updated natives
2018-06-15 02:25:57 +03:00
1e43ad7cba Fixed malformed syntax. 2018-06-12 12:40:15 +04:00
4d87832f0e Updated natives path and file reference. 2018-06-12 12:29:56 +04:00
d55eb23c97 Updated natives, now includes .jar (launcher has no Demo acc anymore). 2018-06-12 12:29:43 +04:00
028f2376d1 Adapted .bat to .sh 2018-06-12 12:19:38 +04:00
8febffc663 Moved from root to windows/; Changed RAM to JVM (possible misspelling). 2018-06-12 12:19:26 +04:00
2a9df607d6 Merge pull request #3 from scpketer/master
added english help
2018-05-28 00:34:41 +03:00
33fca2093b Translated Russian help 2018-05-24 08:22:14 +04:00
c1d52c7f95 True change system drive 2017-02-11 03:55:30 +03:00
235c06422d README link natives fix 2017-01-07 21:54:35 +03:00
8 changed files with 86 additions and 39 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.bak
*.jar

View File

@ -2,7 +2,30 @@ Minecraft Batch Launcher
========================
### English help ###
Pull-request, please!
## 1. Installation ##
Get to the [launcher page](https://github.com/IIIypuk/minecraft-launcher/blob/master/mc_start.bat). Click with right mouse button on **Raw** then click on **Save as...** and save file to your desired location.
## 2. Minecraft Client ##
By default, script will run Minecraft from the default directory `%APPDATA%\.minecraft`.
If you don't have a client, download [launcher](https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar), log in with Demo account and download Minecraft client.
After this, you may close official launcher and enjoy playing full version of Minecraft.
## 3. Setting up ##
This launcher can be customized by editing parameters in source file.
Use right mouse button to open a context menu, then click **edit**.
**List of parameters and values:**
+ `%MC_DIR%` - Minecraft client directory. By default it's `%APPDATA%\.minecraft`.
+ `%GAME_DIR%` - user game files. Resourcepacks, saves, screenshots, etc.
+ `%ASSETS_DIR%` - game libraries directory. Don't modify anything there, unless you know what are you doing.
+ `%NATIVES_DIR%` - native game libraries directory, which are used to launch game on Windows.
[Download](https://github.com/IIIypuk/minecraft-launcher/raw/master/natives/1.12.2.zip) and unpack this to the `versions\`, which is located nearby to the Minecraft client.
+ `%PLAYER%` - player name (shown above the head), by default it's **Steve**.
+ `%WIDTH%` - window width.
+ `%HEIGHT%` - window height.
+ `%RAM%` - amount of RAM (heap size) used by the JVM. **512MB** by default. If your PC has more than **4GB** of RAM, you can surely set it to `-Xmx2G`.
### Русская справка ###
## 1. Установка ##
@ -23,7 +46,7 @@ Pull-request, please!
+ `%GAME_DIR%` - директория с файлами пользователя. Ресурс-паки, сохранения, скриншоты и др.
+ `%ASSETS_DIR%` - директория с библиотеками. Изменять только если Вы понимаете что желаете.
+ `%NATIVES_DIR%` - директория с библиотеками, которые требуеются для запуск игры под Windows.
[Скачиваем](https://github.com/IIIypuk/minecraft-launcher/raw/master/natives/1.11.2.zip) их и распаковываем в директорию `versions\1.10.2`, которая находится в директории с клиентом Minecraft.
[Скачиваем](https://github.com/IIIypuk/minecraft-launcher/raw/master/natives/1.12.2.zip) их и распаковываем в директорию `versions\`, которая находится в директории с клиентом Minecraft.
+ `%PLAYER%` - имя игрока. По умолчанию **Steve**.
+ `%WIDTH%` - ширина окна в оконном режиме.
+ `%HEIGHT%` - высота окна в оконном режиме.

25
linux/mc_start.sh Normal file
View File

@ -0,0 +1,25 @@
# A minecraft root directory
MC_DIR=~/.minecraft
# Game location
GAME_DIR=$MC_DIR/profile
# Assets location
ASSETS_DIR=$MC_DIR/assets
# Version to use
VERSION=1.11.2
# Native libs location
NATIVES_DIR=$MC_DIR/versions/$VERSION/$VERSION-natives
# Player name
PLAYER=Steve
# Window properties
WIDTH=800
HEIGHT=640
cd $MC_DIR
java -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Djava.library.path=$NATIVES_DIR -Dminecraft.launcher.brand=java-minecraft-launcher -Dminecraft.launcher.version=1.6.89-j -cp $MC_DIR/libraries/com/mojang/patchy/1.1/patchy-1.1.jar;$MC_DIR/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar;$MC_DIR/libraries/net/java/dev/jna/jna/4.4.0/jna-4.4.0.jar;$MC_DIR/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar;$MC_DIR/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar;$MC_DIR/libraries/com/mojang/javabridge/1.0.22/javabridge-1.0.22.jar;$MC_DIR/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar;$MC_DIR/libraries/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar;$MC_DIR/libraries/com/google/guava/guava/21.0/guava-21.0.jar;$MC_DIR/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar;$MC_DIR/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar;$MC_DIR/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.jar;$MC_DIR/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar;$MC_DIR/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar;$MC_DIR/libraries/com/mojang/brigadier/1.0.17/brigadier-1.0.17.jar;$MC_DIR/libraries/com/mojang/datafixerupper/2.0.24/datafixerupper-2.0.24.jar;$MC_DIR/libraries/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar;$MC_DIR/libraries/com/mojang/authlib/1.5.25/authlib-1.5.25.jar;$MC_DIR/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar;$MC_DIR/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar;$MC_DIR/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar;$MC_DIR/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar;$MC_DIR/libraries/it/unimi/dsi/fastutil/8.2.1/fastutil-8.2.1.jar;$MC_DIR/libraries/org/apache/logging/log4j/log4j-api/2.8.1/log4j-api-2.8.1.jar;$MC_DIR/libraries/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1.jar;$MC_DIR/libraries/com/mojang/realms/1.14.15/realms-1.14.15.jar;$MC_DIR/libraries/org/lwjgl/lwjgl/3.2.1/lwjgl-3.2.1.jar;$MC_DIR/libraries/org/lwjgl/lwjgl-jemalloc/3.2.1/lwjgl-jemalloc-3.2.1.jar;$MC_DIR/libraries/org/lwjgl/lwjgl-openal/3.2.1/lwjgl-openal-3.2.1.jar;$MC_DIR/libraries/org/lwjgl/lwjgl-opengl/3.2.1/lwjgl-opengl-3.2.1.jar;$MC_DIR/libraries/org/lwjgl/lwjgl-glfw/3.2.1/lwjgl-glfw-3.2.1.jar;$MC_DIR/libraries/org/lwjgl/lwjgl-stb/3.2.1/lwjgl-stb-3.2.1.jar;$MC_DIR/libraries/com/mojang/text2speech/1.11.3/text2speech-1.11.3.jar;$MC_DIR/versions/$VERSION/$VERSION.jar net.minecraft.client.main.Main --username $PLAYER --version $VERSION --accessToken 0 --userProperties {} --gameDir $GAME_DIR --assetsDir $ASSETS_DIR --assetIndex $ASSETS_INDEX --width $WIDTH --height $HEIGHT

View File

@ -1,37 +0,0 @@
@echo off
title Minecraft Launcher
cd \
:: main directory of the game
set MC_DIR=%APPDATA%\.minecraft
:: Are stored here...
:: saves/, resourcepacks/ and screenshots/ dirs
:: and options.txt and servers.dat files
set GAME_DIR=%MC_DIR%\profile
:: libraries and resource dir (requires no changes)
set ASSETS_DIR=%MC_DIR%\assets
set ASSETS_INDEX=1.11
:: version minecraft (from versions/ dir)
set VERSION=1.11.2
:: get archive from natives/ dir
set NATIVES_DIR=%MC_DIR%\versions\%VERSION%\%VERSION%-natives
:: player nickname (the over head)
set PLAYER=Steve
:: resolution
set WIDTH=800
set HEIGHT=640
:: RAM
set RAM="-Xmx1G"
:: running minecraft
cd %MC_DIR%
java %RAM% -Djava.library.path=%NATIVES_DIR% -cp %MC_DIR%\libraries\com\mojang\netty\1.6\netty-1.6.jar;%MC_DIR%\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar;%MC_DIR%\libraries\net\java\dev\jna\jna\3.4.0\jna-3.4.0.jar;%MC_DIR%\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;%MC_DIR%\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;%MC_DIR%\libraries\net\sf\jopt-simple\jopt-simple\4.6\jopt-simple-4.6.jar;%MC_DIR%\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;%MC_DIR%\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;%MC_DIR%\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;%MC_DIR%\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;%MC_DIR%\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;%MC_DIR%\libraries\io\netty\netty-all\4.0.23.Final\netty-all-4.0.23.Final.jar;%MC_DIR%\libraries\com\google\guava\guava\17.0\guava-17.0.jar;%MC_DIR%\libraries\org\apache\commons\commons-lang3\3.3.2\commons-lang3-3.3.2.jar;%MC_DIR%\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar;%MC_DIR%\libraries\commons-codec\commons-codec\1.9\commons-codec-1.9.jar;%MC_DIR%\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;%MC_DIR%\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;%MC_DIR%\libraries\com\google\code\gson\gson\2.2.4\gson-2.2.4.jar;%MC_DIR%\libraries\com\mojang\authlib\1.5.24\authlib-1.5.24.jar;%MC_DIR%\libraries\com\mojang\realms\1.10.8\realms-1.10.8.jar;%MC_DIR%\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;%MC_DIR%\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;%MC_DIR%\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;%MC_DIR%\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;%MC_DIR%\libraries\it\unimi\dsi\fastutil\7.0.12_mojang\fastutil-7.0.12_mojang.jar;%MC_DIR%\libraries\org\apache\logging\log4j\log4j-api\2.0-beta9\log4j-api-2.0-beta9.jar;%MC_DIR%\libraries\org\apache\logging\log4j\log4j-core\2.0-beta9\log4j-core-2.0-beta9.jar;%MC_DIR%\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar;%MC_DIR%\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar;%MC_DIR%\versions\%VERSION%\%VERSION%.jar net.minecraft.client.main.Main --username %PLAYER% --version %VERSION% --accessToken 0 --userProperties {} --gameDir %GAME_DIR% --assetsDir %ASSETS_DIR% --assetIndex %ASSETS_INDEX% --width %WIDTH% --height %HEIGHT%

Binary file not shown.

Before

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

BIN
natives/1.14.1.zip Normal file

Binary file not shown.

34
windows/mc_start.bat Normal file
View File

@ -0,0 +1,34 @@
@echo off
title Minecraft Launcher
:: main directory of the game
set MC_DIR=%APPDATA%\.minecraft
:: Are stored here...
:: saves/, resourcepacks/ and screenshots/ dirs
:: and options.txt and servers.dat files
set GAME_DIR=%MC_DIR%\profile
:: libraries and resource dir (requires no changes)
set ASSETS_DIR=%MC_DIR%\assets
set ASSETS_INDEX=1.14
:: version minecraft (from versions/ dir)
set VERSION=1.14.1
:: get archive from natives/ dir
set NATIVES_DIR=%MC_DIR%\versions\%VERSION%\%VERSION%-natives
:: player nickname (the over head)
set PLAYER=Steve
:: resolution
set WIDTH=800
set HEIGHT=640
:: running minecraft
%SystemDrive%
cd %MC_DIR%
javaw.exe -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Djava.library.path=%NATIVES_DIR% -Dminecraft.launcher.brand=java-minecraft-launcher -Dminecraft.launcher.version=1.6.89-j -cp %MC_DIR%\libraries\com\mojang\patchy\1.1\patchy-1.1.jar;%MC_DIR%\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar;%MC_DIR%\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar;%MC_DIR%\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;%MC_DIR%\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;%MC_DIR%\libraries\com\mojang\javabridge\1.0.22\javabridge-1.0.22.jar;%MC_DIR%\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar;%MC_DIR%\libraries\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar;%MC_DIR%\libraries\com\google\guava\guava\21.0\guava-21.0.jar;%MC_DIR%\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar;%MC_DIR%\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar;%MC_DIR%\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;%MC_DIR%\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;%MC_DIR%\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;%MC_DIR%\libraries\com\mojang\brigadier\1.0.17\brigadier-1.0.17.jar;%MC_DIR%\libraries\com\mojang\datafixerupper\2.0.24\datafixerupper-2.0.24.jar;%MC_DIR%\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar;%MC_DIR%\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar;%MC_DIR%\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;%MC_DIR%\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;%MC_DIR%\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;%MC_DIR%\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;%MC_DIR%\libraries\it\unimi\dsi\fastutil\8.2.1\fastutil-8.2.1.jar;%MC_DIR%\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar;%MC_DIR%\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar;%MC_DIR%\libraries\com\mojang\realms\1.14.15\realms-1.14.15.jar;%MC_DIR%\libraries\org\lwjgl\lwjgl\3.2.1\lwjgl-3.2.1.jar;%MC_DIR%\libraries\org\lwjgl\lwjgl-jemalloc\3.2.1\lwjgl-jemalloc-3.2.1.jar;%MC_DIR%\libraries\org\lwjgl\lwjgl-openal\3.2.1\lwjgl-openal-3.2.1.jar;%MC_DIR%\libraries\org\lwjgl\lwjgl-opengl\3.2.1\lwjgl-opengl-3.2.1.jar;%MC_DIR%\libraries\org\lwjgl\lwjgl-glfw\3.2.1\lwjgl-glfw-3.2.1.jar;%MC_DIR%\libraries\org\lwjgl\lwjgl-stb\3.2.1\lwjgl-stb-3.2.1.jar;%MC_DIR%\libraries\com\mojang\text2speech\1.11.3\text2speech-1.11.3.jar;%MC_DIR%\versions\%VERSION%\%VERSION%.jar net.minecraft.client.main.Main --username %PLAYER% --version %VERSION% --accessToken 0 --userProperties {} --gameDir %GAME_DIR% --assetsDir %ASSETS_DIR% --assetIndex %ASSETS_INDEX% --width %WIDTH% --height %HEIGHT%