Jump to content

didnt work


rezaKing

Recommended Posts

dear . 

im cant fix my problem and im need help . so help me .

this is my build.gradle file : 
 

plugins {

    id "java"

    id "idea"

    id "org.jetbrains.kotlin.jvm"

    id "com.github.johnrengelman.shadow" version "6.1.0"

    id "net.minecraftforge.gradle"

    id "org.spongepowered.mixin"

    id "com.gorylenko.gradle-git-properties" version "2.4.0"

}

 

repositories {

    mavenLocal()

    mavenCentral()

    maven { url = "https://repo.spongepowered.org/repository/maven-public/" }

    maven { url = "https://jitpack.io/" }

    maven { url = "https://getfdp.today/repo/" }

    maven {

        url = "https://maven.pkg.github.com/jcefmaven/jcefmaven/"

        credentials {

            username = "jcefmavenbot"

            password = "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"

        }

    }

}

 

version = "3.0.0"

group = "org.unlegitmc.fdp"

archivesBaseName = "PedarClient"

 

sourceCompatibility = targetCompatibility = 1.8

compileJava.options.encoding = "UTF-8"

 

compileKotlin {

    kotlinOptions {

        jvmTarget = "1.8"

    }

}

 

minecraft {

    version = "1.8.9-11.15.1.2318-1.8.9"

    runDir = "run"

    mappings = "stable_22"

    makeObfSourceJar = false

    clientJvmArgs += ["-Dfml.coreMods.load=net.ccbluex.liquidbounce.injection.forge.TransformerLoader", "-Xmx1024m -Xms1024m", "-Ddev-mode"]

}

 

configurations {

    include

    implementation.extendsFrom(include)

}

 

dependencies {

    include("org.spongepowered:mixin:0.7.11-SNAPSHOT") {

        transitive = false

        exclude module: "guava"

        exclude module: "commons-io"

        exclude module: "gson"

        exclude module: "launchwrapper"

        exclude module: "log4j-core"

        exclude module: "slf4j-api"

    }

 

    annotationProcessor("org.spongepowered:mixin:0.7.11-SNAPSHOT")

 

    include "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

    include("me.friwi:jcefmaven:$jcef_version") {

        exclude module: "commons-compress" // minecraft have a old version of this library

        exclude module: "jogl-all" // we use lwjgl

        exclude module: "gluegen-rt" // this is the library for joal

    }

    include("com.github.unlegitmc:fuckpcl:2.0") {

        exclude module: "kotlin-stdlib-jdk8"

        exclude module: "jna-platform"

    }

    include("com.jagrosh:DiscordIPC:0.4")

    include("me.liuli:Elixir:1.2.1") {

        exclude module: "kotlin-stdlib"

        exclude module: "authlib"

    }

 

    include fileTree(include: ["*.jar"], dir: "libs")

}

 

shadowJar {

    archiveClassifier.set("")

    configurations = [project.configurations.include]

    duplicatesStrategy DuplicatesStrategy.EXCLUDE

 

    // Ultralight native files are going to be downloaded from our cloud

    exclude "native-binaries/**"

 

    exclude "LICENSE.txt"

 

    exclude "META-INF/maven/**"

    exclude "META-INF/versions/**"

}

 

processResources {

    inputs.property "version", project.version

    inputs.property "mcversion", project.minecraft.version

 

    filesMatching("mcmod.info") {

        expand "version": project.version, "mcversion": project.minecraft.version

    }

 

    rename "(.+_at.cfg)", "META-INF/\$1"

}

 

task moveResources {

    doLast {

        ant.move file: "${buildDir}/resources/main",

                todir: "${buildDir}/classes/java"

    }

}

 

moveResources.dependsOn(processResources)

classes.dependsOn(moveResources)

 

jar {

    manifest.attributes(

            "FMLCorePlugin": "net.ccbluex.liquidbounce.injection.forge.TransformerLoader",

            "FMLCorePluginContainsFMLMod": true,

            "ForceLoadAsMod": true,

            "MixinConfigs": "mixins.fdpclient.json",

            "ModSide": "CLIENT",

            "TweakClass": "org.spongepowered.asm.launch.MixinTweaker",

            "TweakOrder": "0",

            "FMLAT": "fdpclient_at.cfg",

    )

 

    enabled = false

}

 

mixin {

    disableRefMapWarning = true

    defaultObfuscationEnv searge

    add sourceSets.main, "mixins.fdpclient.refmap.json"

}

 

reobf {

    shadowJar {

        mappingType = "SEARGE"

    }

}

 

tasks.reobfJar.dependsOn(shadowJar)
 

and im got this error

C:\Users\RC\Desktop\editing area>gradle build

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\RC\Desktop\editing area\build.gradle' line: 6

* What went wrong:
Plugin [id: 'net.minecraftforge.gradle'] was not found in any of the following s
ources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this
source)

* 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

BUILD FAILED in 5s

C:\Users\RC\Desktop\editing area>
 

Link to comment
Share on other sites

also i test this in line 6 :
id "net.minecraftforge.gradle.forge"
and got this error :
 


FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\RC\Desktop\editing area\build.gradle' line: 6

* What went wrong:
An exception occurred applying plugin request [id: 'net.minecraftforge.gradle.fo
rge', artifact: 'com.github.asbyth:ForgeGradle:ddb1eb0']
> Failed to apply plugin 'net.minecraftforge.gradle.forge'.
   > Unable to obtain url (https://launchermeta.mojang.com/mc/game/version_manif
est.json) with etag!

* 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

BUILD FAILED in 40s

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • A friend found this code, but I don't know where. It seems to be very outdated, maybe from 1.12? and so uses TextureManager$loadTexture and TextureManager$deleteTexture which both don't seem to exist anymore. It also uses Minecraft.getMinecraft().mcDataDir.getCanonicalPath() which I replaced with the resource location of my texture .getPath()? Not sure if thats entirely correct. String textureName = "entitytest.png"; File textureFile = null; try { textureFile = new File(Minecraft.getMinecraft().mcDataDir.getCanonicalPath(), textureName); } catch (Exception ex) { } if (textureFile != null && textureFile.exists()) { ResourceLocation MODEL_TEXTURE = Resources.OTHER_TESTMODEL_CUSTOM; TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager(); texturemanager.deleteTexture(MODEL_TEXTURE); Object object = new ThreadDownloadImageData(textureFile, null, MODEL_TEXTURE, new ImageBufferDownload()); texturemanager.loadTexture(MODEL_TEXTURE, (ITextureObject)object); return true; } else { return false; }   Then I've been trying to go through the source code of the reload resource packs from minecraft, to see if I can "cache" some data and simply reload some textures and swap them out, but I can't seem to figure out where exactly its "loading" the texture files and such. Minecraft$reloadResourcePacks(bool) seems to be mainly controlling the loading screen, and using this.resourcePackRepository.reload(); which is PackRepository$reload(), but that function seems to be using this absolute confusion of a line List<String> list = this.selected.stream().map(Pack::getId).collect(ImmutableList.toImmutableList()); and then this.discoverAvailable() and this.rebuildSelected. The rebuild selected seemed promising, but it seems to just be going through each pack and doing this to them? pack.getDefaultPosition().insert(list, pack, Functions.identity(), false); e.g. putting them into a list of packs and returning that into this.selected? Where do the textures actually get baked/loaded/whatever? Any info on how Minecraft reloads resource packs or how the texture manager works would be appreciated!
    • This might be a long shot , but do you remember how you fixed that?
    • Yeah, I'll start with the ones I added last night.  Wasn't crashing until today and wasn't crashing at all yesterday (+past few days since removing Cupboard), so deductive reasoning says it's likeliest to be one of the new ones.  A few horse armor mods and a corn-based add-on to Farmer's Delight, the latter which I hope to keep - I could do without the horse armor mods if necessary.  Let me try a few things and we'll see. 
    • Add crash-reports with sites like https://mclo.gs/ Add this mod: https://www.curseforge.com/minecraft/mc-mods/packet-fixer/files/5416165
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.