About This File This is an example of a hat. This example requires the PC version of the 'Don't Starve Mod Tools'.
DarkShiz 9 Posted November 9, 2013 Share Sweet! This will really help headgear enthusiasts to make their own hats. 3 Link to comment Share on other sites More sharing options...
greenglacier 1249 Posted November 13, 2013 Share Thanks. Helps a lot! Link to comment Share on other sites More sharing options...
WendyAbigail 1 Posted December 2, 2013 Share i like that Link to comment Share on other sites More sharing options...
goldfish911 61 Posted January 5, 2015 Share Can you make an updated version of this that better allows for multiple hats to be added at once i.e. separate folders for each hat prefab?Or, could you clarify how to set up the anim for a custom hat from scratch? Link to comment Share on other sites More sharing options...
Crestonia 18 Posted January 30, 2015 Share Thanks! Link to comment Share on other sites More sharing options...
RedRock911 36 Posted February 8, 2015 Share Can you make an updated version of this that better allows for multiple hats to be added at once i.e. separate folders for each hat prefab?Or, could you clarify how to set up the anim for a custom hat from scratch? I'm thinking you just take this example, and swap your files with your stuff. I'm going to use the extended charecter template for reference and try it, Link to comment Share on other sites More sharing options...
RedRock911 36 Posted July 27, 2015 Share To clarify, I can't just take this out of the box, rename the folder and scml files, and corrosponding script files for it to work can i? Link to comment Share on other sites More sharing options...
orlyx 3 Posted January 14, 2018 Share What i doing wrong? hat2.rar Link to comment Share on other sites More sharing options...
Siletrea 21 Posted April 24, 2018 Share can you please make one for amulets or necklaces please? Link to comment Share on other sites More sharing options...
DakuKyatto 0 Posted January 22, 2019 Share On 14.01.2018 at 11:59 PM, orlyx said: On 14.01.2018 at 11:59 PM, orlyx said: What i doing wrong? hat2.rar I have This problem too, please explain to me how to fix it Link to comment Share on other sites More sharing options...
heckmate 256 Posted January 27, 2019 Share For anyone getting the "my face disappeared!" issue in DST: go into hat > scripts > prefabs > hat_bee_bw and change all of this: Spoiler local function fn() local function OnEquip(inst, owner) owner.AnimState:OverrideSymbol("swap_hat", "hat_bee_bw_swap", "swap_hat") owner.AnimState:Show("HAT") owner.AnimState:Show("HAT_HAIR") owner.AnimState:Hide("HAIR_NOHAT") owner.AnimState:Hide("HAIR") print('A') if owner:HasTag("player") then print('B') owner.AnimState:Hide("HEAD") owner.AnimState:Show("HEAD_HAIR") end end local function OnUnequip(inst, owner) owner.AnimState:Hide("HAT") owner.AnimState:Hide("HAT_HAIR") owner.AnimState:Show("HAIR_NOHAT") owner.AnimState:Show("HAIR") if owner:HasTag("player") then owner.AnimState:Show("HEAD") owner.AnimState:Hide("HEAD_HAIR") end end to this: Spoiler local function OnEquip(inst, owner, symbol_override) local fname = "hat_bee_bw_swap" local skin_build = inst:GetSkinBuild() if skin_build ~= nil then owner:PushEvent("equipskinneditem", inst:GetSkinName()) owner.AnimState:OverrideItemSkinSymbol("swap_hat", skin_build, symbol_override or "swap_hat", inst.GUID, fname) else owner.AnimState:OverrideSymbol("swap_hat", fname, symbol_override or "swap_hat") end owner.AnimState:Show("HAT") owner.AnimState:Show("HAIR_HAT") owner.AnimState:Hide("HAIR_NOHAT") owner.AnimState:Hide("HAIR") if owner:HasTag("player") then owner.AnimState:Hide("HEAD") owner.AnimState:Show("HEAD_HAT") end if inst.components.fueled ~= nil then inst.components.fueled:StartConsuming() end end local function OnUnequip(inst, owner) local skin_build = inst:GetSkinBuild() if skin_build ~= nil then owner:PushEvent("unequipskinneditem", inst:GetSkinName()) end owner.AnimState:ClearOverrideSymbol("swap_hat") owner.AnimState:Hide("HAT") owner.AnimState:Hide("HAIR_HAT") owner.AnimState:Show("HAIR_NOHAT") owner.AnimState:Show("HAIR") if owner:HasTag("player") then owner.AnimState:Show("HEAD") owner.AnimState:Hide("HEAD_HAT") end end This fixed the problem for me. 1 Link to comment Share on other sites More sharing options...
Pinkamena11FazP 1207 Posted February 12, 2020 Share How do I make animation files? It won't load Link to comment Share on other sites More sharing options...
Satanic Toast 0 Posted June 30, 2020 Share How do I change the durability, and resistance? Link to comment Share on other sites More sharing options...
ZeGalaxia 0 Posted July 3, 2021 Share On 1/22/2019 at 1:26 AM, DakuKyatto said: I have This problem too, please explain to me how to fix it If anyone else have this issue, I fixed mine going into scripts\prefabs\bee_hat_bw.lua and changing HEAD_HAIR to HEAD_HAT, like this local function fn() local function OnEquip(inst, owner) owner.AnimState:OverrideSymbol("swap_hat", "hat_bee_bw_swap", "swap_hat") owner.AnimState:Show("HAT") owner.AnimState:Show("HAT_HAIR") owner.AnimState:Hide("HAIR_NOHAT") owner.AnimState:Hide("HAIR") print('A') if owner:HasTag("player") then print('B') owner.AnimState:Hide("HEAD") owner.AnimState:Show("HEAD_HAT") end end local function OnUnequip(inst, owner) owner.AnimState:Hide("HAT") owner.AnimState:Hide("HAT_HAIR") owner.AnimState:Show("HAIR_NOHAT") owner.AnimState:Show("HAIR") if owner:HasTag("player") then owner.AnimState:Show("HEAD") owner.AnimState:Hide("HEAD_HAT") end end Link to comment Share on other sites More sharing options...
SenL 35 Posted June 5, 2022 Share This is unclear. Both Spriter projects have same image (swap_hat-3.png). Why does the hat_bee_bw_swap.scml have "BUILD_PLAYER" in the animation? Also how does "owner.AnimState:OverrideSymbol("swap_hat", "hat_bee_bw_swap", "swap_hat")" work? (what are those 3 parameters) Link to comment Share on other sites More sharing options...
Recommended Comments
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 accountSign in
Already have an account? Sign in here.
Sign In Now