Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model Loader dosen't find model json #66

Open
TKFRvisionOfficial opened this issue Jan 15, 2020 · 2 comments
Open

Model Loader dosen't find model json #66

TKFRvisionOfficial opened this issue Jan 15, 2020 · 2 comments

Comments

@TKFRvisionOfficial
Copy link

TKFRvisionOfficial commented Jan 15, 2020

Caused by: java.io.FileNotFoundException: whatever_mod:models/item/tutorial_item.json

This results in the item having no texture at all. The same thing happens in an normal Java project. It has something to do with IntelliJ Idea. The workaround in a Java project is to at at the bottom of the "build.gradle" file sourceSets { main { output.resourcesDir = output.classesDir } }. This workaround does not work with Forgelin! The only way I could get it to run was by running it via gradlew runClient. But this is a very slow and bad solution.

I am using Alex Couch tutorial mod (after updating gradle to 4.9, changing the project kotlin version to my version ext.kotlin_version = '1.3.61' and adding apply plugin: 'kotlin' to build.gradle) and IntelliJ Idea Ultimate 2019.3!

@28Smiles
Copy link

28Smiles commented Sep 11, 2020

@ghost
Copy link

ghost commented Sep 17, 2020

I've also been having this problem and haven't been able to find a working solution, at least in Kotlin. It looks like the IntelliJ fix seems(?) to work if I'm using Java. I have had to do sourceSets { main { output.resourcesDir = output.classesDir } } with Java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants