diff --git a/README.md b/README.md index 055d01c..ce8bdcd 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Use right mouse button to open a context menu, then click **edit**. + `%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.11.2.7z) and unpack this to the `versions\1.11.2`, which is located nearby to the Minecraft client. +[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. @@ -46,7 +46,7 @@ Use right mouse button to open a context menu, then click **edit**. + `%GAME_DIR%` - директория с файлами пользователя. Ресурс-паки, сохранения, скриншоты и др. + `%ASSETS_DIR%` - директория с библиотеками. Изменять только если Вы понимаете что желаете. + `%NATIVES_DIR%` - директория с библиотеками, которые требуеются для запуск игры под Windows. -[Скачиваем](https://github.com/IIIypuk/minecraft-launcher/raw/master/natives/1.11.2.7z) их и распаковываем в директорию `versions\1.11.2`, которая находится в директории с клиентом Minecraft. +[Скачиваем](https://github.com/IIIypuk/minecraft-launcher/raw/master/natives/1.12.2.zip) их и распаковываем в директорию `versions\`, которая находится в директории с клиентом Minecraft. + `%PLAYER%` - имя игрока. По умолчанию **Steve**. + `%WIDTH%` - ширина окна в оконном режиме. + `%HEIGHT%` - высота окна в оконном режиме. diff --git a/linux/mc_start.sh b/linux/mc_start.sh new file mode 100644 index 0000000..042e78f --- /dev/null +++ b/linux/mc_start.sh @@ -0,0 +1,28 @@ +# 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 + +# JVM args +JVM_ARGS="-Xmx1G -Xms512M" + +cd $MC_DIR + +java $JVM_ARGS -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 diff --git a/natives/1.11.2.7z b/natives/1.11.2.7z deleted file mode 100644 index c6b19d1..0000000 Binary files a/natives/1.11.2.7z and /dev/null differ diff --git a/natives/1.12.2.zip b/natives/1.12.2.zip new file mode 100644 index 0000000..a86ef92 Binary files /dev/null and b/natives/1.12.2.zip differ diff --git a/mc_start.bat b/windows/mc_start.bat similarity index 97% rename from mc_start.bat rename to windows/mc_start.bat index b810a38..9410ee8 100644 --- a/mc_start.bat +++ b/windows/mc_start.bat @@ -1,37 +1,37 @@ -@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.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 -%SystemDrive% -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% +@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.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 + +:: Java Virtual Machine parameters (RAM, etc) +set JVM="-Xmx1G -Xms512M" + +:: running minecraft +%SystemDrive% +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%