Jump to content

Recommended Posts

Posted

For some reasons almost all my mods don't work with forge build #232.

 

The server packethandler don't recieve information from client anymore (SMP only).

There is no crash or something, the server just don't recieve the packets.

Everything worked fine until build #204 (last one I tried).

 

Example:

 

Mod-file:

package TeeLuk.PrinterBlock.common;

import java.util.logging.Level;

import net.minecraft.src.Block;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.Property;


import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.Mod.ServerStarted;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartedEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler;
import cpw.mods.fml.common.registry.GameRegistry;


/**
* @author pitman-87
* 
*/

@Mod(modid = "teeluk_PrinterBlock", name = "PrinterBlock", version = "1.3.2")
@NetworkMod(clientSideRequired = true, serverSideRequired = true,
serverPacketHandlerSpec = @SidedPacketHandler(channels = {"PrinterBlock_S"}, packetHandler = ServerPacketHandler.class)
)

public class PrinterBlockMod
{

@SidedProxy(clientSide = "TeeLuk.PrinterBlock.client.ClientProxy", serverSide = "TeeLuk.PrinterBlock.common.CommonProxy")
public static CommonProxy proxy;

public static int blockID = 222;
public static Block printerBlock;
public static String blocksPath = "/TeeLuk/PrinterBlock/Sprites/blocks.png";

@PreInit
public void preInit(FMLPreInitializationEvent event)
{
	proxy.preInit();

	Configuration configuration = new Configuration(event.getSuggestedConfigurationFile());
	try
	{
		configuration.load();
		Property prop;
		prop = configuration.getOrCreateBlockIdProperty("blockID", 222);
		blockID = prop.getInt(222);

	} catch (Exception e)
	{
		FMLLog.log(Level.SEVERE, e, "PrinterBlock has a problem loading it's configuration");
		FMLLog.severe(e.getMessage());

	} finally
	{
		configuration.save();
	}
}

@Init
public void load(FMLInitializationEvent evt)
{

	printerBlock = (new BlockPrinter(blockID)).setHardness(0.2F).setStepSound(Block.soundPowderFootstep).setBlockName("printer");


	proxy.load();
	GameRegistry.registerBlock(printerBlock);

	GameRegistry.addRecipe(new ItemStack(printerBlock), new Object[]
	{ "ABC", "#X#", "###", Character.valueOf('#'), Item.ingotIron, Character.valueOf('X'), new ItemStack(Block.cloth, 1, 0), Character.valueOf('A'), new ItemStack(Item.dyePowder, 0, 1), Character.valueOf('B'), new ItemStack(Item.dyePowder, 0, 2), Character.valueOf('C'), new ItemStack(Item.dyePowder, 0, 4) });

}

@PostInit
public void modsLoaded(FMLPostInitializationEvent evt)
{

}

@ServerStarted
public void serverStarted(FMLServerStartedEvent event)
{
}
}

 

Sending packet to server:

 

package TeeLuk.PrinterBlock.client;

import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;

import net.minecraft.src.Block;
import net.minecraft.src.GuiButton;
import net.minecraft.src.GuiScreen;
import net.minecraft.src.Packet250CustomPayload;
import net.minecraft.src.World;

import org.lwjgl.opengl.GL11;

import cpw.mods.fml.common.network.PacketDispatcher;

public class GuiPrinter extends GuiScreen
{

.......................

private void print()
{

	try
	{

		for (int layer = 0; layer < 100; layer++)
		{
			if (visitedLayer[layer])
			{
				ByteArrayOutputStream bytes = new ByteArrayOutputStream();
				DataOutputStream data = new DataOutputStream(bytes);
				int[] dataInt =
				{ worldObj.getWorldInfo().getDimension(), posX, posY, posZ, mData, direction };

				for (int i = 0; i < dataInt.length; i++)
				{
					data.writeInt(dataInt[i]);
				}

				data.writeInt(layer);

				for (int l1 = 0; l1 < yLength; l1++)
				{
					for (int l2 = 0; l2 < xLength; l2++)
					{
						data.writeInt(blocks[layer][l1][l2]);
					}
				}

				Packet250CustomPayload pkt = new Packet250CustomPayload();
				pkt.channel = "PrinterBlock_S";
				pkt.data = bytes.toByteArray();
				pkt.length = bytes.size();

				PacketDispatcher.sendPacketToServer(pkt);
			}
		}
	} catch (IOException e)
	{
	}

}
...............................



}

 

package TeeLuk.PrinterBlock.common;

import com.google.common.io.ByteArrayDataInput;
import com.google.common.io.ByteStreams;

import net.minecraft.server.MinecraftServer;
import net.minecraft.src.Block;
import net.minecraft.src.NetworkManager;
import net.minecraft.src.Packet250CustomPayload;
import net.minecraft.src.World;
import cpw.mods.fml.common.network.IPacketHandler;
import cpw.mods.fml.common.network.Player;

public class ServerPacketHandler implements IPacketHandler
{

@Override
public void onPacketData(NetworkManager manager, Packet250CustomPayload packet, Player player)
{
	if (packet.data == null)
	{
		return;
	}

	ByteArrayDataInput dat = ByteStreams.newDataInput(packet.data);

	print(MinecraftServer.getServer().worldServerForDimension(dat.readInt()), dat.readInt(), dat.readInt(), dat.readInt(), dat.readInt(), dat.readInt(), 44, 44, dat);

}

public static void print(World worldObj, int posX, int posY, int posZ, int mData, int direction, int yLength, int xLength, ByteArrayDataInput dat)
{
	int[][] blocks = new int[yLength][xLength];
	int layer = dat.readInt();
	for (int l1 = 0; l1 < yLength; l1++)
	{
		for (int l2 = 0; l2 < xLength; l2++)
		{
			blocks[l1][l2] = dat.readInt();
		}
	}
                doStuff()......
        }

 

Posted

So I have played around a bit and found out that only SidedPackethandler don't work.

If you don't have one, it should work:

 

@Mod(modid = "teeluk_PrinterBlock", name = "PrinterBlock", version = "1.3.2")
@NetworkMod(clientSideRequired = true, serverSideRequired = true,
channels = {"PrinterBlock_S"}, 
packetHandler = ServerPacketHandler.class)

 

So is this a bug or, did you removed SidedPacketHandler, and I have to recode a bit?

Posted

Ok guys this isn't fun anymore, nothing is working, I changed every SidedPacketHandler to just ONE PacketHandler, and everything works fine in eclipse (build#200).

And on server and client build #204.

 

BUT with #build 232 and after, absolutly nothing is working anymore.

When I'm using SidedPacketHandler: see first post.

And when I'm using ONE packetHandler I get an "Channel is invalid"-error, and I'm pretty sure the channel name is right.

 

2012-08-28 13:11:44 [iNFO] [ForgeModLoader] Forge Mod Loader version 3.0.160.340 for Minecraft client:1.3.2, server:1.3.2 loading
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] All core mods are successfully located
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Discovering coremods
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir

2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Found library file guava-12.0.1.jar present and correct in lib dir

2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir

2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Running coremod plugins
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Validating minecraft
2012-08-28 13:11:44 [FINEST] [ForgeModLoader] Minecraft validated, launching...
2012-08-28 13:11:45 [iNFO] [sTDOUT] 27 achievements
2012-08-28 13:11:45 [iNFO] [sTDOUT] 195 recipes
2012-08-28 13:11:45 [iNFO] [sTDOUT] Setting user: pitman87, d162750add41673d73b93eed3836dbdfc4beb99f
2012-08-28 13:11:45 [iNFO] [sTDOUT] LWJGL Version: 2.4.2
2012-08-28 13:11:46 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2012-08-28 13:11:46 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\AppData\Roaming\.minecraft\bin\lwjgl.jar
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\AppData\Roaming\.minecraft\bin\jinput.jar
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\AppData\Roaming\.minecraft\bin\lwjgl_util.jar
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\pitman\AppData\Roaming\.minecraft\bin\minecraft.jar, examining for mod candidates
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\AppData\Roaming\.minecraft\lib\argo-2.25.jar
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\AppData\Roaming\.minecraft\lib\guava-12.0.1.jar
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Skipping known library file C:\Users\pitman\AppData\Roaming\.minecraft\lib\asm-all-4.0.jar
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully
2012-08-28 13:11:46 [iNFO] [ForgeModLoader] Searching C:\Users\pitman\AppData\Roaming\.minecraft\mods for mods
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Found a candidate zip or jar file Familiars.zip
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Found a candidate zip or jar file PrinterBlock_1.3.2.zip
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Found a candidate zip or jar file TeeLuk - Kopie.zip
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Found a candidate zip or jar file TF2_Teleporter_1.3.2a.zip
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods
2012-08-28 13:11:46 [iNFO] [ForgeModLoader] The mod container minecraft.jar appears to be missing an mcmod.info file
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Examining file Familiars.zip for potential mods
2012-08-28 13:11:46 [iNFO] [ForgeModLoader] The mod container Familiars.zip appears to be missing an mcmod.info file
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Identified a FMLMod type mod Familiars.API.common.FamiliarsAPI
2012-08-28 13:11:46 [FINEST] [ForgeModLoader] Parsed dependency info : [] [] [*]
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Identified a FMLMod type mod Familiars.DefaultMobs.common.DefaultMobPack
2012-08-28 13:11:46 [FINEST] [ForgeModLoader] Parsed dependency info : [] [Familiars_API] []
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Identified a FMLMod type mod Familiars.ExtendedFamPack.common.ExtendedFamPack
2012-08-28 13:11:46 [FINEST] [ForgeModLoader] Parsed dependency info : [] [Familiars_API] []
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Examining file PrinterBlock_1.3.2.zip for potential mods
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Located mcmod.info file in file PrinterBlock_1.3.2.zip
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Identified a FMLMod type mod TeeLuk.PrinterBlock.common.PrinterBlockMod
2012-08-28 13:11:46 [FINEST] [ForgeModLoader] Parsed dependency info : [] [] []
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Examining file TeeLuk - Kopie.zip for potential mods
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Located mcmod.info file in file TeeLuk - Kopie.zip
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Identified a FMLMod type mod TeeLuk.SpecialArmor.common.SpecialArmorMod
2012-08-28 13:11:46 [FINEST] [ForgeModLoader] Parsed dependency info : [] [] []
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Examining file TF2_Teleporter_1.3.2a.zip for potential mods
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Located mcmod.info file in file TF2_Teleporter_1.3.2a.zip
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Identified a FMLMod type mod TF2.Teleporter.common.TF2TeleporterMod
2012-08-28 13:11:46 [FINEST] [ForgeModLoader] Parsed dependency info : [] [] []
2012-08-28 13:11:46 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 8 mods to load
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Received a system property request ''
2012-08-28 13:11:46 [FINE] [ForgeModLoader] System property request managing the state of 0 mods
2012-08-28 13:11:46 [FINE] [ForgeModLoader] After merging, found state information for 0 mods
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Activating mod FML
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Activating mod Forge
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Enabling mod Familiars_API
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Activating mod Familiars_API
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Enabling mod Familiars_DefaultMobPack
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Activating mod Familiars_DefaultMobPack
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Enabling mod Familiars_ExtendedFamPack
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Activating mod Familiars_ExtendedFamPack
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Enabling mod teeluk_PrinterBlock
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Activating mod teeluk_PrinterBlock
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Enabling mod teeluk_SpecialArmor
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Activating mod teeluk_SpecialArmor
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Enabling mod pitman-87_TF2_Teleporter
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Activating mod pitman-87_TF2_Teleporter
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Verifying mod requirements are satisfied
2012-08-28 13:11:46 [FINE] [ForgeModLoader] All mod requirements are satisfied
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Sorting mods into an ordered list
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Mod sorting completed successfully
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Mod sorting data:
2012-08-28 13:11:46 [FINE] [ForgeModLoader] 	Familiars_API(Familiars API:1.3.2): Familiars.zip (before:*)
2012-08-28 13:11:46 [FINE] [ForgeModLoader] 	Familiars_DefaultMobPack(Familiars DefaultMobPack:1.3.2): Familiars.zip (after:Familiars_API)
2012-08-28 13:11:46 [FINE] [ForgeModLoader] 	Familiars_ExtendedFamPack(Familiars ExtendedFamPack:1.3.2): Familiars.zip (after:Familiars_API)
2012-08-28 13:11:46 [FINE] [ForgeModLoader] 	teeluk_PrinterBlock(PrinterBlock:1.3.2): PrinterBlock_1.3.2.zip ()
2012-08-28 13:11:46 [FINE] [ForgeModLoader] 	teeluk_SpecialArmor(SpecialArmor:1.3.2): TeeLuk - Kopie.zip ()
2012-08-28 13:11:46 [FINE] [ForgeModLoader] 	pitman-87_TF2_Teleporter(TF2 Teleporter:1.3.2): TF2_Teleporter_1.3.2a.zip ()
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 to mod FML
2012-08-28 13:11:46 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 delivered to mod FML
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 to mod Forge
2012-08-28 13:11:46 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 delivered to mod Forge
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 to mod Familiars_API
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into Familiars_API
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Instance
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Instance]
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Metadata
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Metadata]
2012-08-28 13:11:46 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 delivered to mod Familiars_API
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 to mod Familiars_DefaultMobPack
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into Familiars_DefaultMobPack
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Instance
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Instance]
2012-08-28 13:11:46 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 delivered to mod Familiars_DefaultMobPack
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 to mod Familiars_ExtendedFamPack
2012-08-28 13:11:46 [sEVERE] [ForgeModLoader] Invalid channel name 'Familiars_Extended_C' : Channel name is too long (16 chars is maximum)
2012-08-28 13:11:46 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 delivered to mod Familiars_ExtendedFamPack
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 to mod teeluk_PrinterBlock
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into teeluk_PrinterBlock
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Instance
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Instance]
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Metadata
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Metadata]
2012-08-28 13:11:46 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 delivered to mod teeluk_PrinterBlock
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 to mod teeluk_SpecialArmor
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into teeluk_SpecialArmor
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Instance
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Instance]
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Metadata
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Metadata]
2012-08-28 13:11:46 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 delivered to mod teeluk_SpecialArmor
2012-08-28 13:11:46 [FINER] [ForgeModLoader] Posting state event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 to mod pitman-87_TF2_Teleporter
2012-08-28 13:11:46 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into pitman-87_TF2_Teleporter
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Instance
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Instance]
2012-08-28 13:11:46 [iNFO] [sTDOUT] cpw.mods.fml.common.Mod$Metadata
2012-08-28 13:11:46 [iNFO] [sTDOUT] [cpw, mods, fml, common, Mod$Metadata]
2012-08-28 13:11:46 [FINER] [ForgeModLoader] State event cpw.mods.fml.common.event.FMLConstructionEvent@11767553 delivered to mod pitman-87_TF2_Teleporter
2012-08-28 13:11:46 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from CONSTRUCTING to PREINITIALIZATION. Loading cannot continue
2012-08-28 13:11:46 [sEVERE] [ForgeModLoader] 
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
Familiars_API [Familiars API] (Familiars.zip) Unloaded->Constructed
Familiars_DefaultMobPack [Familiars DefaultMobPack] (Familiars.zip) Unloaded->Errored
Familiars_ExtendedFamPack [Familiars ExtendedFamPack] (Familiars.zip) Unloaded->Errored
teeluk_PrinterBlock [PrinterBlock] (PrinterBlock_1.3.2.zip) Unloaded->Constructed
teeluk_SpecialArmor [specialArmor] (TeeLuk - Kopie.zip) Unloaded->Constructed
pitman-87_TF2_Teleporter [TF2 Teleporter] (TF2_Teleporter_1.3.2a.zip) Unloaded->Constructed
2012-08-28 13:11:46 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2012-08-28 13:11:46 [sEVERE] [ForgeModLoader] Caught exception from Familiars_ExtendedFamPack
java.lang.RuntimeException: Channel name is invalid
at cpw.mods.fml.common.network.NetworkRegistry.registerChannel(NetworkRegistry.java:91)
at cpw.mods.fml.common.network.NetworkRegistry.registerChannel(NetworkRegistry.java:101)
at cpw.mods.fml.common.network.NetworkModHandler.tryCreatingPacketHandler(NetworkModHandler.java:153)
at cpw.mods.fml.common.network.NetworkModHandler.<init>(NetworkModHandler.java:94)
at cpw.mods.fml.common.network.FMLNetworkHandler.registerNetworkMod(FMLNetworkHandler.java:227)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:348)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:124)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:442)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:138)
at net.minecraft.client.Minecraft.a(Minecraft.java:405)
at net.minecraft.client.Minecraft.run(Minecraft.java:737)
at java.lang.Thread.run(Unknown Source)
2012-08-28 13:11:46 [sEVERE] [ForgeModLoader] Caught exception from Familiars_DefaultMobPack
java.lang.IllegalArgumentException: Can not set static Familiars.API.common.FamiliarsAPI field Familiars.API.common.FamiliarsAPI.instance to Familiars.DefaultMobs.common.DefaultMobPack
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source)
at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source)
at java.lang.reflect.Field.set(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:331)
at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:255)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:351)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:124)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:442)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:138)
at net.minecraft.client.Minecraft.a(Minecraft.java:405)
at net.minecraft.client.Minecraft.run(Minecraft.java:737)
at java.lang.Thread.run(Unknown Source)
2012-08-28 13:11:56 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.RuntimeException: Channel name is invalid
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:102)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:443)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:138)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.a(Minecraft.java:405)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:737)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2012-08-28 13:11:56 [iNFO] [sTDERR] Caused by: java.lang.RuntimeException: Channel name is invalid
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.network.NetworkRegistry.registerChannel(NetworkRegistry.java:91)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.network.NetworkRegistry.registerChannel(NetworkRegistry.java:101)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.network.NetworkModHandler.tryCreatingPacketHandler(NetworkModHandler.java:153)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.network.NetworkModHandler.<init>(NetworkModHandler.java:94)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.network.FMLNetworkHandler.registerNetworkMod(FMLNetworkHandler.java:227)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:348)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:124)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at com.google.common.eventbus.EventBus.post(EventBus.java:268)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.loadMods(Loader.java:442)
2012-08-28 13:11:56 [iNFO] [sTDERR] 	... 4 more

 

 

package Familiars.ExtendedFamPack.common;

import Familiars.API.common.FamiliarWatcherServer;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;

/**
* @author pitman-87
* 
*/

@Mod(modid = "Familiars_ExtendedFamPack", name = "Familiars ExtendedFamPack", version = "1.3.2", dependencies = "after:Familiars_API")
@NetworkMod(channels = {"Familiars_Extended_C"},clientSideRequired = true, serverSideRequired = true,  packetHandler = PacketHandler.class)
public class ExtendedFamPack
{

@SidedProxy(clientSide = "Familiars.ExtendedFamPack.client.ClientProxy", serverSide = "Familiars.ExtendedFamPack.common.CommonProxy")
public static CommonProxy proxy;

@PreInit
public void preInit(FMLPreInitializationEvent event)
{
	proxy.preInit();

}

@Init
public void load(FMLInitializationEvent evt)
{

	FamiliarWatcherServer.registerFamiliar("Fairy", FamiliarFairy.class, 20);
	FamiliarWatcherServer.registerFamiliar("Navi", FamiliarNavi.class, 21);
	FamiliarWatcherServer.registerFamiliar("1UP", Familiar1Up.class, 22);
	FamiliarWatcherServer.registerFamiliar("Rana", FamiliarRana.class, 23);
	FamiliarWatcherServer.registerFamiliar("Cube", FamiliarCompanionCube.class, 24);
	proxy.load();

}

@PostInit
public void modsLoaded(FMLPostInitializationEvent evt)
{

}

}

Posted

you know that you need a clientPacketHandlerSpec if you're using a sided packet handler to receive packets on the *client* side, yes?

 

It was broken in 204 and works in 232+. Also, your channel name is too long. 16 chars is the max. Review Packet250 if you don't believe me.

Posted

Because cpw is to polite, do some god damn research before you post.

And dont fucking quintuple post. Fucking retarded to do, there is a edit button for a reason.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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