Jump to content

Recommended Posts

Posted

The error that I am getting is:

 

[main/ERROR] [FML]: Exception loading model for variant levoment_hammertools:itemwoodsuperaxe#inventory for item "levoment_hammertools:itemwoodsuperaxe", normal location exception: 

 

and attached to it

Caused by: java.io.FileNotFoundException: levoment_hammertools:models/item/itemwoodsuperaxe.json

 

This is my repository.

 

Why is it looking for a JSON in that place when it should be looking for the Blockstate JSON and then load the OBJ from the path in the Blockstate resource JSON?

Posted

Your folder is named assets.modid

it needs to be 2 folders (/assets/modid/)

You also have to register your modid with the ObjLoader IIRC.

- A common proxy doesn’t make sense

- You MUST instantiate your objects in the appropriate registry events. Not doing this can lead to a number of bugs and/or crashes

- you’re using a bunch of other bad/outdated code practices that don’t work on modern forge versions

  • Like 1

About Me

  Reveal hidden contents

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)

Posted

Thanks. That was the problem. The MODID value was incorrect and I needed 2 folders in the resources.

 

Now the models load and display properly.

 

May I ask why a Common Proxy doesn't make sense? I always thought that if a code needs to be executed on both, ClientProxy and ServerProxy, one could always do it from a common place instead of writing the code in each side separately. Plus one could always override methods in subclasses of a Common Proxy.

 

All in all, even though it works now, I think you are right. I must re-write the whole thing from scratch. This is a mod that started in 1.10.2 which I then ported to 1.11.2 and now finally I port it to 1.12.2. But I guess most of the things that most modders did back in the day have changed.

Posted (edited)

You might want to look at https://github.com/Cadiboo/Example-Mod/ as it explains stuff like CommonProxy. It also has links at the bottom of the README to other mods (VoidWalker’s mods probably use obj models)

Edited by Cadiboo

About Me

  Reveal hidden contents

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)

Posted
  On 12/14/2018 at 8:30 AM, Colored Sheep said:

May I ask why a Common Proxy doesn't make sense? I always thought that if a code needs to be executed on both, ClientProxy and ServerProxy, one could always do it from a common place instead of writing the code in each side separately. Plus one could always override methods in subclasses of a Common Proxy.

Expand  

If code needs to be executed on both, then it shouldn't be in a proxy at all.

 

  • Like 1

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Alright, here is the log file https://mclo.gs/5eCwafV
    • Please read the FAQ (https://forums.minecraftforge.net/topic/125488-rules-and-frequently-asked-questions-faq/) and post log files as described there, using a site such as https://mclo.gs/ and post the link here.  
    • I tried updating the mods in my modpack which caused incompatibilities so i have tried to revert them back to their older versions i was using before. In the logs it doesnt show me any clear incompatibilities except for tfmg & entity texture features, but when i try to remove those it still doesn't work. I have tried removing the forge-client.toml file which was a suggestion i found on  a few other posts. This is the log file i get. [inline log removed] Any help would be appreciated. Thanks in advance
    • I don't use KubeJS, never even heard of it. But after doing what "Ugdhar" suggested earlier in this post with the "config/Mekanism/generator-storage.toml", I tried going into an individual save's serverconfig folder, and just deleting everything except the parcool folder (I have that mod installed.) Then, a bit of loading and temporary freezing later, seems to have worked. Even when quitting to menu and loading back in, or also when quitting to menu, exiting to desktop, and re-launching MC, choose a save and loading it.
    • [Mekanism] Broken tags in Mekanism recipes detected, please check server logs for details. You will be missing some recipes and machines may not accept expected inputs. Do you use KubeJS? It is some kind of bug with it and not fixed A workaround is setting "allowAsyncStreams" to false in the KubeJS common config file https://github.com/KubeJS-Mods/KubeJS/issues/1016   For the rest of your issues, keep deleting these files - now it is the jei-server.toml file If the file is not in config, check the worldsave serverconfig folder These files usually break after updating mods, game crashes or force closing the game    
  • Topics

×
×
  • Create New...

Important Information

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