Jump to content

Recommended Posts

Posted

I down graded my minecraft to 1.5.2 and ive been playing single player for a while with mods, but then I wanted to make a server with ars magica. So I installed it properly i believe, everything works, theres a mod folder etc.. but when I drag a mod into the folder, the server starts to crash.. and its not just ars magica, its any mod at all.. im confused :/ if theres no mods in the folder, then it works perfectly fine, this is so weird.. ( I downgraded because for some odd reason ars magica wouldnt work on 1.7.2 or anything above 1.6 ) So when I installed my mods I got this message at startup.

 

This is the one that I got from the crash report

 

 

---- Minecraft Crash Report ----

// My bad.

 

Time: 11/9/13 12:41 PM

Description: Exception in server tick loop

 

java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiOptions

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.gui.GuiOptions

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 32 more

Caused by: java.lang.NullPointerException

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227)

... 34 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_45, Oracle Corporation

Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 582272152 bytes (555 MB) / 650641408 bytes (620 MB) up to 954728448 bytes (910 MB)

JVM Flags: 2 total; -Xms512M -Xmx1G

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 10 mods loaded, 10 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

GuiAPI{0.15.6} [GuiAPI] (GuiAPI-0.15.6-1.5.2.jar) Unloaded

ArsMagica{5.52.014} [Ars Magica] (ArsMagica_5.52.014.zip) Unloaded

BiblioCraft{1.3.3} [biblioCraft] (BiblioCraft[v1.3.3].zip) Unloaded

mod_CraftGuide{Not available} [mod_CraftGuide] (CraftGuide-1.6.7.3-modloader.zip) Unloaded

CustomSpawner{2.2.5} [DrZhark's CustomSpawner] (CustomMobSpawner 2.2.5.zip) Unloaded

MoCreatures{5.2.5} [DrZhark's Mo'Creatures Mod] (DrZharks MoCreatures Mod v5.2.5.zip) Unloaded

ExtrabiomesXL{3.14.1} [ExtrabiomesXL] (ExtrabiomesXL-universal-1.5.2-3.14.1.jar) Unloaded

Profiler Position: N/A (disabled)

Is Modded: Definitely; Server brand changed to 'fml,forge'

Type: Dedicated Server (map_server.txt)

 

 

 

This one is the crash inside the ForgeModLoader-Server-0.log

 

 

2013-11-09 12:41:29 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.2.23.737 for Minecraft 1.5.2 loading

2013-11-09 12:41:29 [iNFO] [ForgeModLoader] Java is Java HotSpot™ 64-Bit Server VM, version 1.7.0_45, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7

2013-11-09 12:41:29 [FINE] [ForgeModLoader] Java classpath at launch is minecraft_server.jar

2013-11-09 12:41:29 [FINE] [ForgeModLoader] Java library path at launch is C:\Windows\system32;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\HP SimplePass 2011\x64;C:\Program Files (x86)\HP SimplePass 2011\;;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\12.0\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;.

2013-11-09 12:41:29 [FINE] [ForgeModLoader] Enabling runtime deobfuscation

2013-11-09 12:41:29 [FINE] [ForgeModLoader] The coremod sharose.mods.guiapi.GuiAPIDummyCoreMod requested minecraft version 1.5.2 and minecraft is 1.5.2. It will be loaded.

2013-11-09 12:41:30 [iNFO] [ForgeModLoader] Found valid fingerprint for Minecraft Forge. Certificate fingerprint de4cf8a3f3bc15635810044c39240bf96804ea7d

2013-11-09 12:41:33 [iNFO] [sTDOUT] 229 recipes

2013-11-09 12:41:33 [iNFO] [sTDOUT] 27 achievements

2013-11-09 12:41:34 [iNFO] [Minecraft-Server] Starting minecraft server version 1.5.2

2013-11-09 12:41:34 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-11-09 12:41:34 [iNFO] [sTDOUT] MinecraftForge v7.8.1.737 Initialized

2013-11-09 12:41:34 [iNFO] [ForgeModLoader] MinecraftForge v7.8.1.737 Initialized

2013-11-09 12:41:35 [iNFO] [sTDOUT] Replaced 85 ore recipies

2013-11-09 12:41:35 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-11-09 12:41:35 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Owner\Desktop\Minecraft Server\config\logging.properties

2013-11-09 12:41:35 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Owner\Desktop\Minecraft Server\minecraft_server.jar, examining for mod candidates

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\Owner\Desktop\Minecraft Server\coremods\GuiAPI-0.15.6-1.5.2.jar, examining for mod candidates

2013-11-09 12:41:35 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Owner\Desktop\Minecraft Server\lib\argo-small-3.2.jar

2013-11-09 12:41:35 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Owner\Desktop\Minecraft Server\lib\guava-14.0-rc3.jar

2013-11-09 12:41:35 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Owner\Desktop\Minecraft Server\lib\asm-all-4.1.jar

2013-11-09 12:41:35 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Owner\Desktop\Minecraft Server\lib\bcprov-jdk15on-148.jar

2013-11-09 12:41:35 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Owner\Desktop\Minecraft Server\lib\deobfuscation_data_1.5.2.zip

2013-11-09 12:41:35 [FINER] [ForgeModLoader] Skipping known library file C:\Users\Owner\Desktop\Minecraft Server\lib\scala-library.jar

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully

2013-11-09 12:41:35 [iNFO] [ForgeModLoader] Searching C:\Users\Owner\Desktop\Minecraft Server\mods for mods

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Found a candidate zip or jar file ArsMagica_5.52.014.zip

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Found a candidate zip or jar file BiblioCraft[v1.3.3].zip

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Found a candidate zip or jar file CraftGuide-1.6.7.3-modloader.zip

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Found a candidate zip or jar file CustomMobSpawner 2.2.5.zip

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Found a candidate zip or jar file DrZharks MoCreatures Mod v5.2.5.zip

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Found a candidate zip or jar file ExtrabiomesXL-universal-1.5.2-3.14.1.jar

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Examining file minecraft_server.jar for potential mods

2013-11-09 12:41:35 [FINE] [ForgeModLoader] The mod container minecraft_server.jar appears to be missing an mcmod.info file

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Examining file GuiAPI-0.15.6-1.5.2.jar for potential mods

2013-11-09 12:41:35 [FINER] [ForgeModLoader] Located mcmod.info file in file GuiAPI-0.15.6-1.5.2.jar

2013-11-09 12:41:35 [FINE] [ForgeModLoader] Identified an FMLMod type mod sharose.mods.guiapi.GuiAPI

2013-11-09 12:41:36 [FINEST] [GuiAPI] Parsed dependency info : [] [] []

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Examining file ArsMagica_5.52.014.zip for potential mods

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Located mcmod.info file in file ArsMagica_5.52.014.zip

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Identified an FMLMod type mod mithion.arsmagica.AMCore

2013-11-09 12:41:36 [FINEST] [ArsMagica] Parsed dependency info : [] [] []

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Examining file BiblioCraft[v1.3.3].zip for potential mods

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Located mcmod.info file in file BiblioCraft[v1.3.3].zip

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Identified an FMLMod type mod jds.bibliocraft.BiblioCraft

2013-11-09 12:41:36 [FINEST] [biblioCraft] Parsed dependency info : [] [] []

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Examining file CraftGuide-1.6.7.3-modloader.zip for potential mods

2013-11-09 12:41:36 [FINE] [ForgeModLoader] The mod container CraftGuide-1.6.7.3-modloader.zip appears to be missing an mcmod.info file

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Identified a BaseMod type mod mod_CraftGuide

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Examining file CustomMobSpawner 2.2.5.zip for potential mods

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Located mcmod.info file in file CustomMobSpawner 2.2.5.zip

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Identified an FMLMod type mod drzhark.customspawner.CustomSpawner

2013-11-09 12:41:36 [FINEST] [CustomSpawner] Parsed dependency info : [] [] []

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Examining file DrZharks MoCreatures Mod v5.2.5.zip for potential mods

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Located mcmod.info file in file DrZharks MoCreatures Mod v5.2.5.zip

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Identified an FMLMod type mod drzhark.mocreatures.MoCreatures

2013-11-09 12:41:36 [FINEST] [MoCreatures] Parsed dependency info : [] [] []

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Examining file ExtrabiomesXL-universal-1.5.2-3.14.1.jar for potential mods

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Located mcmod.info file in file ExtrabiomesXL-universal-1.5.2-3.14.1.jar

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Identified an FMLMod type mod extrabiomes.Extrabiomes

2013-11-09 12:41:36 [FINEST] [ExtrabiomesXL] Using mcmod dependency info : [Forge] [Forge] []

2013-11-09 12:41:36 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 10 mods to load

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Received a system property request ''

2013-11-09 12:41:36 [FINER] [ForgeModLoader] System property request managing the state of 0 mods

2013-11-09 12:41:36 [FINE] [ForgeModLoader] After merging, found state information for 0 mods

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Reloading logging properties from C:\Users\Owner\Desktop\Minecraft Server\config\logging.properties

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Reloaded logging properties

2013-11-09 12:41:36 [FINE] [mcp] Mod Logging channel mcp configured at default level.

2013-11-09 12:41:36 [iNFO] [mcp] Activating mod mcp

2013-11-09 12:41:36 [FINE] [FML] Mod Logging channel FML configured at default level.

2013-11-09 12:41:36 [iNFO] [FML] Activating mod FML

2013-11-09 12:41:36 [FINE] [Forge] Mod Logging channel Forge configured at default level.

2013-11-09 12:41:36 [iNFO] [Forge] Activating mod Forge

2013-11-09 12:41:36 [FINE] [GuiAPI] Enabling mod GuiAPI

2013-11-09 12:41:36 [FINE] [GuiAPI] Mod Logging channel GuiAPI configured at default level.

2013-11-09 12:41:36 [iNFO] [GuiAPI] Activating mod GuiAPI

2013-11-09 12:41:36 [FINE] [ArsMagica] Enabling mod ArsMagica

2013-11-09 12:41:36 [FINE] [ArsMagica] Mod Logging channel ArsMagica configured at default level.

2013-11-09 12:41:36 [iNFO] [ArsMagica] Activating mod ArsMagica

2013-11-09 12:41:36 [FINE] [biblioCraft] Enabling mod BiblioCraft

2013-11-09 12:41:36 [FINE] [biblioCraft] Mod Logging channel BiblioCraft configured at default level.

2013-11-09 12:41:36 [iNFO] [biblioCraft] Activating mod BiblioCraft

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Enabling mod mod_CraftGuide

2013-11-09 12:41:36 [FINE] [mod_CraftGuide] Mod Logging channel mod_CraftGuide configured at default level.

2013-11-09 12:41:36 [iNFO] [mod_CraftGuide] Activating mod mod_CraftGuide

2013-11-09 12:41:36 [FINE] [CustomSpawner] Enabling mod CustomSpawner

2013-11-09 12:41:36 [FINE] [CustomSpawner] Mod Logging channel CustomSpawner configured at default level.

2013-11-09 12:41:36 [iNFO] [CustomSpawner] Activating mod CustomSpawner

2013-11-09 12:41:36 [FINE] [MoCreatures] Enabling mod MoCreatures

2013-11-09 12:41:36 [FINE] [MoCreatures] Mod Logging channel MoCreatures configured at default level.

2013-11-09 12:41:36 [iNFO] [MoCreatures] Activating mod MoCreatures

2013-11-09 12:41:36 [FINE] [ExtrabiomesXL] Enabling mod ExtrabiomesXL

2013-11-09 12:41:36 [FINE] [ExtrabiomesXL] Mod Logging channel ExtrabiomesXL configured at default level.

2013-11-09 12:41:36 [iNFO] [ExtrabiomesXL] Activating mod ExtrabiomesXL

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Verifying mod requirements are satisfied

2013-11-09 12:41:36 [FINER] [ForgeModLoader] All mod requirements are satisfied

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Sorting mods into an ordered list

2013-11-09 12:41:36 [FINER] [ForgeModLoader] Mod sorting completed successfully

2013-11-09 12:41:36 [FINE] [ForgeModLoader] Mod sorting data

2013-11-09 12:41:36 [FINE] [ForgeModLoader]  GuiAPI(GuiAPI:0.15.6): GuiAPI-0.15.6-1.5.2.jar ()

2013-11-09 12:41:36 [FINE] [ForgeModLoader]  ArsMagica(Ars Magica:5.52.014): ArsMagica_5.52.014.zip ()

2013-11-09 12:41:36 [FINE] [ForgeModLoader]  BiblioCraft(BiblioCraft:1.3.3): BiblioCraft[v1.3.3].zip ()

2013-11-09 12:41:36 [FINE] [ForgeModLoader]  mod_CraftGuide(mod_CraftGuide:Not available): CraftGuide-1.6.7.3-modloader.zip ()

2013-11-09 12:41:36 [FINE] [ForgeModLoader]  CustomSpawner(DrZhark's CustomSpawner:2.2.5): CustomMobSpawner 2.2.5.zip ()

2013-11-09 12:41:36 [FINE] [ForgeModLoader]  MoCreatures(DrZhark's Mo'Creatures Mod:5.2.5): DrZharks MoCreatures Mod v5.2.5.zip ()

2013-11-09 12:41:36 [FINE] [ForgeModLoader]  ExtrabiomesXL(ExtrabiomesXL:3.14.1): ExtrabiomesXL-universal-1.5.2-3.14.1.jar ()

2013-11-09 12:41:36 [FINEST] [mcp] Sending event FMLConstructionEvent to mod mcp

2013-11-09 12:41:36 [FINEST] [mcp] Sent event FMLConstructionEvent to mod mcp

2013-11-09 12:41:36 [FINEST] [FML] Sending event FMLConstructionEvent to mod FML

2013-11-09 12:41:36 [FINEST] [FML] Sent event FMLConstructionEvent to mod FML

2013-11-09 12:41:36 [FINEST] [Forge] Sending event FMLConstructionEvent to mod Forge

2013-11-09 12:41:36 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-11-09 12:41:36 [FINEST] [ForgeModLoader] Testing mod Forge to verify it accepts its own version in a remote connection

2013-11-09 12:41:36 [FINEST] [ForgeModLoader] The mod Forge accepts its own version (7.8.1.737)

2013-11-09 12:41:36 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-11-09 12:41:36 [FINEST] [Forge] Sent event FMLConstructionEvent to mod Forge

2013-11-09 12:41:36 [FINEST] [GuiAPI] Sending event FMLConstructionEvent to mod GuiAPI

2013-11-09 12:41:36 [iNFO] [sTDERR] java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiOptions

2013-11-09 12:41:36 [iNFO] [sTDERR]  at java.lang.Class.getDeclaredMethods0(Native Method)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at java.lang.Class.getDeclaredMethods(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.common.FMLModContainer.gatherAnnotations(FMLModContainer.java:319)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:464)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at java.lang.reflect.Method.invoke(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at java.lang.reflect.Method.invoke(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.common.Loader.loadMods(Loader.java:504)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:85)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:69)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)

2013-11-09 12:41:36 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiOptions

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at java.lang.ClassLoader.loadClass(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  at java.lang.ClassLoader.loadClass(Unknown Source)

2013-11-09 12:41:36 [iNFO] [sTDERR]  ... 32 more

2013-11-09 12:41:36 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException

2013-11-09 12:41:36 [iNFO] [sTDERR]  at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227)

2013-11-09 12:41:36 [iNFO] [sTDERR]  ... 34 more

2013-11-09 12:41:36 [sEVERE] [Minecraft-Server] Encountered an unexpected exception NoClassDefFoundError

java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiOptions

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.gui.GuiOptions

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:238)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 32 more

Caused by: java.lang.NullPointerException

at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:227)

... 34 more

2013-11-09 12:41:37 [sEVERE] [Minecraft-Server] This crash report has been saved to: C:\Users\Owner\Desktop\Minecraft Server\.\crash-reports\crash-2013-11-09_12.41.36-server.txt

0

Quote

MultiQuote

Edit

Report

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

    • It is 1.12.2 - I have no idea if there is a 1.12 pack
    • Okay, but does the modpack works with 1.12 or just with 1.12.2, because I need the Forge client specifically for Minecraft 1.12, not 1.12.2
    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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