Jump to content

Crash when searching for my block in creative mode.


Nieue

Recommended Posts

debugging 101 how to use the overpowered println

 

System.out.println(Object); <- that method? yeah its op as F***

 

 

in the method TileEntitySolarPanelRendere.renderTileEntityAt(args) if you do a println() does anythgin show up at all in your console ?

 

NOTE: try to do thsi before coming to ask question because then I wont have to ask you to do it and youll get an answer faster. it can also tell you whats going on roughly, if nothing shows up that mean the code never calls this method (maybe its not registered correctly?) if it does print something it means your render code is wrong somehow

Thanks for the tip that I should do this before asking questions, but nothing showed up in the console that was really weird.

 

jul 23, 2013 9:47:35 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker

2013-07-23 21:47:35 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.19.789 for Minecraft 1.6.2 loading

2013-07-23 21:47:35 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_21, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jdk1.7.0_21\jre

2013-07-23 21:47:35 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-07-23 21:47:36 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg

2013-07-23 21:47:36 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg

2013-07-23 21:47:36 [sEVERE] [ForgeModLoader] The binary patch set is missing. Things are probably about to go very wrong.

2013-07-23 21:47:37 [iNFO] [ForgeModLoader] Launching wrapped minecraft

2013-07-23 21:47:38 [iNFO] [Minecraft-Client] Setting user: Player562

2013-07-23 21:47:38 [iNFO] [Minecraft-Client] (Session ID is null)

2013-07-23 21:47:39 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-07-23 21:47:39 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-07-23 21:47:40 [iNFO] [sTDOUT]

2013-07-23 21:47:40 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-23 21:47:40 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-07-23 21:47:40 [iNFO] [sTDOUT] MinecraftForge v9.10.0.789 Initialized

2013-07-23 21:47:40 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.789 Initialized

2013-07-23 21:47:40 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-23 21:47:40 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-23 21:47:40 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-07-23 21:47:40 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-23 21:47:40 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-07-23 21:47:40 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Dennis\Downloads\Minecraft\Mod\1.6\Redpower\forge\mcp\jars\config\logging.properties

2013-07-23 21:47:40 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-07-23 21:47:40 [iNFO] [sTDOUT]

2013-07-23 21:47:40 [iNFO] [ForgeModLoader] Searching C:\Users\Dennis\Downloads\Minecraft\Mod\1.6\Redpower\forge\mcp\jars\mods for mods

2013-07-23 21:47:44 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-07-23 21:47:44 [iNFO] [mcp] Activating mod mcp

2013-07-23 21:47:44 [iNFO] [FML] Activating mod FML

2013-07-23 21:47:44 [iNFO] [Forge] Activating mod Forge

2013-07-23 21:47:44 [iNFO] [blutricity] Activating mod blutricity

2013-07-23 21:47:44 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-07-23 21:47:44 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-07-23 21:47:44 [WARNING] [ForgeModLoader] The mod id blutricity attempted to register channels without specifying a packet handler

2013-07-23 21:47:44 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_top.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_side.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_front_lit.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_front.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_side.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_front.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_1004_solarpanel.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_top.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_front_lit.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/battery.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/coppercoil.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/blusilicon.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/copperingot.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/brassingot.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/silveringot.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/blumotor.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/nikolite.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/bluingot.png

2013-07-23 21:47:45 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/tiningot.png

2013-07-23 21:47:46 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-07-23 21:47:46 [WARNING] [Project Blu] Mod Project Blu is missing a pack.mcmeta file, things may not work well

2013-07-23 21:47:46 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Project Blu

2013-07-23 21:47:46 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_1004_solarpanel.png

2013-07-23 21:47:46 [iNFO] [sTDOUT]

2013-07-23 21:47:46 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-07-23 21:47:46 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-07-23 21:47:46 [iNFO] [sTDOUT]

2013-07-23 21:47:46 [iNFO] [sTDOUT]

2013-07-23 21:47:46 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-23 21:47:46 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-23 21:47:46 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-23 21:47:46 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-23 21:47:47 [iNFO] [sTDOUT]

2013-07-23 21:47:47 [sEVERE] [Minecraft-Client] Realms: Invalid session id

2013-07-23 21:47:52 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2

2013-07-23 21:47:52 [iNFO] [Minecraft-Server] Generating keypair

2013-07-23 21:47:53 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@3a284bee)

2013-07-23 21:47:53 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@3a284bee)

2013-07-23 21:47:53 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@3a284bee)

2013-07-23 21:47:53 [iNFO] [Minecraft-Server] Preparing start region for level 0

2013-07-23 21:47:54 [iNFO] [Minecraft-Server] Preparing spawn area: 95%

2013-07-23 21:47:54 [iNFO] [sTDOUT] loading single player

2013-07-23 21:47:54 [iNFO] [Minecraft-Server] Player562[/127.0.0.1:0] logged in with entity id 323 at (-242.6463297137257, 72.0, -209.23726934916877)

2013-07-23 21:47:54 [iNFO] [Minecraft-Server] Player562 joined the game

2013-07-23 21:47:54 [iNFO] [sTDOUT] Setting up custom skins

2013-07-23 21:47:55 [iNFO] [Minecraft-Server] Saving and pausing game...

2013-07-23 21:47:55 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-07-23 21:47:55 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-07-23 21:47:55 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving and pausing game...

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Stopping server

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving players

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Player562 left the game

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving worlds

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-07-23 21:48:27 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-07-23 21:48:28 [iNFO] [ForgeModLoader] Unloading dimension 0

2013-07-23 21:48:28 [iNFO] [ForgeModLoader] Unloading dimension -1

2013-07-23 21:48:28 [iNFO] [ForgeModLoader] Unloading dimension 1

2013-07-23 21:48:28 [iNFO] [Minecraft-Client] Stopping!

2013-07-23 21:48:28 [iNFO] [sTDOUT]

2013-07-23 21:48:28 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-07-23 21:48:28 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-07-23 21:48:28 [iNFO] [sTDOUT]

 

 

The only thing that had to do with the Solar Panel was

2013-07-23 21:47:46 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_1004_solarpanel.png

 

Link to comment
Share on other sites

  • Replies 80
  • Created
  • Last Reply

Top Posters In This Topic

nothing showed up

conclusion? you didnt rgister it correctly :) can we have the updated main mod class ?

 

package assets.blutricity.common;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

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.FMLPreInitializationEvent;

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

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

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

@Mod(modid = Mainclass.modid, name = "Project Blu", version = "1.0")

@NetworkMod(clientSideRequired = true, serverSideRequired = false, channels = {"craftable_end_portal"})

public class Mainclass

{

public static final String modid = "blutricity";

 

public static Block BluFurnaceIdle;

public static Block BluFurnaceLit;

public static Block BluAlloyFurnaceIdle;

public static Block BluAlloyFurnaceLit;

public static Block SolarPanel;

 

public static Item BluMotor;

public static Item BluSilicon;

public static Item BluIngot;

public static Item CopperCoil;

    public static Item TinIngot;

    public static Item CopperIngot;

    public static Item BrassIngot;

    public static Item SilverIngot;

    public static Item Nikolite;

    public static Item Battery;

   

 

@SidedProxy(clientSide = "assets.blutricity.client.ClientProxy", serverSide = "assets.blutricity.common.CommonProxy")

public static CommonProxy Proxy;

 

@Instance

public static Mainclass instance = new Mainclass();

private GuiHandler guihandler = new GuiHandler();

 

@PreInit

public void preInit(FMLPreInitializationEvent event)

{

BluFurnaceIdle = new BluFurnace(1000, false).setHardness(5.0F).setUnlocalizedName("blufurnaceidle").setCreativeTab(BluTab);

BluFurnaceLit = new BluFurnace(1001, true).setHardness(5.0F).setUnlocalizedName("blufurnacelit");

BluAlloyFurnaceIdle = new BluAlloyFurnace(1002, false).setHardness(5.0F).setUnlocalizedName("bluealloyidle").setCreativeTab(BluTab);

BluAlloyFurnaceLit = new BluAlloyFurnace(1003, true).setHardness(5.0F).setUnlocalizedName("blualloylit");

BluMotor = new BluMotor(15000).setUnlocalizedName("blumotor").setCreativeTab(BluTab);

BluSilicon = new BluSilicon(15001).setUnlocalizedName("blusilicon").setCreativeTab(BluTab);

BluIngot = new BluIngot(15002).setUnlocalizedName("bluingot").setCreativeTab(BluTab);

CopperCoil = new CopperCoil(15003).setUnlocalizedName("coppercoil").setCreativeTab(BluTab);

SolarPanel = new SolarPanel(1004).setHardness(5.0F).setUnlocalizedName("solarpanel").setCreativeTab(BluTab);

TinIngot = new TinIngot(15004).setUnlocalizedName("tiningot").setCreativeTab(BluTab);

CopperIngot = new CopperIngot(15005).setUnlocalizedName("copperingot").setCreativeTab(BluTab);

SilverIngot = new SilverIngot(15006).setUnlocalizedName("silveringot").setCreativeTab(BluTab);

BrassIngot = new BrassIngot(15007).setUnlocalizedName("brassingot").setCreativeTab(BluTab);

Nikolite = new Nikolite(15008).setUnlocalizedName("nikolite").setCreativeTab(BluTab);

Battery = new Battery(15009).setUnlocalizedName("battery").setCreativeTab(BluTab);

 

NetworkRegistry.instance().registerGuiHandler(this, guihandler);

 

GameRegistry.registerTileEntity(TileEntitySolarPanel.class, "TileEntitySolarPanel");

GameRegistry.registerTileEntity(TileEntityBluFurnace.class, "TileEntityBluFurnace");

 

LanguageRegistry.instance().addStringLocalization("itemGroup.BluTab", "en_US", "Project Blu");

LanguageRegistry.addName(BluFurnaceIdle, "Blulectric Furnace");

LanguageRegistry.addName(BluFurnaceLit, "");

LanguageRegistry.addName(BluAlloyFurnaceIdle, "Blulectric Alloy Furnace");

LanguageRegistry.addName(BluAlloyFurnaceLit, "");

LanguageRegistry.addName(BluMotor, "Blulectric Motor");

LanguageRegistry.addName(BluSilicon, "Blue Doped Wafer");

LanguageRegistry.addName(BluIngot, "Blue Alloy Ingot");

LanguageRegistry.addName(CopperCoil, "Copper Coil");

LanguageRegistry.addName(SolarPanel, "Solar Panel");

 

 

GameRegistry.registerBlock(BluFurnaceIdle, "Furnace.BluFurnaceIdle");

GameRegistry.registerBlock(BluFurnaceLit, "Furnace.BluFurnaceLit");

GameRegistry.registerBlock(BluAlloyFurnaceIdle, "Furnace.BluAlloyFurnaceIdle");

GameRegistry.registerBlock(BluAlloyFurnaceLit, "Furnace.BluAlloyFurnaceLit");

GameRegistry.registerBlock(SolarPanel, "Panel.SolarPanel");

 

ItemStack coil = new ItemStack(CopperCoil);

ItemStack iron = new ItemStack(Item.ingotIron);

ItemStack bai = new ItemStack(BluIngot);

ItemStack clay = new ItemStack(Block.blockClay);

ItemStack brick = new ItemStack(Block.brick);

ItemStack bdw = new ItemStack(BluSilicon);

ItemStack cop = new ItemStack(CopperIngot);

ItemStack tin = new ItemStack(TinIngot);

ItemStack nik = new ItemStack(Nikolite);

ItemStack wood = new ItemStack(Block.planks);

ItemStack bat = new ItemStack(Battery);

ItemStack obs = new ItemStack(Block.obsidian);

ItemStack chest = new ItemStack(Block.chest);

 

GameRegistry.addRecipe(new ItemStack (BluMotor), "ici", "ici", "ibi",

'i', iron, 'c', coil, 'b', bai);

GameRegistry.addRecipe(new ItemStack (BluFurnaceIdle), "ccc", "c c", "ibi",

'i', iron, 'c', clay, 'b', bai);

GameRegistry.addRecipe(new ItemStack (BluAlloyFurnaceIdle), "ccc", "c c", "ibi",

'i', iron, 'c', brick, 'b', bai);

GameRegistry.addRecipe(new ItemStack (SolarPanel), "bbb", "bib", "bbb",

'i', bai, 'b', bdw);

GameRegistry.addRecipe(new ItemStack (Battery), "ncn", "ntn", "ncn",

'n', nik, 'c', cop, 't', tin);

/*GameRegistry.addRecipe(new ItemStack (BatteryBox), "bwb", "bib", "iai",

'b', bat, 'w', wood, 'i', iron, 'a', bai);*/

/*GameRegistry.addRecipe(new ItemStack (VoltMeter), "www", "wnw", "ccc",

'w', wood, 'n', nik, 'c', cop); */

/*GameRegistry.addRecipe(new ItemStack (VoltageTransformer), "iii", "cic", "bib",

'i', iron, 'c', coil, 'b', bai); */

/*GameRegistry.addRecipe(new ItemStack (Thermopile), "cic", "sbs", "cic",

'i', iron, 'c', cop, 's', bdw); */

/*GameRegistry.addRecipe(new ItemStack (ChargingBench), "oco", "bdb", "pap",

'o', obs, 'c', coil, 'b', bat, 'd', chest, 'p', wood, 'a', bai); */

 

 

 

 

 

}

public static CreativeTabs BluTab = new CreativeTabs("BluTab")

{

        public ItemStack getIconItemStack()

        {

                        return new ItemStack(BluFurnaceIdle, 1, 0);

        }

};

}

 

 

 

 

There you go :)

Link to comment
Share on other sites

now lets use the same strategy and make a println before this:

 

"ClientRegistry.bindTileEntitySpecialRenderer("

 

in your client proxy

 

So I did this in the clientproxy:

package assets.blutricity.client;

import assets.blutricity.common.CommonProxy;
import assets.blutricity.common.TileEntitySolarPanelRenderer;
import net.minecraftforge.client.MinecraftForgeClient;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;

public class ClientProxy extends CommonProxy
{
@Override
public void registerRendering()
{
	System.out.println();
	ClientRegistry.bindTileEntitySpecialRenderer(assets.blutricity.common.TileEntitySolarPanel.class, new TileEntitySolarPanelRenderer());

}
}

That is correct right?

 

The console for that:

 

jul 23, 2013 10:14:01 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker

2013-07-23 22:14:01 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.19.789 for Minecraft 1.6.2 loading

2013-07-23 22:14:01 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_21, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jdk1.7.0_21\jre

2013-07-23 22:14:01 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-07-23 22:14:01 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg

2013-07-23 22:14:01 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg

2013-07-23 22:14:02 [sEVERE] [ForgeModLoader] The binary patch set is missing. Things are probably about to go very wrong.

2013-07-23 22:14:03 [iNFO] [ForgeModLoader] Launching wrapped minecraft

2013-07-23 22:14:04 [iNFO] [Minecraft-Client] Setting user: Player328

2013-07-23 22:14:04 [iNFO] [Minecraft-Client] (Session ID is null)

2013-07-23 22:14:04 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-07-23 22:14:05 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-07-23 22:14:05 [iNFO] [sTDOUT]

2013-07-23 22:14:05 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-23 22:14:06 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-07-23 22:14:06 [iNFO] [sTDOUT] MinecraftForge v9.10.0.789 Initialized

2013-07-23 22:14:06 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.789 Initialized

2013-07-23 22:14:06 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-23 22:14:06 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-23 22:14:06 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-23 22:14:06 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-07-23 22:14:06 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-07-23 22:14:06 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Dennis\Downloads\Minecraft\Mod\1.6\Redpower\forge\mcp\jars\config\logging.properties

2013-07-23 22:14:06 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-07-23 22:14:06 [iNFO] [ForgeModLoader] Searching C:\Users\Dennis\Downloads\Minecraft\Mod\1.6\Redpower\forge\mcp\jars\mods for mods

2013-07-23 22:14:06 [iNFO] [sTDOUT]

2013-07-23 22:14:08 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-07-23 22:14:08 [iNFO] [mcp] Activating mod mcp

2013-07-23 22:14:08 [iNFO] [FML] Activating mod FML

2013-07-23 22:14:08 [iNFO] [Forge] Activating mod Forge

2013-07-23 22:14:08 [iNFO] [blutricity] Activating mod blutricity

2013-07-23 22:14:08 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-07-23 22:14:08 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-07-23 22:14:08 [WARNING] [ForgeModLoader] The mod id blutricity attempted to register channels without specifying a packet handler

2013-07-23 22:14:08 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-07-23 22:14:08 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_top.png

2013-07-23 22:14:08 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_side.png

2013-07-23 22:14:08 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_front_lit.png

2013-07-23 22:14:08 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_front.png

2013-07-23 22:14:08 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_side.png

2013-07-23 22:14:08 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_front.png

2013-07-23 22:14:08 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_1004_solarpanel.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_top.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_front_lit.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/battery.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/coppercoil.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/blusilicon.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/copperingot.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/brassingot.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/silveringot.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/blumotor.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/nikolite.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/bluingot.png

2013-07-23 22:14:09 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/tiningot.png

2013-07-23 22:14:09 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-07-23 22:14:09 [WARNING] [Project Blu] Mod Project Blu is missing a pack.mcmeta file, things may not work well

2013-07-23 22:14:09 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Project Blu

2013-07-23 22:14:10 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_1004_solarpanel.png

2013-07-23 22:14:10 [iNFO] [sTDOUT]

2013-07-23 22:14:10 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-07-23 22:14:10 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-07-23 22:14:10 [iNFO] [sTDOUT]

2013-07-23 22:14:10 [iNFO] [sTDOUT]

2013-07-23 22:14:10 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-23 22:14:11 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-23 22:14:11 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-23 22:14:11 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-23 22:14:11 [iNFO] [sTDOUT]

2013-07-23 22:14:12 [sEVERE] [Minecraft-Client] Realms: Invalid session id

2013-07-23 22:15:09 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2

2013-07-23 22:15:09 [iNFO] [Minecraft-Server] Generating keypair

2013-07-23 22:15:10 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@f7a18d9)

2013-07-23 22:15:10 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@f7a18d9)

2013-07-23 22:15:10 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@f7a18d9)

2013-07-23 22:15:10 [iNFO] [Minecraft-Server] Preparing start region for level 0

2013-07-23 22:15:11 [iNFO] [Minecraft-Server] Preparing spawn area: 82%

2013-07-23 22:15:12 [iNFO] [sTDOUT] loading single player

2013-07-23 22:15:12 [iNFO] [Minecraft-Server] Player328[/127.0.0.1:0] logged in with entity id 330 at (-242.6806036722373, 71.0, -208.5655404442924)

2013-07-23 22:15:12 [iNFO] [Minecraft-Server] Player328 joined the game

2013-07-23 22:15:12 [iNFO] [sTDOUT] Setting up custom skins

2013-07-23 22:15:12 [iNFO] [Minecraft-Server] Saving and pausing game...

2013-07-23 22:15:13 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-07-23 22:15:13 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-07-23 22:15:13 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-07-23 22:15:29 [iNFO] [Minecraft-Server] Saving and pausing game...

2013-07-23 22:15:29 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Player328 lost connection: disconnect.quitting

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Player328 left the game

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Stopping singleplayer server as player logged out

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Stopping server

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Saving players

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Saving worlds

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-07-23 22:15:30 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-07-23 22:15:30 [iNFO] [ForgeModLoader] Unloading dimension 0

2013-07-23 22:15:30 [iNFO] [ForgeModLoader] Unloading dimension -1

2013-07-23 22:15:30 [iNFO] [ForgeModLoader] Unloading dimension 1

2013-07-23 22:15:31 [iNFO] [Minecraft-Client] Stopping!

2013-07-23 22:15:31 [iNFO] [sTDOUT]

2013-07-23 22:15:31 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-07-23 22:15:31 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-07-23 22:15:31 [iNFO] [sTDOUT]

 

 

Link to comment
Share on other sites

always use something like

System.out.println("yes the coded executed this")

 

because System.out.println() will only appear like this "2013-07-23 22:14:05  [sTDOUT] " and then you dont know what is sending thsi line, while if you use System.out.println("yes the coded executed this") you know exactly which lines has printed this code

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

always use something like

System.out.println("yes the coded executed this")

 

because System.out.println() will only appear like this "2013-07-23 22:14:05  [sTDOUT] " and then you dont know what is sending thsi line, while if you use System.out.println("yes the coded executed this") you know exactly which lines has printed this code

ah, I'll try that at the first spot you said I should do it first :)

Link to comment
Share on other sites

no it wont print anything trust me, do only the ClientRegistry thing

Here is the log with the string in the clientproxy

 

jul 23, 2013 10:26:32 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker

2013-07-23 22:26:32 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.19.789 for Minecraft 1.6.2 loading

2013-07-23 22:26:32 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_21, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jdk1.7.0_21\jre

2013-07-23 22:26:32 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-07-23 22:26:32 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg

2013-07-23 22:26:32 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg

2013-07-23 22:26:34 [sEVERE] [ForgeModLoader] The binary patch set is missing. Things are probably about to go very wrong.

2013-07-23 22:26:34 [iNFO] [ForgeModLoader] Launching wrapped minecraft

2013-07-23 22:26:35 [iNFO] [Minecraft-Client] Setting user: Player890

2013-07-23 22:26:35 [iNFO] [Minecraft-Client] (Session ID is null)

2013-07-23 22:26:36 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-07-23 22:26:37 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-07-23 22:26:38 [iNFO] [sTDOUT]

2013-07-23 22:26:38 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-23 22:26:38 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-23 22:26:38 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-23 22:26:38 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-07-23 22:26:38 [iNFO] [sTDOUT] MinecraftForge v9.10.0.789 Initialized

2013-07-23 22:26:38 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.789 Initialized

2013-07-23 22:26:38 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-23 22:26:38 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-07-23 22:26:38 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-07-23 22:26:38 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Dennis\Downloads\Minecraft\Mod\1.6\Redpower\forge\mcp\jars\config\logging.properties

2013-07-23 22:26:38 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-07-23 22:26:38 [iNFO] [ForgeModLoader] Searching C:\Users\Dennis\Downloads\Minecraft\Mod\1.6\Redpower\forge\mcp\jars\mods for mods

2013-07-23 22:26:38 [iNFO] [sTDOUT]

2013-07-23 22:26:41 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-07-23 22:26:41 [iNFO] [mcp] Activating mod mcp

2013-07-23 22:26:41 [iNFO] [FML] Activating mod FML

2013-07-23 22:26:41 [iNFO] [Forge] Activating mod Forge

2013-07-23 22:26:41 [iNFO] [blutricity] Activating mod blutricity

2013-07-23 22:26:41 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-07-23 22:26:41 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-07-23 22:26:41 [WARNING] [ForgeModLoader] The mod id blutricity attempted to register channels without specifying a packet handler

2013-07-23 22:26:41 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_top.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_side.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_front_lit.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_front.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_side.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_front.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_1004_solarpanel.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_furnace_top.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/blocks/blu_alloyfurnace_front_lit.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/battery.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/coppercoil.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/blusilicon.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/copperingot.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/brassingot.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/silveringot.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/blumotor.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/nikolite.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/bluingot.png

2013-07-23 22:26:42 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: blutricity:textures/items/tiningot.png

2013-07-23 22:26:43 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-07-23 22:26:43 [WARNING] [Project Blu] Mod Project Blu is missing a pack.mcmeta file, things may not work well

2013-07-23 22:26:43 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Project Blu

2013-07-23 22:26:43 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_1004_solarpanel.png

2013-07-23 22:26:44 [iNFO] [sTDOUT]

2013-07-23 22:26:44 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-07-23 22:26:44 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-07-23 22:26:44 [iNFO] [sTDOUT]

2013-07-23 22:26:44 [iNFO] [sTDOUT]

2013-07-23 22:26:44 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-07-23 22:26:44 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-07-23 22:26:44 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-07-23 22:26:44 [iNFO] [sTDOUT] OpenAL initialized.

2013-07-23 22:26:44 [iNFO] [sTDOUT]

2013-07-23 22:26:48 [sEVERE] [Minecraft-Client] Realms: Invalid session id

2013-07-23 22:27:19 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2

2013-07-23 22:27:19 [iNFO] [Minecraft-Server] Generating keypair

2013-07-23 22:27:20 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@c6bc3f8)

2013-07-23 22:27:20 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@c6bc3f8)

2013-07-23 22:27:20 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@c6bc3f8)

2013-07-23 22:27:20 [iNFO] [Minecraft-Server] Preparing start region for level 0

2013-07-23 22:27:21 [iNFO] [Minecraft-Server] Preparing spawn area: 80%

2013-07-23 22:27:21 [iNFO] [sTDOUT] loading single player

2013-07-23 22:27:21 [iNFO] [Minecraft-Server] Player890[/127.0.0.1:0] logged in with entity id 327 at (-244.76244970248916, 71.0, -206.94963488020446)

2013-07-23 22:27:21 [iNFO] [Minecraft-Server] Player890 joined the game

2013-07-23 22:27:21 [iNFO] [sTDOUT] Setting up custom skins

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving and pausing game...

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Stopping server

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving players

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Player890 left the game

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving worlds

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether

2013-07-23 22:28:05 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End

2013-07-23 22:28:06 [iNFO] [ForgeModLoader] Unloading dimension 0

2013-07-23 22:28:06 [iNFO] [ForgeModLoader] Unloading dimension -1

2013-07-23 22:28:06 [iNFO] [ForgeModLoader] Unloading dimension 1

2013-07-23 22:28:06 [iNFO] [Minecraft-Client] Stopping!

2013-07-23 22:28:06 [iNFO] [sTDOUT]

2013-07-23 22:28:06 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-07-23 22:28:06 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-07-23 22:28:06 [iNFO] [sTDOUT]

 

 

I don't see the line I put in there :/

Link to comment
Share on other sites

not exactly

 

if you do  System.out.println("thsi code was executed") and "thsi code was executed" never shows up..... can you conclude that ....thsi code was NEVER executed ?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

not exactly

 

if you do  System.out.println("thsi code was executed") and "thsi code was executed" never shows up..... can you conclude that ....thsi code was NEVER executed ?

oh yeah, so the problem IS in there, isn't it?

Link to comment
Share on other sites

well for this bug well just say that the code in execute in a serial manner so if theres no println that means theres no registration... that woudl also mean that nobody is calling your client proxy registerRendering()

 

because if something was calling your registerRendering then surelly there would be a print and you would register your tile entity renderer. but since theres no println, then NOTHING in this function is EVER executed

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

well for this bug well just say that the code in execute in a serial manner so if theres no println that means theres no registration... that woudl also mean that nobody is calling your client proxy registerRendering()

I only followed a tutorial, so I don't know for sure what I need to change to call the registerRendering.

But if I'm correct, I have to put it on the bottom of this class:

package assets.blutricity.common;

import net.minecraft.block.Block;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;

import assets.blutricity.models.solarpanel;

public class TileEntitySolarPanelRenderer extends TileEntitySpecialRenderer{
 private static final ResourceLocation SolarPanel = new ResourceLocation("blutricity:textures/blocks/solarpanel.png");

//This method is called when minecraft renders a tile entity
    public void renderTileEntityAt(TileEntity tileEntity, double d, double d1, double d2, float f) {
    	 
    	GL11.glPushMatrix();
         //This will move our renderer so that it will be on proper place in the world
         GL11.glTranslatef((float)d, (float)d1, (float)d2);
         TileEntitySolarPanel tileEntitySolarPanel = (TileEntitySolarPanel)tileEntity;
         /*Note that true tile entity coordinates (tileEntity.xCoord, etc) do not match to render coordinates (d, etc) that are calculated as [true coordinates] - [player coordinates (camera coordinates)]*/
         renderBlockSolarPanel(tileEntitySolarPanel, tileEntity.worldObj, tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord, Mainclass.SolarPanel);
        GL11.glPopMatrix();
        System.out.println();
    }
    //And this method actually renders your tile entity
    public void renderBlockSolarPanel(TileEntitySolarPanel tl, World world, int i, int j, int k, Block block) {
        Tessellator tessellator = Tessellator.instance;
        //This will make your block brightness dependent from surroundings lighting.
        float f = block.getBlockBrightness(world, i, j, k);
        int l = world.getLightBrightnessForSkyBlocks(i, j, k, 0);
        int l1 = l % 65536;
        int l2 = l / 65536;
        tessellator.setColorOpaque_F(f, f, f);
        OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)l1, (float)l2); 
        
        /*This will rotate your model corresponding to player direction that was when you placed the block. If you want this to work, 
        add these lines to onBlockPlacedBy method in your block class.
        int dir = MathHelper.floor_double((double)((player.rotationYaw * 4F) / 360F) + 0.5D) & 3;
        world.setBlockMetadataWithNotify(x, y, z, dir, 0);*/

        int dir = world.getBlockMetadata(i, j, k);
        
        GL11.glPushMatrix();
         GL11.glTranslatef(0.5F, 0, 0.5F);
         //This line actually rotates the renderer.
         GL11.glRotatef(dir * (-90F), 0F, 1F, 0F);
         GL11.glTranslatef(-0.5F, 0, -0.5F);
         func_110628_a(SolarPanel);
         /*
         Place your rendering code here.
         */
       final solarpanel model = new solarpanel();
         model.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
         GL11.glPopMatrix();
       
    }
    
}

At the place your rendering code here... is that correct?

Link to comment
Share on other sites

no, renderers are registered when the mod is loading aka in the init/load function of your main mod

I have this in my main mod class.

GameRegistry.registerTileEntity(TileEntitySolarPanel.class, "TileEntitySolarPanel");

 

And this is my TileEntitySolarPanel:

package assets.blutricity.common;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet132TileEntityData;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;

public class TileEntitySolarPanel extends TileEntity{
   public int customField;
@Override
public void writeToNBT(NBTTagCompound par1)
{
   super.writeToNBT(par1);
   par1.setInteger("customField", customField);
}

@Override
public void readFromNBT(NBTTagCompound par1)
{
   super.readFromNBT(par1);
   this.customField = par1.getInteger("customField");
}
public Packet getDescriptionPacket() {
        NBTTagCompound nbtTag = new NBTTagCompound();
        this.writeToNBT(nbtTag);
        return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, nbtTag);
        }

        public void onDataPacket(INetworkManager net, Packet132TileEntityData packet) {
        readFromNBT(packet.customParam1);
        }


}


Link to comment
Share on other sites

TileEntity and TileEntitySpecialRenderer are 2 different things, your registerRenderer method is never called in the main mod class so after loading your mod knows that theres a new tile entity, but he doesnt know that theres a special way to render it

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

TileEntity and TileEntitySpecialRenderer are 2 different things, your registerRenderer method is never called in the main mod class so after loading your mod knows that theres a new tile entity, but he doesnt know that theres a special way to render it

So how do I do that?

Link to comment
Share on other sites

To register the renderer in a proper way, you will need proxies. Put this line into the method you call in ClientProxy.

ClientRegistry.bindTileEntitySpecialRenderer(yourPackage.TileEntityYour.class, new TileEntityYourRenderer());

 

YOU have to manually call this said method, theres no magic

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

To register the renderer in a proper way, you will need proxies. Put this line into the method you call in ClientProxy.

ClientRegistry.bindTileEntitySpecialRenderer(yourPackage.TileEntityYour.class, new TileEntityYourRenderer());

 

YOU have to manually call this said method, theres no magic

But how do I do that? Sorry that I keep asking this, but it's really late at night for me :P

Link to comment
Share on other sites

[lmgtfy]how to call a method in java[/lmgtfy]

 

im sorry but this basic java. :(

So, in the PreInit I did:

ClientProxy.registerRendering();

What else do I have to add to make it functional? Because now it is giving me an error and fixing it by changing the modifier of registerrendering to static. Which results in another error. Etc.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements




×
×
  • Create New...

Important Information

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