Jump to content

Recommended Posts

Hello!

I'm new to this modding thing and wanted to try to port the pirate hat from shipwrecked into dst. Because it's the first time that I mod something I tried to keep it as simple as possible. So my idea was to download a simple hat mod (this one https://steamcommunity.com/sharedfiles/filedetails/?id=1552139091  ) and change only the appeareance at first.
I looked with notepad++ inside the files and tried to change all appeareance related lines to the pirate hat (which I found in the DLC2 files from don't starve). At least I made it to not crash the game anymore but the hat is invisible as I wear it. I took some screenshots for you and wanted to ask if i'm totaly on the wrong road? And what could I do to make it work?

Also I uploaded the pirate hat.zip from Don't Starve: Shipwrecked (I'm not even sure if it is the right file to use for this) and the changed hat_wizard.lua.

Thank you for your attention!

Piratehat 1.png

Piratehat2.png

hat_pirate.zip hat_wizard.lua

I don't think you need 2 hat_pirate.zip assets imported. Also, looking through hats.lua file, I see the bank and build should look like this:

inst.AnimState:SetBank("piratehat")
inst.AnimState:SetBuild("hat_pirate")
inst.AnimState:PlayAnimation("anim")

Also set your OverrideSymbol to owner.AnimState:OverrideSymbol("swap_hat", "hat_pirate", "swap_hat")

Edited by IThatGuyI
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...