MInecraft Java运行参数忽略资产

时间:2019-01-26 12:25:11

标签: java minecraft minecraft-forge

因为我已经修改了Minecraft服务器,所以我决定编写自己的启动程序,在Minecraft之外一切正常,这意味着Minecraft本身已打开,但游戏无法加载,并说gamelog忽略了--assetsIndex < / p>

[13:14:18] [main/INFO] [STDOUT]: [net.minecraft.client.main.Main:main:55]: Completely ignored arguments: [Forge, --verison, 1.12.2, --assetsIndex, 1.12]

完整的控制台日志:https://pastebin.com/7gwzqDmZ

以及整个运行代码

> java -client -Xmx2G -Xmn128M 
> -Djava.library.path=C:\Users\Admin\AppData\Roaming\nanotech\minecraft\bin\natives
> -cp "C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\minecraftforge\forge\1.12.2-14.23.5.2808\forge-1.12.2-14.23.5.2808.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\minecraft\launchwrapper\1.12\launchwrapper-1.12.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\ow2\asm\asm-all\5.2\asm-all-5.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\jline\jline\3.5.1\jline-3.5.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.11-1.1.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-compiler\2.11.1\scala-compiler-2.11.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2\scala-continuations-library_2.11-1.0.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2\scala-continuations-plugin_2.11.1-1.0.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-library\2.11.1\scala-library-2.11.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-parser-combinators_2.11\1.0.1\scala-parser-combinators_2.11-1.0.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-reflect\2.11.1\scala-reflect-2.11.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-swing_2.11\1.0.1\scala-swing_2.11-1.0.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-xml_2.11\1.0.2\scala-xml_2.11-1.0.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\java3d\vecmath\1.5.2\vecmath-1.5.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\maven\maven-artifact\3.5.3\maven-artifact-3.5.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\mojang\patchy\1.1\patchy-1.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\google\guava\guava\21.0\guava-21.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\mojang\realms\1.10.22\realms-1.10.22.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\bin\1.12.2.jar"
> net.minecraft.launchwrapper.Launch 
> --tweakClass net.minecraftforge.fml.common.launcher.FMLTweaker 
> --username examplenick 
> --verison 1.12.2 
> --gameDir C:\Users\Admin\AppData\Roaming\nanotech\minecraft 
> --assetsDir C:\Users\Admin\AppData\Roaming\nanotech\minecraft\assets 
> --assetsIndex 1.12 
> --accessToken 
> --versionType Forge

有人对此问题有解决方案吗?

1 个答案:

答案 0 :(得分:2)

所以这里的问题是您有2个错别字。将verison 1.12.2更改为version 1.12.2,将assetsIndex 1.12更改为assetIndex 1.12

所以最终结果将是:

java -client -Xmx2G -Xmn128M 
-Djava.library.path=C:\Users\Admin\AppData\Roaming\nanotech\minecraft\bin\natives
-cp "C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\minecraftforge\forge\1.12.2-14.23.5.2808\forge-1.12.2-14.23.5.2808.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\minecraft\launchwrapper\1.12\launchwrapper-1.12.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\ow2\asm\asm-all\5.2\asm-all-5.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\jline\jline\3.5.1\jline-3.5.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.11-1.1.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-compiler\2.11.1\scala-compiler-2.11.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\plugins\scala-continuations-library_2.11\1.0.2\scala-continuations-library_2.11-1.0.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\plugins\scala-continuations-plugin_2.11.1\1.0.2\scala-continuations-plugin_2.11.1-1.0.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-library\2.11.1\scala-library-2.11.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-parser-combinators_2.11\1.0.1\scala-parser-combinators_2.11-1.0.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-reflect\2.11.1\scala-reflect-2.11.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-swing_2.11\1.0.1\scala-swing_2.11-1.0.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\scala-lang\scala-xml_2.11\1.0.2\scala-xml_2.11-1.0.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\java3d\vecmath\1.5.2\vecmath-1.5.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\sf\trove4j\trove4j\3.0.3\trove4j-3.0.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\maven\maven-artifact\3.5.3\maven-artifact-3.5.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\mojang\patchy\1.1\patchy-1.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\google\guava\guava\21.0\guava-21.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\mojang\realms\1.10.22\realms-1.10.22.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar;C:\Users\Admin\AppData\Roaming\nanotech\minecraft\bin\1.12.2.jar"
net.minecraft.launchwrapper.Launch 
--tweakClass net.minecraftforge.fml.common.launcher.FMLTweaker 
--username examplenick 
--version 1.12.2 
--gameDir C:\Users\Admin\AppData\Roaming\nanotech\minecraft 
--assetsDir C:\Users\Admin\AppData\Roaming\nanotech\minecraft\assets 
--assetIndex 1.12 
--accessToken 
--versionType Forge