Jump to content

Textures For mod not working error


junzuke

Recommended Posts

Hello this is my first post so excuse me if this problem has already been  resolved.  I'm having a problem getting my mods  textures to work  i have watched at least  5 video , 12  tutorials  , and 20 plus forum posts on this and have  been trying to get it working for about 2 weeks  below is  my 

 

 

 

Nov 06, 2013 1:21:47 PM net.minecraft.launchwrapper.LogWrapper log

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

Nov 06, 2013 1:21:47 PM net.minecraft.launchwrapper.LogWrapper log

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

Nov 06, 2013 1:21:47 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

2013-11-06 13:21:48 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.20.916 for Minecraft 1.6.4 loading

2013-11-06 13:21:48 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_13, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7

2013-11-06 13:21:48 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-11-06 13:21:48 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg

2013-11-06 13:21:49 [iNFO] [sTDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg

2013-11-06 13:21:49 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!

2013-11-06 13:21:53 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

2013-11-06 13:21:53 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

2013-11-06 13:21:55 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}

2013-11-06 13:21:59 [iNFO] [Minecraft-Client] Setting user: Player917

2013-11-06 13:21:59 [iNFO] [Minecraft-Client] (Session ID is null)

2013-11-06 13:22:08 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-11-06 13:22:14 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-11-06 13:22:16 [iNFO] [sTDOUT]

2013-11-06 13:22:16 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-06 13:22:17 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

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

2013-11-06 13:22:18 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-11-06 13:22:18 [iNFO] [sTDOUT] MinecraftForge v9.11.1.916 Initialized

2013-11-06 13:22:18 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.916 Initialized

2013-11-06 13:22:18 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-06 13:22:18 [iNFO] [sTDOUT]

2013-11-06 13:22:19 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-11-06 13:22:20 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-11-06 13:22:20 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Users\joelgeri\Dropbox\Guards  Plugin\Modding\Joels projects\forge\mcp\jars\config\logging.properties

2013-11-06 13:22:20 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-11-06 13:22:21 [iNFO] [ForgeModLoader] Searching C:\Users\joelgeri\Dropbox\Guards  Plugin\Modding\Joels projects\forge\mcp\jars\mods for mods

2013-11-06 13:22:56 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-11-06 13:22:56 [iNFO] [mcp] Activating mod mcp

2013-11-06 13:22:56 [iNFO] [FML] Activating mod FML

2013-11-06 13:22:56 [iNFO] [Forge] Activating mod Forge

2013-11-06 13:22:56 [iNFO] [McmKingdoms] Activating mod McmKingdoms

2013-11-06 13:22:56 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well

2013-11-06 13:22:56 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well

2013-11-06 13:22:56 [WARNING] [Mcmkingdoms] Mod Mcmkingdoms is missing a pack.mcmeta file, things may not work well

2013-11-06 13:22:56 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mcmkingdoms

2013-11-06 13:22:56 [iNFO] [sTDOUT]

2013-11-06 13:22:56 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-11-06 13:22:57 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-11-06 13:22:57 [iNFO] [sTDOUT]

2013-11-06 13:22:57 [iNFO] [sTDOUT]

2013-11-06 13:22:57 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-06 13:22:57 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-11-06 13:22:57 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

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

2013-11-06 13:22:57 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-11-06 13:22:57 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-11-06 13:22:58 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-06 13:22:58 [iNFO] [sTDOUT]

2013-11-06 13:23:00 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_500_StrongStone.png

2013-11-06 13:23:02 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_5257_Hardened Iron.png

2013-11-06 13:23:02 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_5256_LongSword.png

2013-11-06 13:23:04 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-11-06 13:23:04 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well

2013-11-06 13:23:04 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well

2013-11-06 13:23:04 [WARNING] [Mcmkingdoms] Mod Mcmkingdoms is missing a pack.mcmeta file, things may not work well

2013-11-06 13:23:04 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Mcmkingdoms

2013-11-06 13:23:04 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_5257_Hardened Iron.png

2013-11-06 13:23:04 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/items/MISSING_ICON_ITEM_5256_LongSword.png

2013-11-06 13:23:05 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_500_StrongStone.png

2013-11-06 13:23:06 [iNFO] [sTDOUT]

2013-11-06 13:23:06 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-11-06 13:23:06 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-11-06 13:23:06 [iNFO] [sTDOUT]

2013-11-06 13:23:07 [iNFO] [sTDOUT]

2013-11-06 13:23:07 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-06 13:23:07 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

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

2013-11-06 13:23:08 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-06 13:23:08 [iNFO] [sTDOUT]

2013-11-06 13:23:10 [sEVERE] [Minecraft-Client] Realms: Server not available!

 

 

any help would be much appreciated 

Thanks

Link to comment
Share on other sites

 

2013-11-06 13:23:05 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_500_StrongStone.png

You have to set your texture name -.-

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

Link to comment
Share on other sites

this is  my Strong Stone block 

thought I had  set the name

 

 

package Mcmkingdoms.Mod;

 

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumToolMaterial;

 

 

public class StrongStone extends Block {

 

 

 

public StrongStone(int id, Material Material) {

super(id, Material);

}

 

@Override

 

public void registerIcons(IconRegister iconRegister) {

        this.blockIcon = iconRegister.registerIcon(McmkingdomsInfo.ID + ":StrongStone");

}

 

}

Link to comment
Share on other sites

Hi

 

What you've set is the name of the picture file used for rendering the block.

 

You also need to set a unique name for the block, using

 

setUnlocalizedName("myname")

 

i.e.

 

   public StrongStone(int id, Material Material) {
      super(id, Material);
      setUnlocalizedName("StrongStone");
   }

 

You can tell this from the error message:

2013-11-06 13:23:00 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/MISSING_ICON_TILE_500_StrongStone.png

 

i.e. MISSING_ICON_TILE_500_

 

-TGG

Link to comment
Share on other sites

Hi

 

Robin4002 is right, you can also use setTextureName instead of registerIcons if it is more convenient.  Both methods will work the same if you have the same texture for all faces.

 

I'm guessing your error message "Using missing texture, unable to load:" should have changed now to

2013-11-06 13:23:00 [sEVERE] [Minecraft-Client] Using missing texture, unable to load: minecraft:textures/blocks/StrongStone.png

 

If forge still can't find your textures, try this link:

http://www.minecraftforge.net/forum/index.php?topic=11963.0

Also

http://www.minecraftforge.net/forum/index.php/topic,13355.msg69061.html#msg69061

(Apparently - when you're using Eclipse (which I'm not) you should put it into the SOURCE folder, wherever that is)

 

-TGG

 

 

 

 

 

Link to comment
Share on other sites

OK  guys thanks for help  still no solution  here's my code  so far

 

 

 

package Mcmkingdoms.Mod;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

import net.minecraftforge.common.MinecraftForge;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler; // used in 1.6.2

//import cpw.mods.fml.common.Mod.PreInit;    // used in 1.5.2

//import cpw.mods.fml.common.Mod.Init;      // used in 1.5.2

//import cpw.mods.fml.common.Mod.PostInit;  // used in 1.5.2

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

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPostInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

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

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

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

 

 

@Mod(modid= McmkingdomsInfo.ID , name= McmkingdomsInfo.NAME , version= McmkingdomsInfo.VERS) 

@NetworkMod(clientSideRequired=true)

 

public class basemod {

 

public final static Block StrongStone = new ModBlock(500,Material.ground).setHardness(100000.f).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("StrongStone").setCreativeTab(CreativeTabs.tabBlock);

    public final static Item FirstItem = new  FirstItem(5000);

    public final static Item HardenedIron  = new FirstItem (5001).setMaxStackSize(64).setCreativeTab(CreativeTabs.tabMisc).setUnlocalizedName("Hardened Iron");

   

   

  // The instance of your mod that Forge uses.

        @Instance(value = McmkingdomsInfo.NAME)

        public static basemod instance;

       

        // Says where the client and server 'proxy' code is loaded.

        @SidedProxy(clientSide="Mcmkingdoms.Mod.client.clientProxy", serverSide="Mcmkingdoms.Mod.CommonProxy")

        public static CommonProxy proxy;

       

        @EventHandler // used in 1.6.2

        //@PreInit    // used in 1.5.2

        public void preInit(FMLPreInitializationEvent event) {

                // Stub Method

        }

       

        @EventHandler // used in 1.6.2

        //@Init      // used in 1.5.2

        public void load(FMLInitializationEvent event) {

                proxy.registerRenderers();

               

              GameRegistry.registerBlock(StrongStone,"StrongStone");

              LanguageRegistry.addName(StrongStone ,"Strong Stone");

             

              MinecraftForge.setBlockHarvestLevel(StrongStone,"Axe",3);

             

                           

    //      MinecraftForge.setBlockHarvestLevel(StrongStoneStair,"Axe",3);

      //      GameRegistry.registerBlock(StrongStoneStair,"StrongStone");

    //      LanguageRegistry.addName(StrongStoneStair ,"Strong Stone Stair");

           

    //    MinecraftForge.setBlockHarvestLevel(StrongStoneStair,"Axe",3);

               

        }

       

        @EventHandler // used in 1.6.2

        //@PostInit  // used in 1.5.2

        public void postInit(FMLPostInitializationEvent event) {

                // Stub Method

        }

}

 

 

 

Strong Stone 

 

 

package Mcmkingdoms.Mod;

 

 

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.EnumToolMaterial;

 

 

public class StrongStone extends Block {

 

 

public StrongStone(int id, Material Material) {

    super(id, Material);

    setUnlocalizedName("StrongStone");

  }

 

 

@Override

//@Side(Side.CLIENT)

public void registerIcons(IconRegister iconRegister) {

        this.blockIcon = iconRegister.registerIcon(McmkingdomsInfo.NAME.toLowerCase() + ":StrongStone");

}

 

}

 

 

Info file were  name , ids  ,ect  are defined 

 

package Mcmkingdoms.Mod;

 

public class McmkingdomsInfo {

 

public static final String ID = "mcmkingdoms";

public static final String NAME = "Mcmkingdoms";

public static final String VERS = "1.0.0 Alpha";

public static final String CLIENTPROXY = "McmkingdomsMod.client.";

public static final String COMMONPROXY = "McmkingdomsMod.basemod.";

 

 

}

Link to comment
Share on other sites

These guys are making it seem really complicated. When using the setTextureName() you also need to know the name of your mod. So me, I use wade.modname, so if would do setTextureName("modname:texture") Do not add the file extension and make sure it is a PNG.

 

Also when you package your mod(not explaining All the steps) and you get to the part to zip it. you would zip the folder modname.

 

When you put your item textures into the files you do BASEFOLDER/forge\mcp\src\minecraft\Mcmkingdoms\Mod\items

When you put your item textures into the files you do BASEFOLDER/forge\mcp\src\minecraft\Mcmkingdoms\Mod\blocks

 

biased on what you have said. you need to do setTextureName("Mod:texture.png")

Link to comment
Share on other sites

Hi

 

This might help:

Change the vanilla source code to add two println statements as below.  Then start up minecraft and copy us your error log.

 

-TGG

 

FolderResourcePack 
    protected boolean makeFullPath(String par1Str)
    {
        System.out.println("FolderResourcePack.makeFullPath:" + this.basePath + " , " + par1Str);   // add this
        return (new File(this.basePath, par1Str)).isFile();
    }

FileResourcePack
    protected boolean makeFullPath(String par1Str)
    {
        System.out.println("FileResourcePack.makeFullPath:" + this.basePath + " , " + par1Str);  // add this
        return (new File(this.basePath, par1Str)).isFile();
    } 

 

 

Link to comment
Share on other sites

BASEFOLDER/forge\mcp\src\minecraft\Mcmkingdoms\Mod\blocks

 

This is not correct.

 

BASEFOLDER/forge\mcp\src\minecraft\assets\Mcmkingdoms\textures\blocks

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Hi

 

What I mean is -

1) Navigate through the vanilla code to the FolderResourcePack class.

2) Find the makeFullPath method

3) add this statement to the method: System.out.println("FolderResourcePack.makeFullPath:" + this.basePath + " , " + par1Str);  // add this

4) Repeat for FileResoucePack.makeFullPath

 

When you run minecraft, it should print  a couple of helpful messages to the log.

 

If your FolderResourcePack.makeFullPath doesn't look like this (it changed recently), paste the method in to show us which one you've got

 

-TGG

 

 

 

Link to comment
Share on other sites

BASEFOLDER/forge\mcp\src\minecraft\Mcmkingdoms\Mod\blocks

 

This is not correct.

 

BASEFOLDER/forge\mcp\src\minecraft\assets\Mcmkingdoms\textures\blocks

 

Yah your right, sorry I meant to put it there. my bad.

 

If you sdtill have yet to fix your issue, add me on skype: yswade and I can talk you through it via screen share.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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