Jump to content

[1.15.2] Mod crashing server on load. Failed to register automatic subscribers.


xanderindalzone

Recommended Posts

This was probably going to happen on first attempt, but when I run my mod 1.0 on my local server, its crashing and I dont know exactly why. Here's the repo and latest.log:

Quote
Quote

[10ago2020 12:00:22.915] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 31.2.0, --fml.mcpVersion, 20200515.085601, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge]
[10ago2020 12:00:22.923] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 5.1.0+69+master.79f13f7 starting: java version 1.8.0_251 by Oracle Corporation
[10ago2020 12:00:24.948] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[10ago2020 12:00:26.373] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .]
[10ago2020 12:00:46.647] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[10ago2020 12:00:46.656] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[10ago2020 12:00:46.660] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[10ago2020 12:00:46.664] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[10ago2020 12:00:46.681] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[10ago2020 12:00:47.994] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Starting minecraft server version 1.15.2
[10ago2020 12:00:49.225] [modloading-worker-1/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 31.2.0, for MC 1.15.2 with MCP 20200515.085601
[10ago2020 12:00:49.228] [modloading-worker-1/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v31.2.0 Initialized
[10ago2020 12:00:50.239] [modloading-worker-2/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: customgunsmod, class com.xanderindalzone.customgunsmod.CustomGunsMod
java.lang.NoClassDefFoundError: net/minecraft/client/util/ITooltipFlag
    at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_251]
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) ~[?:1.8.0_251]
    at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.8.0_251]
    at java.lang.Class.getConstructor(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.eventbus.api.EventListenerHelper.computeListenerList(EventListenerHelper.java:96) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.api.EventListenerHelper.getListenerListInternal(EventListenerHelper.java:63) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.api.EventListenerHelper.getListenerList(EventListenerHelper.java:48) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.addToListeners(EventBus.java:228) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.register(EventBus.java:221) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.registerListener(EventBus.java:138) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.lambda$registerClass$2(EventBus.java:72) ~[eventbus-2.2.0-service.jar:?]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_251]
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.eventbus.EventBus.registerClass(EventBus.java:72) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.register(EventBus.java:112) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.fml.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:75) ~[?:?]
    at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.fml.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:62) ~[?:?]
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:141) ~[?:31.2]
    at java.util.function.Consumer.lambda$andThen$0(Unknown Source) ~[?:1.8.0_251]
    at java.util.function.Consumer.lambda$andThen$0(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112) ~[?:?]
    at net.minecraftforge.fml.ModList.lambda$null$10(ModList.java:135) ~[?:?]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) [?:1.8.0_251]
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) [?:1.8.0_251]
    at java.util.stream.AbstractPipeline.copyInto(Unknown Source) [?:1.8.0_251]
    at java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.CountedCompleter.exec(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_251]
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.util.ITooltipFlag
    at java.lang.ClassLoader.findClass(Unknown Source) ~[?:1.8.0_251]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:101) ~[modlauncher-5.1.0.jar:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    ... 40 more
[10ago2020 12:00:50.388] [Server thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found
[10ago2020 12:00:50.838] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception
net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [
    Custom Guns Mod (customgunsmod) has failed to load correctly
§7net/minecraft/client/util/ITooltipFlag
]
    at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:218) ~[?:?]
    at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:200) ~[?:?]
    at net.minecraftforge.fml.server.ServerModLoader.begin(ServerModLoader.java:45) ~[?:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:122) ~[?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:613) [?:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
[10ago2020 12:00:50.941] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: This crash report has been saved to: C:\X-USERS\X-USER\X-LOCATION\X-PATH\X-FOLDER\TESTING FORGE SERVER 1.15.2\.\crash-reports\crash-2020-08-10_12.00.50-server.txt
[10ago2020 12:00:51.126] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server
[10ago2020 12:00:51.127] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds
[10ago2020 12:00:51.128] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Exception stopping the server
java.lang.RuntimeException: The server has failed to initialize correctly due to mod loading errors. Examine the crash report for more details.
    at net.minecraftforge.common.DimensionManager.getWorld(DimensionManager.java:185) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_71218_a(MinecraftServer.java:1004) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_213211_a(MinecraftServer.java:536) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_71260_j(MinecraftServer.java:568) ~[?:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71260_j(DedicatedServer.java:550) ~[?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:676) [?:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
 

Link to comment
Share on other sites

5 minutes ago, xanderindalzone said:

This was probably going to happen on first attempt, but when I run my mod 1.0 on my local server, its crashing and I dont know exactly why. Here's the repo and latest.log:

wait, i think i know why its crashing, ITooltipFlag is an only client class 🤦‍♂️

Edited by xanderindalzone
Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have a structure, and sometimes several mobs spawn there. This is a boss and must spawn alone. Here is the code for spawning entities in the structure { "type": "minecraft:jigsaw", "start_pool": "egyptcraft:boss_pyramid/start_pool", "size": 5, "max_distance_from_center": 80, "biomes": "#egyptcraft:has_structure/boss_pyramid", "step": "surface_structures", "start_height": { "absolute": 0 }, "project_start_to_heightmap": "WORLD_SURFACE_WG", "use_expansion_hack": false, "spawn_overrides": { "monster": { "bounding_box": "full", "spawns": [ { "type": "egyptcraft:anubis", "maxCount": 1, "minCount": 1, "weight": 100 } ] } } } Maybe it's something else?
    • I have OreGenEvent.GenerateMinable event, I need to get a chance to spawn (generate) every ore that is processed in this event. Also e.getType().name().toString() is name this is the same block name by which it can be entered in the Block.getByID?  forge 1.12.2 59(recommended)
    • Hello everybody! Out of nowhere my minecraft doesn't allow me to play on forge 1.19.2 I tried to reinstall minecraft, doesn't have any mod right now on the forge version. Tried the newest version of forge, tried recommended version as well. I have the newest version of Java as well...   I dont know why it stopped working but it just stopped completly out of nowhere...   Thank you so much for your help guys ❤️
    • Hello, my world is crashing at 0% loaded and I don't know why. (Forge 43.2.14, 1.19.2) I have two worlds that I play on, and one works and the other doesn't, even with the same mod list. Here's the crash report: https://pastebin.com/AUbRwkGj
    • Minecraft 1.12.2 Very frustrating error. only ever occurs on one device. Started yesterday without prompting (maybe java updated or something?) Says things that have been imported actually arent when running client Reinstalled Intellij, cleared cache, cleaned and rebuilt gradle, redownloaded the entire file from git. Nothing works. (I believe I have the right plugins installed, dependencies OK, and am using corretto 1.8).   One thing I did for more of the below errors was just to explicitly import them, which was working up until this little guy who literally does not exist in forge to import. the class inhereting something inhereting it refers to import net.minecraftforge.registries.IForgeRegistryEntry.Impl, not net.minecraftforge.registries.IForgeRegistryEntry$Impl as the output implies. also I didn't even have to manually import these things for it to work on my other device. (which is just importing the minecraft package that contains them), but here I did have to just to get rid of a few errors--not even make anything work?? I dont know. (edited) here's the aforementioned "below error" (one of many like it): error: cannot access net.minecraftforge.registries.IForgeRegistryEntry.Impl public class BlockBase extends Block {        ^   class file for net.minecraftforge.registries.IForgeRegistryEntry$Impl not found Here's the class BlockBase:   package com.quantum.exodus.common.blocks; import com.quantum.exodus.ExodusMod; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraftforge.registries.IForgeRegistryEntry.Impl; public class BlockBase extends Block { protected String name; public BlockBase(Material material, String name) { super(material); this.name = name; setTranslationKey(name); setRegistryName(name); } public void registerItemModel(Item itemBlock) { ExodusMod.proxy.registerItemRenderer(itemBlock, 0, name); } public Item createItemBlock() { return new ItemBlock(this).setRegistryName(getRegistryName()); } @Override public BlockBase setCreativeTab(CreativeTabs tab) { super.setCreativeTab(tab); return this; } }
  • Topics

×
×
  • Create New...

Important Information

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