Thegametutor101 Posted April 16, 2019 Posted April 16, 2019 (edited) Hi, I've been spending over a week trying to find why my model doesn't work and I think it is related to my .json, .obj and .mtl files for the item. I am using ``` public void registerItemRenderer(Item item, int meta, String id) { OBJLoader.INSTANCE.addDomain(Reference.MOD_ID); ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id)); }``` to register my items and OBJ models. I have the JSON in *assets/[MODID]/blockstates* and the OBJ and MTL files in *assets/[MODID]/models/item*. Here are my files: ClientProxy: https://github.com/Thegametutor101/Pixelmon_Project_School/blob/Pixelmon_Main/java/pixelmonMod/proxy/ClientProxy.java JSON: https://github.com/Thegametutor101/Pixelmon_Project_School/blob/Pixelmon_Main/resources/assets/pm/blockstates/pokeball.json MTL: https://github.com/Thegametutor101/Pixelmon_Project_School/blob/Pixelmon_Main/resources/assets/pm/models/item/pokeball.mtl OBJ: https://github.com/Thegametutor101/Pixelmon_Project_School/blob/Pixelmon_Main/resources/assets/pm/models/item/pokeball.obj Please, I really need help figuring this out.. Thank you. Edited April 22, 2019 by Thegametutor101 Quote
Cadiboo Posted April 16, 2019 Posted April 16, 2019 What tutorial(s) did you follow when setting up your mod? Pretty much everything in it is completely broken. Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Thegametutor101 Posted April 17, 2019 Author Posted April 17, 2019 Actually..I thought that how the java files were organised wasn't an issue.. but I did realise some errors with the assets if I did them differently. Did I do something fatal in my sorting? Quote
Cadiboo Posted April 17, 2019 Posted April 17, 2019 Just... everything. You’ve got tons of useless and unnecessary code, your packaging is pretty bad etc. You’re also calling OBJLoader#addDomain every time you register a model (I’m pretty sure it needs to be called before models are registered anyway). Please post your logs Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Thegametutor101 Posted April 17, 2019 Author Posted April 17, 2019 Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_201, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 857539208 bytes (817 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13397 Compatibility Profile Context 15.200.1055.0' Renderer: 'AMD Radeon(TM) R3 Graphics' [20:36:07] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized [20:36:07] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [20:36:08] [main/INFO] [FML]: Replaced 1036 ore ingredients [20:36:12] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 2174659411 nanos [20:36:16] [main/INFO] [FML]: Searching C:\Users\Dan\Desktop\Minecraft Modding\PixelmonMod\run\.\mods for mods [20:36:40] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [20:36:45] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, pm] at CLIENT [20:36:45] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, pm] at SERVER [20:36:51] [main/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Pixelmon Mod [20:36:56] [main/INFO] [FML]: Processing ObjectHolder annotations [20:36:56] [main/INFO] [FML]: Found 1168 ObjectHolder annotations [20:36:56] [main/INFO] [FML]: Identifying ItemStackHolder annotations [20:36:56] [main/INFO] [FML]: Found 0 ItemStackHolder annotations [20:36:56] [main/INFO] [FML]: Configured a dormant chunk cache size of 0 [20:36:57] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [20:36:57] [main/INFO] [FML]: Applying holder lookups [20:36:57] [main/INFO] [FML]: Holder lookups applied [20:36:57] [main/INFO] [FML]: Applying holder lookups [20:36:57] [main/INFO] [FML]: Holder lookups applied [20:36:57] [main/INFO] [FML]: Applying holder lookups [20:36:57] [main/INFO] [FML]: Holder lookups applied [20:36:57] [main/INFO] [FML]: Applying holder lookups [20:36:57] [main/INFO] [FML]: Holder lookups applied [20:36:57] [main/INFO] [FML]: Injecting itemstacks [20:36:57] [main/INFO] [FML]: Itemstack injection complete [20:36:58] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null [20:37:54] [Sound Library Loader/INFO] [minecraft/SoundManager]: Starting up SoundSystem... [20:37:55] [Thread-5/INFO] [minecraft/SoundManager]: Initializing LWJGL OpenAL [20:37:55] [Thread-5/INFO] [minecraft/SoundManager]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [20:37:56] [Thread-5/INFO] [minecraft/SoundManager]: OpenAL initialized. [20:37:56] [Sound Library Loader/INFO] [minecraft/SoundManager]: Sound engine started [20:38:46] [main/INFO] [FML]: Max texture size: 16384 [20:38:52] [main/WARN] [minecraft/TextureMap]: Texture pm:textures/items/pokeballs/pokeball/greatball.png with size 18x18 will have visual artifacts at mip level 4, it can only support level 1. Please report to the mod author that the texture should be some multiple of 16x16. [20:38:55] [main/INFO] [minecraft/TextureMap]: Created: 512x512 textures-atlas [20:38:57] [main/WARN] [minecraft/ModelBlock]: Unable to resolve texture due to upward reference: #all in minecraft:models/block/cube_all [20:38:58] [main/WARN] [minecraft/ModelBlock]: Unable to resolve texture due to upward reference: #all in minecraft:models/block/cube_all [20:38:59] [main/ERROR] [FML]: Exception loading model for variant pm:pokeball#inventory for item "pm:pokeball", normal location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:item/pokeball with loader VanillaLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:302) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:151) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.io.FileNotFoundException: pm:models/item/pokeball.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:69) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1400(ModelLoader.java:115) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:861) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 20 more [20:38:59] [main/ERROR] [FML]: Exception loading model for variant pm:pokeball#inventory for item "pm:pokeball", blockstate location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:pokeball#inventory with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:296) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:151) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_201] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_201] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1175) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 20 more [20:39:04] [main/INFO] [FML]: Applying holder lookups [20:39:04] [main/INFO] [FML]: Holder lookups applied [20:39:04] [main/INFO] [FML]: Injecting itemstacks [20:39:04] [main/INFO] [FML]: Itemstack injection complete [20:39:04] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [20:39:04] [main/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer: [20:39:05] [main/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded [20:39:14] [Realms Notification Availability checker #1/INFO] [mojang/RealmsClient]: Could not authorize you against Realms server: Invalid session id Ok, so I put the OBJLoader.INSTANCE.addDomain(Reference.MOD_ID); in the "preInit" event Sorry I'm completely new to minecraft modding and can't seem to understand where the problems are.. Quote
Cadiboo Posted April 17, 2019 Posted April 17, 2019 7 minutes ago, Thegametutor101 said: Caused by: java.io.FileNotFoundException: pm:models/item/pokeball.json Are you sure that Proxy#preInit is called (hint: it’s not) Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Thegametutor101 Posted April 17, 2019 Author Posted April 17, 2019 Ok so what do I do?.. and my pokeball.json is supposed to be in the blockstates package right?? Quote
Cadiboo Posted April 17, 2019 Posted April 17, 2019 (edited) 11 minutes ago, Thegametutor101 said: my pokeball.json is supposed to be in the blockstates package right? No, it doesn’t exist anywhere because you’re using .obj not .json 11 minutes ago, Thegametutor101 said: Ok so what do I do? 15 minutes ago, Cadiboo said: Are you sure that Proxy#preInit is called (hint: it’s not) Edited April 17, 2019 by Cadiboo Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Thegametutor101 Posted April 17, 2019 Author Posted April 17, 2019 I don't understand I thought I needed a .json to call the .obj and set scale, position in hand and so on? Quote
V0idWa1k3r Posted April 18, 2019 Posted April 18, 2019 Your repository is not set up correctly, the root directory of your repository must be the root directory of your project. I have no idea how you are doing anything in the first place since your code doesn't even compile since you have multiple syntax errors, like defining root level classes in files that do not correspond to the file names, wrong package definitions, missing imports, missing fields, etc. Please fix all of that, it is literally impossible to compile and debug. Quote
Thegametutor101 Posted April 18, 2019 Author Posted April 18, 2019 Ok so basicly I need to make my mod have the standard structure for it to work, right? I will build it all today and post the changes 5 hours ago, V0idWa1k3r said: Your repository is not set up correctly, the root directory of your repository must be the root directory of your project. I have no idea how you are doing anything in the first place since your code doesn't even compile since you have multiple syntax errors, like defining root level classes in files that do not correspond to the file names, wrong package definitions, missing imports, missing fields, etc. Please fix all of that, it is literally impossible to compile and debug. Quote
Thegametutor101 Posted April 18, 2019 Author Posted April 18, 2019 14 hours ago, V0idWa1k3r said: Your repository is not set up correctly, the root directory of your repository must be the root directory of your project. I have no idea how you are doing anything in the first place since your code doesn't even compile since you have multiple syntax errors, like defining root level classes in files that do not correspond to the file names, wrong package definitions, missing imports, missing fields, etc. Please fix all of that, it is literally impossible to compile and debug. Here is the new GitHub Repository that I just created: https://github.com/Thegametutor101/Pixelmon_Project_School/tree/Pixelmon_Main_Standard_Structure is this better? I followed HarryTalks tutorial and just added for the OBJLoader but my item still doesn't work. But...by the way, everthing with the java classes work fine if the imports and calls are correctly done. The only thing that must be "standard", if you don't mind me saying, are the assets. If you can help me solve my obj problem I will try anything and will be very greatfull.. thank you Quote
DavidM Posted April 19, 2019 Posted April 19, 2019 (edited) 4 hours ago, Thegametutor101 said: I followed HarryTalks tutorial Stop following his tutorial; his tutorial is terrible in that it has a lot of bad practices and unnecessary stuff, not mentioning all the outdated ways to implement certain features. Try resorting to a good text-based tutorial instead; here is one for example: https://github.com/TheGreyGhost/MinecraftByExample Cadiboo also has a good example mod that guides novice modders to use good practices. In addition, your repo is still set up incorrectly; the root of your repo must be the root of your Forge MDK. Edited April 19, 2019 by DavidM Quote Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
V0idWa1k3r Posted April 19, 2019 Posted April 19, 2019 Quote Caused by: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Error loading model previously: pm:models/block/pokeball.obj at net.minecraftforge.client.model.obj.OBJLoader.loadModel(OBJLoader.java:114) ~[OBJLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 23 more Caused by: java.lang.RuntimeException: OBJLoader.Parser: Exception parsing line #898: `vt -0.234971 0.059464` Your .obj model is broken, the uv coordinates must be within a [0-1] range, you have some outside(in this case the X is negative). Quote
Thegametutor101 Posted April 19, 2019 Author Posted April 19, 2019 23 hours ago, DavidM said: Stop following his tutorial; his tutorial is terrible in that it has a lot of bad practices and unnecessary stuff, not mentioning all the outdated ways to implement certain features. Try resorting to a good text-based tutorial instead; here is one for example: https://github.com/TheGreyGhost/MinecraftByExample Cadiboo also has a good example mod that guides novice modders to use good practices. In addition, your repo is still set up incorrectly; the root of your repo must be the root of your Forge MDK. I'm really sorry but I don't understand what you mean by it being set up incorrectly..? the only difference I see sadly is the proxys and handlers not being in a sub-package? 20 hours ago, V0idWa1k3r said: Your .obj model is broken, the uv coordinates must be within a [0-1] range, you have some outside(in this case the X is negative). Ok, I didn't see that error, thank you so much! I am working on it right now! Quote
DavidM Posted April 20, 2019 Posted April 20, 2019 I can't figure out how to quote on mobile... The root of your repo should be one directory higher. Quote Some tips: Spoiler Modder Support: Spoiler 1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code. 2. Always post your code. 3. Never copy and paste code. You won't learn anything from doing that. 4. Quote Programming via Eclipse's hotfixes will get you nowhere 5. Learn to use your IDE, especially the debugger. 6. Quote The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Support & Bug Reports: Spoiler 1. Read the EAQ before asking for help. Remember to provide the appropriate log(s). 2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.
Thegametutor101 Posted April 20, 2019 Author Posted April 20, 2019 2 minutes ago, DavidM said: I can't figure out how to quote on mobile... The root of your repo should be one directory higher. Ohh! Ok perfect i'll keep that in note and I juste changed it, thank you!! Quote
Thegametutor101 Posted April 20, 2019 Author Posted April 20, 2019 On 4/16/2019 at 9:27 PM, Cadiboo said: No, it doesn’t exist anywhere because you’re using .obj not .json @Cadiboo can you explain what you mean by my .json not existing..please? I'm pretty sure I made it in the assets/[MOD_ID]/blockstates folder. Quote
Cadiboo Posted April 20, 2019 Posted April 20, 2019 I was talking about it looking for a .json model (you’re using .obj right?) I was talking about the model error that I quoted and apparently missed that in your response you were talking about blockstates Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Thegametutor101 Posted April 20, 2019 Author Posted April 20, 2019 (edited) 8 minutes ago, Cadiboo said: I was talking about it looking for a .json model (you’re using .obj right?) I was talking about the model error that I quoted and apparently missed that in your response you were talking about blockstates Yes I am "trying without success" to use a .obj file ?.. Actually for the 3d model I was following this tutorial and it showed that the .json was placed in the blockstates folder and called the .obj in the models folder... do you think that is correct? Edited April 20, 2019 by Thegametutor101 Quote
Thegametutor101 Posted April 21, 2019 Author Posted April 21, 2019 On 4/18/2019 at 10:35 PM, V0idWa1k3r said: Your .obj model is broken, the uv coordinates must be within a [0-1] range, you have some outside(in this case the X is negative). @V0idWa1k3r ok so..i went through the entire .obj file and fixed all negative "vt"s but the issue is still the same... any other idea? here are the Error Logs: [20:39:55] [main/ERROR] [FML]: Exception loading model for variant pm:pokeball#inventory for item "pm:pokeball", normal location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:item/pokeball with loader VanillaLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:302) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:151) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_211] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_211] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: java.io.FileNotFoundException: pm:models/item/pokeball.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:69) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1400(ModelLoader.java:115) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:861) ~[ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 20 more [20:39:55] [main/ERROR] [FML]: Exception loading model for variant pm:pokeball#inventory for item "pm:pokeball", blockstate location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:pokeball#inventory with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:296) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:151) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_211] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_211] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_211] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1175) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 20 more Quote
Cadiboo Posted April 21, 2019 Posted April 21, 2019 1 hour ago, Thegametutor101 said: Caused by: java.io.FileNotFoundException: pm:models/item/pokeball.json It’s still looking for a json file instead of an obj file Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Thegametutor101 Posted April 21, 2019 Author Posted April 21, 2019 1 minute ago, Cadiboo said: It’s still looking for a json file instead of an obj file But I specified: "model": "pm:pokeball.obj" Do I need another instruction to fix it? Quote
Cadiboo Posted April 21, 2019 Posted April 21, 2019 I don’t think that you should had “.obj” at the end of the model path. Also I think that everything should just work if you’re correctly calling OBJLoader.addDomain Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
Thegametutor101 Posted April 21, 2019 Author Posted April 21, 2019 3 minutes ago, Cadiboo said: I don’t think that you should had “.obj” at the end of the model path. Also I think that everything should just work if you’re correctly calling OBJLoader.addDomain If i don't put the .obj wouldn't it get confused between pokeball.obj and pokeball.mtl..? And I am calling it in my ClientProxy's preInit function..i also tried calling it in the Main's preInit instead but to no avail.. Quote
Recommended Posts
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.