Jump to content

[SOLVED] 1.5.2 Sever issues...


ld624188

Recommended Posts

Hi I not sure if this is the right sport to post in, but I am having trouble starting my server. I have all mods up dated to 1.5.0 or above most running on 1.5.2, but when I start my forge server running "Forge-Universal 1.5.2 - 7.8.1.737" I get a server crash I fixed the fist one it indicated that one of my mods need Power Crystal Core I installed that and then I got this one(as followed below). So can someone please help, thanks.

 

---- Minecraft Crash Report ----
// I'm sorry, Dave.

Time: 6/27/13 7:23 PM
Description: Exception in server tick loop

java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.gatherAnnotations(FMLModContainer.java:319)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:464)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:504)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:85)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:69)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:139)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 32 more


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

-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_13, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1575968824 bytes (1502 MB) / 2058027008 bytes (1962 MB) up to 2058027008 bytes (1962 MB)
JVM Flags: 2 total; -Xmx2048M -Xms2048M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.23.737 Minecraft Forge 7.8.1.737 110 mods loaded, 110 mods active
mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed
CodeChickenCore{0.8.7.3} [CodeChicken Core] (coremods) Unloaded->Constructed
NotEnoughItems{1.5.2.28} [Not Enough Items] (coremods) Unloaded->Constructed
PowerCrystalsCore{1.1.6} [PowerCrystals Core] (coremods) Unloaded->Constructed
mod_bspkrsCore{v2.07(1.5.2)} [bspkrsCore] ([1.5.2]bspkrsCorev2.07.zip) Unloaded->Constructed
TreeCapitator{Forge 1.5.2.r01} [TreeCapitator] ([1.5.2]TreeCapitator.Forge.1.5.2.r01.Uni.CoreMod.jar) Unloaded->Constructed
DynamicLights{1.2.2} [Dynamic Lights] (DynamicLights_1.5.2.jar) Unloaded
DynamicLights_onFire{1.0.2} [Dynamic Lights on burning] (DynamicLights_1.5.2.jar) Unloaded
DynamicLights_creepers{1.0.2} [Dynamic Lights on Creepers] (DynamicLights_1.5.2.jar) Unloaded
DynamicLights_dropItems{1.0.4} [Dynamic Lights on ItemEntities] (DynamicLights_1.5.2.jar) Unloaded
DynamicLights_mobEquipment{1.0.0} [Dynamic Lights on Mob Equipment] (DynamicLights_1.5.2.jar) Unloaded
DynamicLights_flameArrows{1.0.0} [Dynamic Lights on Flame enchanted Arrows] (DynamicLights_1.5.2.jar) Unloaded
DynamicLights_otherPlayers{1.0.4} [Dynamic Lights Other Player Light] (DynamicLights_1.5.2.jar) Unloaded
DynamicLights_thePlayer{1.0.7} [Dynamic Lights Player Light] (DynamicLights_1.5.2.jar) Unloaded
DamageIndicatorsMod{2.7.0.1} [Damage Indicators] (1.5.2 DamageIndicators v2.7.0.1.zip) Unloaded
jammyfurniture{4.4} [Jammy Furniture Mod] (1.5.2_Jammy_Furniture_Mod_V4.4.zip) Unloaded
Chainz_Core{1.0.8} [Chainz] (1.5.2Chainz_v1.0.8Forge.zip) Unloaded
mod_ArmorStatusHUD{Not available} [mod_ArmorStatusHUD] ([1.5.2]ArmorStatusHUDv1.7.zip) Unloaded
mod_DirectionHUD{Not available} [mod_DirectionHUD] ([1.5.2]DirectionHUDv1.13.zip) Unloaded
CoFHCore{1.5.2.5} [CoFHCore] (CoFHCore-1.5.2.5.jar) Unloaded
ThermalExpansion{2.4.6.0} [Thermal Expansion] (ThermalExpansion-2.4.6.0.jar) Unloaded
IC2{1.116.374-lf} [industrialCraft 2] (industrialcraft-2_1.116.374-lf.jar) Unloaded
AdvancedMachines{4.9} [iC2 Advanced Machines Addon] (AdvancedMachines_1.5.2.zip) Unloaded
BuildCraft|Core{3.6.0-29-g9891f99} [buildCraft] (buildcraft-1.5.2-3.6.0.29.222.jar) Unloaded
BuildCraft|Transport{3.6.0-29-g9891f99} [bC Transport] (buildcraft-1.5.2-3.6.0.29.222.jar) Unloaded
BuildCraft|Silicon{3.6.0-29-g9891f99} [bC Silicon] (buildcraft-1.5.2-3.6.0.29.222.jar) Unloaded
BuildCraft|Builders{3.6.0-29-g9891f99} [bC Builders] (buildcraft-1.5.2-3.6.0.29.222.jar) Unloaded
BuildCraft|Energy{3.6.0-29-g9891f99} [bC Energy] (buildcraft-1.5.2-3.6.0.29.222.jar) Unloaded
BuildCraft|Factory{3.6.0-29-g9891f99} [bC Factory] (buildcraft-1.5.2-3.6.0.29.222.jar) Unloaded
MineFactoryReloaded{1.5.1R2.6.4} [MineFactory Reloaded] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
AppliedEnergistics{rv11.b} [Applied Energistics] (appeng-rv11-b.zip) Unloaded
ArsMagica{5.52.013} [Ars Magica] (ArsMagica_5.52.013.zip) Unloaded
BiblioCraft{1.3.1} [biblioCraft] (BiblioCraft[v1.3.1].zip) Unloaded
BladeCraft_Mod{1.4.2.1} [bladecraft] (BladeCraft 1.4.2.1.zip) Unloaded
Additional-Buildcraft-Objects{1.0.4.150} [Additional Buildcraft Objects] (buildcraft-Z-additional-buildcraft-objects-1.0.4.150.jar) Unloaded
ChargePads{2.7.0} [Charge Pads] (chargepads-1.5.2-universal-2.7.0.86.jar) Unloaded
ChickenChunks{1.3.2.14} [ChickenChunks] (ChickenChunks 1.3.2.14.jar) Unloaded
CoFHWorld{1.5.2.5} [CoFHWorld] (CoFHCore-1.5.2.5.jar) Unloaded
CompactSolars{4.2.0.52} [Compact Solar Arrays] (compactsolars-universal-1.5.2-4.2.0.52.zip) Unloaded
ComputerCraft{1.53} [ComputerCraft] (ComputerCraft1.53.zip) Unloaded
CCTurtle{1.53} [ComputerCraft Turtles] (ComputerCraft1.53.zip) Unloaded
EE3{pre1h (build 16)} [Equivalent Exchange 3] (ee3-universal-pre1h-16.jar) Unloaded
EnderStorage{1.4.2.15} [EnderStorage] (EnderStorage 1.4.2.15.jar) Unloaded
ExtrabiomesXL{3.13.4} [ExtrabiomesXL] (ExtrabiomesXL-universal-1.5.2-3.13.4.jar) Unloaded
factorization{0.7.37} [Factorization] (Factorization-0.7.37.jar) Unloaded
factorization.misc{0.7.37} [Factorization Miscellaneous Nonsense] (Factorization-0.7.37.jar) Unloaded
factorization.dimensionalSlice{0.7.37} [Factorization Dimensional Slices] (Factorization-0.7.37.jar) Unloaded
FancyGlass{1.0.4} [Fancy Glass] (FancyGlass-v1.0.4.zip) Unloaded
MineFactoryReloaded|CompatForestryPre{1.5.1R2.6.4} [MFR Compat: Forestry (2)] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
Forestry{2.2.8.2} [Forestry for Minecraft] (forestry-A-2.2.8.2_1_.jar) Unloaded
Hats{1.3.3} [Hats] (Hats1.3.3.zip) Unloaded
ImmibisCore{55.1.2} [immibis Core] (immibis-core-55.1.2.jar) Unloaded
inventorytweaks{1.54b} [inventory Tweaks] (InventoryTweaks-1.54b.jar) Unloaded
IronChest{5.2.8.446} [iron Chest] (ironchest-universal-1.5.2-5.2.8.446.zip) Unloaded
Thaumcraft{3.0.5f} [Thaumcraft] (Thaumcraft3.0.5f.zip) Unloaded
MagicBees{2.0.0 (build 22)} [Magic Bees] (magicbees-2.0.0.jar) Unloaded
Ideas{1} [ideas] (Metallurgy 3.0.0.0.11.2.jar) Unloaded
KeithyUtils{1.0} [Keithy Utils] (Metallurgy 3.0.0.0.11.2.jar) Unloaded
Metallurgy3Core{3.0.0.0.11} [Metallurgy 3 Core] (Metallurgy 3.0.0.0.11.2.jar) Unloaded
Metallurgy3Base{3.0.0.0.11} [Metallurgy 3 Base] (Metallurgy 3.0.0.0.11.2.jar) Unloaded
Metallurgy3Machines{3.0.0.0.11} [Metallurgy 3 Machines] (Metallurgy 3.0.0.0.11.2.jar) Unloaded
Metallurgy3Vanilla{3.0.0.0.11} [Metallurgy 3 Vanilla] (Metallurgy 3.0.0.0.11.2.jar) Unloaded
Meteors{2.10.2} [Falling Meteors] (Meteors Mod V2.10.2.zip) Unloaded
MFFS{3.0.4} [Modular Force Field System] (MFFS_v3.0.4.139.jar) Unloaded
MineFactoryReloaded|CompatAppliedEnergistics{1.5.1R2.6.4} [MFR Compat: Applied Energistics] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatAtum{1.5.1R2.6.4} [MFR Compat: Atum] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatBackTools{1.5.1R2.6.4} [MFR Compat: BackTools] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatBiomesOPlenty{1.5.1R2.6.4} [MFR Compat: Biomes O' Plenty] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatChococraft{1.5.1R2.6.4} [MFR Compat: Chococraft] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatExtraBiomes{1.5.1R2.6.4} [MFR Compat: ExtraBiomes] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatForestry{1.5.1R2.6.4} [MFR Compat: Forestry] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatIC2{1.5.1R2.6.4} [MFR Compat: IC2] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatMagicalCrops{1.5.1R2.6.4} [MFR Compat: Magical Crops] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
Mystcraft{0.10.4.00} [Mystcraft] (mystcraft-uni-1.5.2-0.10.4.00.zip) Unloaded
MineFactoryReloaded|CompatMystcraft{1.5.1R2.6.4} [MFR Compat: Mystcraft] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatPams{1.5.1R2.6.4} [MFR Compat: Pam's Mods] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatRP2{1.5.1R2.6.4} [MFR Compat: RP2] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
SoulShards{1.0.16} [soul Shards] (SoulShards-1.0.36-universal-srg.jar) Unloaded
MineFactoryReloaded|CompatSoulShards{1.5.1R2.6.4} [MFR Compat: SoulShards] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatSufficientBiomes{1.5.1R2.6.4} [MFR Compat: Sufficient Biomes] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MFReloaded|CompatThaumcraft{1.5.1R2.6.4} [MFR Compat: Thaumcraft] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatThermalExpansion{1.5.1R2.6.4} [MFR Compat: Thermal Expansion] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
TwilightForest{1.18.1} [The Twilight Forest] (twilightforest-1.18.1.zip) Unloaded
MineFactoryReloaded|CompatTwilightForest{1.5.1R2.6.4} [MFR Compat: TwilightForest] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatVanilla{1.5.1R2.6.4} [MFR Compat: Vanilla] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MineFactoryReloaded|CompatXyCraft{1.5.1R2.6.4} [MFR Compat: XyCraft] (MineFactoryReloaded-2.6.4-975.jar) Unloaded
MiscPeripherals{3.3} [MiscPeripherals] (miscperipherals-3.3e.jar) Unloaded
mod_Gibbing{Not available} [mod_Gibbing] (MobAmputation1.5.2v1.zip) Unloaded
AdvancedSolarPanel{3.3.7} [Advanced Solar Panels] (mod_AdvancedSolarPanels_3_3_7.zip) Unloaded
GraviSuite{1.9.2} [Gravitation Suite] (mod_zGraviSuite_1_9_2.zip) Unloaded
mmmPowersuits{0.7.0-534} [MachineMuse's Modular Powersuits] (ModularPowersuits-0.7.0-534.jar) Unloaded
NEIAddons{1.7.1.r20} [NEI Addons] (neiaddons-1.5.2-1.7.1.r20.jar) Unloaded
NEIAddons|AE{1.7.1.r20} [NEI Addons: Applied Energistics] (neiaddons-1.5.2-1.7.1.r20.jar) Unloaded
NEIAddons|CraftingTables{1.7.1.r20} [NEI Addons: Crafting Tables] (neiaddons-1.5.2-1.7.1.r20.jar) Unloaded
NEIAddons|ExtraBees{1.7.1.r20} [NEI Addons: Extra Bees] (neiaddons-1.5.2-1.7.1.r20.jar) Unloaded
NEIAddons|Forestry{1.7.1.r20} [NEI Addons: Forestry] (neiaddons-1.5.2-1.7.1.r20.jar) Unloaded
NEIAddons|MiscPeripherals{1.7.1.r20} [NEI Addons: Misc Peripherals] (neiaddons-1.5.2-1.7.1.r20.jar) Unloaded
NEIPlugins{1.0.9.3} [NEI Plugins] (NEIPlugins-1.0.9.3.jar) Unloaded
PetBat{1.2.0} [Pet Bat] (PetBat_1.5.2.zip) Unloaded
Railcraft{7.2.3.0} [Railcraft] (Railcraft_1.5.2-7.2.3.0.jar) Unloaded
PowerConverters{1.5.1R2.3.0} [Power Converters] (PowerConverters-2.3.0-55.jar) Unloaded
StevesCarts{2.0.0.a122} [steve's Carts] (StevesCarts2.0.0.a122.zip) Unloaded
TConstruct{1.5.1_1.3.6.7} [Tinkers' Construct] (TConstruct_1.3.6.7.jar) Unloaded
TConstruct|CompatMineFactoryReloaded{0.1} [TConstruct Compat: MFR] (TConstruct_1.3.6.7.jar) Unloaded
TC{4.0.1_002} [Traincraft] (traincraft-4.0.1_002.jar) Unloaded
Tubestuff{55.0.2} [Tubestuff] (tubestuff-55.0.2.jar) Unloaded
AS_UpdateCheck{1.0.8} [AtomicStryker Update Check Mod] (UpdateCheckerMod_1.5.2.zip) Unloaded
OmniTools{3.1.6.0} [OmniTools] (OmniTools-3.1.6.0.jar) Unloaded
Profiler Position: N/A (disabled)
Is Modded: Definitely; Server brand changed to 'fml,forge'
Type: Dedicated Server (map_server.txt)

Link to comment
Share on other sites

Yes I have found that I was just trouble shooting for a long time, and it was the mod Dynamic Lights; and it was missing something it said NoClassDefFoundError in the root net/minecrat/client/Minecraft. I tried a few things but I realized I can live without that mod. But thanks for pointing it out.

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

    • rp.crazyheal.xyz mods  
    • I'm developing a dimension, but it's kinda resource intensive so some times during player teleporting it lags behind making the player phase down into the void, so im trying to implement some kind of pregeneration to force the game loading a small set of chunks in the are the player will teleport to. Some of the things i've tried like using ServerLevel and ServerChunkCache methods like getChunk() dont actually trigger chunk generation if the chunk isn't already on persistent storage (already generated) or placing tickets, but that doesn't work either. Ideally i should be able to check when the task has ended too. I've peeked around some pregen engines, but they're too complex for my current understanding of the system of which I have just a basic understanding (how ServerLevel ,ServerChunkCache  and ChunkMap work) of. Any tips or other classes I should be looking into to understand how to do this correctly?
    • 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 
  • Topics

×
×
  • Create New...

Important Information

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