Jump to content

Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER


Recommended Posts

Posted

Im making a minecraft server with mods but it gives me this error, what can i do? And the warns i dont have to care about them right?

 

 

14.09 00:10:05 [Multicraft] Updating eula.txt file
14.09 00:10:07 [Server] INFO 2022-09-14 00:10:07,281 main WARN Advanced terminal features are not available in this environment
14.09 00:10:07 [Server] main/INFO ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.1.23, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853]
14.09 00:10:07 [Server] main/INFO ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17 by Oracle Corporation; OS Linux arch amd64 version 4.15.0-147-generic
14.09 00:10:07 [Server] main/INFO SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/custom_forge/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER
14.09 00:10:07 [Server] main/WARN Configuration file /config/fml.toml is not correct. Correcting
14.09 00:10:07 [Server] main/WARN Incorrect key [defaultConfigPath] was corrected from null to defaultconfigs
14.09 00:10:08 [Server] main/WARN Mod file /custom_forge/libraries/net/minecraftforge/fmlcore/1.19.2-43.1.23/fmlcore-1.19.2-43.1.23.jar is missing mods.toml file
14.09 00:10:08 [Server] main/WARN Mod file /custom_forge/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.1.23/javafmllanguage-1.19.2-43.1.23.jar is missing mods.toml file
14.09 00:10:08 [Server] main/WARN Mod file /custom_forge/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.1.23/lowcodelanguage-1.19.2-43.1.23.jar is missing mods.toml file
14.09 00:10:08 [Server] main/WARN Mod file /custom_forge/libraries/net/minecraftforge/mclanguage/1.19.2-43.1.23/mclanguage-1.19.2-43.1.23.jar is missing mods.toml file
14.09 00:10:09 [Server] main/INFO Found 3 dependencies adding them to mods collection
14.09 00:10:11 [Server] main/INFO Compatibility level set to JAVA_17
14.09 00:10:12 [Server] main/INFO Launching target 'forgeserver' with arguments []
14.09 00:10:12 [Server] main/WARN Reference map 'naturalist-forge-forge-refmap.json' for naturalist.mixins.json could not be read. If this is a development environment you can ignore this message
14.09 00:10:12 [Server] main/INFO OptiFine was NOT detected.
14.09 00:10:12 [Server] main/INFO OptiFabric was NOT detected.
14.09 00:10:12 [Server] main/WARN Error loading class: de/maxhenkel/gravestone/events/DeathEvents (java.lang.ClassNotFoundException: de.maxhenkel.gravestone.events.DeathEvents)
14.09 00:10:12 [Server] main/WARN Error loading class: de/maxhenkel/corpse/events/DeathEvents (java.lang.ClassNotFoundException: de.maxhenkel.corpse.events.DeathEvents)
14.09 00:10:12 [Server] main/INFO Injected ASMUContainerMenuHook call into ServerPlayer#initMenu
14.09 00:10:13 [Server] main/ERROR Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER
14.09 00:10:13 [Server] main/WARN Error loading class: net/minecraft/client/player/LocalPlayer (java.lang.RuntimeException: Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER)
14.09 00:10:13 [Server] main/WARN @Mixin target net.minecraft.client.player.LocalPlayer was not found playerrevive.mixins.json:LocalPlayerAccessor
14.09 00:10:17 [Server] main/INFO Building unoptimized datafixer
14.09 00:10:18 [Server] main/INFO Injected ASMUContainerMenuHook call into ServerPlayer#initMenu
14.09 00:10:20 [Server] modloading-worker-0/INFO Loading ResourcefulTools config: /config/veggie_way.toml
14.09 00:10:20 [Server] modloading-worker-0/INFO Built ResourcefulTools config:/config/veggie_way.toml
14.09 00:10:20 [Server] modloading-worker-0/INFO Loaded ResourcefulTools config: /config/veggie_way.toml
14.09 00:10:20 [Server] modloading-worker-0/WARN Configuration file /config/veggie_way.toml is not correct. Correcting
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Crops was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Crops.CornSoybeanQuinoaLentil was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Crops.CornSoybeanQuinoaLentil.crop_hunger was corrected from null to its default, 4.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Crops.CornSoybeanQuinoaLentil.crop_saturation was corrected from null to its default, 0.2.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Cooked was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Cooked.Cooked Carrot & Beetroot was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Cooked.Cooked Carrot & Beetroot.cooked_carrot_hunger was corrected from null to its default, 4.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Cooked.Cooked Carrot & Beetroot.cooked_carrot_saturation was corrected from null to its default, 0.8.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Cooked.Cooked Carrot & Beetroot.cooked_beetroot_hunger was corrected from null to its default, 2.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Cooked.Cooked Carrot & Beetroot.cooked_beetroot_saturation was corrected from null to its default, 0.8.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Melon Chunk was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Melon Chunk.melon_chunk_hunger was corrected from null to its default, 2.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Melon Chunk.melon_chunk_saturation was corrected from null to its default, 0.2.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Cactus Chunk was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Cactus Chunk.cactus_chunk_hunger was corrected from null to its default, 2.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Cactus Chunk.cactus_chunk_saturation was corrected from null to its default, 0.2.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Pumpkin Chunk was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Pumpkin Chunk.pumpkin_chunk_hunger was corrected from null to its default, 2.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Chunks.Pumpkin Chunk.pumpkin_chunk_saturation was corrected from null to its default, 0.2.
14.09 00:10:20 [Server] modloading-worker-0/INFO Mod usefulbackpacks is signed with a valid certificate.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Pie was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Pie.Apple Pie was corrected from null to its default, SimpleCommentedConfig:{}.
14.09 00:10:20 [Server] modloading-worker-0/INFO Game modifier group 'majruszlib:default' has been initialized.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Pie.Apple Pie.apple_pie_hunger was corrected from null to its default, 7.
14.09 00:10:20 [Server] modloading-worker-0/WARN Incorrect key Pie.Apple Pie.apple_pie_saturation was corrected from null to its default, 0.2.
14.09 00:10:23 [Multicraft] Skipped 497 lines due to rate limit (30/s)
14.09 00:10:23 [Server] main/FATAL Failed to complete lifecycle event CONSTRUCT, 1 errors found
14.09 00:10:23 [Server] INFO Negative index in crash report handler (16/18)
14.09 00:10:23 [Server] main/FATAL Preparing crash report with UUID 24f954cc-88c9-44bd-85dc-5adcee393a19
14.09 00:10:23 [Server] main/FATAL Crash report saved to ./crash-reports/crash-2022-09-14_00.10.23-fml.txt
14.09 00:10:23 [Server] main/FATAL Preparing crash report with UUID c551366d-4160-4c40-be96-6b9aa93301c6
14.09 00:10:23 [Server] INFO ---- Minecraft Crash Report ----
14.09 00:10:23 [Server] INFO // Uh... Did I do that?
14.09 00:10:23 [Server] INFO Time: 2022-09-14 00:10:23
14.09 00:10:23 [Server] INFO Description: Mod loading error has occurred
14.09 00:10:23 [Server] INFO java.lang.Exception: Mod Loading has failed
14.09 00:10:23 [Server] net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.19.2-43.1.23-universal.jar%23220!/:? {re:classloading}
14.09 00:10:23 [Server] net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:39) ~[forge-1.19.2-43.1.23-universal.jar%23220!/:? {re:classloading}
14.09 00:10:23 [Server] net.minecraft.server.Main.main(Main.java:113) ~[server-1.19.2-20220805.130853-srg.jar%23215!/:? {re:classloading}
14.09 00:10:23 [Server] jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:? {}
14.09 00:10:23 [Server] jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:? {}
14.09 00:10:23 [Server] jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:? {}
14.09 00:10:23 [Server] java.lang.reflect.Method.invoke(Method.java:568) ~[?:? {}
14.09 00:10:23 [Server] net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:29) ~[fmlloader-1.19.2-43.1.23.jar%2367!/:? {}
14.09 00:10:23 [Server] cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2354!/:? {}
14.09 00:10:23 [Server] cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2354!/:? {}
14.09 00:10:23 [Server] cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2354!/:? {}
14.09 00:10:23 [Server] cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2354!/:? {}
14.09 00:10:23 [Server] cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2354!/:? {}
14.09 00:10:23 [Server] cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2354!/:? {}
14.09 00:10:23 [Server] cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2354!/:? {}
14.09 00:10:23 [Server] cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:? {}
14.09 00:10:23 [Multicraft] Server shut down (starting)
14.09 00:10:23 [Multicraft] Not restarting crashed server.
14.09 00:10:23 [Multicraft] Server stopped

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

    • May this question can't be answered but is for a project. The question is more of how Forge load and manage mods, it's not required code or anything, just an explanation about how do it works on the load/manage of mods internally.
    • I myself am quite new to the modding scene, I started modding in February but have been in development hell a lot and have struggled to focus on one mod though I have been developing the current mod I've been working on since September and have made a lot of progress; during this time I have found a lot of helpful resources and have learnt a lot of things.    1. You can, I have had no Java experience previously and since modding have managed to be quite knowledgeable in Java.   2. Modding does not require massive teams, I and many others work alone, though having a team is certainly helpful in the modding process to get things done in a quicker and more organised way.   3. I absolutely have to recommend ModdingByKaupenjoe, he makes loads of tutorials for Minecraft from 1.16.5 and above with support for Forge, Fabric, and as of his 1.21 tutorials, Neoforge. These tutorials are really well made, covering almost every modding topic, (such as items, blocks, mobs, worldgen, etc.) and are pretty easy to follow, and Kaupenjoe always leaves the link to his GitHub repositories where you can view the code of that tutorial at your own pace as well as linking textures in the description of his videos for you to use. These forums are also quite good if you need help, though I have found that it sometimes takes a little while for a response but it is always worth the wait; from my experience the people on these forums have always been kind and helpful. There are also user-submitted tutorials that may be helpful as well.  Using GitHub to search up a certain class that you are wanting to use in your mod is also quite helpful, the video I have linked goes into more detail. I would also recommend planning out your mod before you make it to have a clearer idea of how you want your mod to be, including sketches and annotations are also a good idea for this. It has helped me make progress a lot quicker when programming as I already know how I want things to look/act.   I hope all this information helps!
    • I don't know what I did differently, but the error code changed to "Invalid signature for profile public key" so I set "enforce-secure-profile" to false since only my friend will be allowed to join anyway and then everything worked properly. Here's the logs anyway, but I hope the problem doesn't come back. https://paste.ee/p/Ri44L
  • Topics

×
×
  • Create New...

Important Information

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