Jump to content

In the mods.toml, how do I put an logoFile in there?


Recommended Posts

Posted

I have my image within my assets folder, which is mainly assets/testmod/Testmod.png, yet whenever I just put the png itself it doesn't show, or whenever I add the assets/testmod it just crashes whenever I go to the mods.

 

Anybody have a way to put an image as a logoFile for my mod?

  • Like 1
  • 3 months later...
Posted
  • Like 2

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • 2 weeks later...
Posted

Draco18s, you are of no direct help, but your pointer to the forge github was helpful. Looking at the hierarchy helped me realize that the documentation is incorrect.

Forge's documentation doesn't point to the correct location to put the .png file. It goes in the src/main/resources folder, not the root folder.

If this doesn't work for you, I apologize, but it worked for me.

 

Posted
  On 3/6/2020 at 12:28 AM, LoneAngel said:

It goes in the src/main/resources folder, not the root folder.

Expand  

Its almost like I linked it so the path could be determined...

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 2/23/2020 at 6:13 AM, Athera said:

Obviously, if you read what I said, I've tried that.

Expand  

You essentially said "I tried everything" without actually listing what you tried, what you did list was what you tried putting in mods.toml, not the places you tried to put the logo file.

 

  On 3/6/2020 at 12:28 AM, LoneAngel said:

Draco18s, you are of no direct help, but your pointer to the forge github was helpful.

Expand  

Contradiction.

 

  On 3/6/2020 at 12:28 AM, LoneAngel said:

It goes in the src/main/resources folder, not the root folder.

Expand  

What you put in the resources folder eventually gets put at the root of the built jar.

  • Like 1

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted (edited)

You know the logo file doesn't replace the Minecraft app icon, right?

It just shows in the mod info page.

Your earlier messages indicate you are aware of this even though your last message suggests otherwise.

 

This is examplemod.png in the root of src/main/resources showing in the mods listing:

image.png.3c8d36053298cd04a2e7e98478708e7d.png

If you tried this and it didn't work please provide your workspace in a GitHub repo.

Edited by DaemonUmbra
  • Like 1

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

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.