Jump to content

Forgegradle doesn't save my assets package


Assaru

Recommended Posts

Hi everybody! I have now finished my European cities mod ;D, so i tried exporting it. I used gradlew build, and it said "build successful". All of that went as expected. The problem showed up when I started up my normal minecraft client (with forge and my mod). None of the textures showed up. I googled the problem and everything said something like "make sure you don't have any capitalisation errors". I double checked my code like a 100 times, but that didn't fix the problem. Then I got the idea to check what's inside the .jar and if it is the path in the .jar file that's wrong. I opened the .jar and found that my assets folder was missing. only the main package with the code was in the .jar. I then manually tried copying the assets folder from the src/main/java folder and put it in the .jar, but then when I tried to start minecraft it said that it couldn't find the main class.

 

Screenshot of whats inside the .jar (right after exporting) (I don't know why its says its from the 80's)

eK3LSEx.png

Link to comment
Share on other sites

How did you 'export' the jar. If you did it through your IDE that is wrong.

Just run gradlew build

Your assets DO NOT go in your src/main/JAVA folder that is for JAVA files

They go in src/main/RESOURCES/ as they are RESOURCES.

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

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



×
×
  • Create New...

Important Information

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