- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我一直在尝试使用 MCP 将 Minecraft 源代码反编译到 eclipse 工作区。我正在使用 mcp940 反编译 Minecraft 1.12。当我运行 BATCH 文件 decompile.bat
时,它给我一大堆错误。我正在关注这个问题底部链接的视频教程,主持人完全跳过了这一步。 eclipse 工作区仍然加载并包含所有代码,但所述代码充满错误。当我尝试运行具有 main 方法的类 Start
时,收到以下错误消息:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
视频教程链接到另一个关于修复领域 jar 版本的视频教程(也在下面链接)。我解决了这个问题,但似乎那个问题只是众多问题中的一个。修复这部分后,我尝试运行它,但仍然收到相同的错误消息。
这是控制台的输出:
== MCP 9.40 (data: 9.40, client: 1.12, server: 1.12) ==
> Searching for javac.exe in C:\Program Files
"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 config, rg, ss
Looking in C:\Users\Calvin\AppData\Roaming\.minecraft\versions for mc installs... OK
Copying assets... OK
Parsing JSON file... OK
Looking for minecraft main jar... Not found
Copying minecraft main jar... OK
> Checking libraries...
Copying library jinput... OK
Copying library icu4j-core-mojang... OK
Copying library httpcore... OK
Copying library log4j-api... OK
Copying library commons-lang3... OK
Copying library jna... OK
Copying library lwjgl-platform-natives-windows... OK
Copying library libraryjavasound... OK
Copying library jopt-simple... OK
Copying library text2speech... OK
Copying library guava... OK
Copying library oshi-core... OK
Copying library httpclient... OK
Copying library commons-compress... OK
Copying library text2speech-natives-windows... OK
Copying library fastutil... OK
Copying library platform... OK
Copying library codecjorbis... OK
Copying library soundsystem... OK
Copying library librarylwjglopenal... OK
Copying library lwjgl_util... OK
Copying library commons-codec... OK
Copying library jutils... OK
Copying library patchy... OK
Copying library commons-logging... OK
Copying library lwjgl... OK
Copying library commons-io... OK
Copying library realms... OK
Copying library authlib... OK
Copying library gson... OK
Copying library jinput-platform-natives-windows... OK
Copying library codecwav... OK
Copying library log4j-core... OK
Copying library netty-all... OK
> Checking Natives...
Extracting native lwjgl.dll... OK
Extracting native OpenAL32.dll... OK
Extracting native jinput-dx8_64.dll... OK
Extracting native SAPIWrapper_x86.dll... OK
Extracting native jinput-wintab.dll... OK
Extracting native jinput-dx8.dll... OK
Extracting native jinput-raw.dll... OK
Extracting native OpenAL64.dll... OK
Extracting native SAPIWrapper_x64.dll... OK
Extracting native jinput-raw_64.dll... OK
Extracting native lwjgl64.dll... OK
> Copying jsr305-3.0.1.jar to Libraries
> Copying jsr305-3.0.1-sources.jar to Libraries
== Decompiling client using fernflower ==
> Creating SRGs
> Applying SpecialSource
> Applying MCInjector
> Creating renamed srg
> Filtering classes
> Decompiling
> Unpacking jar
> Copying sources
> Generating package-info files
> Applying fernflower fixes
> Applying patches
'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1
== ERRORS FOUND ==
1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\advancements\PlayerAdvance#'
==================
'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1
== ERRORS FOUND ==
1 out of 2 hunks FAILED -- saving rejects to file 'net\minecraft\client\renderer\entity\RenderManager#'
==================
'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1
== ERRORS FOUND ==
1 out of 2 hunks FAILED -- saving rejects to file 'net\minecraft\util\math\Cartesian.jav#'
==================
'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1
== ERRORS FOUND ==
1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\client\util\SearchTree.ja#'
==================
'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1
== ERRORS FOUND ==
1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\client\renderer\block\statemap\StateMap.java#'
==================
'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1
== ERRORS FOUND ==
1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\client\gui\GuiSnooper.ja#'
==================
'runtime\bin\applydiff.exe -p1 -u -i ..\..\temp\temp.patch -d src\minecraft' failed : 1
== ERRORS FOUND ==
2 out of 2 hunks ignored -- saving rejects to file 'net\minecraft\block\state\pattern\BlockStateMat#'
==================
> Cleaning comments
- Done in 2605.28 seconds
== Reformating client ==
> Cleaning sources
> Replacing OpenGL constants
> Reformating sources
- Done in 118.96 seconds
== Updating client ==
> Adding javadoc
> Renaming sources
- Done in 126.23 seconds
!! Missing server jar file. Aborting !!
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files\Java\jdk-10.0.2\bin\javac" -Xlint:-options -deprecation -g -source 1.8 -target 1.8 -classpath "jars\versions\1.12\1.12.jar;lib;lib\*;jars\libraries\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;jars\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;jars\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;jars\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;jars\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar;jars\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar;jars\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar;jars\libraries\org\lwjgl\lwjgl\lwjgl-platform\2.9.4-nightly-20150209\lwjgl-platform-2.9.4-nightly-20150209-natives-windows.jar;jars\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;jars\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar;jars\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3.jar;jars\libraries\com\google\guava\guava\21.0\guava-21.0.jar;jars\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar;jars\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;jars\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;jars\libraries\com\mojang\text2speech\1.10.3\text2speech-1.10.3-natives-windows.jar;jars\libraries\it\unimi\dsi\fastutil\7.1.0\fastutil-7.1.0.jar;jars\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;jars\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;jars\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;jars\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;jars\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.4-nightly-20150209\lwjgl_util-2.9.4-nightly-20150209.jar;jars\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;jars\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;jars\libraries\com\mojang\patchy\1.1\patchy-1.1.jar;jars\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;jars\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar;jars\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar;jars\libraries\com\mojang\realms\1.10.17\realms-1.10.17.jar;jars\libraries\com\mojang\authlib\1.5.25\authlib-1.5.25.jar;jars\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar;jars\libraries\net\java\jinput\jinput-platform\2.0.5\jinput-platform-2.0.5-natives-windows.jar;jars\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;jars\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar;jars\libraries\io\netty\netty-all\4.1.9.Final\netty-all-4.1.9.Final.jar" -sourcepath src\minecraft -d bin\minecraft @temp\java_src_client.txt' failed : 1
== ERRORS FOUND in JAVA CODE ==
this.block.addCollisionBoxToList(this, worldIn, pos, p_185908_3_, p_185908_4_, p_185908_5_, p_185908_6_);
^
src\minecraft\net\minecraft\block\state\pattern\BlockStateMatcher.java:64: error: incompatible types: inference variable T#1 has incompatible bounds
return predicate.apply(blockState.getValue(property));
^
equality constraints: T#2
upper bounds: CAP#1,Comparable<T#1>
where T#1,T#2 are type-variables:
T#1 extends Comparable<T#1> declared in method <T#1>getValue(IProperty<T#1>)
T#2 extends Comparable<T#2> declared in method <T#2>matches(IBlockState,IProperty<T#2>,Predicate<?>)
where CAP#1 is a fresh type-variable:
CAP#1 extends Object from capture of ?
src\minecraft\net\minecraft\client\renderer\entity\RenderManager.java:266: error: incompatible types: bad type in conditional expression
return renderplayer != null ? renderplayer : this.playerRenderer;
^
RenderPlayer cannot be converted to Render<T>
where T is a type-variable:
T extends Entity declared in method <T>getEntityRenderObject(Entity)
src\minecraft\net\minecraft\client\renderer\entity\RenderManager.java:266: error: incompatible types: bad type in conditional expression
return renderplayer != null ? renderplayer : this.playerRenderer;
^
RenderPlayer cannot be converted to Render<T>
where T is a type-variable:
T extends Entity declared in method <T>getEntityRenderObject(Entity)
src\minecraft\net\minecraft\client\gui\GuiIngame.java:1304: error: incompatible types: Object cannot be converted to IChatListener
for (IChatListener ichatlistener : (List)this.field_191743_I.get(p_191742_1_))
^
src\minecraft\net\minecraft\client\util\SearchTree.java:54: error: cannot find symbol
this.field_194045_b.func_194057_a(p_194039_1_, p_194039_2_.toString().toLowerCase(Locale.ROOT));
^
symbol: variable p_194039_1_
location: class SearchTree<T>
where T is a type-variable:
T extends Object declared in class SearchTree
src\minecraft\net\minecraft\client\util\SearchTree.java:58: error: cannot find symbol
this.field_194044_a.func_194057_a(p_194041_1_, p_194041_2_.toLowerCase(Locale.ROOT));
^
symbol: variable p_194041_1_
location: class SearchTree<T>
where T is a type-variable:
T extends Object declared in class SearchTree
src\minecraft\net\minecraft\client\util\SearchTree.java:58: error: cannot find symbol
this.field_194044_a.func_194057_a(p_194041_1_, p_194041_2_.toLowerCase(Locale.ROOT));
^
symbol: method toLowerCase(Locale)
location: variable p_194041_2_ of type Object
src\minecraft\net\minecraft\client\gui\GuiSnooper.java:51: error: incompatible types: Object cannot be converted to Entry<String,String>
for (Entry<String, String> entry : (new TreeMap(this.mc.getPlayerUsageSnooper().getCurrentStats())).entrySet())
^
src\minecraft\net\minecraft\client\gui\GuiSnooper.java:59: error: incompatible types: Object cannot be converted to Entry<String,String>
for (Entry<String, String> entry1 : (new TreeMap(this.mc.getIntegratedServer().getPlayerUsageSnooper().getCurrentStats())).entrySet())
^
src\minecraft\net\minecraft\client\gui\recipebook\GuiButtonRecipeTab.java:33: error: incompatible types: Object cannot be converted to RecipeList
for (RecipeList recipelist : (List)RecipeBookClient.field_194086_e.get(this.field_193921_u))
^
src\minecraft\net\minecraft\client\renderer\block\model\ModelBakery.java:492: error: incompatible types: Object cannot be converted to ModelResourceLocation
for (ModelResourceLocation modelresourcelocation1 : (Collection)entry.getValue())
^
src\minecraft\net\minecraft\client\renderer\block\statemap\StateMap.java:57: error: incompatible types: Comparable cannot be converted to T
return p_187490_1_.getName((Comparable)p_187490_2_.remove(this.name));
^
where T is a type-variable:
T extends Comparable<T> declared in method <T>removeName(IProperty<T>,Map<IProperty<?>,Comparable<?>>)
src\minecraft\net\minecraft\client\resources\FolderResourcePack.java:83: error: reference to listFiles is ambiguous
for (File file2 : file1.listFiles(DirectoryFileFilter.DIRECTORY))
^
both method listFiles(FilenameFilter) in File and method listFiles(FileFilter) in File match
src\minecraft\net\minecraft\util\math\Cartesian.java:57: error: incompatible types: inference variable T#1 has incompatible bounds
return Arrays.asList(p_apply_1_);
^
equality constraints: T#2
lower bounds: Object
where T#1,T#2 are type-variables:
T#1 extends Object declared in method <T#1>asList(T#1...)
T#2 extends Object declared in class GetList
15 errors
100 warnings
==================
Initial client recompile failed, correct source then run updatemd5
Press any key to continue . . .
注意:我不得不删除一堆折旧警告以适应这一点。
这应该只是在 Debug模式下实时运行 Minecraft。
视频教程:https://www.youtube.com/watch?v=NoZ8AvQ
Realms Jar 修复教程:https://youtu.be/17FQl1xpOF0
最佳答案
我解决了这个问题,我会把它放在这里以供分享我的问题的任何人使用。我使用的是 JDK 10,这导致了很多版本错误。我下载了 JDK 和 JRE 8,调整了我的系统变量来解决它,删除了失败的 MCP eclipse 工作区,重新下载了 MCP 并再次使用 Java 8 运行了 decompile.bat。它运行完美。
这是我使用的 Java 8 版本的下载链接: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
关于minecraft - 尝试使用 MCP 反编译 Minecraft 1.12 时出现巨大错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53973050/
我已经使用 vue-cli 两个星期了,直到今天一切正常。我在本地建立这个项目。 https://drive.google.com/open?id=0BwGw1zyyKjW7S3RYWXRaX24tQ
您好,我正在尝试使用 python 库 pytesseract 从图像中提取文本。请找到代码: from PIL import Image from pytesseract import image_
我的错误 /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference
我已经训练了一个模型,我正在尝试使用 predict函数但它返回以下错误。 Error in contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]])
根据Microsoft DataConnectors的信息我想通过 this ODBC driver 创建一个从 PowerBi 到 PostgreSQL 的连接器使用直接查询。我重用了 Micros
我已经为 SoundManagement 创建了一个包,其中有一个扩展 MediaPlayer 的类。我希望全局控制这个变量。这是我的代码: package soundmanagement; impo
我在Heroku上部署了一个应用程序。我正在使用免费服务。 我经常收到以下错误消息。 PG::Error: ERROR: out of memory 如果刷新浏览器,就可以了。但是随后,它又随机发生
我正在运行 LAMP 服务器,这个 .htaccess 给我一个 500 错误。其作用是过滤关键字并重定向到相应的域名。 Options +FollowSymLinks RewriteEngine
我有两个驱动器 A 和 B。使用 python 脚本,我在“A”驱动器中创建一些文件,并运行 powerscript,该脚本以 1 秒的间隔将驱动器 A 中的所有文件复制到驱动器 B。 我在 powe
下面的函数一直返回这个错误信息。我认为可能是 double_precision 字段类型导致了这种情况,我尝试使用 CAST,但要么不是这样,要么我没有做对...帮助? 这是错误: ERROR: i
这个问题已经有答案了: Syntax error due to using a reserved word as a table or column name in MySQL (1 个回答) 已关闭
我的数据库有这个小问题。 我创建了一个表“articoli”,其中包含商品的品牌、型号和价格。 每篇文章都由一个 id (ID_ARTICOLO)` 定义,它是一个自动递增字段。 好吧,现在当我尝试插
我是新来的。我目前正在 DeVry 在线学习中级 C++ 编程。我们正在使用 C++ Primer Plus 这本书,到目前为止我一直做得很好。我的老师最近向我们扔了一个曲线球。我目前的任务是这样的:
这个问题在这里已经有了答案: What is an undefined reference/unresolved external symbol error and how do I fix it?
我的网站中有一段代码有问题;此错误仅发生在 Internet Explorer 7 中。 我没有在这里发布我所有的 HTML/CSS 标记,而是发布了网站的一个版本 here . 如您所见,我在列中有
如果尝试在 USB 设备上构建 node.js 应用程序时在我的树莓派上使用 npm 时遇到一些问题。 package.json 看起来像这样: { "name" : "node-todo",
在 Python 中,您有 None单例,在某些情况下表现得很奇怪: >>> a = None >>> type(a) >>> isinstance(a,None) Traceback (most
这是我的 build.gradle (Module:app) 文件: apply plugin: 'com.android.application' android { compileSdkV
我是 android 的新手,我的项目刚才编译和运行正常,但在我尝试实现抽屉导航后,它给了我这个错误 FAILURE: Build failed with an exception. What wen
谁能解释一下?我想我正在做一些非常愚蠢的事情,并且急切地等待着启蒙。 我得到这个输出: phpversion() == 7.2.25-1+0~20191128.32+debian8~1.gbp108
我是一名优秀的程序员,十分优秀!