
WillDaBeast509
Members-
Posts
10 -
Joined
-
Last visited
Everything posted by WillDaBeast509
-
1.6.4 Forge server does not open at all
WillDaBeast509 replied to WillDaBeast509's topic in Support & Bug Reports
Reinstalled for the fourth time, ran the jar, it worked fine. It seems to only work if run through a command line though; not sure if that's intentional or not. Just wrote a batch file for it so not a big deal. Thanks for the reply. -
1.6.4 Forge server does not open at all
WillDaBeast509 replied to WillDaBeast509's topic in Support & Bug Reports
I do get an error: Jun 27, 2014 6:54:27 PM net.minecraft.launchwrapper.LogWrapper log INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker Jun 27, 2014 6:54:27 PM net.minecraft.launchwrapper.LogWrapper log INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLServerTweak er Jun 27, 2014 6:54:27 PM net.minecraft.launchwrapper.LogWrapper log INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLServerTweaker A problem occurred running the Server launcher.java.lang.reflect.InvocationTarge tException 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 cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.j ava:48) at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper. java:17) Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/Lists at cpw.mods.fml.common.launcher.FMLTweaker.acceptOptions(FMLTweaker.java :52) at net.minecraft.launchwrapper.Launch.launch(Launch.java:110) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) ... 6 more Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Lists at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 9 more -
I am trying to run a 1.6.4 server with Forge. I have downloaded and run the installer, which creates two files, a folder called libraries and a jar called minecraftforge-universal-1.6.4-9.11.1.965-v164-pregradle. I run the jar, like everything I have ever seen tells me to do, but nothing happens. My cursor spins like something is loading for maybe half a second, but then nothing. What am I doing wrong?
-
That should work perfectly, thanks!
-
How would I register this in the main mod file? And would connectionClosed be the method to use for when a player logs off? Thanks. Nevermind, figured out how to register it and verified that connectionClosed is called when a player logs off. But, I need to get the EntityPlayer instance that logged off, and I can't find a way to do that with just the INetworkManager parameter. Is there any way I can get the player instance?
-
I couldn't find any event classes for player logoff/ons, which I was kind of surprised by. How might I detect and handle when a player logs off?
-
Mod crashing server with ClassDefNotFound
WillDaBeast509 replied to WillDaBeast509's topic in Modder Support
My client proxy references net.minecraft.client.renderer.entity.RenderSnowball, a subclass of Render. This is the only reference to it in my mod, so I assume my proxy setup might be wrong. I'll post and see if anyone can help it. CommonProxy package com.willdabeast509.flintlocks.proxy; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; import com.willdabeast509.flintlocks.cannon.ContainerCannon; import com.willdabeast509.flintlocks.cannon.GuiCannon; import com.willdabeast509.flintlocks.cannon.TileEntityCannon; import cpw.mods.fml.common.network.IGuiHandler; public class CommonProxy { public void registerRenderers() { } } ClientProxy package com.willdabeast509.flintlocks.proxy; import net.minecraft.client.renderer.entity.RenderSnowball; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; import com.willdabeast509.flintlocks.mod_flintlocks; import com.willdabeast509.flintlocks.cannon.GuiCannon; import com.willdabeast509.flintlocks.cannon.TileEntityCannon; import com.willdabeast509.flintlocks.entities.EntityCannonball; import com.willdabeast509.flintlocks.entities.EntityDummy; import com.willdabeast509.flintlocks.entities.EntityGrapeshot; import com.willdabeast509.flintlocks.entities.EntityHandCannonball; import com.willdabeast509.flintlocks.entities.EntityHeatshot; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class ClientProxy extends CommonProxy { @Override public void registerRenderers() { RenderingRegistry.registerEntityRenderingHandler(EntityCannonball.class, new RenderSnowball(mod_flintlocks.Cannonball)); RenderingRegistry.registerEntityRenderingHandler(EntityHandCannonball.class, new RenderSnowball(mod_flintlocks.Cannonball)); RenderingRegistry.registerEntityRenderingHandler(EntityHeatshot.class, new RenderSnowball(mod_flintlocks.Heatshot)); RenderingRegistry.registerEntityRenderingHandler(EntityGrapeshot.class, new RenderSnowball(mod_flintlocks.grape)); RenderingRegistry.registerEntityRenderingHandler(EntityDummy.class, new RenderSnowball(mod_flintlocks.dummyrender)); } } mod_flintlocks, the sections pertaining to the proxies @Mod(modid = "Flintlock_Guns", name = "Flintlock Guns Mod", version = "1.6_1") @NetworkMod(clientSideRequired = true, serverSideRequired = false, channels={"test","guibuttons","requestgui","playfuse","playex"},packetHandler = PacketHandler.class) public class mod_flintlocks { @SidedProxy(clientSide="com.willdabeast509.flintlocks.proxy.ClientProxy", serverSide="com.willdabeast509.flintlocks.proxy.CommonProxy") public static CommonProxy proxy; @Init public void load(FMLInitializationEvent e) { proxy.registerRenderers(); } } -
Mod crashing server with ClassDefNotFound
WillDaBeast509 replied to WillDaBeast509's topic in Modder Support
Nope, they have not been modified at all and both have side only annotations for the client side on them. -
I'm trying to get my mod to work on servers, but its generating NoClassDefFound errors. Here's the report my coding partner gets: And the one I get from running MCP's startserver.bat: If you need to see any code just ask, I haven't posted any yet because I have no clue what part of it to post. I assume somewhere in my mod is referencing WorldClient or Render, but I haven't found any occurrences of either. What's going on and how do we fix it? Thanks.
-
The method takes a tile entity object, not the class itself. Meaning, you need to instatiate (create) a new object of your tile entity. Like this: world.setBlockTileEntity(x, y, z, new TileEntityBlockCover(parameters)); Replace parameters with whatever your TileEntityBlockCover's constructor's parameters are.