Jump to content

Recommended Posts

Posted (edited)

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 '[email protected]', '--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 '[email protected]', '--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

Edited by hasechris92
  • 5 months later...
Posted

Did you ever figure this out?  I get the exact same error for the exact same scenario you described.  Fine when not providing credentials, but this error when attempting to run with them (forge 1.15.2-31.1.19)

Posted

This looks like an issue with Forge's dev-time login implementation, I've reported it on GitHub.

  • Thanks 1

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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