Skip to content

Legend-Master/AutoCooking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Cooking

A Don't Starve Together mod for auto cooking

Usage

To start auto cooking:

  1. Choose an Integrated Key in the mod settings
  2. Put the materials in to a cookware (cookpot, seasoning station, ...)
  3. Press the Integrated Key

If you have cooked something before, press the Integrated Key will start to repeat that recipe, and if you don't have enough materials for it, it will go in to "endless harvest mode" which will harvest all cookpots/seasoning stations near you endlessly

To stop, simply move or click on something or press the Integrated Key again

Features

  • It will remember the cooking material and fill the cookpot/seasoning station by using materials from any of opened containers
  • It will select just enough cookpots for cooking to avoid using too many cookpots (Just because that looks so stupid, e.g. You want to cook some icecreams, and you got 20 cookpots, it will eventually only use the last 4 cookpots...)
  • It will try to go back to the first cookpot to wait for it to finish
  • If you're realy laggy, try to use "Laggy Mode", but it still has chance to open and close the cookpot over and over again
  • Hold control when starting auto cooking to disable harvesting
  • You can turn on Ultra Fast mode in the settings to make it fill in all the materials at once

Deprecated

Note: Although they're deprecated, they're on by default to not break the expectation of early users

  • Press start button to start auto cooking by using 2/4 slots of items from cookpot/seasoning station/backpack/inventory
  • Pressing start button when don't have enough items, it will go in to "endless harvest mode" which will harvest all cookpots/seasoning stations near you endlessly
  • Press "Lastest Recipe Key" to cook lastest recipe you ever did

Configable Options

  • Language: Auto / English / Simplified Chinese
  • Action Key: Key to start the cooking (Default: F5) (Deprecated, please use Integrated Key instead)
  • Action Key 2: this key + click on cookware to start (Default: Off) (Deprecated, please use Integrated Key instead)
  • Lastest Recipe Key: Key to start the cooking lastest recipe (Default: Home) (Deprecated, please use Integrated Key instead)
  • Integrated Key: Start cooking items from opened cookware or lastest cooking recipe / endless harvest mode (Default: Off)
  • Ultra Fast Mode: Put in all the materials in the blink of an eye (Default: Off)
  • Num of Cookpots: Amount of cookpots compare to cooking time to use, hold shift when starting auto cooking to select infinite
  • Laggy mode: Off / On / In-game button (Default: Off)
  • Laggy Mode Toggle Key: If you choose "In-game button" from "Laggy Mode", you can give it a key to toggle laggy mode in game (Default: Right Shift)

Known Issues

  • When you hold something on you mouse, it will pause the cooking, and I have no idea how to fix it since you can't do a rummage action when you have the activeitem (& It wouldn't start cooking when something is on you mouse)

For Modders

I don't really wanna make too much of modded cookware supports for this mod since over all, a lot of decisions are made based on the vanilla game, and may not suit for modded cookwares.

But if you got something similar to the vanilla and want to make a support for this mod, you could do the following in your mod (e.g.):

local cookware_morphs = {
    cookpot = { -- What morph is it (one of [cookpot, portablecookpot, portablespicer])
        deluxpot = true, -- Your cookware name
    }
}

Do this if you're on mod env

local AUTO_COOKING_COOKWARES = GLOBAL.rawget(GLOBAL, "AUTO_COOKING_COOKWARES") or {}
GLOBAL.AUTO_COOKING_COOKWARES = AUTO_COOKING_COOKWARES

Or this if you're on GLOBAL env

AUTO_COOKING_COOKWARES = rawget(_G, "AUTO_COOKING_COOKWARES") or {}

Do this at the end

for base, morphs in pairs(cookware_morphs) do
    AUTO_COOKING_COOKWARES[base] = shallowcopy(morphs, AUTO_COOKING_COOKWARES[base])
end

Special Thanks: 秋一(Civi) for testing and suggesting those amazing ideas

About

Reworked Auto Cooking mod for Don't Starve Together

Topics

Resources

License

Stars

Watchers

Forks

Languages