Code Monkey home page Code Monkey logo

Comments (13)

lukflug avatar lukflug commented on May 24, 2024

what minecraft and forge version are you using? are you running this through the IDE or with the launcher? did you reobfuscate the jar?

from panelstudio.

faithful112 avatar faithful112 commented on May 24, 2024

i used launcher to launch.
1.12.2, forge - 14.23.5.2854, jaba - amazon corretto 1.8.0_282.
reobfuscate? no I just compiled my project in intellij and used the jar file with the postmark "all"

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

can you send me your build.gradle file

from panelstudio.

faithful112 avatar faithful112 commented on May 24, 2024

github dont support that file type

from panelstudio.

faithful112 avatar faithful112 commented on May 24, 2024

buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}

apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'com.github.johnrengelman.shadow'

version = '228'
group = 'com.newcummer.cumhack'
archivesBaseName = 'cumhack'

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.

minecraft {
mappings channel: 'snapshot', version: '20171003-1.12'
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
}
server {
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
}
}
}

repositories {
maven {
name = 'lukflug'
url = 'https://lukflug.github.io/maven'
}
mavenCentral()
}

dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854'
}

dependencies {
compile('com.lukflug:panelstudio:0.1.8')
compile('com.lukflug:panelstudio-mc12:0.1.8')
}

shadowJar {
dependencies {
include(dependency('com.lukflug:panelstudio'))
include(dependency('com.lukflug:panelstudio-mc12'))
}
}

jar.finalizedBy('reobfJar')

build.dependsOn(shadowJar)

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

Try using the newer 20180814 mappings.

from panelstudio.

faithful112 avatar faithful112 commented on May 24, 2024

how

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

Replace this line:

mappings channel: 'snapshot', version: '20171003-1.12'

by this:

mappings channel: 'snapshot', version: '20180814-1.12'

from panelstudio.

faithful112 avatar faithful112 commented on May 24, 2024

holy cum! it did not help

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

Ok, it seems you reobfuscated your client code, but didn't reobfuscate the included PanelStudio classes. Idk exactly how to do this on ForgeGradle 3.x, but try replacing jar.finalizedBy('reobfJar'), by:

reobf {
    shadowJar {
        mappingType = 'SEARGE'
        classpath = sourceSets.main.compileClasspath
    }
}

if that doesn't work add, in addtion to the code above:

sahdowJar.finalizedBy('reobfJar')

from panelstudio.

faithful112 avatar faithful112 commented on May 24, 2024

A problem occurred evaluating root project 'Cumhack'.

Could not set unknown property 'mappingType' for task ':reobfShadowJar' of type net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace.

from panelstudio.

lukflug avatar lukflug commented on May 24, 2024

This build.gradle should work:

buildscript {
  repositories {
    maven { url = 'https://files.minecraftforge.net/maven' }
    jcenter()
    mavenCentral()
  }
  dependencies {
    classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
  }
}

apply plugin: 'net.minecraftforge.gradle'

version = '228'
group = 'com.newcummer.cumhack'
archivesBaseName = 'cumhack'

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.

minecraft {
  mappings channel: 'snapshot', version: '20180814-1.12'
  runs {
    client {
      workingDirectory project.file('run')
      property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
      property 'forge.logging.console.level', 'debug'
    }
    server {
      property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
      property 'forge.logging.console.level', 'debug'
    }
  }
}

repositories {
  maven {
    name = 'lukflug'
    url = 'https://lukflug.github.io/maven'
  }
  mavenCentral()
}

configurations {
  embed
  compile.extendsFrom(embed)
}

dependencies {
  minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854'
  embed('com.lukflug:panelstudio:0.1.8')
  embed('com.lukflug:panelstudio-mc12:0.1.8')
}

jar {
  from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
}

jar.finalizedBy('reobfJar')

from panelstudio.

faithful112 avatar faithful112 commented on May 24, 2024

HOLY SHIITTTTTT ITS STARTED!!! THANK YOU VERY MUCH

from panelstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.