Search the Community
Showing results for tags 'invisible'.
Found 2 results
Hey there, I'm working on a mod right now that will add a custom food item, internally called curry. It's technically fully functional except for one problem: It doesn't appear in the crock pot. I've tried all sorts of fixes, but I'm not sure I understand things. I've also found forum posts on it, like this one, but I don't understand it well enough to really implement it. Could someone help me figure this out, or at least explain the fix to me?
Edit: Solution found! Hey friends I'm making a mod which involves some custom food and recipes. I've got mostly everything worked out, but I have the problem that the cooked food isn't displaying in the cookpot when ready to be harvested. I've seen there are other topics regarding this, from Lumina, the tutorial from Squeek, and a tutorial mod from Kuloslav. Also saw the text about when modded food animation was first enabled in the game, eliminating the need for a manual code fix. I've tried reusing the resources in the above examples and tutorials to make Lumina's chocolate, tried reusing assets from the PickleIt mod, and tried reusing assets from DST's included cook_pot_food animation build. I must be completely oblivious to some small thing. In every case the inventory item displays correctly, and the proper animation is used as an idle animation when dropping the item on the ground. But in a total of zero cases have I gotten the food to show in the cookpot when finished cooking. I even extracted the game's scripts.zip so they would be loaded and modified cookpot.lua's ShowProduct function to give me debug statements to ensure the correct food name was being passed to inst.AnimState:OverrideSymbol. The relevant code in my Prefab: inst.AnimState:SetBank("food") inst.AnimState:SetBuild("applesauce") inst.AnimState:PlayAnimation("applesauce") The animation root in the .scml is called "food", it has an animation timeline within this root called "applesauce", and the resulting anim .zip is called "applesauce.zip". The animation plays correctly in Spriter, and a proper centered pivot point is set. I've decompiled Klei's cook_pot_food .bins using nsimplex's Krane from ktools to generate an .scml and ensured my .scml's underlying XML matched where necessary. Does anybody have any further tips on what I could try or double check to maybe find out what I've missed? Thanks for the help