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.




  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I'm developing a dimension, but it's kinda resource intensive so some times during player teleporting it lags behind making the player phase down into the void, so im trying to implement some kind of pregeneration to force the game loading a small set of chunks in the are the player will teleport to. Some of the things i've tried like using ServerLevel and ServerChunkCache methods like getChunk() dont actually trigger chunk generation if the chunk isn't already on persistent storage (already generated) or placing tickets, but that doesn't work either. Ideally i should be able to check when the task has ended too. I've peeked around some pregen engines, but they're too complex for my current understanding of the system of which I have just a basic understanding (how ServerLevel ,ServerChunkCache  and ChunkMap work) of. Any tips or other classes I should be looking into to understand how to do this correctly?
    • https://mclo.gs/4UC49Ao
    • Way back in the Forge 1.17 days, work started for adding JPMS (Java Platform Module Support) to ModLauncher and ForgeModLoader. This has been used internally by Forge and some libraries for a while now, but mods (those with mods.toml specifically) have not been able to take advantage of it. As of Forge 1.21.1 and 1.21.3, this is now possible!   What is JPMS and what does it mean for modders? JPMS is the Java Platform Module System, introduced in Java 9. It allows you to define modules, which are collections of packages and resources that can be exported or hidden from other modules. This allows for much more fine-tuned control over visibility, cleaner syntax for service declarations and support for sealed types across packages. For example, you might have a mod with a module called `com.example.mod` that exports `com.example.mod.api` and `com.example.mod.impl` to other mods, but hides `com.example.mod.internal` from them. This would allow you to have a clean API for other mods to use, while keeping your internal implementation details hidden from IDE hints, helping prevent accidental usage of internals that might break without prior notice. This is particularly useful if you'd like to use public records with module-private constructors or partially module-private record components, as you can create a sealed interface that only your record implements, having the interface be exported and the record hidden. It's also nice for declaring and using services, as you'll get compile-time errors from the Java compiler for typos and the like, rather than deferring to runtime errors. In more advanced cases, you can also have public methods that are only accessible to specific other modules -- handy if you want internal interactions between multiple of your own mods.   How do I bypass it? We understand there may be drama in implementing a system that prevents mods from accessing each other's internals when necessary (like when a mod is abandoned or you need to fix a compat issue) -- after all, we are already modding a game that doesn't have explicit support for Java mods yet. We have already thought of this and are offering APIs from day one to selectively bypass module restrictions. Let me be clear: Forge mods are not required to use JPMS. If you don't want to use it, you don't have to. The default behaviour is to have fully open, fully exported automatic modules. In Java, you can use the `Add-Opens` and `Add-Exports` manifest attributes to selectively bypass module restrictions of other mods at launch time, and we've added explicit support for these when loading your Forge mods. At compile-time, you can use existing solutions such as the extra-java-module-info Gradle plugin to deal with non-modular dependencies and add extra opens and exports to other modules. Here's an example on how to make the internal package `com.example.examplemod.internal` open to your mod in your build.gradle: tasks.named('jar', Jar) { manifest { attributes([ 'Add-Opens' : 'com.example.examplemod/com.example.examplemod.internal' 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors // (...) ]) } } With the above in your mod's jar manifest, you can now reflectively access the classes inside that internal package. Multiple entries are separated with a space, as per Java's official spec. You can also use Add-Exports to directly call without reflection, however you'd need to use the Gradle plugin mentioned earlier to be able to compile. The syntax for Add-Exports is the same as Add-Opens, and instructions for the compile-time step with the Gradle plugin are detailed later in this post. Remember to prefer the opens and exports keywords inside module-info.java for sources you control. The Add-Opens/Add-Exports attributes are only intended for forcing open other mods.   What else is new with module support? Previously, the runtime module name was always forced to the first mod ID in your `mods.toml` file and all packages were forced fully open and exported. Module names are now distinguished from mod IDs, meaning the module name in your module-info.java can be different from the mod ID in your `mods.toml`. This allows you to have a more descriptive module name that doesn't have to be the same as your mod ID, however we strongly recommend including your mod ID as part of your module name to aid troubleshooting. The `Automatic-Module-Name` manifest attribute is now also honoured, allowing you to specify a module name for your mod without needing to create a `module-info.java` file. This is particularly useful for mods that don't care about JPMS features but want to have a more descriptive module name and easier integration with other mods that do use JPMS.   How do I use it? The first step is to create a `module-info.java` file in your mod's source directory. This file should be in the same package as your main mod class, and should look something like this: open module com.example.examplemod { requires net.minecraftforge.eventbus; requires net.minecraftforge.fmlcore; requires net.minecraftforge.forge; requires net.minecraftforge.javafmlmod; requires net.minecraftforge.mergetool.api; requires org.slf4j; requires logging; } For now, we're leaving the whole module open to reflection, which is a good starting point. When we know we want to close something off, we can remove the open modifier from the module and open or export individual packages instead. Remember that you need to be open to Forge (module name net.minecraftforge.forge), otherwise it can't call your mod's constructor. Next is fixing modules in Gradle. While Forge and Java support modules properly, Gradle does not put automatic modules on the module path by default, meaning that the logging module (from com.mojang:logging) is not found. To fix this, add the Gradle plugin and add a compile-time module definition for that Mojang library: plugins { // (...) id 'org.gradlex.extra-java-module-info' version "1.9" } // (...) extraJavaModuleInfo { failOnMissingModuleInfo = false automaticModule("com.mojang:logging", "logging") } The automatic module override specified in your build.gradle should match the runtime one to avoid errors. You can do the same for any library or mod dependency that is missing either a module-info or explicit Automatic-Module-Name, however be aware that you may need to update your mod once said library adds one. That's all you need to get started with module support in your mods. You can learn more about modules and how to use them at dev.java.
    • Faire la mise à jour grâce à ce lien m'a aider personnellement, merci à @Paint_Ninja. https://www.amd.com/en/support 
    • When I came across the 'Exit Code: I got a 1 error in my Minecraft mods, so I decided to figure out what was wrong. First, I took a look at the logs. In the mods folder (usually where you'd find logs or crash reports), I found the latest.log file or the corresponding crash report. I read it through carefully, looking for any lines with errors or warnings. Then I checked the Minecraft Forge support site, where you can often find info on what causes errors and how to fix them. I then disabled half of my mods and tried running the game. If the error disappeared, it meant that the problem was with the disabled mod. I repeated this several times to find the problem mod.
  • Topics

×
×
  • Create New...

Important Information

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