Jump to content

Recommended Posts

Posted

I have this problem where I cant register my "GuiHandler". I am not sure if its just something i missed or what but i cant test by new code because the game cant start.

The code i am using is:

NetworkRegistry.instance().registerGuiHandler(instance, new GuiHandler());

I have tried putting it into Init/Load and i did put it in normally. None of it worked. :'(

If I helped then you help, hit that Thank You button or Applaud.

Posted

u need to say this, because u r giving an instance of its own class

 

NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler());

*********************************

**  Always remember you are unique,  **

**  just like everyone else                   **     

**********************************

Was my post helpful? Say thanks and

press the thank you button, on my post!!

God, damn it!

Posted

Yeah, but Eclipse doesn't recognise .instance() as a method. It says its undefined.

If I helped then you help, hit that Thank You button or Applaud.

Posted

Ohh thanks. I tried to run the INSTANCE as a method. -.-

 

If I helped then you help, hit that Thank You button or Applaud.

Posted

Nvm, I'm still crashing when I run it. It still giving me an error in the same place. :'(

If I helped then you help, hit that Thank You button or Applaud.

Posted

Crash report:

---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 07.03.14 22:01
Description: Initializing game

java.lang.RuntimeException: Invalid attempt to create a GUI during mod construction. Use an EventHandler instead
at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:218)
at bulkyzanka.electro.mod.Electrocuted.<init>(Electrocuted.java:143)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:173)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:509)
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:47)
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:209)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)
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:47)
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:119)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:564)
at net.minecraft.client.Minecraft.run(Minecraft.java:934)
at net.minecraft.client.main.Main.main(Main.java:112)
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.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:218)
at bulkyzanka.electro.mod.Electrocuted.<init>(Electrocuted.java:143)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:173)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:509)
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:47)
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:209)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)
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:47)
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:119)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:564)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:934)
at net.minecraft.client.main.Main.main(Main.java:112)
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.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 197018256 bytes (187 MB) / 378011648 bytes (360 MB) up to 1905197056 bytes (1816 MB)
JVM Flags: 0 total; 
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.01-pre FML v7.2.125.1031 Minecraft Forge 10.12.0.1031 5 mods loaded, 5 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{7.2.125.1031} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1031.jar) Unloaded->Constructed
Forge{10.12.0.1031} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1031.jar) Unloaded->Constructed
examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed
electro{1.0A} [Electrocuted] (bin) Unloaded->Errored
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: AMD Radeon HD 6800 Series GL version 4.2.12422 Compatibility Profile Context 13.152.0.0, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
Anisotropic Filtering: Off (1)

 

Main class:

package bulkyzanka.electro.mod;

import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.util.EnumHelper;
import bulkyzanka.electro.mod.blocks.BlockCompressionFurnace;
import bulkyzanka.electro.mod.blocks.Test;
import bulkyzanka.electro.mod.creativetabs.ElectrocutedTab;
import bulkyzanka.electro.mod.gui.GuiHandler;
import bulkyzanka.electro.mod.items.BoneIngot;
import bulkyzanka.electro.mod.items.BonePlate;
import bulkyzanka.electro.mod.items.CoalMotor;
import bulkyzanka.electro.mod.items.ElectricMotor;
import bulkyzanka.electro.mod.items.Generator;
import bulkyzanka.electro.mod.items.armor.BoneArmor;
import bulkyzanka.electro.mod.items.tools.BoneAxe;
import bulkyzanka.electro.mod.items.tools.BoneHoe;
import bulkyzanka.electro.mod.items.tools.BonePickaxe;
import bulkyzanka.electro.mod.items.tools.BoneSpade;
import bulkyzanka.electro.mod.items.tools.BoneSword;
import bulkyzanka.electro.mod.lib.Referance;
import bulkyzanka.electro.mod.proxy.ProxyCommon;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
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.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;



@Mod(modid = Referance.MODID, version = Referance.VERSION)
public class Electrocuted
{

//Instance
@Instance(Referance.MODID)
    public static Electrocuted instance;

//Proxy Stuff
@SidedProxy(clientSide = "electro.proxy.ProxyClient" , serverSide = "electro.proxy.ProxyCommon")
public static ProxyCommon proxy;

//GuiIDs
public static final int guiIdCompressionFurnace = 1;
//CreativeTabs
public static CreativeTabs  ElectrocutedTab = new ElectrocutedTab(CreativeTabs.getNextID(), "ElectrocutedTab");

//Material
	//ToolMaterial
public static ToolMaterial Bone = EnumHelper.addToolMaterial("Bone", 2, 175, 6.0F, 2.5F, 19);

	//ArmorMaterial
public static ArmorMaterial BoneArmor = EnumHelper.addArmorMaterial("BONEARMOR", 7, new int[]{3, 7, 6, 3}, 20);

//Items
public static Item BonePlate = new BonePlate().setUnlocalizedName("BonePlate").setTextureName("electrocuted:BonePlate");
public static Item BoneIngot = new BoneIngot().setUnlocalizedName("BoneIngot").setTextureName("electrocuted:BoneIngot");
public static Item CoalMotor = new CoalMotor().setUnlocalizedName("CoalMotor").setTextureName("electrocted:CoalMotor");
public static Item ElectricMotor = new ElectricMotor().setUnlocalizedName("ElectricMotor").setTextureName("electrocted:ElectricMotor");
public static Item Generator = new Generator().setUnlocalizedName("Generator").setTextureName("electrocted:Generator");

//Blocks
public static Block CompressionFurnaceIdle = new BlockCompressionFurnace(false).setBlockName("CompressionFurnaceIdle").setBlockTextureName("electrocuted:CompressionFurnace_Idle_front");
public static Block CompressionFurnaceActive = new BlockCompressionFurnace(true).setBlockName("CompressionFurnaceActive").setBlockTextureName("electrocuted:CompressionFurnace_Idle_front");

//Tools
public static Item BoneSword = new BoneSword(Bone).setUnlocalizedName("BoneSword").setTextureName("electrocuted:BoneSword");
public static Item BoneSpade = new BoneSpade(Bone).setUnlocalizedName("BoneSpade").setTextureName("electrocuted:BoneSpade");
public static Item BonePickaxe = new BonePickaxe(Bone).setUnlocalizedName("BonePickaxe").setTextureName("electrocuted:BonePickaxe");
public static Item BoneAxe = new BoneAxe(Bone).setUnlocalizedName("BoneAxe").setTextureName("electrocuted:BoneAxe");
public static Item BoneHoe = new BoneHoe(Bone).setUnlocalizedName("BoneHoe").setTextureName("electrocuted:BoneHoe");

//Armor
public static Item BoneHelmet = new BoneArmor(BoneArmor, 0).setUnlocalizedName("BoneHelmet").setTextureName("electrocuted:BoneHelmet");
public static Item BoneChestPlate = new BoneArmor(BoneArmor, 1).setUnlocalizedName("BoneChestPlate").setTextureName("electrocuted:BoneChestPlate");
public static Item BoneLeggings = new BoneArmor(BoneArmor, 2).setUnlocalizedName("BoneLeggings").setTextureName("electrocuted:BoneLeggings");
public static Item BoneBoots = new BoneArmor(BoneArmor, 3).setUnlocalizedName("BoneBoots").setTextureName("electrocuted:BoneBoots");

 //EventHandler
	//PreInit
@EventHandler
 public void preinit(FMLPreInitializationEvent event)
{
	//Config
	Configuration config = new Configuration(
			event.getSuggestedConfigurationFile());
			config.load();

			config.save();
 }

//Init
 @EventHandler
 public void init(FMLInitializationEvent event)
 {
	 proxy.registerRenderInformation();
	 proxy.registerTileEntities();
 }	 

 	//PostInit
 @EventHandler
 public void postinit(FMLPostInitializationEvent event)
 {

 }
public Electrocuted()
{

//Registry
 GameRegistry.registerItem(BonePlate, "BonePlate");
 GameRegistry.registerItem(BoneIngot, "BoneIngot");
 GameRegistry.registerItem(CoalMotor, "CoalMotor");
 GameRegistry.registerItem(ElectricMotor, "ElectricMotor");
 GameRegistry.registerItem(Generator, "Generator");

 GameRegistry.registerBlock(CompressionFurnaceIdle, "CompressionFurnaceIdle");
 GameRegistry.registerBlock(CompressionFurnaceActive, "CompressionFurnaceActive");

 GameRegistry.registerItem(BoneSword, "BoneSword");
 GameRegistry.registerItem(BoneSpade, "BoneSpade");
 GameRegistry.registerItem(BonePickaxe, "BonePickaxe");
 GameRegistry.registerItem(BoneAxe, "BoneAxe");
 GameRegistry.registerItem(BoneHoe, "BoneHoe");

 GameRegistry.registerItem(BoneHelmet, "BoneHelmet");
 GameRegistry.registerItem(BoneChestPlate, "BoneChestPlate");
 GameRegistry.registerItem(BoneLeggings, "BoneLeggings");
 GameRegistry.registerItem(BoneBoots, "BoneBoots");

 GuiHandler GuiHandler = new GuiHandler();
 LanguageRegistry.instance().addStringLocalization("container.CompressionFurnace", "Compression Furnace");
 NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler());

//Recipe
 	//Items
 GameRegistry.addRecipe(new ItemStack(BonePlate, 2), new Object []
 {
		"XX ", "XX ", 'X', Items.bone
 });
 GameRegistry.addRecipe(new ItemStack(BoneIngot, 3), new Object []
 {
	"XXX", "XYX", "XXX", 'X', Items.bone, 'Y', Items.iron_ingot
 });

 	//Tools
 GameRegistry.addRecipe(new ItemStack(BoneSword, 1), new Object []
 {
	 " X ", " X ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneSpade, 1), new Object []
 {
	 " X ", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BonePickaxe, 1), new Object []
 {
	 "XXX", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneAxe, 1), new Object []
 {
	 "XX ", "XY ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneHoe, 1), new Object []
 {
	 " XX", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });


 	//Armor
 GameRegistry.addRecipe(new ItemStack(BoneHelmet, 1), new Object []
 {
	 "XXX", "X X", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneChestPlate, 1), new Object []
 {
	 "X X", "XXX", "XXX", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneLeggings, 1), new Object []
 {
	 "XXX", "X X", "X X", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneBoots, 1), new Object []
 {
	 "X X", "X X", 'X', BonePlate
 });

}
}


If I helped then you help, hit that Thank You button or Applaud.

Posted

I'm sorry to ask but could you just tell me the code behind this, I am having a really hard time coding because i can't test anything.

If I helped then you help, hit that Thank You button or Applaud.

Posted

I know what a constructor is but i don't understand where else to put it... I even looked at EE3 for referance and pahimar put it in init.

If I helped then you help, hit that Thank You button or Applaud.

Posted

@EventHandler
@SuppressWarnings("unchecked, unused")
public void init(FMLInitializationEvent event)
{
// Register the GUI Handler
NetworkRegistry.instance().registerGuiHandler(instance, new GuiHandler());
}

 

In my case it doesn't work.

If I helped then you help, hit that Thank You button or Applaud.

Posted

The method INSTANCE() is undefined for the type NetworkRegistry

If I helped then you help, hit that Thank You button or Applaud.

Posted

Didn't he just say that it is:

 

NetworkRegistry.INSTANCE().registerGuiHandler(instance, new GuiHandler());

 

He said that.

If I helped then you help, hit that Thank You button or Applaud.

Posted

Didn't he just say that it is:

 

NetworkRegistry.INSTANCE().registerGuiHandler(instance, new GuiHandler());

 

He said that.

Sorry my bad... I typed to fast for me to see it.

 

I meant INSTANCE without the ().

Posted

So everything is working, apart from one thing. -.-

The "GuiHandler GuiHandler = new GuiHandler();" in my main mod class.

 

package bulkyzanka.electro.mod;

import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.util.EnumHelper;
import bulkyzanka.electro.mod.blocks.BlockCompressionFurnace;
import bulkyzanka.electro.mod.creativetabs.ElectrocutedTab;
import bulkyzanka.electro.mod.gui.GuiHandler;
import bulkyzanka.electro.mod.items.BoneIngot;
import bulkyzanka.electro.mod.items.BonePlate;
import bulkyzanka.electro.mod.items.CoalMotor;
import bulkyzanka.electro.mod.items.ElectricMotor;
import bulkyzanka.electro.mod.items.Generator;
import bulkyzanka.electro.mod.items.armor.BoneArmor;
import bulkyzanka.electro.mod.items.tools.BoneAxe;
import bulkyzanka.electro.mod.items.tools.BoneHoe;
import bulkyzanka.electro.mod.items.tools.BonePickaxe;
import bulkyzanka.electro.mod.items.tools.BoneSpade;
import bulkyzanka.electro.mod.items.tools.BoneSword;
import bulkyzanka.electro.mod.lib.Referance;
import bulkyzanka.electro.mod.proxy.ProxyCommon;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
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.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;



@Mod(modid = Referance.MODID, version = Referance.VERSION)
public class Electrocuted
{

//Instance
@Instance(Referance.MODID)
    public static Electrocuted instance;

//Proxy Stuff
@SidedProxy(clientSide = "electro.proxy.ProxyClient" , serverSide = "electro.proxy.ProxyCommon")
public static ProxyCommon proxy;

//GuiIDs
public static final int guiIdCompressionFurnace = 1;
//CreativeTabs
public static CreativeTabs  ElectrocutedTab = new ElectrocutedTab(CreativeTabs.getNextID(), "ElectrocutedTab");

//Material
	//ToolMaterial
public static ToolMaterial Bone = EnumHelper.addToolMaterial("Bone", 2, 175, 6.0F, 2.5F, 19);

	//ArmorMaterial
public static ArmorMaterial BoneArmor = EnumHelper.addArmorMaterial("BONEARMOR", 7, new int[]{3, 7, 6, 3}, 20);

//Items
public static Item BonePlate = new BonePlate().setUnlocalizedName("BonePlate").setTextureName("electrocuted:BonePlate");
public static Item BoneIngot = new BoneIngot().setUnlocalizedName("BoneIngot").setTextureName("electrocuted:BoneIngot");
public static Item CoalMotor = new CoalMotor().setUnlocalizedName("CoalMotor").setTextureName("electrocted:CoalMotor");
public static Item ElectricMotor = new ElectricMotor().setUnlocalizedName("ElectricMotor").setTextureName("electrocted:ElectricMotor");
public static Item Generator = new Generator().setUnlocalizedName("Generator").setTextureName("electrocted:Generator");

//Blocks
public static Block CompressionFurnaceIdle = new BlockCompressionFurnace(false).setBlockName("CompressionFurnaceIdle").setBlockTextureName("electrocuted:CompressionFurnace_Idle_front");
public static Block CompressionFurnaceActive = new BlockCompressionFurnace(true).setBlockName("CompressionFurnaceActive").setBlockTextureName("electrocuted:CompressionFurnace_Idle_front");

//Tools
public static Item BoneSword = new BoneSword(Bone).setUnlocalizedName("BoneSword").setTextureName("electrocuted:BoneSword");
public static Item BoneSpade = new BoneSpade(Bone).setUnlocalizedName("BoneSpade").setTextureName("electrocuted:BoneSpade");
public static Item BonePickaxe = new BonePickaxe(Bone).setUnlocalizedName("BonePickaxe").setTextureName("electrocuted:BonePickaxe");
public static Item BoneAxe = new BoneAxe(Bone).setUnlocalizedName("BoneAxe").setTextureName("electrocuted:BoneAxe");
public static Item BoneHoe = new BoneHoe(Bone).setUnlocalizedName("BoneHoe").setTextureName("electrocuted:BoneHoe");

//Armor
public static Item BoneHelmet = new BoneArmor(BoneArmor, 0).setUnlocalizedName("BoneHelmet").setTextureName("electrocuted:BoneHelmet");
public static Item BoneChestPlate = new BoneArmor(BoneArmor, 1).setUnlocalizedName("BoneChestPlate").setTextureName("electrocuted:BoneChestPlate");
public static Item BoneLeggings = new BoneArmor(BoneArmor, 2).setUnlocalizedName("BoneLeggings").setTextureName("electrocuted:BoneLeggings");
public static Item BoneBoots = new BoneArmor(BoneArmor, 3).setUnlocalizedName("BoneBoots").setTextureName("electrocuted:BoneBoots");

 //EventHandler
	//PreInit
@EventHandler
 public void preinit(FMLPreInitializationEvent event)
{
	//Config
	Configuration config = new Configuration(
			event.getSuggestedConfigurationFile());
			config.load();

			config.save();
 }

	//Init
 @EventHandler
 public void init(FMLInitializationEvent event)
 {
	 proxy.registerRenderInformation();
	 proxy.registerTileEntities();
 }	 

 	//PostInit
 @EventHandler
 public void postinit(FMLPostInitializationEvent event)
 {

 }

public Electrocuted()
{
 //Registry
 GameRegistry.registerItem(BonePlate, "BonePlate");
 GameRegistry.registerItem(BoneIngot, "BoneIngot");
 GameRegistry.registerItem(CoalMotor, "CoalMotor");
 GameRegistry.registerItem(ElectricMotor, "ElectricMotor");
 GameRegistry.registerItem(Generator, "Generator");

 GameRegistry.registerBlock(CompressionFurnaceIdle, "CompressionFurnaceIdle");
 GameRegistry.registerBlock(CompressionFurnaceActive, "CompressionFurnaceActive");

 GameRegistry.registerItem(BoneSword, "BoneSword");
 GameRegistry.registerItem(BoneSpade, "BoneSpade");
 GameRegistry.registerItem(BonePickaxe, "BonePickaxe");
 GameRegistry.registerItem(BoneAxe, "BoneAxe");
 GameRegistry.registerItem(BoneHoe, "BoneHoe");

 GameRegistry.registerItem(BoneHelmet, "BoneHelmet");
 GameRegistry.registerItem(BoneChestPlate, "BoneChestPlate");
 GameRegistry.registerItem(BoneLeggings, "BoneLeggings");
 GameRegistry.registerItem(BoneBoots, "BoneBoots");
 LanguageRegistry.instance().addStringLocalization("container.CompressionFurnace", "Compression Furnace");
 GuiHandler GuiHandler = new GuiHandler();

//Recipe
 	//Items
 GameRegistry.addRecipe(new ItemStack(BonePlate, 2), new Object []
 {
		"XX ", "XX ", 'X', Items.bone
 });
 GameRegistry.addRecipe(new ItemStack(BoneIngot, 3), new Object []
 {
	"XXX", "XYX", "XXX", 'X', Items.bone, 'Y', Items.iron_ingot
 });

 	//Tools
 GameRegistry.addRecipe(new ItemStack(BoneSword, 1), new Object []
 {
	 " X ", " X ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneSpade, 1), new Object []
 {
	 " X ", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BonePickaxe, 1), new Object []
 {
	 "XXX", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneAxe, 1), new Object []
 {
	 "XX ", "XY ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });
 GameRegistry.addRecipe(new ItemStack(BoneHoe, 1), new Object []
 {
	 " XX", " Y ", " Y ", 'X', BoneIngot, 'Y', Items.stick
 });


 	//Armor
 GameRegistry.addRecipe(new ItemStack(BoneHelmet, 1), new Object []
 {
	 "XXX", "X X", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneChestPlate, 1), new Object []
 {
	 "X X", "XXX", "XXX", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneLeggings, 1), new Object []
 {
	 "XXX", "X X", "X X", 'X', BonePlate
 });
 GameRegistry.addRecipe(new ItemStack(BoneBoots, 1), new Object []
 {
	 "X X", "X X", 'X', BonePlate
 });

}
}


 

---- Minecraft Crash Report ----
// Shall we play a game?

Time: 08.03.14 17:13
Description: Initializing game

java.lang.NullPointerException: Initializing game
at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:217)
at bulkyzanka.electro.mod.gui.GuiHandler.<init>(GuiHandler.java:15)
at bulkyzanka.electro.mod.Electrocuted.<init>(Electrocuted.java:140)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:173)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:509)
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:47)
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:209)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)
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:47)
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:119)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:564)
at net.minecraft.client.Minecraft.run(Minecraft.java:934)
at net.minecraft.client.main.Main.main(Main.java:112)
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.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:217)
at bulkyzanka.electro.mod.gui.GuiHandler.<init>(GuiHandler.java:15)
at bulkyzanka.electro.mod.Electrocuted.<init>(Electrocuted.java:140)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:173)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:509)
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:47)
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:209)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)
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:47)
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:119)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:564)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:934)
at net.minecraft.client.main.Main.main(Main.java:112)
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.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
Minecraft Version: 1.7.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 133766472 bytes (127 MB) / 376963072 bytes (359 MB) up to 1905197056 bytes (1816 MB)
JVM Flags: 0 total; 
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.01-pre FML v7.2.125.1031 Minecraft Forge 10.12.0.1031 5 mods loaded, 5 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{7.2.125.1031} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1031.jar) Unloaded->Constructed
Forge{10.12.0.1031} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1031.jar) Unloaded->Constructed
examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed
electro{1.0A} [Electrocuted] (bin) Unloaded->Errored
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: AMD Radeon HD 6800 Series GL version 4.2.12422 Compatibility Profile Context 13.152.0.0, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: ~~ERROR~~ NullPointerException: null
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
Anisotropic Filtering: Off (1)

 

 

If I helped then you help, hit that Thank You button or Applaud.

Posted

-snip- Look at the bold:

 

 

// Shall we play a game?

 

Time: 08.03.14 17:13

Description: Initializing game

 

java.lang.NullPointerException: Initializing game

at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:217)

at bulkyzanka.electro.mod.gui.GuiHandler.<init>(GuiHandler.java:15)

at bulkyzanka.electro.mod.Electrocuted.<init>(Electrocuted.java:140)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:173)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:509)

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:47)

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:209)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)

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:47)

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:119)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:564)

at net.minecraft.client.Minecraft.run(Minecraft.java:934)

at net.minecraft.client.main.Main.main(Main.java:112)

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.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:217)

at bulkyzanka.electro.mod.gui.GuiHandler.<init>(GuiHandler.java:15)

at bulkyzanka.electro.mod.Electrocuted.<init>(Electrocuted.java:140)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:173)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:509)

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:47)

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:209)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)

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:47)

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:119)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:564)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:934)

at net.minecraft.client.main.Main.main(Main.java:112)

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.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_21, Oracle Corporation

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

Memory: 133766472 bytes (127 MB) / 376963072 bytes (359 MB) up to 1905197056 bytes (1816 MB)

JVM Flags: 0 total;

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.01-pre FML v7.2.125.1031 Minecraft Forge 10.12.0.1031 5 mods loaded, 5 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{7.2.125.1031} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1031.jar) Unloaded->Constructed

Forge{10.12.0.1031} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1031.jar) Unloaded->Constructed

examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed

electro{1.0A} [Electrocuted] (bin) Unloaded->Errored

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: AMD Radeon HD 6800 Series GL version 4.2.12422 Compatibility Profile Context 13.152.0.0, ATI Technologies Inc.

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

Type: Client (map_client.txt)

Resource Packs: []

Current Language: ~~ERROR~~ NullPointerException: null

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

Anisotropic Filtering: Off (1)

 

 

Look at the bold. <init>  is the constructor. Please go back to learning Java and stop "copy & paste modding."

YOU CANNOT DO SHIT IN THE CONSTRUCTOR OF YOUR MAIN MOD FILE. Oh, and Pahimar is definitely not doing all this in the constructor, you are just blind.

 

Have a read: http://www.homeandlearn.co.uk/java/write_your_own_java_classes.html

I am fairly new to Java and modding, so my answers are not always 100% correct. Sorry for that!

Posted

First of all, I am not blind...

 

    @EventHandler
    @SuppressWarnings("unchecked, unused")
    public void init(FMLInitializationEvent event)
    {
        // Register the GUI Handler
    	NetworkRegistry.instance().registerGuiHandler(instance, new GuiHandler());

        // Register the Item Pickup Handler
        MinecraftForge.EVENT_BUS.register(new ItemEventHandler());

        MinecraftForge.EVENT_BUS.register(new ActionRequestHandler());

        MinecraftForge.EVENT_BUS.register(new WorldTransmutationHandler());

        // Register the hook to initialize the EmcRegistry
        MinecraftForge.EVENT_BUS.register(new WorldEventHandler());

        // Register the ItemTooltipEvent Handler
        proxy.registerItemTooltipHandler();

        // Register the DrawBlockHighlight Handler
        proxy.registerDrawBlockHighlightHandler();

        // Initialize custom rendering and pre-load textures (Client only)
        proxy.initRenderingAndTextures();

        // Initialize our Crafting Handler
        CraftingHandler.init();

        // Handle fluid registration
        FluidHelper.registerFluids();

        // Initialize mod tile entities
        proxy.registerTileEntities();

        // Register our fuels
        GameRegistry.registerFuelHandler(new FuelHandler());

        // Initialize addons (which work with IMC, and must be used in Init)
        AddonHandler.init();
    }

In his main mod class. -.-

If I helped then you help, hit that Thank You button or Applaud.

Posted

First of all, I am not blind...

 

    @EventHandler
    @SuppressWarnings("unchecked, unused")
    public void init(FMLInitializationEvent event)
    {
        // Register the GUI Handler
    	NetworkRegistry.instance().registerGuiHandler(instance, new GuiHandler());

        // Register the Item Pickup Handler
        MinecraftForge.EVENT_BUS.register(new ItemEventHandler());

        MinecraftForge.EVENT_BUS.register(new ActionRequestHandler());

        MinecraftForge.EVENT_BUS.register(new WorldTransmutationHandler());

        // Register the hook to initialize the EmcRegistry
        MinecraftForge.EVENT_BUS.register(new WorldEventHandler());

        // Register the ItemTooltipEvent Handler
        proxy.registerItemTooltipHandler();

        // Register the DrawBlockHighlight Handler
        proxy.registerDrawBlockHighlightHandler();

        // Initialize custom rendering and pre-load textures (Client only)
        proxy.initRenderingAndTextures();

        // Initialize our Crafting Handler
        CraftingHandler.init();

        // Handle fluid registration
        FluidHelper.registerFluids();

        // Initialize mod tile entities
        proxy.registerTileEntities();

        // Register our fuels
        GameRegistry.registerFuelHandler(new FuelHandler());

        // Initialize addons (which work with IMC, and must be used in Init)
        AddonHandler.init();
    }

In his main mod class. -.-

....

THAT IS NOT A CONSTRUCTOR!

I am fairly new to Java and modding, so my answers are not always 100% correct. Sorry for that!

Posted

-snip- Look at the bold:

 

 

// Shall we play a game?

 

Time: 08.03.14 17:13

Description: Initializing game

 

java.lang.NullPointerException: Initializing game

at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:217)

at bulkyzanka.electro.mod.gui.GuiHandler.<init>(GuiHandler.java:15)

at bulkyzanka.electro.mod.Electrocuted.<init>(Electrocuted.java:140)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:173)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:509)

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:47)

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:209)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)

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:47)

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:119)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:564)

at net.minecraft.client.Minecraft.run(Minecraft.java:934)

at net.minecraft.client.main.Main.main(Main.java:112)

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.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at cpw.mods.fml.common.network.NetworkRegistry.registerGuiHandler(NetworkRegistry.java:217)

at bulkyzanka.electro.mod.gui.GuiHandler.<init>(GuiHandler.java:15)

at bulkyzanka.electro.mod.Electrocuted.<init>(Electrocuted.java:140)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:173)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:509)

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:47)

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:209)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188)

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:47)

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:119)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:484)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:201)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:564)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:934)

at net.minecraft.client.main.Main.main(Main.java:112)

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.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

-- System Details --

Details:

Minecraft Version: 1.7.2

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_21, Oracle Corporation

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

Memory: 133766472 bytes (127 MB) / 376963072 bytes (359 MB) up to 1905197056 bytes (1816 MB)

JVM Flags: 0 total;

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.01-pre FML v7.2.125.1031 Minecraft Forge 10.12.0.1031 5 mods loaded, 5 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{7.2.125.1031} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1031.jar) Unloaded->Constructed

Forge{10.12.0.1031} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1031.jar) Unloaded->Constructed

examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed

electro{1.0A} [Electrocuted] (bin) Unloaded->Errored

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: AMD Radeon HD 6800 Series GL version 4.2.12422 Compatibility Profile Context 13.152.0.0, ATI Technologies Inc.

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

Type: Client (map_client.txt)

Resource Packs: []

Current Language: ~~ERROR~~ NullPointerException: null

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

Anisotropic Filtering: Off (1)

 

 

Look at the bold. <init>  is the constructor. Please go back to learning Java and stop "copy & paste modding."

YOU CANNOT DO SHIT IN THE CONSTRUCTOR OF YOUR MAIN MOD FILE. Oh, and Pahimar is definitely not doing all this in the constructor, you are just blind.

 

Have a read: http://www.homeandlearn.co.uk/java/write_your_own_java_classes.html

 

^

This. Get a basic knowledge of java. You can't mod without knowing anything... when there is such an easy error and u only say but he did it like this. then u dont know how to code and this guy neither. use the link above(quote) to get started.

also maybe get: http://www.amazon.de/Head-First-Java-Mike-Loukides/dp/0596009208

*********************************

**  Always remember you are unique,  **

**  just like everyone else                   **     

**********************************

Was my post helpful? Say thanks and

press the thank you button, on my post!!

God, damn it!

Posted

I do know Java(Still learning but I know a bit) and I looked at the errors and I found saw it. I just don't know where else to put it. I saw a tutorial about it and thats where he put it. With where Pahimar put it, I tried the same, didn't work. If it did(I'm not that dumb -.-) then I wouldn't put it here.

 

If I helped then you help, hit that Thank You button or Applaud.

Posted

*Head-desk*

For the java retarded, here is the difference:

Simple Class called MyClass

Class MyClass {
    private boolean field; // <--- this is a field (of type boolean and private to the class)
    public MyClass() { // <--- this is a constructor!! Notice the name and the fact that there is no return type
        field = codeInTheConstructor(new StuffToMake()); // <--- code in constructor
    }
    int getANumber() { // <--- this is a method (a property getter)
        return 15;  // <--- code in a method
    }
}

 

This shows most of the simple layout of classes.

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • So me and a couple of friends are playing with a shitpost mod pack and one of the mods in the pack is corail tombstone and for some reason there is a problem with it, where on death to fire the player will get kicked out of the server and the tombstone will not spawn basically deleting an entire inventory, it doesn't matter what type of fire it is, whether it's from vanilla fire/lava, or from modded fire like ice&fire/lycanites and it's common enough to where everyone on the server has experienced at least once or twice and it doesn't give any crash log. a solution to this would be much appreciated thank you!
    • 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

×
×
  • Create New...

Important Information

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