Jump to content

Need help with this error


BesTiaPanDa

Recommended Posts

When I try to load the server the console gets stucked at this point

09.02 23:15:54 [Multicraft] Received start command
09.02 23:15:54 [Multicraft] Loading server properties
09.02 23:15:54 [Multicraft] Starting server!
09.02 23:15:54 [Multicraft] Loaded config for "Custom Forge with Java 17 ( Name Forge Installer: custom_forge_installer.jar )"
09.02 23:15:54 [Multicraft] JAR file not found, copying from global JAR directory
09.02 23:15:54 [Multicraft] Failed to copy jarfile from global JAR directory
09.02 23:15:54 [Multicraft] JAR file not found. Go to "Settings"-"Update Minecraft" to download the JAR file.
09.02 23:15:54 [Multicraft] Updating eula.txt file
09.02 23:15:57 [Server] INFO 2023-02-09 23:15:57,924 main WARN Advanced terminal features are not available in this environment
09.02 23:15:58 [Server] main/INFO ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.2.3, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853]
09.02 23:15:58 [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-192-generic
09.02 23:15:59 [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
09.02 23:16:00 [Server] main/WARN Mod file /custom_forge/libraries/net/minecraftforge/fmlcore/1.19.2-43.2.3/fmlcore-1.19.2-43.2.3.jar is missing mods.toml file
09.02 23:16:00 [Server] main/WARN Mod file /custom_forge/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.2.3/javafmllanguage-1.19.2-43.2.3.jar is missing mods.toml file
09.02 23:16:00 [Server] main/WARN Mod file /custom_forge/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.2.3/lowcodelanguage-1.19.2-43.2.3.jar is missing mods.toml file
09.02 23:16:00 [Server] main/WARN Mod file /custom_forge/libraries/net/minecraftforge/mclanguage/1.19.2-43.2.3/mclanguage-1.19.2-43.2.3.jar is missing mods.toml file
09.02 23:16:01 [Server] main/INFO Found 14 dependencies adding them to mods collection
09.02 23:16:07 [Server] main/ERROR Mixin config dynamiclightsreforged.mixins.json does not specify "minVersion" property
09.02 23:16:07 [Server] main/INFO Compatibility level set to JAVA_17
09.02 23:16:07 [Server] main/ERROR Mixin config forge-mavapi.mixins.json does not specify "minVersion" property
09.02 23:16:07 [Server] main/ERROR Mixin config entity_texture_features-forge.mixins.json does not specify "minVersion" property
09.02 23:16:07 [Server] main/ERROR Mixin config entity_texture_features-common.mixins.json does not specify "minVersion" property
09.02 23:16:07 [Server] main/ERROR Mixin config forge-mavm.mixins.json does not specify "minVersion" property
09.02 23:16:08 [Server] main/ERROR Mixin config rottencreatures-common.mixins.json does not specify "minVersion" property
09.02 23:16:08 [Server] main/ERROR Mixin config rottencreatures.mixins.json does not specify "minVersion" property
09.02 23:16:08 [Server] main/INFO Successfully loaded Mixin Connector [com.sonicether.soundphysics.MixinConnector]
09.02 23:16:08 [Server] main/INFO Successfully loaded Mixin Connector [com.aizistral.nochatreports.MixinConnector]
09.02 23:16:08 [Server] main/INFO Launching target 'forgeserver' with arguments []
09.02 23:16:08 [Server] main/WARN Reference map 'yungsextras.refmap.json' for yungsextras.mixins.json could not be read. If this is a development environment you can ignore this message
09.02 23:16:08 [Server] main/WARN Reference map 'yungsextras.refmap.json' for yungsextras_forge.mixins.json could not be read. If this is a development environment you can ignore this message
09.02 23:16:08 [Server] main/WARN Option 'mixin.world.block_entity_ticking.world_border' requires 'mixin.util.world_border_listener=true' but found 'false'. Setting 'mixin.world.block_entity_ticking.world_border=false'.
09.02 23:16:08 [Server] main/INFO Loaded configuration file for Canary: 106 options available, 1 override(s) found
09.02 23:16:08 [Server] main/WARN Reference map 'v_slab_compat-common-refmap.json' for v_slab_compat-common.mixins.json could not be read. If this is a development environment you can ignore this message
09.02 23:16:08 [Server] main/WARN Reference map 'everycomp-common-refmap.json' for everycomp-common.mixins.json could not be read. If this is a development environment you can ignore this message
09.02 23:16:08 [Server] main/WARN Reference map 'everycomp.refmap.json' for everycomp.mixins.json could not be read. If this is a development environment you can ignore this message
09.02 23:16:09 [Server] main/WARN Reference map 'rottencreatures-forge-refmap.json' for rottencreatures.mixins.json could not be read. If this is a development environment you can ignore this message
09.02 23:16:09 [Server] Transformer Transforming m_47480_ (Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/core/BlockPos;Z)Z in net/minecraft/world/level/biome/Biome
09.02 23:16:09 [Server] Transformer Patched 1 calls
09.02 23:16:09 [Server] Transformer Transforming m_47519_ (Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/core/BlockPos;)Z in net/minecraft/world/level/biome/Biome
09.02 23:16:09 [Server] Transformer Successfully patched shouldSnow
09.02 23:16:10 [Server] Transformer Transforming m_8714_ (Lnet/minecraft/world/level/chunk/LevelChunk;I)V in net/minecraft/server/level/ServerLevel
09.02 23:16:10 [Server] Transformer Successfully patched tickChunk
09.02 23:16:11 [Server] main/WARN Force-disabling mixin 'world.player_chunk_tick.ChunkMapMixin' as rule 'mixin.world.player_chunk_tick' (added by mods [pluto]) disables it and children
09.02 23:16:12 [Server] main/WARN Error loading class: com/mojang/blaze3d/audio/Channel (java.lang.ClassNotFoundException: com.mojang.blaze3d.audio.Channel)
09.02 23:16:12 [Server] main/WARN @Mixin target com.mojang.blaze3d.audio.Channel was not found assets/sound_physics_remastered/sound_physics_remastered.mixins.json:ChannelAccessor
09.02 23:16:12 [Server] main/INFO Mixing server.MixinDedicatedServer from nochatreports.mixins.json into net.minecraft.server.dedicated.DedicatedServer
09.02 23:16:14 [Server] Transformer Transforming m_8714_ (Lnet/minecraft/world/level/chunk/LevelChunk;I)V in net/minecraft/server/level/ServerLevel
09.02 23:16:14 [Server] Transformer Successfully patched tickChunk
09.02 23:16:14 [Server] main/INFO Mixing server.MixinPlayer from nochatreports.mixins.json into net.minecraft.world.entity.player.Player
09.02 23:16:17 [Server] main/INFO Constructing shapes for nodeWith 2.0, extensionWidth 2.0, nodeHeight 24.0, extensionBottom 0.0, extensionHeight 24.0 took 147ms
09.02 23:16:17 [Server] main/INFO Constructing shapes for nodeWith 2.0, extensionWidth 2.0, nodeHeight 16.0, extensionBottom 0.0, extensionHeight 16.0 took 192ms
09.02 23:16:17 [Server] main/INFO Constructing shapes for nodeWith 2.0, extensionWidth 1.0, nodeHeight 16.0, extensionBottom 6.0, extensionHeight 15.0 took 329ms
09.02 23:16:17 [Server] Transformer Transforming m_8107_ ()V in net/minecraft/world/entity/animal/SnowGolem
09.02 23:16:17 [Server] Transformer Patched 1 calls
09.02 23:16:20 [Server] main/INFO Building unoptimized datafixer
09.02 23:16:22 [Server] main/WARN @ModifyConstant conflict. Skipping repurposed_structures.mixins.json:structures.StructurePoolMixin->@ModifyConstant::repurposedstructures_increaseWeightLimitDev(I)I with priority 1000, already redirected by yungsapi_forge.mixins.json:IncreaseStructureWeightLimitMixinForge->@ModifyConstant::yungsapi_increaseWeightLimit(I)I with priority 1000
09.02 23:16:22 [Server] Transformer Transforming m_47480_ (Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/core/BlockPos;Z)Z in net/minecraft/world/level/biome/Biome
09.02 23:16:22 [Server] Transformer Patched 1 calls
09.02 23:16:22 [Server] Transformer Transforming m_47519_ (Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/core/BlockPos;)Z in net/minecraft/world/level/biome/Biome
09.02 23:16:22 [Server] Transformer Successfully patched shouldSnow
09.02 23:16:24 [Server] modloading-worker-0/INFO [LambDynLights] Initializing Dynamic Lights Reforged...
09.02 23:16:24 [Server] modloading-worker-0/INFO Better Compatibility Checker loading
09.02 23:16:24 [Server] modloading-worker-0/INFO Registered paragon
09.02 23:16:25 [Server] modloading-worker-0/WARN Falling Leaves is a client only mod and should be removed from the mods list
09.02 23:16:25 [Server] modloading-worker-0/INFO Constructing common components for mod leavesbegone
09.02 23:16:25 [Server] modloading-worker-0/INFO Constructing common components for mod visualworkbench
09.02 23:16:25 [Server] modloading-worker-0/INFO Constructing common components for mod pickupnotifier
09.02 23:16:25 [Server] modloading-worker-0/INFO KONNICHIWA ZA WARUDO!
09.02 23:16:25 [Server] modloading-worker-0/INFO Default JVM text encoding is: US-ASCII
09.02 23:16:25 [Server] Tweaks Disabled because not running on the client.
09.02 23:16:25 [Server] modloading-worker-0/ERROR Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER
09.02 23:16:25 [Server] modloading-worker-0/INFO Reading config file NoChatReports/NCR-Common.json...
09.02 23:16:25 [Server] modloading-worker-0/ERROR Failed to create mod instance. ModID: nebs, class org.infernalstudios.nebs.NekosEnchantedBooks
09.02 23:16:25 [Server] INFO java.lang.reflect.InvocationTargetException: null
09.02 23:16:25 [Server] jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:? {}
09.02 23:16:25 [Server] jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:? {}
09.02 23:16:25 [Server] jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:? {}
09.02 23:16:25 [Server] java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:? {}
09.02 23:16:25 [Server] java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:? {}
09.02 23:16:25 [Server] net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:68) ~[javafmllanguage-1.19.2-43.2.3.jar%23527!/:? {}
09.02 23:16:25 [Server] net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:121) ~[fmlcore-1.19.2-43.2.3.jar%23526!/:? {}
09.02 23:16:25 [Server] java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) [?:? {}
09.02 23:16:25 [Server] java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) [?:? {}
09.02 23:16:25 [Server] java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:? {}
09.02 23:16:25 [Server] java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:? {}
09.02 23:16:25 [Server] java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:? {re:mixin,re:computing_frames}
09.02 23:16:25 [Server] java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:? {re:mixin,re:computing_frames}
09.02 23:16:25 [Server] java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:? {re:mixin}
09.02 23:16:25 [Server] INFO Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/multiplayer/ClientLevel for invalid dist DEDICATED_SERVER
09.02 23:16:25 [Server] net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[fmlloader-1.19.2-43.2.3.jar%2367!/:1.0 {}
09.02 23:16:26 [Multicraft] Skipped 160 lines due to rate limit (30/s)
09.02 23:16:26 [Server] modloading-worker-0/INFO Registering C2S receiver with id architectury:sync_ids
09.02 23:16:26 [Server] modloading-worker-0/INFO Registering C2S receiver with id ftblibrary:edit_nbt_response
09.02 23:16:26 [Server] modloading-worker-0/INFO Registering C2S receiver with id ftbteams:open_gui
09.02 23:16:26 [Server] modloading-worker-0/INFO Registering C2S receiver with id ftbteams:update_settings
09.02 23:16:26 [Server] modloading-worker-0/INFO Registering C2S receiver with id ftbteams:send_message
09.02 23:16:26 [Server] modloading-worker-0/INFO Registering C2S receiver with id ftbteams:create_party
09.02 23:16:26 [Server] modloading-worker-0/INFO Deeper and Darker entities have been registered
09.02 23:16:26 [Server] modloading-worker-0/INFO Registering C2S receiver with id ftbteams:player_gui_operation
09.02 23:16:26 [Server] modloading-worker-0/ERROR Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER
09.02 23:16:26 [Server] modloading-worker-0/ERROR Failed to create mod instance. ModID: skinlayers3d, class dev.tr7zw.skinlayers.SkinLayersMod
09.02 23:16:26 [Server] INFO java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screens/Screen for invalid dist DEDICATED_SERVER
09.02 23:16:26 [Server] net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:57) ~[fmlloader-1.19.2-43.2.3.jar%2367!/:1.0 {}
09.02 23:16:26 [Server] cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:26 [Server] cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:26 [Server] cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:26 [Server] cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.4.jar:? {}
09.02 23:16:26 [Server] cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:? {}
09.02 23:16:26 [Server] cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.4.jar:? {}
09.02 23:16:26 [Server] cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.4.jar:? {}
09.02 23:16:26 [Server] cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.4.jar:? {}
09.02 23:16:26 [Server] java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:? {}
09.02 23:16:26 [Server] java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:? {re:mixin}
09.02 23:16:26 [Server] java.lang.Class.privateGetDeclaredConstructors(Class.java:3373) ~[?:? {re:mixin}
09.02 23:16:26 [Server] java.lang.Class.getConstructor0(Class.java:3578) ~[?:? {re:mixin}
09.02 23:16:26 [Server] java.lang.Class.getDeclaredConstructor(Class.java:2754) ~[?:? {re:mixin}
09.02 23:16:26 [Server] net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:68) ~[javafmllanguage-1.19.2-43.2.3.jar%23527!/:? {}
09.02 23:16:26 [Server] net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:121) ~[fmlcore-1.19.2-43.2.3.jar%23526!/:? {}
09.02 23:16:26 [Server] java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) [?:? {}
09.02 23:16:26 [Server] java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) [?:? {}
09.02 23:16:26 [Server] java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:? {}
09.02 23:16:27 [Multicraft] Skipped 204 lines due to rate limit (30/s)
09.02 23:16:27 [Server] main/FATAL Failed to complete lifecycle event CONSTRUCT, 3 errors found
09.02 23:16:28 [Server] INFO Negative index in crash report handler (16/18)
09.02 23:16:28 [Server] main/FATAL Preparing crash report with UUID a508b737-c7c3-4889-8d42-069962c709c0
09.02 23:16:28 [Server] main/FATAL Crash report saved to ./crash-reports/crash-2023-02-09_23.16.28-fml.txt
09.02 23:16:28 [Server] main/FATAL Preparing crash report with UUID b13a6581-2062-43ba-88d1-b2bf32e8fb26
09.02 23:16:28 [Server] INFO ---- Minecraft Crash Report ----
09.02 23:16:28 [Server] INFO // Everything's going to plan. No, really, that was supposed to happen.
09.02 23:16:28 [Server] INFO Time: 2023-02-09 23:16:28
09.02 23:16:28 [Server] INFO Description: Mod loading error has occurred
09.02 23:16:28 [Server] INFO java.lang.Exception: Mod Loading has failed
09.02 23:16:28 [Server] net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.19.2-43.2.3-universal.jar%23530!/:? {re:classloading}
09.02 23:16:28 [Server] net.minecraftforge.server.loading.ServerModLoader.load(ServerModLoader.java:39) ~[forge-1.19.2-43.2.3-universal.jar%23530!/:? {re:classloading}
09.02 23:16:28 [Server] net.minecraft.server.Main.main(Main.java:113) ~[server-1.19.2-20220805.130853-srg.jar%23525!/:? {re:classloading,re:mixin,pl:mixin:A}
09.02 23:16:28 [Server] jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:? {}
09.02 23:16:28 [Server] jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:? {}
09.02 23:16:28 [Server] jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:? {}
09.02 23:16:28 [Server] java.lang.reflect.Method.invoke(Method.java:568) ~[?:? {}
09.02 23:16:28 [Server] net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:29) ~[fmlloader-1.19.2-43.2.3.jar%2367!/:? {}
09.02 23:16:28 [Server] cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:28 [Server] cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:28 [Server] cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:28 [Server] cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:28 [Server] cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:28 [Server] cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:28 [Server] cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2354!/:? {}
09.02 23:16:28 [Server] cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:? {}

 

Edited by BesTiaPanDa
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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • https://mclo.gs/4UC49Ao
    • Way back in the Forge 1.17 days, work started for adding JPMS (Java Platform Module Support) to ModLauncher and ForgeModLoader. This has been used internally by Forge and some libraries for a while now, but mods (those with mods.toml specifically) have not been able to take advantage of it. As of Forge 1.21.1 and 1.21.3, this is now possible!   What is JPMS and what does it mean for modders? JPMS is the Java Platform Module System, introduced in Java 9. It allows you to define modules, which are collections of packages and resources that can be exported or hidden from other modules. This allows for much more fine-tuned control over visibility, cleaner syntax for service declarations and support for sealed types across packages. For example, you might have a mod with a module called `com.example.mod` that exports `com.example.mod.api` and `com.example.mod.impl` to other mods, but hides `com.example.mod.internal` from them. This would allow you to have a clean API for other mods to use, while keeping your internal implementation details hidden from IDE hints, helping prevent accidental usage of internals that might break without prior notice. This is particularly useful if you'd like to use public records with module-private constructors or partially module-private record components, as you can create a sealed interface that only your record implements, having the interface be exported and the record hidden. It's also nice for declaring and using services, as you'll get compile-time errors from the Java compiler for typos and the like, rather than deferring to runtime errors. In more advanced cases, you can also have public methods that are only accessible to specific other modules -- handy if you want internal interactions between multiple of your own mods.   How do I bypass it? We understand there may be drama in implementing a system that prevents mods from accessing each other's internals when necessary (like when a mod is abandoned or you need to fix a compat issue) -- after all, we are already modding a game that doesn't have explicit support for Java mods yet. We have already thought of this and are offering APIs from day one to selectively bypass module restrictions. Let me be clear: Forge mods are not required to use JPMS. If you don't want to use it, you don't have to. The default behaviour is to have fully open, fully exported automatic modules. In Java, you can use the `Add-Opens` and `Add-Exports` manifest attributes to selectively bypass module restrictions of other mods at launch time, and we've added explicit support for these when loading your Forge mods. At compile-time, you can use existing solutions such as the extra-java-module-info Gradle plugin to deal with non-modular dependencies and add extra opens and exports to other modules. Here's an example on how to make the internal package `com.example.examplemod.internal` open to your mod in your build.gradle: tasks.named('jar', Jar) { manifest { attributes([ 'Add-Opens' : 'com.example.examplemod/com.example.examplemod.internal' 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors // (...) ]) } } With the above in your mod's jar manifest, you can now reflectively access the classes inside that internal package. Multiple entries are separated with a space, as per Java's official spec. You can also use Add-Exports to directly call without reflection, however you'd need to use the Gradle plugin mentioned earlier to be able to compile. The syntax for Add-Exports is the same as Add-Opens, and instructions for the compile-time step with the Gradle plugin are detailed later in this post. Remember to prefer the opens and exports keywords inside module-info.java for sources you control. The Add-Opens/Add-Exports attributes are only intended for forcing open other mods.   What else is new with module support? Previously, the runtime module name was always forced to the first mod ID in your `mods.toml` file and all packages were forced fully open and exported. Module names are now distinguished from mod IDs, meaning the module name in your module-info.java can be different from the mod ID in your `mods.toml`. This allows you to have a more descriptive module name that doesn't have to be the same as your mod ID, however we strongly recommend including your mod ID as part of your module name to aid troubleshooting. The `Automatic-Module-Name` manifest attribute is now also honoured, allowing you to specify a module name for your mod without needing to create a `module-info.java` file. This is particularly useful for mods that don't care about JPMS features but want to have a more descriptive module name and easier integration with other mods that do use JPMS.   How do I use it? The first step is to create a `module-info.java` file in your mod's source directory. This file should be in the same package as your main mod class, and should look something like this: open module com.example.examplemod { requires net.minecraftforge.eventbus; requires net.minecraftforge.fmlcore; requires net.minecraftforge.forge; requires net.minecraftforge.javafmlmod; requires net.minecraftforge.mergetool.api; requires org.slf4j; requires logging; } For now, we're leaving the whole module open to reflection, which is a good starting point. When we know we want to close something off, we can remove the open modifier from the module and open or export individual packages instead. Remember that you need to be open to Forge (module name net.minecraftforge.forge), otherwise it can't call your mod's constructor. Next is fixing modules in Gradle. While Forge and Java support modules properly, Gradle does not put automatic modules on the module path by default, meaning that the logging module (from com.mojang:logging) is not found. To fix this, add the Gradle plugin and add a compile-time module definition for that Mojang library: plugins { // (...) id 'org.gradlex.extra-java-module-info' version "1.9" } // (...) extraJavaModuleInfo { failOnMissingModuleInfo = false automaticModule("com.mojang:logging", "logging") } The automatic module override specified in your build.gradle should match the runtime one to avoid errors. You can do the same for any library or mod dependency that is missing either a module-info or explicit Automatic-Module-Name, however be aware that you may need to update your mod once said library adds one. That's all you need to get started with module support in your mods. You can learn more about modules and how to use them at dev.java.
    • Faire la mise à jour grâce à ce lien m'a aider personnellement, merci à @Paint_Ninja. https://www.amd.com/en/support 
    • When I came across the 'Exit Code: I got a 1 error in my Minecraft mods, so I decided to figure out what was wrong. First, I took a look at the logs. In the mods folder (usually where you'd find logs or crash reports), I found the latest.log file or the corresponding crash report. I read it through carefully, looking for any lines with errors or warnings. Then I checked the Minecraft Forge support site, where you can often find info on what causes errors and how to fix them. I then disabled half of my mods and tried running the game. If the error disappeared, it meant that the problem was with the disabled mod. I repeated this several times to find the problem mod.
    • I have no idea - switch to a pre-configured modpack and use it as working base    
  • Topics

×
×
  • Create New...

Important Information

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