Jump to content

1.10.2 shading


OxLemonxO

Recommended Posts

Shading does not work, it returns

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Lemon\Desktop\Project\build.gradle' line: 25

* What went wrong:
A problem occurred evaluating root project 'Project'.
> Could not find method extraLine() for arguments [PK: net/dv8tion me/oxlemonxo] on object of type net.minecraftforge.gradle.user.ReobfTaskFactory$ReobfTaskWrapper.

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

BUILD FAILED

Total time: 7.925 secs

My build.gradle:

Spoiler

buildscript {
    repositories {
        jcenter()
        maven { url = "http://files.minecraftforge.net/maven" }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
    }
}
apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the nessasary things for Forge to be setup.


version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"

sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
compileJava {
    sourceCompatibility = targetCompatibility = "1.8"
}

reobf {
    jar {
        extraLine "PK: net/dv8tion me/oxlemonxo"
    }
}

minecraft {
    version = "1.10.2-12.18.3.2316"
    runDir = "run"
    
    // the mappings can be changed at any time, and must be in the following format.
    // snapshot_YYYYMMDD   snapshot are built nightly.
    // stable_#            stables are built at the discretion of the MCP team.
    // Use non-default mappings at your own risk. they may not allways work.
    // simply re-run your setup task after changing the mappings to update your workspace.
    mappings = "snapshot_20161111"
    // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
	}

repositories {
	jcenter()
}

configurations {
    shade
    compile.extendsFrom(shade)
}

dependencies {
    // you may put jars on which you depend on in ./libs
    // or you may define them like so..
    //compile "some.group:artifact:version:classifier"
    //compile "some.group:artifact:version"
    shade'net.dv8tion:JDA:3.1.1_214'
      
    // real examples
    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

    // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
    //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'

    // the deobf configurations:  'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
    // except that these dependencies get remapped to your current MCP mappings
    //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
    //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'

    // for more info...
    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
    // http://www.gradle.org/docs/current/userguide/dependency_management.html

}

processResources
{
    // this will ensure that this task is redone when the versions change.
    inputs.property "version", project.version
    inputs.property "mcversion", project.minecraft.version

    // replace stuff in mcmod.info, nothing else
    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
                
        // replace version and mcversion
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }
        
    // copy everything else, thats not the mcmod.info
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
	
jar {
    configurations.shade.each { dep ->
        from(project.zipTree(dep)){
            exclude 'META-INF', 'META-INF/**'
        }
    }
  }
}

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • i actually wanted to post a video and will do so if possible, but, as it is now, it doesn't seem like i can, so i'll describe it.  the issue is: whenever i place water, it doesn't flow properly; it either stays still or, even if it flows, it doesn't go all the way, and it seems to wave up and down. when the water is inside a cave, or generated by a structure or something similar, it flows but keeps spreading itself for no reason. it also happens with lava. i do have some videos of it recorded and wanted to put in here a youtube video, but i don't know whether i can or cannot do it. this one aside, the rendering of things is also weird: i can place blocks normally and without lag, my game actually doesn't lag at all, but blocks are invisible when placed until i get really close to them and when something like a door is interacted with, although it opens, it takes a sec to update, becoming invisible and then going to the open or closed state. i'm playing on 1.20.1 with 200+ mods, with a lot of them being addons for other mods, such as create, apotheosis, jei addons and such. i'm running minecraft on graalvm's java 17 with minimal arg changes, if any, on forge 47.3.0.  since it doesn't crash my game, there's no crash report to post, it's only a minor gameplay thing. i wanted to at least post my modlist, but it seems like the website doesn't allow links?? i was gonna post a pastebin url
    • The server player instance isn't passed to the OnDatapackSyncEvent. It's impossible to sync with the client side using this command. package net.minecraft.server.players; ... public abstract class PlayerList { ... servergamepacketlistenerimpl.send(new ClientboundSetCarriedItemPacket(p_11263_.getInventory().selected)); net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.OnDatapackSyncEvent(this, null)); servergamepacketlistenerimpl.send(new ClientboundUpdateRecipesPacket(this.server.getRecipeManager().getOrderedRecipes())); this.sendPlayerPermissionLevel(p_11263_); previous version passed player correctly   servergamepacketlistenerimpl.send(new ClientboundSetCarriedItemPacket(p_11263_.getInventory().selected)); net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.OnDatapackSyncEvent(this, p_11263_)); servergamepacketlistenerimpl.send(new ClientboundUpdateRecipesPacket(this.server.getRecipeManager().getRecipes()));  
    • Also delete the curios-server.toml file If this is still not working, check the first lines of the crash-report - maybe some more toml files are broken
    • I have tried deleting those files, it didn't work. I also went through all the mods myself and it doesn't work. Now that I deleted the mod "Ars Nouvea" I can now create a single player world, but I still crash when trying to load into my existing world. This is the new crash report https://gist.github.com/Kiwimix/8f2d62a40539aacf1a46f0d80ad9fc4f. This time it says the Curios_Sever.toml . I assume my something is wrong with my files or my world just randomly got corrupted. I am still trying anything I can right now.
    • I have been trying to play an older modpack (Stoneblock 1) but the whenever I try to play the game it instantly crashes with exit code 1.  I have tried adding more ram and changing my jdk version to the one that I used to play the pack originally (~2 years ago) as well as repairing and reinstalling the pack in forge.  This error is occurring for all versions of forge 14.23.5 available in the launcher. ********* Solved: I downloaded the java 8 1.8 jdk and ran using that whereas I had been using 15 and 16.  it appears that my 1.8 instance had removed itself at some point or another.  
  • Topics

×
×
  • Create New...

Important Information

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