Giter Site home page Giter Site logo

developer-mode's People

Contributors

jamieswhiteshirt avatar upcraftlp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

endangerednayla

developer-mode's Issues

Feature: Reload languages with a keybind

When experimenting with and tweaking localization for things such as tooltips, messages and names, it is pretty frustrating that the only way to update it in-game is to trigger an entire resource reload that can take 10+ seconds to run, with an obnoxious splash screen. A keybind to reload only languages would be super useful, and reloading languages alone is a very fast operation, so there would be no need to "take a break" to a splashscreen or anything. The keybind could possibly be an F3 function such as F3+L.

--world not working (with vscode ?)

Logs of the error
[14:38:30] [main/INFO]: Loading for game Minecraft 1.14.3
[14:38:31] [main/INFO]: [FabricLoader] Loading 30 mods: [email protected]+25fd0c5236, [email protected]+099c1e8b36, [email protected]+7dfef87c36, [email protected], [email protected]+build.157, [email protected]+3c859cf736, [email protected]+25fd0c5236, chneau_autotool@${version}, [email protected]+896c7fbb36, [email protected]+5914746336, [email protected]+5914746336, [email protected]+5914746336, [email protected]+6dad974e36, [email protected]+02a46d5b36, [email protected]+5914746355, [email protected], [email protected]+792c1c3536, [email protected]+05f11b7536, [email protected]+c189dc5c36, [email protected]+dc4c57c236, [email protected]+25fd0c5236, [email protected]+f0d5680036, [email protected]+ab421b9c36, [email protected]+43028fa636, [email protected]+5914746336, [email protected]+build.198, [email protected]+5914746336, [email protected]+1e69a0a536, [email protected]+200eb5c236, [email protected]+39ff57de36
[14:38:31] [main/WARN]: Mod `chneau_autotool` (${version}) does not respect SemVer - comparison support is limited.
[14:38:31] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.7.11 Source=file:/home/c/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.7.11.36/b0d9944f2b77f1ce952a1179e595037332910a82/sponge-mixin-0.7.11.36.jar Service=Knot/Fabric Env=CLIENT
[14:38:31] [main/INFO]: Loaded Fabric development mappings for mixin remapper!
[14:38:31] [main/INFO]: Compatibility level set to JAVA_8
[14:38:31] [main/WARN]: Mixin config fabric-networking-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-networking-blockentity-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-biomes-v1.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-mining-levels-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-containers-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-renderer-indigo.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-rendering-data-attachment-v1.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-events-interaction-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-loot-tables-v1.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-textures-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-registry-sync-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-models-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-keybindings-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-renderer-api-v1.debughud.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-containers-v0.accurate.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-events-lifecycle-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config modid.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-rendering-fluids-v1.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-resource-loader-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-rendering-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-object-builders-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-tag-extensions-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-item-groups-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-content-registries-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-crash-report-info-v1.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-commands-v0.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config fabric-renderer-api-v1.mixins.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config mixins.developer-mode.common.json does not specify "minVersion" property
[14:38:31] [main/WARN]: Mixin config mixins.developer-mode.client.json does not specify "minVersion" property
[14:38:31] [main/INFO]: Remapping refMap fabric-networking-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-networking-blockentity-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-biomes-v1-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-mining-levels-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-containers-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-renderer-indigo-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-rendering-data-attachment-v1-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-events-interaction-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-loot-tables-v1-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-textures-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-registry-sync-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-models-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-keybindings-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-renderer-api-v1-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-containers-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-events-lifecycle-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-rendering-fluids-v1-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-resource-loader-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-rendering-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-object-builders-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-tag-extensions-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-item-groups-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-content-registries-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-crash-report-info-v1-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-commands-v0-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap fabric-renderer-api-v1-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap ModMenu-1.14-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap developer-mode-refmap.json using remapper chain
[14:38:31] [main/INFO]: Remapping refMap developer-mode-refmap.json using remapper chain
[14:38:32] [main/INFO]: Setting user: Player548
[14:38:36] [main/INFO]: [STDOUT]: This line is printed by an example mod mixin!
[14:38:36] [main/INFO]: [STDOUT]: Hello Fabric world!
[14:38:36] [main/INFO]: [STDOUT]: net.minecraft.client.MinecraftClient@203ba07
[14:38:36] [main/INFO]: [Indigo] Registering Indigo renderer!
[14:38:36] [main/INFO]: LWJGL Version: 3.2.2 build 10
[14:38:38] [main/WARN]: ERROR : Couldn't load Narrator library : Unable to load library 'fliteWrapper': Can't obtain InputStream for linux-x86-64/libfliteWrapper.so
---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 22/07/2019, 14:38
Description: Initializing game

java.lang.ClassCastException: net.minecraft.client.gui.screen.world.SelectWorldScreen cannot be cast to net.minecraft.client.gui.screen.world.WorldListWidget
  at net.minecraft.client.gui.screen.world.SelectWorldScreen.developermode_openOrCreateLevel(SelectWorldScreen.java:555)
  at net.minecraft.client.MinecraftClient.redirect$init$zek000(MinecraftClient.java:5497)
  at net.minecraft.client.MinecraftClient.init(MinecraftClient.java:604)
  at net.minecraft.client.MinecraftClient.start(MinecraftClient.java:395)
  at net.minecraft.client.main.Main.main(Main.java:154)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.base/java.lang.reflect.Method.invoke(Method.java:564)
  at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:170)
  at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
  at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
  at net.minecraft.client.gui.screen.world.SelectWorldScreen.developermode_openOrCreateLevel(SelectWorldScreen.java:555)
  at net.minecraft.client.MinecraftClient.redirect$init$zek000(MinecraftClient.java:5497)
  at net.minecraft.client.MinecraftClient.init(MinecraftClient.java:604)

-- Initialization --
Details:
Stacktrace:
  at net.minecraft.client.MinecraftClient.start(MinecraftClient.java:395)
  at net.minecraft.client.main.Main.main(Main.java:154)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.base/java.lang.reflect.Method.invoke(Method.java:564)
  at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:170)
  at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
  at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)

-- System Details --
Details:
  Minecraft Version: 1.14.3
  Operating System: Linux (amd64) version 4.15.0-54-generic
  Java Version: 10.0.2, Oracle Corporation
  Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), "Oracle Corporation"
  Memory: 596113408 bytes (568 MB) / 886046720 bytes (845 MB) up to 2061500416 bytes (1966 MB)
  JVM Flags: 3 total; -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=localhost:46583,server=n,suspend=y
  Fabric Mods:
  	chneau_autotool: Autotool ${version}
  	developer-mode: Developer Mode 1.0.13
  	fabric: Fabric API 0.3.0+build.198
  	fabric-api-base: fabric-api-base 0.1.0+5914746336
  	fabric-biomes-v1: fabric-biomes-v1 0.1.0+896c7fbb36
  	fabric-commands-v0: fabric-commands-v0 0.1.1+25fd0c5236
  	fabric-containers-v0: fabric-containers-v0 0.1.2+25fd0c5236
  	fabric-content-registries-v0: fabric-content-registries-v0 0.1.1+05f11b7536
  	fabric-crash-report-info-v1: fabric-crash-report-info-v1 0.1.0+5914746336
  	fabric-events-interaction-v0: fabric-events-interaction-v0 0.1.0+5914746336
  	fabric-events-lifecycle-v0: fabric-events-lifecycle-v0 0.1.0+5914746336
  	fabric-item-groups-v0: fabric-item-groups-v0 0.1.0+1e69a0a536
  	fabric-keybindings-v0: fabric-keybindings-v0 0.1.1+7dfef87c36
  	fabric-loot-tables-v1: fabric-loot-tables-v1 0.1.0+43028fa636
  	fabric-mining-levels-v0: fabric-mining-levels-v0 0.1.0+ab421b9c36
  	fabric-models-v0: fabric-models-v0 0.1.0+5914746336
  	fabric-networking-blockentity-v0: fabric-networking-blockentity-v0 0.1.1+25fd0c5236
  	fabric-networking-v0: fabric-networking-v0 0.1.2+200eb5c236
  	fabric-object-builders-v0: fabric-object-builders-v0 0.1.1+39ff57de36
  	fabric-registry-sync-v0: fabric-registry-sync-v0 0.2.2+f0d5680036
  	fabric-renderer-api-v1: fabric-renderer-api-v1 0.1.1+099c1e8b36
  	fabric-renderer-indigo: fabric-renderer-indigo 0.1.9+3c859cf736
  	fabric-rendering-data-attachment-v1: fabric-rendering-data-attachment-v1 0.1.0+02a46d5b36
  	fabric-rendering-fluids-v1: fabric-rendering-fluids-v1 0.1.0+dc4c57c236
  	fabric-rendering-v0: fabric-rendering-v0 0.1.1+6dad974e36
  	fabric-resource-loader-v0: fabric-resource-loader-v0 0.1.1+5914746355
  	fabric-tag-extensions-v0: fabric-tag-extensions-v0 0.1.1+c189dc5c36
  	fabric-textures-v0: fabric-textures-v0 0.1.4+792c1c3536
  	fabricloader: Fabric Loader 0.4.8+build.157
  	modmenu: Mod Menu 1.6.3-95
  Launched Version: Fabric
  LWJGL: 3.2.2 build 10
  OpenGL: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2)  GL version 3.0 Mesa 18.0.5, Intel Open Source Technology Center
  GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

  Using VBOs: Yes
  Is Modded: Definitely; Client brand changed to 'fabric'
  Type: Client (map_client.txt)
  Resource Packs:
  Current Language: English (US)
  CPU: 4x Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz
#@!@# Game crashed! Crash report saved to: #@!@# /home/c/go/src/github.com/chneau/mc-autotool/run/./crash-reports/crash-2019-07-22_14.38.39-client.txt

Gradle properties:

# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
	# check these on https://fabricmc.net/use
	minecraft_version=1.14.3
	yarn_mappings=1.14.3+build.13
	loader_version=0.4.8+build.157

# Mod Properties
	mod_version = 0.0.1
	maven_group = chneau.autotool
	archives_base_name = mc-autotool

# Dependencies
	# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api/
	fabric_version=0.3.0+build.198

Gradle build

plugins {
	id 'fabric-loom' version '0.2.4-SNAPSHOT'
	id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

minecraft {
}

repositories {
	mavenCentral()
	mavenLocal()
    maven {url "https://maven.jamieswhiteshirt.com/libs-release/"}
	maven {url "https://maven.fabricmc.net"}
}

dependencies {
	//to change the versions see the gradle.properties file
	minecraft "com.mojang:minecraft:${project.minecraft_version}"
	mappings "net.fabricmc:yarn:${project.yarn_mappings}"
	modCompile "net.fabricmc:fabric-loader:${project.loader_version}"

	// Fabric API. This is technically optional, but you probably want it anyway.
	modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

	// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
	// You may need to force-disable transitiveness on them.
	// For dev env testing
	modCompile "com.jamieswhiteshirt:developer-mode:1.0.13"
	modCompile "io.github.prospector.modmenu:ModMenu:1.6.3-95"
}

processResources {
	inputs.property "version", project.version

	from(sourceSets.main.resources.srcDirs) {
		include "fabric.mod.json"
		expand "version": project.version
	}

	from(sourceSets.main.resources.srcDirs) {
		exclude "fabric.mod.json"
	}
}

// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
	options.encoding = "UTF-8"
}

// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
	classifier = "sources"
	from sourceSets.main.allSource
}

jar {
	from "LICENSE"
}

// configure the maven publication
publishing {
	publications {
		mavenJava(MavenPublication) {
			// add all the jars that should be included when publishing to maven
			artifact(jar) {
				builtBy remapJar
			}
			artifact(sourcesJar) {
				builtBy remapSourcesJar
			}
		}
	}

	// select the repositories you want to publish to
	repositories {
		// uncomment to publish to the local maven
		// mavenLocal()
	}
}

.vscode/launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "java",
      "name": "Minecraft Client",
      "request": "launch",
      "cwd": "${workspaceFolder}/run",
      "console": "internalConsole",
      "stopOnEntry": false,
      "mainClass": "net.fabricmc.loader.launch.knot.KnotClient",
      "vmArgs": "-Dfabric.development\u003dtrue",
      "args": " --assetIndex \"1.14.3-1.14\" --assetsDir \"/home/c/.gradle/caches/fabric-loom/assets\" --world \"New World\""
    },
    {
      "type": "java",
      "name": "Minecraft Server",
      "request": "launch",
      "cwd": "${workspaceFolder}/run",
      "console": "internalConsole",
      "stopOnEntry": false,
      "mainClass": "net.fabricmc.loader.launch.knot.KnotServer",
      "vmArgs": "-Dfabric.development\u003dtrue",
      "args": ""
    }
  ]
}

Without the --world it works.
With a dummy args like --yolo you see on the console that the argument is ignored.
Client crash after loading for a few secondes.

Expected:
start Minecraft and appear on the world New World (already existing)

Other informations:

14:45:30c@c ~ java -version
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
14:45:35c@c ~ uname -a
Linux c 4.15.0-54-generic #58~16.04.1-Ubuntu SMP Mon Jun 24 13:21:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
14:45:38c@c ~ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.6 LTS
Release:	16.04
Codename:	xenial

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.