Posted July 4, 20178 yr Hey guys, So I'm trying to upgrade my mod from 1.11.2 to 1.12 and I'm having a few difficulties namely with the new registration system. I'm getting the above error on one of my items: the bed items that I've created. Basically my ModItemBed class is a copy-paste of the ItemBed class with a few changes necessary to make it not have any errors. I have doors that are registered early in my code that don't appear to have any problems so I've tried comparing the code a little to see if I can see what is different and I wasn't able to find anything. Do any of you guys have any ideas? I can post code if you would like but I'm not sure how much use it will be.
July 4, 20178 yr The method signature likely changed. Check the super class for the new signature. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 4, 20178 yr Post your code, specifically where you register an override of a vanilla registry entry. Also post the FML log so we can see exactly what the message is warning about. 7 minutes ago, Draco18s said: The method signature likely changed. Check the super class for the new signature. This is related to the new override system provided by Forge's registries, which replaces the old substitution alias system. It's not related to overriding a method. Edited July 4, 20178 yr by Choonster 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.
July 4, 20178 yr 16 minutes ago, Choonster said: This is related to the new override system provided by Forge's registries, which replaces the old substitution alias system. It's not related to overriding a method. My mistake. I took a guess from the information I had available. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 4, 20178 yr Author Well, as far as I know I'm not overriding any vanilla registry entries unless a dark oak bed exists now. Here's the total log: Spoiler ################################################# ForgeGradle 2.3-SNAPSHOT-effc52c https://github.com/MinecraftForge/ForgeGradle ################################################# Powered by MCP unknown http://modcoderpack.com by: Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs ################################################# :deobfCompileDummyTask :deobfProvidedDummyTask :sourceApiJava UP-TO-DATE :compileApiJava UP-TO-DATE :processApiResources UP-TO-DATE :apiClasses UP-TO-DATE :sourceMainJava :compileJava Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :processResources UP-TO-DATE :classes :jar :getVersionJson :extractNatives SKIPPED :extractUserdev UP-TO-DATE :getAssetIndex UP-TO-DATE :getAssets Current status: 1080/1281 84% :makeStart :runClient 2017-07-03 19:02:50,128 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-07-03 19:02:50,132 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [19:02:50] [main/INFO] [GradleStart]: Extra: [] [19:02:50] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Dragon Ferocity/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [19:02:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [19:02:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [19:02:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [19:02:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [19:02:50] [main/INFO] [FML]: Forge Mod Loader version 14.21.1.2389 for Minecraft 1.12 loading [19:02:50] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_121\jre [19:02:50] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [19:02:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [19:02:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [19:02:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [19:02:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:02:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [19:02:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [19:02:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:02:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [19:02:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper 2017-07-03 19:02:50,654 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-07-03 19:02:50,886 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2017-07-03 19:02:50,887 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [19:02:50] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [19:02:51] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [19:02:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [19:02:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [19:02:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [19:02:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [19:02:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [19:02:52] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [19:02:52] [main/INFO]: Setting user: Player264 [19:02:55] [main/WARN]: Skipping bad option: lastServer: [19:02:55] [main/INFO]: LWJGL Version: 2.9.4 [19:02:56] [main/INFO] [FML]: -- System Details -- Details: Minecraft Version: 1.12 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_121, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 681314920 bytes (649 MB) / 878706688 bytes (838 MB) up to 3806855168 bytes (3630 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13474 Compatibility Profile Context 22.19.162.4' Renderer: 'AMD Radeon (TM) RX 480' [19:02:56] [main/INFO] [FML]: MinecraftForge v14.21.1.2389 Initialized [19:02:57] [main/INFO] [FML]: Replaced 921 ore ingredients [19:02:57] [main/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [19:02:57] [main/INFO] [FML]: Searching R:\Minecraft\ExpandedAesthetics\run\mods for mods [19:02:58] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [19:02:58] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, expanded] at CLIENT [19:02:58] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, expanded] at SERVER [19:02:59] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Expanded Aesthetics [19:02:59] [main/WARN]: ResourcePack: ignored non-lowercase namespace: ClearDiamond.zip in R:\Minecraft\ExpandedAesthetics\build\libs\modid-1.0.jar [19:02:59] [main/INFO] [FML]: Processing ObjectHolder annotations [19:02:59] [main/INFO] [FML]: Found 1168 ObjectHolder annotations [19:02:59] [main/INFO] [FML]: Identifying ItemStackHolder annotations [19:02:59] [main/INFO] [FML]: Found 0 ItemStackHolder annotations [19:02:59] [main/INFO] [FML]: Configured a dormant chunk cache size of 0 [19:02:59] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [19:02:59] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 70690114 nanos [19:02:59] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: OUTDATED Target: 14.21.1.2395 [19:02:59] [main/INFO] [FML]: Applying holder lookups [19:02:59] [main/INFO] [FML]: Holder lookups applied [19:02:59] [main/INFO] [FML]: Applying holder lookups [19:02:59] [main/INFO] [FML]: Holder lookups applied [19:02:59] [main/INFO] [FML]: Applying holder lookups [19:02:59] [main/INFO] [FML]: Holder lookups applied [19:02:59] [main/INFO] [FML]: Applying holder lookups [19:02:59] [main/INFO] [FML]: Holder lookups applied [19:02:59] [main/INFO] [FML]: Injecting itemstacks [19:02:59] [main/INFO] [FML]: Itemstack injection complete [19:03:01] [Sound Library Loader/INFO]: Starting up SoundSystem... [19:03:01] [Thread-5/INFO]: Initializing LWJGL OpenAL [19:03:01] [Thread-5/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [19:03:02] [Thread-5/INFO]: OpenAL initialized. [19:03:02] [Sound Library Loader/INFO]: Sound engine started [19:03:05] [main/INFO] [FML]: Max texture size: 16384 [19:03:05] [main/INFO]: Created: 512x512 textures-atlas [19:03:07] [main/INFO] [FML]: Injecting itemstacks [19:03:07] [main/INFO] [FML]: Itemstack injection complete [19:03:07] [main/WARN] [FML]: Registry Item: Override did not have an associated owner object. Name: expanded:dark_oak_bed_item Value: com.DragonFerocity.expanded.items.ModItemBed@40e86f55 [19:03:07] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ---- // I blame Dinnerbone. Time: 7/3/17 7:03 PM Description: Initializing game java.lang.RuntimeException: One of more entry values did not copy to the correct id. Check log for details! at net.minecraftforge.registries.ForgeRegistry.sync(ForgeRegistry.java:528) at net.minecraftforge.registries.GameData.loadRegistry(GameData.java:438) at net.minecraftforge.registries.GameData.freezeData(GameData.java:219) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:790) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:343) at net.minecraft.client.Minecraft.init(Minecraft.java:576) at net.minecraft.client.Minecraft.run(Minecraft.java:416) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.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.minecraftforge.registries.ForgeRegistry.sync(ForgeRegistry.java:528) at net.minecraftforge.registries.GameData.loadRegistry(GameData.java:438) at net.minecraftforge.registries.GameData.freezeData(GameData.java:219) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:790) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:343) at net.minecraft.client.Minecraft.init(Minecraft.java:576) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:416) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.12 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_121, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 212028672 bytes (202 MB) / 1283457024 bytes (1224 MB) up to 3806855168 bytes (3630 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.40 Powered by Forge 14.21.1.2389 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJA minecraft{1.12} [Minecraft] (minecraft.jar) UCHIJA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.12-14.21.1.2389.jar) UCHIJA forge{14.21.1.2389} [Minecraft Forge] (forgeSrc-1.12-14.21.1.2389.jar) UCHIJA expanded{1.0} [Expanded Aesthetics] (modid-1.0.jar) Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13474 Compatibility Profile Context 22.19.162.4' Renderer: 'AMD Radeon (TM) RX 480' Launched Version: 1.12 LWJGL: 2.9.4 OpenGL: AMD Radeon (TM) RX 480 GL version 4.5.13474 Compatibility Profile Context 22.19.162.4, ATI Technologies Inc. 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 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 8x AMD FX-8370 Eight-Core Processor [19:03:07] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# R:\Minecraft\ExpandedAesthetics\run\.\crash-reports\crash-2017-07-03_19.03.07-client.txt AL lib: (EE) alc_cleanup: 1 device not closed :runClient FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':runClient'. > Process 'command 'C:\Program Files\Java\jdk1.8.0_121\bin\java.exe'' finished with non-zero exit value -1 * 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: 30.491 secs Here's the register code: Spoiler ... //Dark Oak iDarkOakBed = createItem(new ModItemBed(darkOakBed, "dark_oak_bed", 64), event); ... private static ModItemBed createItem(ModItemBed item, RegistryEvent.Register<Item> event) { event.getRegistry().register(item); return item; }
July 4, 20178 yr We would also need the createItem method and the ModItemBed class, possibly also the darkOakBed definition. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 4, 20178 yr You're overriding expanded:dark_oak_bed_item (i.e. registering a new value with the same name), but the old value doesn't have an OverrideOwner associated with it. If I understand Forge's registry code correctly, this would happen when the new value has the same owner (mod ID) as the old one (because the new OverrideOwner and value replace the old OverrideOwner and value in the ForgeRegistry#owners BiMap). Are you registering this Item in multiple places? As Draco said, we need to see more of your code. 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.
July 4, 20178 yr I've submitted an issue for this here. Being able to override an object from your own mod doesn't make much sense, so it should crash with a more obvious exception when you attempt to do so. 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.
July 4, 20178 yr Author 8 hours ago, Choonster said: You're overriding expanded:dark_oak_bed_item (i.e. registering a new value with the same name), but the old value doesn't have an OverrideOwner associated with it. If I understand Forge's registry code correctly, this would happen when the new value has the same owner (mod ID) as the old one (because the new OverrideOwner and value replace the old OverrideOwner and value in the ForgeRegistry#owners BiMap). Yes it appears I forgot to change the given registry name of another one of my mod items so it was giving an error. Thanks for leading me in the right direction.
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.