Jump to content

Recommended Posts

Posted

Hey all.When i load up my mod on the client everything works and it loads fine but it crashes when loading on the server?I know i'm probably doing something on the server side that i shouldn't be but i cant find what.Any help would be really useful because i'm stuck.

 

console log:

 

___________________________________________________________________________________________________________________________________

 

[21:01:39] [server thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

[21:01:39] [server thread/ERROR] [FML]:

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML{7.10.24.1187} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.0.1187.jar) Unloaded->Constructed->Pre-initialized->Initialized

Forge{10.13.0.1187} [Minecraft Forge] (forgeSrc-1.7.10-10.13.0.1187.jar) Unloaded->Constructed->Pre-initialized->Initialized

BioWarfare{0.0.1 Alpha} [bioWarfare] (bin) Unloaded->Constructed->Pre-initialized->Errored

[21:01:39] [server thread/ERROR] [FML]: The following problems were captured during this phase

[21:01:39] [server thread/ERROR] [FML]: Caught exception from BioWarfare

java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft

at com.Looke81.BioWarfare.handler.BioWarfareEventHandler.<clinit>(BioWarfareEventHandler.java:45) ~[bioWarfareEventHandler.class:?]

at com.Looke81.BioWarfare.BioWarfare.load(BioWarfare.java:289) ~[bioWarfare.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) [Loader.class:?]

at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:97) [FMLServerHandler.class:?]

at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:318) [FMLCommonHandler.class:?]

at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:213) [DedicatedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:455) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?]

Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_21]

at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_21]

... 34 more

Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER

at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50) ~[forgeSrc-1.7.10-10.13.0.1187.jar:?]

at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:276) ~[launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:174) ~[launchwrapper-1.9.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_21]

at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_21]

... 34 more

[21:01:39] [server thread/ERROR]: Encountered an unexpected exception

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft

at cpw.mods.fml.common.LoadController.transition(LoadController.java:162) ~[LoadController.class:?]

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:692) ~[Loader.class:?]

at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:97) ~[FMLServerHandler.class:?]

at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:318) ~[FMLCommonHandler.class:?]

at net.minecraft.server.dedicated.DedicatedServer.startServer(DedicatedServer.java:213) ~[DedicatedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:455) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:762) [MinecraftServer$2.class:?]

Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft

at com.Looke81.BioWarfare.handler.BioWarfareEventHandler.<clinit>(BioWarfareEventHandler.java:45) ~[bioWarfareEventHandler.class:?]

at com.Looke81.BioWarfare.BioWarfare.load(BioWarfare.java:289) ~[bioWarfare.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) ~[LoadController.class:?]

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) ~[Loader.class:?]

... 5 more

Caused by: java.lang.ClassNotFoundException: net.minecraft.client.Minecraft

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) ~[launchwrapper-1.9.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_21]

at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_21]

at com.Looke81.BioWarfare.handler.BioWarfareEventHandler.<clinit>(BioWarfareEventHandler.java:45) ~[bioWarfareEventHandler.class:?]

at com.Looke81.BioWarfare.BioWarfare.load(BioWarfare.java:289) ~[bioWarfare.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) ~[LoadController.class:?]

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) ~[Loader.class:?]

... 5 more

Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/Minecraft for invalid side SERVER

at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50) ~[forgeSrc-1.7.10-10.13.0.1187.jar:?]

at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:276) ~[launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:174) ~[launchwrapper-1.9.jar:?]

at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_21]

at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_21]

at com.Looke81.BioWarfare.handler.BioWarfareEventHandler.<clinit>(BioWarfareEventHandler.java:45) ~[bioWarfareEventHandler.class:?]

at com.Looke81.BioWarfare.BioWarfare.load(BioWarfare.java:289) ~[bioWarfare.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[LoadController.class:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_21]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_21]

at java.lang.reflect.Method.invoke(Method.java:601) ~[?:1.7.0_21]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) ~[LoadController.class:?]

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691) ~[Loader.class:?]

... 5 more

[21:01:39] [server thread/ERROR]: This crash report has been saved to: C:\Users\Daniel\Desktop\MineCraft Java Script\Minecraft Mods\eclipse\.\crash-reports\crash-2014-10-31_21.01.39-server.txt

[21:01:39] [server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first.

[21:01:39] [server thread/INFO] [FML]: Applying holder lookups

[21:01:39] [server thread/INFO] [FML]: Holder lookups applied

[21:01:39] [server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.

[21:01:39] [server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.

___________________________________________________________________________________________________________________________________

BioWarfare Mod: http://goo.gl/BYWQty

Posted

Ok that's really useful but unfortunately i'm only using the minecraft class in a GUI class and i dont have access to the the world you probably want to see my class.

 

package com.Looke81.BioWarfare.gui;

 

import org.lwjgl.opengl.GL11;

 

import com.Looke81.BioWarfare.BioWarfare;

import com.Looke81.BioWarfare.DrawB;

import com.Looke81.BioWarfare.DrawM;

import com.Looke81.BioWarfare.blocks.BacteriaTest;

import com.Looke81.BioWarfare.handler.BioWarfareEventHandler;

import com.Looke81.BioWarfare.items.Microscope;

 

import cpw.mods.fml.common.eventhandler.EventPriority;

import cpw.mods.fml.common.eventhandler.SubscribeEvent;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.client.Minecraft;

import net.minecraft.client.gui.Gui;

import net.minecraft.client.gui.GuiChat;

import net.minecraft.client.gui.ScaledResolution;

import net.minecraft.client.renderer.OpenGlHelper;

import net.minecraft.client.renderer.Tessellator;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.util.ResourceLocation;

import net.minecraftforge.client.event.RenderGameOverlayEvent.ElementType;

@SideOnly(Side.CLIENT)

public class OverlayGui extends Gui{

public static OverlayGui instance = new OverlayGui();

private static Minecraft mc = Minecraft.getMinecraft();

private ResourceLocation MOverlay = new ResourceLocation(BioWarfare.modid + ":textures/gui/MOverlay.png");

 

 

     

@SubscribeEvent (priority = EventPriority.LOWEST)

 

public void RenderGameOverlayEvent(net.minecraftforge.client.event.RenderGameOverlayEvent.Pre event) {

 

ScaledResolution sr = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);

    int Width = sr.getScaledWidth();

    int Height = sr.getScaledHeight();

 

if (Microscope.bindedtexture == 1 && BioWarfareEventHandler.HasMicroscopeInInv == true ) {

 

mc.gameSettings.fovSetting = 25F;

 

 

   

    // texture

    Tessellator tessellator = Tessellator.instance;

    tessellator.startDrawingQuads();

    tessellator.addVertexWithUV(0.0D, (double)Height, -90.0D, 0.0D, 1.0D);

    tessellator.addVertexWithUV((double)Width, (double)Height, -90.0D, 1.0D, 1.0D);

    tessellator.addVertexWithUV((double)Width, 0.0D, -90.0D, 1.0D, 0.0D);

    tessellator.addVertexWithUV(0.0D, 0.0D, -90.0D, 0.0D, 0.0D);

    tessellator.draw();

    this.mc.renderEngine.bindTexture(MOverlay);

  if (event.type == ElementType.HOTBAR) {

                event.setCanceled(true);

     

 

   

      }

  if (event.type == ElementType.CROSSHAIRS) {

      event.setCanceled(true);

}

  if (event.type == ElementType.TEXT) {

      event.setCanceled(true);

  }

  if (event.type == ElementType.HEALTH) {

      event.setCanceled(true);

  }

  if (event.type == ElementType.FOOD) {

      event.setCanceled(true);

  }

  if (event.type == ElementType.ARMOR) {

      event.setCanceled(true);

  }

  if (event.type == ElementType.EXPERIENCE) {

      event.setCanceled(true);

  }

  if (event.type == ElementType.CHAT) {

      event.setCanceled(true);

  }

  if (event.type == ElementType.JUMPBAR) {

      event.setCanceled(true);

  }

}else{

mc.gameSettings.fovSetting = 70F;

 

}

}

}

 

 

BioWarfare Mod: http://goo.gl/BYWQty

  • 1 month later...
Posted

Message Class:

 

http://pastebin.com/Y6Bj7AsJ

 

When sending the message:

 

http://pastebin.com/EDAxhTSd

 

And main mod class bit:

 

public static SimpleNetworkWrapper network;

@EventHandler

public void preInit(FMLPreInitializationEvent event){

network = NetworkRegistry.INSTANCE.newSimpleChannel("MyChannel");

      network.registerMessage(MyMessage.Handler.class, MyMessage.class, 0, Side.SERVER);

BioWarfare Mod: http://goo.gl/BYWQty

Posted

ok so you can register the message and send it either client side or server side i think?But I've tried as many combinations with not any success but i assume this is ment to be the right combination.

 

network.registerMessage(MyMessage.Handler.class, MyMessage.class, 0, Side.CLIENT); + BioWarfare.network.sendTo(new MyMessage("ShaderOff"), (EntityPlayerMP) entity); 

 

This crashes here is the log:

 

http://pastebin.com/jJCPNRgh

 

 

BioWarfare Mod: http://goo.gl/BYWQty

Posted

oh well that was why it was crashing but now its not clearing the shader. Obviously you can tell i don't really understand packets but something tells me that this might not be the right way to do it.

if it helps i found a mod that could change the shaders on demand so this is possible but i am probably doing it the wrong way.

 

Decompiled code from that mod:

 

http://pastebin.com/ywkqVDt4

 

 

BioWarfare Mod: http://goo.gl/BYWQty

Posted

line 87 was:

mc.entityRenderer.theShaderGroup.createBindFramebuffers(mc.displayWidth, mc.displayHeight);

 

i removed it and it is working now both on a server and on single player.

hopefully you wont see this at the top of the list ever again!

BioWarfare Mod: http://goo.gl/BYWQty

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



×
×
  • Create New...

Important Information

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