LtxProgrammer / Changed-Minecraft-Mod

A Changed experience in the world of Minecraft.
MIT License
26 stars 32 forks source link

The changed 0.14 gradlew Failed to compile to a java file. #883

Closed DEMTAG closed 2 months ago

DEMTAG commented 2 months ago
C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master>gradlew build
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

> Configure project :
MixinGradle is skipping eclipse integration, extension not found
Java: 17.0.6 JVM: 17.0.6+9-LTS-190(Oracle Corporation) Arch: amd64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.
[13:22:28] [main/INFO]: Writing debug log file accesstransform.log
[13:22:28] [main/INFO]: Access Transformer processor running version 8.0.7+8.0.7+master.43473d43
[13:22:28] [main/INFO]: Command line arguments [--inJar, C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\fg_cache\net\minecraftforge\forge\1.18.2-40.2.0\forge-1.18.2-40.2.0-injected.jar, --outJar, C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\fg_cache\net\minecraftforge\forge\1.18.2-40.2.0_mapped_official_1.18.2\forge-1.18.2-40.2.0_mapped_official_1.18.2.jar, --logFile, accesstransform.log, --atFile, C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\src\main\resources\META-INF\accesstransformer.cfg, --atFile, C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\_atJar_4\parent_at.cfg]
[13:22:28] [main/INFO]: Reading from C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\fg_cache\net\minecraftforge\forge\1.18.2-40.2.0\forge-1.18.2-40.2.0-injected.jar
[13:22:28] [main/INFO]: Writing to C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\fg_cache\net\minecraftforge\forge\1.18.2-40.2.0_mapped_official_1.18.2\forge-1.18.2-40.2.0_mapped_official_1.18.2.jar
[13:22:28] [main/INFO]: Transformer file C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\src\main\resources\META-INF\accesstransformer.cfg
[13:22:28] [main/INFO]: Transformer file C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\_atJar_4\parent_at.cfg
[13:22:28] [main/WARN]: Found existing output jar C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\fg_cache\net\minecraftforge\forge\1.18.2-40.2.0_mapped_official_1.18.2\forge-1.18.2-40.2.0_mapped_official_1.18.2.jar, overwriting
[13:22:37] [main/INFO]: JAR transformation complete C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\fg_cache\net\minecraftforge\forge\1.18.2-40.2.0_mapped_official_1.18.2\forge-1.18.2-40.2.0_mapped_official_1.18.2.jar
Creating SRG -> MCP TSRG

> Task :compileJava
Note: SpongePowered MIXIN Annotation Processor Version=0.8.5 (MixinGradle Version=0.7)
Note: Supported obfuscation types: ObfuscationServiceMCP supports [notch] ObfuscationServiceFG3 supports [searge]
Note: Loading searge mappings from C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\createMcpToSrg\output.tsrg
Note: Writing refmap to C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\tmp\compileJava\compileJava-refmap.json
Note: Writing refmap to C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\tmp\compileJava\compileJava-refmap.json
Note: Writing searge composite mappings to C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\tmp\compileJava\compileJava-mappings.tsrg
Note: Writing refmap to C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\tmp\compileJava\compileJava-refmap.json
Note: Writing refmap to C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\tmp\compileJava\compileJava-refmap.json
Note: Writing searge composite mappings to C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\build\tmp\compileJava\compileJava-mappings.tsrg
C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\src\main\java\net\ltxprogrammer\changed\client\renderer\model\LatexStigerModel.java:57: error: incompatible types: ModelPart cannot be converted to List<ModelPart>
                        Torso, LeftArm3, RightArm3, LeftArm2, RightArm2, LeftArm, RightArm,
                                                                                  ^
C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\src\main\java\net\ltxprogrammer\changed\extension\jei\InfuserRecipeCategory.java:63: warning: [removal] getRecipeClass() in IRecipeCategory has been deprecated and marked for removal
    public Class<? extends InfuserRecipe> getRecipeClass() {
                                          ^
  where T is a type-variable:
    T extends Object declared in interface IRecipeCategory
C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\src\main\java\net\ltxprogrammer\changed\extension\jei\InfuserRecipeCategory.java:58: warning: [removal] getUid() in IRecipeCategory has been deprecated and marked for removal
    public ResourceLocation getUid() {
                            ^
C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\src\main\java\net\ltxprogrammer\changed\extension\jei\PurifierRecipeCategory.java:62: warning: [removal] getRecipeClass() in IRecipeCategory has been deprecated and marked for removal
    public Class<? extends PurifierRecipe> getRecipeClass() {
                                           ^
  where T is a type-variable:
    T extends Object declared in interface IRecipeCategory
C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\src\main\java\net\ltxprogrammer\changed\extension\jei\PurifierRecipeCategory.java:57: warning: [removal] getUid() in IRecipeCategory has been deprecated and marked for removal
    public ResourceLocation getUid() {
                            ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
4 warnings

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 52s
4 actionable tasks: 4 executed

I checked what was the problem. And it seem some where in C:\Users\Maison\Downloads\Changed-Minecraft-Mod-master\Changed-Minecraft-Mod-master\src\main\java\net\ltxprogrammer\changed\client\renderer\model\LatexStigerModel.java at the line 57. I looked at it and it look like that there something in animator = HumanoidAnimator.of(this).hipOffset(-1.5f) .addPreset(AnimatorPresets.beeLike( Head, Head.getChild("LeftEar"), Head.getChild("RightEar"), Torso, LeftArm3, RightArm3, LeftArm2, RightArm2, LeftArm, RightArm, Tail, List.of(tailPrimary, tailSecondary), LeftLeg, leftLowerLeg, leftFoot, leftFoot.getChild("LeftPad"), RightLeg, rightLowerLeg, rightFoot, rightFoot.getChild("RightPad"))); that is the problem. Well in my perspective the error is the "beeLike" since the the stiger dont have "wings" or it missing List.of() in it. But i could be entirely wrong and it could be just a development step. Do the file have some kind of "stigerLike" or "SpiderLike"?