Search the Community
Showing results for tags 'cookpot'.
-
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
-
What is the file path, or where can I find the source code for crockpot food. I have been searching but can not find it. Specifically, I want to find the code for jellybeans. But knowing the code for all the foods can also help with future mods.
-
about a month ago i had been working on a mod and looked around for a code of some sorts for what i want to achieve: making my character cook faster than average. i successfully found one, and it was working perfectly at the time! now it doesn't seem to be working and i'm very confused as to why. local old_cook_fn = ACTIONS.COOK.fn ACTIONS.COOK.fn = function(act, ...) local result = old_cook_fn(act,...) local stewer = act.target.components.stewer if result and stewer ~= nil and act.doer:HasTag("mycharacterprefab") then local fn = stewer.task.fn local t = GetTaskRemaining(stewer.task) stewer.task:Cancel() stewer.task = stewer.inst:DoTaskInTime(t*.5, fn, stewer) end return result end this is the code in question. this is all i've tried, to no avail: - adding it to character.lua by itself - adding it to character.lua inside of local master_postinit = function(inst) - adding it to modmain.lua at the very bottom could anyone explain to me what i'm doing wrong, and maybe give some pointers as to what i can do to fix this? ;; thank you very much in advance! ❤
- 18 replies
-
Hello there! I've been trying to make a custom crockpot burger food recipe for my character mod, by following this item sample: https://forums.kleientertainment.com/files/file/202-sample-mods/ Following this and even going to check out mods that succeeded the same doesn't quite work for me? The item DOES exist it the game, as I can spawn it in my inventory (using c_give, as c_spawn doesn't work for it), but it is impossible to put on the ground (it disappears instantly and doesn't exist at all anymore) And it also does not cook in the crockpot with the recipe I made. I assume it has to probably do with the way I get the anim.zip to work. I didn't really find a tutorial that shows how to proceed once the art is done to make the zips and all, so I made a spriter in the exported folder to get it to compile the anim automatically. I don't really know if I do it properly, so any help would be amazing! I have attached my whole mod folder as a zip to this topic, (below the gif) if anyone is willing to help me! Thanks for reading! Here's a gif of the issue in-game:
-
I've made a new recipe for the game and it's almost done but I just can't seem to overcome this last problem. It displays fine in the inventory, I can give it using console commands, and the cookpot cooks it up just fine. The problem is if the item is dropped it is invisible, and doesn't appear in the crockpot wither. As far as I can tell I've done everything right, I just can't seem to resolve it though. My process for making the mod was to take an existing Don't Starve Together/anim .zip file, in this case "butter", and decompile it using ktools-4.4.4, specifically krane, to get a SCML file. I then altered the details in the SCML file to match my image's height and width, and change all name references to match my folders and images. Then I used the compiler provided in the Don't Stave mod tools, specifically scml.exe to output a zip file. I've extracted the zip file and examined it with HexEditor and it only mentions the correct files, and the tex file, viewed through TexTools seems fine too. I just can't understand it. I've included a link to a folder with all the files I've used in it. If you could take a look and maybe shed some light on it I would be grateful. Link to files here EDIT: After some testing it now appears in the crockpot, but it vanishes if put onto the ground. I don't understand why that would happen, I thought that the same files would be used in both cases. Has anyone encountered similar problems?