Search the Community
Showing results for tags 'dst to ds port'.
-
Hi! I am trying to port the hat-wearing spiders from DST to DS, but I can't seem to locate where the actual hat-wearing functionality is animated within the bank/build of spiders. This is the code that allows spiders to wear hats: -- I also wear hats elseif item.components.equippable ~= nil and item.components.equippable.equipslot == EQUIPSLOTS.HEAD then local current = inst.components.inventory:GetEquippedItem(EQUIPSLOTS.HEAD) if current ~= nil then inst.components.inventory:DropItem(current) end inst.components.inventory:Equip(item) inst.AnimState:Show("hat") end (from scripts/prefabs/spider.lua) These are the assets for the spiders: local assets = { Asset("ANIM", "anim/ds_spider_basic.zip"), Asset("ANIM", "anim/spider_build.zip"), Asset("ANIM", "anim/ds_spider_boat_jump.zip"), Asset("SOUND", "sound/spider.fsb"), } I used Krane to decompile ds_spider_basic.zip and spider_build.zip into a spriter project and opened it in Spriter, but I can't find anything regarding hats here. There are no placeholders included in any of the animations as far as I can see, and yet somehow hats work for spiders in the game. When I port the animations to DS, I can get the smiling faces to work - so it seems like the animations are ported correctly - but hats are invisible when I do AnimState:Show("hat"). I'll include a screenshot of how it looks when I've opened it in Spriter, as well as a zip of the decompiled Spriter project in case anyone wants to look for themselves without having to decompile first. (The reason I am decompiling and recompiling these in the first place is simply to rename the build and base to something other than the default to avoid conflict with DS's original spider anim files) I would be incredibly grateful if someone has any ideas on how this all works in DST. Honestly, I'm quite stumped and feel like I have been pretty thorough but I must be missing something. The only thing I can think of is that either something was not properly decompiled, or it's a bug with Spriter, or perhaps that there is something wrong with my game's files. TLDR: porting the anim files for spiders from DST -> DS doesn't work for me: the hats are invisible in DS. pls send help edit: SOLVED, see replies for more information! spriter_project_files.rar