Jump to content

hasechris92

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by hasechris92

  1. Hi, i'm just starting on some modding turtorials now. I want to run the Client with my clean user session, but the client launch keeps failing. If i dont specify the arguments --username and --password, the client gets loaded successfully with "my" mod. I have made a gradle scan with the errror here: https://scans.gradle.com/s/uiopxxndtcji2/console-log#L764 Right on line 764 is the first error sign. The Main Java Class. Nothing really in there because i just renamed the example MDK. package net.hasiatthegrill.turtorialmodhase; import net.minecraftforge.fml.common.Mod; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @Mod("turtorialmodhase") public class TurtorialModHase { private static final Logger LOGGER = LogManager.getLogger(); public static final String MODID = "turtorialmodhase"; } My build.gradle: buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } jcenter() mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. apply plugin: 'eclipse' apply plugin: 'maven-publish' version = '1.14.4-0.0.1' group = 'net.hasiatthegrill.turtorialmodhase' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'turtorialmodhase' sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. minecraft { mappings channel: 'snapshot', version: '20191001-1.14.3' runs { client { workingDirectory project.file('run') args '--username=hase.christian92@gmail.com', '--password=<password>' property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' property 'forge.logging.console.level', 'debug' mods { turtorialmodhase { source sourceSets.main } } } server { workingDirectory project.file('run') args '--username=hase.christian92@gmail.com', '--password=<password>' property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' property 'forge.logging.console.level', 'debug' mods { turtorialmodhase { source sourceSets.main } } } data { workingDirectory project.file('run') property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' property 'forge.logging.console.level', 'debug' args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/') mods { turtorialmodhase { source sourceSets.main } } } } } processResources { inputs.property 'version', project.version from(sourceSets.main.resources.srcDirs) { include 'META-INF/mods.toml' expand 'version':project.version } from(sourceSets.main.resources.srcDirs) { exclude 'META-INF/mods.toml' } } dependencies { minecraft 'net.minecraftforge:forge:1.14.4-28.1.0' } jar { manifest { attributes([ "Specification-Title": "turtorialmodhase1", "Specification-Vendor": "hasiatthegrill", "Specification-Version": "1", // We are version 1 of ourselves "Implementation-Title": project.name, "Implementation-Version": "${version}", "Implementation-Vendor" :"hasiatthegrill", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } def reobfFile = file("$buildDir/reobfJar/output.jar") def reobfArtifact = artifacts.add('default', reobfFile) { type 'jar' builtBy 'reobfJar' } publishing { publications { mavenJava(MavenPublication) { artifact reobfArtifact } } repositories { maven { url "file:///${project.projectDir}/mcmodsrepo" } } } task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource } build.dependsOn sourcesJar artifacts { archives sourcesJar } Greetings hasechris92
×
×
  • Create New...

Important Information

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