Pokechu22 / WorldDownloader

Makes a copy of parts of a multiplayer world for singleplayer use (EG, for backups or renders)
https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/2520465-world-downloader-mod-create-backups-of-your-builds
Other
572 stars 135 forks source link

build success but not show in-game gui #198

Closed kongkongye closed 3 years ago

kongkongye commented 3 years ago

the result file is mod-litemodwdl-4.1.1.0-SNAPSHOT-mc1.12.2.litemod

Pokechu22 commented 3 years ago

Did you install liteloader? Did you put the mod in the mods folder? On the main menu, is there a little tab that shows a chicken when you hover over it? If so, is WDL listed when you click it?

kongkongye commented 3 years ago

setupDecompWorkspace build result:

8:40:42: Executing tasks 'setupDecompWorkspace build'...

> Configure project :1.12.2-litemod
This mapping 'snapshot_20201115' was designed for MC 1.15.1! Use at your own peril.

> Task :1.12.2:deobfCompileDummyTask
> Task :1.12.2:deobfProvidedDummyTask
> Task :1.12.2:getVersionJson
> Task :1.12.2:downloadClient SKIPPED
> Task :1.12.2:extractDependencyATs SKIPPED
> Task :1.12.2:extractMcpData SKIPPED
> Task :1.12.2:extractMcpMappings SKIPPED
> Task :1.12.2:genCsvs
> Task :1.12.2:genSrgs SKIPPED
> Task :1.12.2:deobfMcSRG SKIPPED
> Task :1.12.2:decompileMc SKIPPED
> Task :1.12.2:fixMcSources
> Task :1.12.2:remapMcSources
> Task :1.12.2:recompileMc
> Task :1.12.2:extractNatives SKIPPED
> Task :1.12.2:getAssetIndex UP-TO-DATE
> Task :1.12.2:getAssets
> Task :1.12.2:makeStart
> Task :1.12.2:setupDecompWorkspace
> Task :1.12.2-litemod:extractMcpMappings SKIPPED
> Task :1.12.2-litemod:extractMcpData SKIPPED
> Task :1.12.2-litemod:genCsvs
> Task :1.12.2-litemod:liteloaderDeobfCompileDeobfDepTask0
> Task :1.12.2-litemod:liteloaderDeobfCompileDeobfDepTask1
> Task :1.12.2-litemod:liteloaderDeobfCompileRemapDepSourcesTask2
> Task :1.12.2-litemod:liteloaderDeobfCompileRemapDepSourcesTask3
> Task :1.12.2-litemod:deobfCompileDummyTask
> Task :1.12.2-litemod:deobfProvidedDummyTask
> Task :1.12.2-litemod:getVersionJson
> Task :1.12.2-litemod:downloadClient SKIPPED
> Task :1.12.2-litemod:extractDependencyATs SKIPPED
> Task :1.12.2-litemod:genSrgs SKIPPED
> Task :1.12.2-litemod:deobfMcSRG SKIPPED
> Task :1.12.2-litemod:decompileMc SKIPPED
> Task :1.12.2-litemod:fixMcSources
> Task :1.12.2-litemod:remapMcSources
> Task :1.12.2-litemod:recompileMc
> Task :1.12.2-litemod:extractNatives SKIPPED
> Task :1.12.2-litemod:getAssetIndex UP-TO-DATE
> Task :1.12.2-litemod:getAssets
> Task :1.12.2-litemod:makeStart
> Task :1.12.2-litemod:setupDecompWorkspace
> Task :1.12.2:processApiBasePatches NO-SOURCE
> Task :1.12.2:sourceApiJava UP-TO-DATE
> Task :1.12.2:compileApiJava
> Task :1.12.2:processApiResources NO-SOURCE
> Task :1.12.2:apiClasses

> Task :1.12.2:processBasePatches
Applying patch for net.minecraft.client.gui.GuiIngameMenu to E:\mc\wdl\WorldDownloader\1.12.2\src\main\base\net\minecraft\client\gui\GuiIngameMenu.java from E:\mc\wdl\WorldDownloader\1.12.2\src\main\base-patches\net.minecraft.client.gui.GuiIngameMenu.patch
Applying patch for net.minecraft.client.multiplayer.WorldClient to E:\mc\wdl\WorldDownloader\1.12.2\src\main\base\net\minecraft\client\multiplayer\WorldClient.java from E:\mc\wdl\WorldDownloader\1.12.2\src\main\base-patches\net.minecraft.client.multiplayer.WorldClient.patch
Applying patch for net.minecraft.client.network.NetHandlerPlayClient to E:\mc\wdl\WorldDownloader\1.12.2\src\main\base\net\minecraft\client\network\NetHandlerPlayClient.java from E:\mc\wdl\WorldDownloader\1.12.2\src\main\base-patches\net.minecraft.client.network.NetHandlerPlayClient.patch
Applying patch for net.minecraft.inventory.InventoryBasic to E:\mc\wdl\WorldDownloader\1.12.2\src\main\base\net\minecraft\inventory\InventoryBasic.java from E:\mc\wdl\WorldDownloader\1.12.2\src\main\base-patches\net.minecraft.inventory.InventoryBasic.patch
Applying patch for net.minecraft.crash.CrashReport to E:\mc\wdl\WorldDownloader\1.12.2\src\main\base\net\minecraft\crash\CrashReport.java from E:\mc\wdl\WorldDownloader\1.12.2\src\main\base-patches\net.minecraft.crash.CrashReport.patch
Applying patch for net.minecraft.client.ClientBrandRetriever to E:\mc\wdl\WorldDownloader\1.12.2\src\main\base\net\minecraft\client\ClientBrandRetriever.java from E:\mc\wdl\WorldDownloader\1.12.2\src\main\base-patches\net.minecraft.client.ClientBrandRetriever.patch
Applying patch for net.minecraft.client.resources.DefaultResourcePack to E:\mc\wdl\WorldDownloader\1.12.2\src\main\base\net\minecraft\client\resources\DefaultResourcePack.java from E:\mc\wdl\WorldDownloader\1.12.2\src\main\base-patches\net.minecraft.client.resources.DefaultResourcePack.patch

> Task :1.12.2:sourceMainJava UP-TO-DATE

> Task :1.12.2:compileJava
ע: ijЩ�����ļ�ʹ�û򸲸����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
ע: E:\mc\wdl\WorldDownloader\1.12.2\build\sources\main\java\net\minecraft\client\resources\DefaultResourcePack.javaʹ����δ�����򲻰�ȫ�IJ�����
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:unchecked ���±��롣

> Task :1.12.2:processResources UP-TO-DATE
> Task :1.12.2:classes
> Task :1.12.2:jar UP-TO-DATE
> Task :1.12.2:processTestBasePatches NO-SOURCE
> Task :1.12.2:sourceTestJava UP-TO-DATE
> Task :1.12.2:compileTestJava
> Task :1.12.2:processTestResources NO-SOURCE
> Task :1.12.2:testClasses
> Task :1.12.2:test
> Task :1.12.2:reobfJar
> Task :1.12.2:extractAnnotationsJar SKIPPED
> Task :1.12.2:assemble
> Task :1.12.2:check
> Task :1.12.2:build
> Task :1.12.2-litemod:sourceApiJava UP-TO-DATE

> Task :1.12.2-litemod:compileApiJava
ע: SpongePowered MIXIN Annotation Processor Version=0.7.4
ע: ObfuscationServiceMCP supports type: "searge"
ע: ObfuscationServiceMCP supports type: "notch"

> Task :1.12.2-litemod:processApiResources NO-SOURCE
> Task :1.12.2-litemod:apiClasses
> Task :1.12.2-litemod:sourceMainJava UP-TO-DATE

> Task :1.12.2-litemod:compileJava
ע: SpongePowered MIXIN Annotation Processor Version=0.7.4
ע: ObfuscationServiceMCP supports type: "searge"
ע: ObfuscationServiceMCP supports type: "notch"
ע: Loading searge mappings from C:\Users\fyx\.gradle\caches\minecraft\de\oceanlabs\mcp\mcp_custom-9a9c7b38066b06cd\20201115\1.12.2\srgs\mcp-srg.srg
ע: Loading notch mappings from C:\Users\fyx\.gradle\caches\minecraft\de\oceanlabs\mcp\mcp_custom-9a9c7b38066b06cd\20201115\1.12.2\srgs\mcp-notch.srg
ע: Writing refmap to E:\mc\wdl\WorldDownloader\1.12.2-litemod\build\tmp\compileJava\compileJava-refmap.json
ע: Writing refmap to E:\mc\wdl\WorldDownloader\1.12.2-litemod\build\tmp\compileJava\compileJava-refmap.json
ע: Writing searge output SRGs to E:\mc\wdl\WorldDownloader\1.12.2-litemod\build\tmp\compileJava\mcp-srg.srg
ע: Writing notch output SRGs to E:\mc\wdl\WorldDownloader\1.12.2-litemod\build\tmp\compileJava\mcp-notch.srg
ע: Writing refmap to E:\mc\wdl\WorldDownloader\1.12.2-litemod\build\tmp\compileJava\compileJava-refmap.json
ע: Writing refmap to E:\mc\wdl\WorldDownloader\1.12.2-litemod\build\tmp\compileJava\compileJava-refmap.json
ע: Writing searge output SRGs to E:\mc\wdl\WorldDownloader\1.12.2-litemod\build\tmp\compileJava\mcp-srg.srg
ע: Writing notch output SRGs to E:\mc\wdl\WorldDownloader\1.12.2-litemod\build\tmp\compileJava\mcp-notch.srg

> Task :1.12.2-litemod:processResources UP-TO-DATE
> Task :1.12.2-litemod:classes
> Task :1.12.2-litemod:litemod
> Task :1.12.2-litemod:jar
> Task :1.12.2-litemod:sourceTestJava UP-TO-DATE

> Task :1.12.2-litemod:compileTestJava
ע: SpongePowered MIXIN Annotation Processor Version=0.7.4
ע: ObfuscationServiceMCP supports type: "searge"
ע: ObfuscationServiceMCP supports type: "notch"

> Task :1.12.2-litemod:processTestResources NO-SOURCE
> Task :1.12.2-litemod:testClasses
> Task :1.12.2-litemod:test
> Task :1.12.2-litemod:reobfJar
> Task :1.12.2-litemod:extractAnnotationsJar
> Task :1.12.2-litemod:assemble
> Task :1.12.2-litemod:check
> Task :1.12.2-litemod:build

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 2m 5s
47 actionable tasks: 36 executed, 11 up-to-date
8:42:47: Tasks execution finished 'setupDecompWorkspace build'.

:1.12.2-litemod:build result:

8:45:27: Executing task ':1.12.2-litemod:build'...

> Configure project :1.12.2-litemod
This mapping 'snapshot_20201115' was designed for MC 1.15.1! Use at your own peril.

> Task :1.12.2-litemod:extractMcpMappings SKIPPED
> Task :1.12.2-litemod:extractMcpData SKIPPED
> Task :1.12.2-litemod:genCsvs UP-TO-DATE
> Task :1.12.2-litemod:liteloaderDeobfCompileDeobfDepTask0 SKIPPED
> Task :1.12.2-litemod:liteloaderDeobfCompileDeobfDepTask1 SKIPPED
> Task :1.12.2-litemod:liteloaderDeobfCompileRemapDepSourcesTask2 SKIPPED
> Task :1.12.2-litemod:liteloaderDeobfCompileRemapDepSourcesTask3 SKIPPED
> Task :1.12.2-litemod:deobfCompileDummyTask
> Task :1.12.2-litemod:deobfProvidedDummyTask
> Task :1.12.2-litemod:sourceApiJava UP-TO-DATE
> Task :1.12.2-litemod:compileApiJava UP-TO-DATE
> Task :1.12.2-litemod:processApiResources NO-SOURCE
> Task :1.12.2-litemod:apiClasses UP-TO-DATE
> Task :1.12.2-litemod:sourceMainJava UP-TO-DATE
> Task :1.12.2-litemod:compileJava UP-TO-DATE
> Task :1.12.2-litemod:processResources UP-TO-DATE
> Task :1.12.2-litemod:classes UP-TO-DATE
> Task :1.12.2-litemod:litemod
> Task :1.12.2-litemod:jar
> Task :1.12.2-litemod:sourceTestJava UP-TO-DATE
> Task :1.12.2-litemod:compileTestJava UP-TO-DATE
> Task :1.12.2-litemod:processTestResources NO-SOURCE
> Task :1.12.2-litemod:testClasses UP-TO-DATE
> Task :1.12.2-litemod:test UP-TO-DATE
> Task :1.12.2-litemod:genSrgs SKIPPED
> Task :1.12.2-litemod:reobfJar
> Task :1.12.2-litemod:extractAnnotationsJar
> Task :1.12.2-litemod:assemble
> Task :1.12.2-litemod:check UP-TO-DATE
> Task :1.12.2-litemod:build

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 5s
15 actionable tasks: 6 executed, 9 up-to-date
8:45:32: Task execution finished ':1.12.2-litemod:build'.

the result file is mod-litemodwdl-4.1.1.0-SNAPSHOT-mc1.12.2.litemod

5E3B87A7-B490-4ef6-BE03-5D4BC48C569D

when i use the file downloaded in the releases, the menu shows fine.

Pokechu22 commented 3 years ago

Hmm. I think it might have been caused by you building twice; I remember an old issue with MixinGradle where things break if the same file is built multiple times without changes. Try clean first and then :1.12.2-litemod:build.

(What happened to you does not match what I remember completely, though)

kongkongye commented 3 years ago

@Pokechu22

download version: Dingtalk_20201205094905

build version: Dingtalk_20201205094923

anything wrong?

kongkongye commented 3 years ago

sorry, i find the wrong file, i should use the result file in lib folder

Pokechu22 commented 3 years ago

Ah, that makes sense; you probably were using 1.12.2-litemod/build/unobfJar. That would cause problems; the litemod needs to use obfuscated names (blg instead of GuiIngameMenu) for things to work at runtime. The version in libs is the reobfuscated, working one.