Replay Mod (Fabric & Forge)

Replay Mod (Fabric & Forge)

787k Downloads

Cannot build from source.

LuCa-0 opened this issue ยท 1 comments

commented

Hi!
I was trying to build from source following instructions but it seems like the dependency "com.github.IrisShaders:Iris:1.18.x~v1.2.0" is not available anymore at JitPack.io.
I tried compiling iris v1.2.0 from source and replacing

  if (mcVersion >= 11600) {
        modCompileOnly("com.github.IrisShaders:Iris:1.18.x~v1.2.0") {
            transitive = false // we do not want to upgrade our libs, we only need this to compile our mixins
         }
    }

in build.gradle with

   if (mcVersion >= 11600) {
        compileOnly files('run/iris-mc1.18.1-1.2.0-dev.jar')
    }

but i get

ReplayMod/versions/1.16.1/build/preprocessed/main/java/com/replaymod/render/capturer/IrisODSFrameCapturer.java:11: error: package net.coderbot.iris does not exist
import net.coderbot.iris.Iris;

Is there a way to fix? Thanks

commented

I solved the dependency issue by changing the dependency to

  if (mcVersion >= 11600) {
        modCompileOnly("maven.modrinth:iris:LXMLAG5t") {
            transitive = false // we do not want to upgrade our libs, we only need this to compile our mixins
         }
    }

and adding the modrinth maven with

repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

But now i'm getting a different issue. It compiles fine but fails on the retromapping:

> Task :1.12.2:retromapReplacedMain FAILED
Execution optimizations have been disabled for task ':1.12.2:retromapReplacedMain' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/Users/luca/Documents/Work/OtherMods/ReplayMod/versions/1.12.2/build/retromapping/replacedMain.rangemap'. Reason: Task ':1.12.2:retromapReplacedMain' uses this output of task ':1.12.2:copySrg' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/Users/luca/Documents/Work/OtherMods/ReplayMod/versions/1.12.2/build/sources/main/java'. Reason: Task ':1.12.2:retromapReplacedMain' uses this output of task ':1.12.2:copySrg' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#implicit_dependency for more details about this problem.

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':1.12.2:retromapReplacedMain' (type 'ApplyS2STask').
  - In plugin 'net.minecraftforge.gradle.forge' type 'net.minecraftforge.gradle.tasks.ApplyS2STask' field 'exc' without corresponding getter has been annotated with @Optional, @InputFiles.

    Reason: Annotations on fields are only used if there's a corresponding getter for the field.

    Possible solutions:
      1. Add a getter for field 'exc'.
      2. Remove the annotations on 'exc'.

    Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
  - In plugin 'net.minecraftforge.gradle.forge' type 'net.minecraftforge.gradle.tasks.ApplyS2STask' field 'srg' without corresponding getter has been annotated with @InputFiles.

    Reason: Annotations on fields are only used if there's a corresponding getter for the field.

    Possible solutions:
      1. Add a getter for field 'srg'.
      2. Remove the annotations on 'srg'.

    Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
  - In plugin 'net.minecraftforge.gradle.forge' type 'net.minecraftforge.gradle.tasks.ApplyS2STask' property 'excs' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'net.minecraftforge.gradle.forge' type 'net.minecraftforge.gradle.tasks.ApplyS2STask' property 'out' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
  - In plugin 'net.minecraftforge.gradle.forge' type 'net.minecraftforge.gradle.tasks.ApplyS2STask' property 'srgs' is missing an input or output annotation.

    Reason: A property without annotation isn't considered during up-to-date checking.

    Possible solutions:
      1. Add an input or output annotation.
      2. Mark it as @Internal.

    Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_annotation for more details about this problem.