本帖最后由 Glyceryl 于 2017-5-29 20:55 编辑
Mod,可以用Forge、MCP或LiteLoader来开发,但是——
你们看看下面这些,到底是怎么回事:
这些分别是在ForgeLiteLoader中输入“setupDecompWorkspace”的结果:
Forge:
FAILURE: Build failed with an exception.
* Where:
Build file 'F:\Forge Mod\SRC\1.7.10\forge-1.7.10-10.13.4.1558-1.7.10-src\build.gradle' line: 18
* What went wrong:
A problem occurred evaluating root project 'forge-1.7.10-10.13.4.1558-1.7.10-src'.
> java.io.EOFException: End of input at line 3812 column 7
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.985 secs

LiteLoader:
Download http://files.minecraftforge.net/ ... 70516.170901-34.jar
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'LiteLoaderExampleMod'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not download ForgeGradle.jar (net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT)
> Could not close resource 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/2.2-SNAPSHOT/ForgeGradle-2.2-20170516.170901-34.jar'.
> Premature end of Content-Length delimited message body (expected: 13962978; received: 110465
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 42.5 secs
--------------------------------------------------------------------------------------------------------------------------------------------------
在MCP中输入“Decomplite”的结果:
F:\MCP Mod\mcp928_1>decompile.bat
== MCP 9.27 (data: 9.28, client: 1.9.4, server: 1.9.4) ==
"scalac" is not found on the PATH. Scala files will not be recompiled
# found ff, ff patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle co
nfig, rg, ss
Looking in C:\Documents and Settings\Administrator\Application Data\.minecraft\v
ersions for mc installs... OK
Copying assets... OK
Parsing JSON file... OK
Looking for minecraft main jar... OK
> Checking libraries...
Copying library lwjgl-platform... Error copying library org.lwjgl.lwjgl:
lwjgl-platform:2.9.4-nightly-20150209
请按任意键继续. . .
你们说,我到底该怎么解决?
唉,想做个Mod都这么难。。。
Mod,可以用Forge、MCP或LiteLoader来开发,但是——
你们看看下面这些,到底是怎么回事:
这些分别是在ForgeLiteLoader中输入“setupDecompWorkspace”的结果:
Forge:
FAILURE: Build failed with an exception.
* Where:
Build file 'F:\Forge Mod\SRC\1.7.10\forge-1.7.10-10.13.4.1558-1.7.10-src\build.gradle' line: 18
* What went wrong:
A problem occurred evaluating root project 'forge-1.7.10-10.13.4.1558-1.7.10-src'.
> java.io.EOFException: End of input at line 3812 column 7
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.985 secs

LiteLoader:
Download http://files.minecraftforge.net/ ... 70516.170901-34.jar
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'LiteLoaderExampleMod'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not download ForgeGradle.jar (net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT)
> Could not close resource 'http://files.minecraftforge.net/maven/net/minecraftforge/gradle/ForgeGradle/2.2-SNAPSHOT/ForgeGradle-2.2-20170516.170901-34.jar'.
> Premature end of Content-Length delimited message body (expected: 13962978; received: 110465
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 42.5 secs
--------------------------------------------------------------------------------------------------------------------------------------------------
在MCP中输入“Decomplite”的结果:
F:\MCP Mod\mcp928_1>decompile.bat
== MCP 9.27 (data: 9.28, client: 1.9.4, server: 1.9.4) ==
"scalac" is not found on the PATH. Scala files will not be recompiled
# found ff, ff patches, srgs, name csvs, doc csvs, param csvs, astyle, astyle co
nfig, rg, ss
Looking in C:\Documents and Settings\Administrator\Application Data\.minecraft\v
ersions for mc installs... OK
Copying assets... OK
Parsing JSON file... OK
Looking for minecraft main jar... OK
> Checking libraries...
Copying library lwjgl-platform... Error copying library org.lwjgl.lwjgl:
lwjgl-platform:2.9.4-nightly-20150209
请按任意键继续. . .
你们说,我到底该怎么解决?
唉,想做个Mod都这么难。。。
也许目录不应该带有空格,添加-s参数后把错误信息发一下
你首先,需要一个VPN
第二,需要IDEA/Eclipse 把gradle工程导入
第三,写代码
第四,发布的时候gradlew build
就这样
第二,需要IDEA/Eclipse 把gradle工程导入
第三,写代码
第四,发布的时候gradlew build
就这样
第一张截图估计是因为你修改了 build.gradle 文件,正常的 gradle 应该不会这样的
第二张截图是因为网络不稳定,尝试使用VPN,或直接多试几次看看。这个问题没法解决,只能多试。
第三张截图,你需要先至少在MC官方启动器默认的数据存储位置(也就是 %APPDATA%/.minecraft )运行一次游戏
第二张截图是因为网络不稳定,尝试使用VPN,或直接多试几次看看。这个问题没法解决,只能多试。
第三张截图,你需要先至少在MC官方启动器默认的数据存储位置(也就是 %APPDATA%/.minecraft )运行一次游戏