Everything posted by kenny2810
-
Textures not showing up
Well a small update. I have successfully managed to get the program to locate the textures, but now these errors have cropped up: 2013-11-05 19:11:47 [WARNING] [Generic] Mod Generic is missing a pack.mcmeta file, things may not work well 2013-11-05 19:11:47 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Generic 2013-11-05 19:11:47 [sEVERE] [Minecraft-Client] Unable to parse animation metadata from genericmod:textures/items/genericIngot.png: broken aspect ratio and not an animation To fix the previous error I used this coding which was given to me by TheGreyGhost (also after doing some research I also found out why the texture was originally not being found): public void registerIcons(IconRegister iconRegister) { itemIcon = iconRegister.registerIcon("genericmod:genericIngot"); } } Can anyone shed some light on what this error means? Thanks in advance.
-
Textures not showing up
As someone who is doing my first mod and am asking for help, I dont feel like im the most qualified to be updating the tutorial which I myself am using. When I tried doing what the article did I recieved an error, and some research later reveled that the method used is a bit outdated. Hopefully someone will update it but it will definitely not be me due to my inexperience.
-
Textures not showing up
The icons sections is as it doesnt use the setTextureName("generic:picturename"); function, it uses an older one which is no longer in use.
-
Textures not showing up
That is out of date.......
-
Textures not showing up
Here is the code of the GenericItem class: package tutorial.generic; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.Item; public class GenericItem extends Item { public GenericItem(int id) { super(id); // Constructor Configuration maxStackSize = 64; setCreativeTab(CreativeTabs.tabMisc); setUnlocalizedName("genericItem"); setTextureName("generic:picturename"); } }
-
Textures not showing up
Thank you both for your effort to try and help me understand, but for some reason, the textures wont apper. (Also I have not yet added textures for the other two blocks) Here is the entire console log I get after I tried both your changes: Nov 04, 2013 3:37:41 PM net.minecraft.launchwrapper.LogWrapper log INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker Nov 04, 2013 3:37:41 PM net.minecraft.launchwrapper.LogWrapper log INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker Nov 04, 2013 3:37:41 PM net.minecraft.launchwrapper.LogWrapper log INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker 2013-11-04 15:37:41 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.20.916 for Minecraft 1.6.4 loading 2013-11-04 15:37:41 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_25, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7 2013-11-04 15:37:41 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-11-04 15:37:41 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg 2013-11-04 15:37:41 [iNFO] [sTDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg 2013-11-04 15:37:41 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work! 2013-11-04 15:37:42 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker 2013-11-04 15:37:42 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker 2013-11-04 15:37:42 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main} 2013-11-04 15:37:43 [iNFO] [Minecraft-Client] Setting user: Player93 2013-11-04 15:37:43 [iNFO] [Minecraft-Client] (Session ID is null) 2013-11-04 15:37:44 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0 2013-11-04 15:37:44 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default 2013-11-04 15:37:45 [iNFO] [sTDOUT] 2013-11-04 15:37:45 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-11-04 15:37:45 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-11-04 15:37:45 [iNFO] [sTDOUT] MinecraftForge v9.11.1.916 Initialized 2013-11-04 15:37:45 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.916 Initialized 2013-11-04 15:37:45 [iNFO] [sTDOUT] Replaced 101 ore recipies 2013-11-04 15:37:45 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-11-04 15:37:45 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-11-04 15:37:45 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-11-04 15:37:45 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\Karl\Documents\MinecraftFolders\PersonalMods\Modding\mcp\jars\config\logging.properties 2013-11-04 15:37:45 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-11-04 15:37:45 [iNFO] [sTDOUT] OpenAL initialized. 2013-11-04 15:37:45 [iNFO] [ForgeModLoader] Searching C:\Users\Karl\Documents\MinecraftFolders\PersonalMods\Modding\mcp\jars\mods for mods 2013-11-04 15:37:45 [iNFO] [sTDOUT] 2013-11-04 15:37:47 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load 2013-11-04 15:37:47 [iNFO] [mcp] Activating mod mcp 2013-11-04 15:37:47 [iNFO] [FML] Activating mod FML 2013-11-04 15:37:47 [iNFO] [Forge] Activating mod Forge 2013-11-04 15:37:47 [iNFO] [generic] Activating mod generic 2013-11-04 15:37:47 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well 2013-11-04 15:37:47 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well 2013-11-04 15:37:47 [WARNING] [Generic] Mod Generic is missing a pack.mcmeta file, things may not work well 2013-11-04 15:37:47 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Generic 2013-11-04 15:37:47 [iNFO] [sTDOUT] 2013-11-04 15:37:47 [iNFO] [sTDOUT] SoundSystem shutting down... 2013-11-04 15:37:47 [iNFO] [sTDOUT] Author: Paul Lamb, www.paulscode.com 2013-11-04 15:37:47 [iNFO] [sTDOUT] 2013-11-04 15:37:47 [iNFO] [sTDOUT] 2013-11-04 15:37:47 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-11-04 15:37:47 [iNFO] [ForgeModLoader] Registering Forge Packet Handler 2013-11-04 15:37:47 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler 2013-11-04 15:37:47 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-11-04 15:37:47 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-11-04 15:37:47 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-11-04 15:37:47 [iNFO] [sTDOUT] OpenAL initialized. 2013-11-04 15:37:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_500_genericDirt.png 2013-11-04 15:37:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_501_genericOre.png 2013-11-04 15:37:48 [iNFO] [sTDOUT] 2013-11-04 15:37:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: generic:textures/items/picturename.png 2013-11-04 15:37:48 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods 2013-11-04 15:37:48 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well 2013-11-04 15:37:48 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well 2013-11-04 15:37:48 [WARNING] [Generic] Mod Generic is missing a pack.mcmeta file, things may not work well 2013-11-04 15:37:48 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Generic 2013-11-04 15:37:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: generic:textures/items/picturename.png 2013-11-04 15:37:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_500_genericDirt.png 2013-11-04 15:37:48 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_501_genericOre.png 2013-11-04 15:37:49 [iNFO] [sTDOUT] 2013-11-04 15:37:49 [iNFO] [sTDOUT] SoundSystem shutting down... 2013-11-04 15:37:49 [iNFO] [sTDOUT] Author: Paul Lamb, www.paulscode.com 2013-11-04 15:37:49 [iNFO] [sTDOUT] 2013-11-04 15:37:49 [iNFO] [sTDOUT] 2013-11-04 15:37:49 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-11-04 15:37:49 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-11-04 15:37:49 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-11-04 15:37:49 [iNFO] [sTDOUT] OpenAL initialized. 2013-11-04 15:37:49 [iNFO] [sTDOUT] 2013-11-04 15:37:50 [sEVERE] [Minecraft-Client] Realms: Invalid session id
-
Textures not showing up
In which class do I put that? And do I copy and paste that directly or must I edit it? (Sorry If I sound like a noob, this is my first mod and its a learning curve.)
-
Textures not showing up
Here is the code i`m using for the generic class: package tutorial.generic; // This Import list will grow longer with each additional tutorial. // It's not pruned between full class postings, unlike other tutorial code. 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 net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.Mod.PostInit; import cpw.mods.fml.common.Mod.PreInit; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraft.client.renderer.texture.IconRegister; @Mod(modid="generic", name="Generic", version="0.0.0") @NetworkMod(clientSideRequired=true, serverSideRequired=false) public class Generic { // See Basic items tutorial for Generic Ingot public static Item genericIngot; public static Block genericDirt; public static Block genericOre; @Instance(value="generic") public static Generic instance; @SidedProxy(clientSide="tutorial.generic.client.ClientProxy", serverSide="tutorial.generic.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { genericIngot = new GenericItem(201).setMaxStackSize(16) .setUnlocalizedName("genericIngot"); genericDirt = new GenericBlock(500, Material.ground) .setHardness(0.5F).setStepSound(Block.soundGravelFootstep) .setUnlocalizedName("genericDirt").setCreativeTab(CreativeTabs.tabBlock); genericOre = new GenericOre(501, Material.rock); } @EventHandler public void load(FMLInitializationEvent event) { // See Basic items tutorial for Generic Ingot LanguageRegistry.addName(genericIngot, "Generic Ingot"); LanguageRegistry.addName(genericOre, "Generic Ore"); MinecraftForge.setBlockHarvestLevel(genericOre, "pickaxe", 3); GameRegistry.registerBlock(genericOre, "genericOre"); // End Basic Blocks proxy.registerRenderers(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { // Stub Method } } Here is the code for the ItemClass: package tutorial.generic; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.Item; public class GenericItem extends Item { public GenericItem(int id) { super(id); // Constructor Configuration maxStackSize = 64; setCreativeTab(CreativeTabs.tabMisc); setUnlocalizedName("genericItem"); } } I have the picture which is a .png in the correct folder named Items as is meant to. I Kepp getting these errors, however the bottom two occur as I do not have textures for them yet, but for the first one I do. Can anyone tell me what i`m doing wrong? Here are the errors I`m getting regarding the textures. 2013-11-04 13:50:12 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_457_genericIngot.png 2013-11-04 13:50:12 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_500_genericDirt.png 2013-11-04 13:50:12 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_501_genericOre.png
IPS spam blocked by CleanTalk.