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

[1.12.2 and earlier] No hat pack folder within hats file, mod not working entirely aside from the UI #189

Closed
bobbygoin opened this issue Sep 16, 2019 · 33 comments

Comments

@bobbygoin
Copy link

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.

@iChun
Copy link
Owner

iChun commented Sep 16, 2019 via email

@bobbygoin
Copy link
Author

How do I provide that? Sorry, kinda new to this.

@iChun
Copy link
Owner

iChun commented Sep 17, 2019 via email

@bobbygoin
Copy link
Author

Alright sounds good, here you go: https://pastebin.com/0FK1V61v

@NEVIP
Copy link

NEVIP commented Sep 17, 2019

I can send it, too, if you need it.

@iChun
Copy link
Owner

iChun commented Sep 17, 2019 via email

@bobbygoin
Copy link
Author

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.

@NEVIP
Copy link

NEVIP commented Sep 17, 2019

I'm use 1.12.2

@bobbygoin
Copy link
Author

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.

@bobbygoin
Copy link
Author

Any updates?

@bobbygoin
Copy link
Author

We just need the hat pack folder. That's it. Can you provide that?

@kalkafox
Copy link

kalkafox commented Sep 20, 2019

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.

@bobbygoin:

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.

@bobbygoin
Copy link
Author

Thanks man! I unfortunately still couldn't get it to work despite the hats folder being in there... sucks.

@kalkafox
Copy link

kalkafox commented Sep 20, 2019

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:

image

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.

@bobbygoin
Copy link
Author

Will give it another shot tomorrow! Thanks again man!

@bobbygoin
Copy link
Author

All you did was place the hats files? Do I have to do anything with the first portion you sent?

@kalkafox
Copy link

kalkafox commented Sep 20, 2019

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.

@NEVIP
Copy link

NEVIP commented Sep 20, 2019

@mild-prowler You're our savior (or hero?), thank you so much! Человеческое спасибо!

@bobbygoin
Copy link
Author

Still doesn't work... I'm on 1.7.10

@bobbygoin
Copy link
Author

Checked the log, says 0 hats loaded. 0 are contributor hats.

@kalkafox
Copy link

kalkafox commented Sep 22, 2019

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.

image

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.

@iChun
Copy link
Owner

iChun commented Sep 22, 2019

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.

@bobbygoin
Copy link
Author

Thanks iChun!

@bobbygoin
Copy link
Author

No worries mindprowler thanks so much for the help! You're awesome.

@bobbygoin
Copy link
Author

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.

@kalkafox
Copy link

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.

@bobbygoin
Copy link
Author

You're good man, thanks! Let me give it a shot.

@bobbygoin
Copy link
Author

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?

@kalkafox
Copy link

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.

@bobbygoin
Copy link
Author

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.

@bobbygoin
Copy link
Author

Contributor hats don't seem to be working though. Latest log says 0 are contributor hats.

@iChun
Copy link
Owner

iChun commented Oct 1, 2019

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.

@iChun iChun pinned this issue Oct 1, 2019
@iChun iChun mentioned this issue Oct 1, 2019
@iChun iChun changed the title No hat pack folder within hats file, mod not working entirely aside from the UI [1.12.2 and earlier] No hat pack folder within hats file, mod not working entirely aside from the UI Apr 13, 2021
@iChun
Copy link
Owner

iChun commented Apr 13, 2021

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.

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

4 participants