Jump to content

[1.8] Unable to load item model


SackCastellon

Recommended Posts

I am getting this error every time i run Minecraft (on Eclipse):

[20:13:52] [main/INFO] [GradleStart]: userProperties: {}
[20:13:52] [main/INFO] [GradleStart]: assetIndex: 1.8
[20:13:52] [main/INFO] [GradleStart]: accessToken: FML
[20:13:52] [main/INFO] [GradleStart]: Extra: []
[20:13:52] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Juanjo hijo/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]
[20:13:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:13:52] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[20:13:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
[20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[20:13:52] [main/INFO] [FML]: Forge Mod Loader version 8.0.12.1252 for Minecraft 1.8 loading
[20:13:52] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_25
[20:13:52] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
[20:13:52] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[20:13:52] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[20:13:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:13:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:13:52] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[20:13:55] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[20:13:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[20:13:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[20:13:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:13:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[20:13:56] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[20:13:57] [Client thread/INFO]: Setting user: Player318
[20:14:04] [Client thread/INFO]: LWJGL Version: 2.9.1
[20:14:06] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[20:14:06] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1252 Initialized
[20:14:06] [Client thread/INFO] [FML]: Replaced 215 ore recipies
[20:14:06] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[20:14:06] [Client thread/INFO] [FML]: Searching C:\Modding\Github\CraftableHorseArmor\mods for mods
[20:14:12] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[20:14:13] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, SKC-CraftableHorseArmor, SKC-Core] at CLIENT
[20:14:13] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, SKC-CraftableHorseArmor, SKC-Core] at SERVER
[20:14:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Craftable Horse Armor, FMLFileResourcePack:SKC Core
[20:14:14] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[20:14:14] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
[20:14:14] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[20:14:14] [Client thread/INFO] [sKC Logger]: [sKC-Core] Loading configuration file
[20:14:14] [Client thread/INFO] [sKC Logger]: [sKC-Core] Configuration file successfully loaded
[20:14:15] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Loading configuration file
[20:14:15] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Configuration file successfully loaded
[20:14:16] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Loading items
[20:14:16] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Items successfully loaded
[20:14:16] [Client thread/INFO] [FML]: Applying holder lookups
[20:14:16] [Client thread/INFO] [FML]: Holder lookups applied
[20:14:16] [sound Library Loader/INFO]: Starting up SoundSystem...
[20:14:17] [Thread-7/INFO]: Initializing LWJGL OpenAL
[20:14:17] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[20:14:17] [Thread-7/INFO]: OpenAL initialized.
[20:14:17] [sound Library Loader/INFO]: Sound engine started
[20:14:20] [Client thread/WARN]: Unable to load item model: 'skc-craftablehorsearmor:item/Knot' for item: 'skc-craftablehorsearmor:Knot'
java.io.FileNotFoundException: skc-craftablehorsearmor:models/item/Knot.json
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]
at net.minecraft.client.resources.model.ModelBakery.loadItemModels(ModelBakery.java:307) [ModelBakery.class:?]
at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:105) [ModelBakery.class:?]
at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]
at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]
at GradleStart.main(GradleStart.java:45) [start/:?]
[20:14:21] [Client thread/INFO]: Created: 512x512 textures-atlas
[20:14:22] [Client thread/WARN]: Missing model for: skc-craftablehorsearmor:item/Knot
[20:14:23] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Loading crafting recipes
[20:14:23] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Crafting recipes successfully loaded
[20:14:23] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[20:14:23] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Craftable Horse Armor, FMLFileResourcePack:SKC Core
[20:14:23] [Client thread/INFO]: SoundSystem shutting down...
[20:14:24] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[20:14:24] [sound Library Loader/INFO]: Starting up SoundSystem...
[20:14:24] [Thread-9/INFO]: Initializing LWJGL OpenAL
[20:14:24] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[20:14:24] [Thread-9/INFO]: OpenAL initialized.
[20:14:24] [sound Library Loader/INFO]: Sound engine started
[20:14:27] [Client thread/WARN]: Unable to load item model: 'skc-craftablehorsearmor:item/Knot' for item: 'skc-craftablehorsearmor:Knot'
java.io.FileNotFoundException: skc-craftablehorsearmor:models/item/Knot.json
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?]
at net.minecraft.client.resources.model.ModelBakery.loadItemModels(ModelBakery.java:307) [ModelBakery.class:?]
at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:105) [ModelBakery.class:?]
at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?]
at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?]
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:298) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]
at GradleStart.main(GradleStart.java:45) [start/:?]
[20:14:27] [Client thread/INFO]: Created: 512x512 textures-atlas
[20:14:27] [Client thread/WARN]: Missing model for: skc-craftablehorsearmor:item/Knot
[20:15:19] [Client thread/INFO]: Stopping!
[20:15:19] [Client thread/INFO]: SoundSystem shutting down...
[20:15:19] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

 

This is my init() method:

    @Mod.EventHandler
    public void init(FMLInitializationEvent event)
    {
    	FMLCommonHandler.instance().bus().register(new CHAEvents.init());

    	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CHAItems.Knot, 0, new ModelResourceLocation("craftablehorsearmor:Knot", "inventory"));
    	
    	CHARecipeLoader.init();
    }

 

The item is loaded on the preInit() method.

 

Also NOTICE that my mod id is:

	public static final String ID = "SKC-CraftableHorseArmor";

 

This is the .json file:

{
    "parent": "builtin/generated",
    "textures": {
        "layer0": "craftablehorsearmor:items/Knot"
    },
    "display": {
        "thirdperson": {
            "rotation": [ -90, 0, 0 ],
            "translation": [ 0, 1, -3 ],
            "scale": [ 0.55, 0.55, 0.55 ]
        },
        "firstperson": {
            "rotation": [ 0, -135, 25 ],
            "translation": [ 0, 4, 2 ],
            "scale": [ 1.7, 1.7, 1.7 ]
        }
    }
}

 

And this is where the .json file is located:

width=350 height=362https://dl.dropboxusercontent.com/u/184200482/img/Captura%20de%20pantalla%202014-12-07%2020.20.20.png[/img]

 

Thanks in advance for helping  :)

Link to comment
Share on other sites

Package names have nothing to do with your modID.

 

But Minecraft is looking for a model at a folder named as my mod's id (which contains a hyphen):

java.io.FileNotFoundException: skc-craftablehorsearmor:models/item/Knot.json

Even when i am specifying another folder location:

Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CHAItems.Knot, 0, new ModelResourceLocation("craftablehorsearmor:Knot", "inventory"));

Link to comment
Share on other sites

Since when are resources in packages? They are in folders. And don't tell me folders cannot have hyphens. They can.

 

Ok, and yes i know folders can have hyphens  :P;D

Now Minecraft seems to find the .json, as nothing strange is shown on the console, but it's how it looks inside a world:

width=800 height=449https://dl.dropboxusercontent.com/u/184200482/img/2014-12-07_21.38.23.png[/img]

Link to comment
Share on other sites

Since when are resources in packages? They are in folders. And don't tell me folders cannot have hyphens. They can.

 

Ok, and yes i know folders can have hyphens  :P;D

Now Minecraft seems to find the .json, as nothing strange is shown on the console, but it's how it looks inside a world:

width=400 height=225https://dl.dropboxusercontent.com/u/184200482/img/2014-12-07_21.38.23.png[/img]

 

I'm having exactly the same problem, creating a new world as suggested by bfox1 didn't fix the problem.

I get no more errors in the console and I can verify the item jsons are loaded - if i write invalid json in the item model MC complains about invalid syntax.

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.



×
×
  • Create New...

Important Information

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