Search the Community
Showing results for tags 'cookpot'.
Found 3 results
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! ❤
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?