[1.12.2 and earlier] No hat pack folder within hats file, mod not working entirely aside from the UI
bobbygoin opened this issue · 33 comments
Title says it all, the hats mod which I have reinstalled multiple times refuses to work. No mobs have hats on, nor do any show when I click "show all hats" in the UI.
Alright sounds good, here you go: https://pastebin.com/0FK1V61v
Yes, 1.7.10. To be more precise I am attempting to play the Feed the Beast Infinity Evolved modpack. Worked fine 4 months ago, trying to play again and now it isn’t.
It seems the only issue is that there is no hat folder. The UI works but there are no hats to be put on mobs or to unlock.
All you did was place the hats files? Do I have to do anything with the first portion you sent?
I went ahead and looked through the code to figure out this issue. The issue is happening because it seems like CreeperHost (where the hat download is located) has forced TLS on all their requests.
On line 43 in ThreadHatsRender.java
:
URL var1 = new URL("http://www.creeperrepo.net/ichun/static/hatstabula.xml");
This URL is deprecated and now reinforces a redirect, which Java cannot parse, and instead parses HTML, which is why the hats are not downloaded. The .tbl
URLs in the XML file are also HTTP, which requires the XML to be downloaded and changed to HTTPS and rehosted somewhere.
The new URL is here.
I also took the liberty of updating the XML file and converting all the links to HTTPS.
I don't know when iChun plans on updating this and publishing it to CurseForge, but I can provide a download to the hats if you'd like. I don't know if I'm allowed to distribute the jar I built, so the hats download is probably the best bet.
==
NOTE: This method is for 1.12.2 only, as the hats models have a new model format using Tabula. 1.7.10 method is shown here.
EDIT: I provided a download for all the hats.
Unzip this file to the mods/hats
folder.
EDIT 2: If you are hosting a modpack, I would highly suggest that you ship this with your modpack download, so that the clients can have it without depending on having to download it.
Thanks man! I unfortunately still couldn't get it to work despite the hats folder being in there... sucks.
Thanks man! I unfortunately still couldn't get it to work despite the hats folder being in there... sucks.
It worked for me. If you haven't yet, close Minecraft, make sure that the hats are in the mod folder like so:
Note that mods/hats/hats
won't work. The file structure should remain as mods/hats/example.tbl
Once you have done that, relaunch and they should all be visible.
All you did was place the hats files? Do I have to do anything with the first portion you sent?
Correct. All you have to do is extract the contents of the file I sent directly into <your modpack folder>/mods/hats
, overwriting anything if there are any.
The file structure should look like this, here's an example from my modpack:
C:\Users\kalka\AppData\Roaming\.technic\modpacks\the-wolfpack\mods\hats\<all the .tbl files go here
If you are still having issues, you can confirm if the mod loaded all the hats by searching for this in your latest.log
or debug.log
:
[Hats Download/Read Hats Thread/INFO] [Hats]: [7.0.0] Loaded 198 hats. 68 are contributor hats.
@mild-prowler You're our savior (or hero?), thank you so much! Человеческое спасибо!
Checked the log, says 0 hats loaded. 0 are contributor hats.
My bad. I didn't realize you were on 1.7.10. Give me a second to figure it out.
EDIT:
@bobbygoin Apologies for the misunderstanding. I was unaware of your version being 1.7.10. I looked into a lot more closely, and since 1.8 Hats moved to a new model format using iChun's Tabula. The file structure and hat files are different for 1.7.10. Let me setup a decomp workspace and get the files downloaded for you.
EDIT2: Done. I went ahead and set up a download for the 1.7.10 hats. The file structure is different than that for 1.12.2. I'll be updating the original post with this new info.
Go ahead and remove the original file I gave you, including the hats
folder under mods/
. 1.7.10's version has a different file structure as I mentioned earlier, so that folder is not necessary.
The mod should have created a new folder called hats
in the root directory of Minecraft.
Extract all of the .tc2
files in there. Relaunch and you should see this in your console:
[Hats Download/Read Hats Thread/INFO] [Hats]: [4.0.1] Loaded 198 hats. 68 are contributor hats.
Thanks so much for looking into this @mild-prowler
I'm a bit preoccupied IRL right now but when I can I will try to get updated builds out that will point to the right URL. Thanks again!
I'll leave this issue open for people who come round asking.
Ended up working in single player, but I need it to work in multiplayer and there's no way for MCProHosting to take all those files at once, and they don't allow to upload folders for some reason?
I remember playing 1.7.10 FTB Infinity Evolved and there were much more hats than this. I remember the turtle "Jeremy" in particular, which isn't here.
I remember playing 1.7.10 FTB Infinity Evolved and there were much more hats than this. I remember the turtle "Jeremy" in particular, which isn't here.
I'm a big dumb idiot because I forgot to let the rest of the hats download before zipping the archive. I'm so sorry about that.
Here is the new download for all the hats. It should include 198 hats in total. I'm so sorry about that.
[Hats Download/Read Hats Thread/INFO] [Hats]: [4.0.1] Loaded 198 hats. 68 are contributor hats.
Ended up working in single player, but I need it to work in multiplayer and there's no way for MCProHosting to take all those files at once, and they don't allow to upload folders for some reason?
That must be an issue unrelated to the Hats mod. You can add me on Discord (Kalka#2465
) to further help you with file transfers and hosting, or you can try and contact their support.
I actually ended up getting it working on the server! I was able to get the site to fetch the download straight from what you linked and got it all on there, was even able to unzip it within their file access page. Thanks again! So happy it’s working, wish it worked flawlessly like it did not even 4 months ago.
Contributor hats don't seem to be working though. Latest log says 0 are contributor hats.
I fixed this on my end. It will be in the update for 1.12.2, version 7.1.0.
However I will not be backporting this fix to the 1.7.10 version of the mod. Please use @mild-prowler's fix for 1.7.10 found here: #189 (comment)
I am going to be leaving this issue open for reference of those having this issue still.
Closing all issues as Hats has been rewritten from the ground up and the old mod for a long time now was no longer supported.. I'm sorry I wasn't able to address your issue. If you're still playing modded Minecraft, consider checking out Hats for 1.16.5+.
I'm keeping this issue pinned as there is still a significant number of users on these versions and they might check here wanting to submit an issue. However pre-1.16.5 Hats is no longer support and hasn't been for a long while so I will be making no attempts to fix or update the old mod.