Jump to content

CorruptedVulture

Members
  • Posts

    10
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

CorruptedVulture's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I have a server that I host within my network, I can join no problem but whenever friends from outside the network try to join they get this. Are there any mods that are causing this problem, because I couldn't find any solutions to this anywhere over searches.
  2. Fixed this problem, on to the next then.
  3. I've made my own custom mod, made for 1.12.2 and have been trying to add it to a private server, it's the ONLY mod in the server besides forge, and every time I go back and re-think the code it gives me the exact same error. The mod works just fine in singleplayer, the server's crash log: ---- Minecraft Crash Report ---- // Oops. Time: 1/5/19 9:05 PM Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Vanilla Spells 1.12.2 (vanillaspellsmod) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityPlayerSP at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.instantiate(SimpleNetworkWrapper.java:166) at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.registerMessage(SimpleNetworkWrapper.java:159) at network.PacketHandler.registerMessages(PacketHandler.java:24) at com.vanillaspellsmod.mainRegistry.VanillaSpells.preInit(VanillaSpells.java:52) 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 net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:624) 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.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197) 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.Subscriber.invokeSubscriberMethod(Subscriber.java:91) at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) at com.google.common.eventbus.EventBus.post(EventBus.java:217) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:627) at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99) at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333) at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.EntityPlayerSP at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 44 more Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@5ab9b447 from coremod FMLCorePlugin at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:260) at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279) at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176) ... 46 more Caused by: java.lang.RuntimeException: Attempted to load class bud for invalid side SERVER at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:62) at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:256) ... 48 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_121, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 889225752 bytes (848 MB) / 1054867456 bytes (1006 MB) up to 3806855168 bytes (3630 MB) JVM Flags: 0 total; IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.5.2795 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:----- |:---------------- |:------------ |:--------------------------------------- |:---------------------------------------- | | LCH | minecraft | 1.12.2 | minecraft.jar | None | | LCH | mcp | 9.42 | minecraft.jar | None | | LCH | FML | 8.0.99.99 | forge-1.12.2-14.23.5.2795-universal.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | LCH | forge | 14.23.5.2795 | forge-1.12.2-14.23.5.2795-universal.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | LCE | vanillaspellsmod | 0.1 | VanillaSpells0.1(1.12.2).jar | None | Loaded coremods (and transformers): Profiler Position: N/A (disabled) Is Modded: Definitely; Server brand changed to 'fml,forge' Type: Dedicated Server (map_server.txt) It points to a class in my self-made mod, what I think is really important is the part about the packethandler class: package network; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper; import net.minecraftforge.fml.relauncher.Side; public class PacketHandler { public static SimpleNetworkWrapper INSTANCE; /*private static int ID = 0; private static int nextID() { return ID++; }*/ public static void registerMessages(String channelName) { INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(channelName); int idx = 0; //client -> server INSTANCE.registerMessage(PacketToServerUpdateCapability.Handler.class, PacketToServerUpdateCapability.class, idx, Side.SERVER); idx++; //server -> client INSTANCE.registerMessage(PacketToClientUpdatedExperience.Handler.class, PacketToClientUpdatedExperience.class, idx, Side.CLIENT); idx++; INSTANCE.registerMessage(PacketToClientUpdateCapValue.Handler.class, PacketToClientUpdateCapValue.class, idx, Side.CLIENT); } }
  4. Well that definitely sheds alot of light on the situation, thanks.
  5. Except I can't do that because using the instance I want to change results in this error java.lang.IllegalArgumentException: object is not an instance of declaring class Using this code //Method SetMS = clad.getMethod("setIsMSSpreadOut", Integer.TYPE);//SetMS.invoke(clad, 1); Keep in mind, not declaring a new object, like here Object cc = clad.newInstance(); So then is there anything else I can do, to use the instance I got?
  6. Ok, I tried with the new instance by declaring a new object, and setting it to be the class's new instance, and my intentions with this was to update a capability variable on the client-side, however it's just as I thought that making a new instance wouldn't affect the player's capability. So is there any other solution? Like to use the class instance I already have instead of declaring a new one? The new Code: Class clad = Class.forName(message.cladName); Object cc = clad.newInstance(); //Field MSS = clad.getDeclaredField(message.mirrorspellSpread); /* MSS.setAccessible(true); MSS.set(clad, 1);*/ Method SetMS = clad.getMethod("setIsMSSpreadOut", Integer.TYPE); SetMS.invoke(cc, 1);
  7. Terribly sorry, wrong forum.
  8. Using Java 8, Forge 1.12.2 I've been trying to use reflection to change a private variable in another class, I'm able to get the class, and the variable, *I've tried to use the public set method to change the variable, that doesn't work, and ends in this error: java.lang.IllegalArgumentException: object is not an instance of declaring class *I've tried changing the variable to accesible = true and then changing it, resulting in this error: java.lang.IllegalArgumentException: Can not set int field playerProperties.VanillaSpellsCapability.mirrorspellSpread to java.lang.Class The Code: Class clad = Class.forName(message.cladName); Field MSS = clad.getDeclaredField(message.mirrorspellSpread); MSS.setAccessible(true); MSS.set(clad, 1); //Method SetMS = clad.getMethod("setIsMSSpreadOut", Integer.TYPE); //SetMS.invoke(clad, 1);
  9. Can I get any help for forge 1.7.10 modding here still?
  10. Hello, I'm making this mod and I want to give this item special powers to spawn fire at random blocks in a 3x3 radius at the coordinates the player is looking at, here is the code: public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) { //itemstack.damageItem(10, entityplayer); world.playSoundAtEntity(entityplayer, "fire.ignite", 0.7f, 0.8f); if (!world.isRemote) { Vec3 look = entityplayer.getLookVec(); Blocks.fire firemass7 = new Blocks.fire(world, entityplayer, 1, 1, 1); firemass7.setPosition( entityplayer.posX + look.xCoord, entityplayer.posY + look.yCoord, entityplayer.posZ + look.zCoord); world.setBlock(firemass7); } return itemstack; } I am using forge 1.7.10, as I want to make the mod in this version. The problem is that the Blocks.fire can't be resolved to a field, could anyone please let me know how to fix that, or any other mistakes you see in this coding? Thank you.
×
×
  • Create New...

Important Information

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