Jump to content
  • The forum downloads section will be removed on Jan 1st 2023. Players may still download mods that are currently hosted, but new submissions are no longer being accepted. Mod makers are advised to relocate their mods to alternative hosting solutions.

Smarter Crock Pot 1.4a


1 Screenshot

About This File

Steam Workshop Link: https://steamcommunity.com/sharedfiles/filedetails/?id=596800985

Compatible with DS, ROG and SW.

Original link: https://steamcommunity.com/sharedfiles/filedetails/?id=222342168

Fixed by zUsername.

Created by Nadav.


What's New in Version 1.3   See changelog

Released

Support Portable Cookpot.

Display predict chance in percent.

  • Like 4

User Feedback

Recommended Comments

I can't put shipwrecked food (limpet, coconut, seaweed, ...) in Portable Crock Pot when using this version 1.3.
 

Could you please fix it ?

 

Edited by AbdoZaghloul
Link to comment
Share on other sites

Hey! Can you update DST version, it doesn't work with DisplayFoodValue anymore, and Nadav is offline about month

Link to comment
Share on other sites

On 02.07.2017 at 9:39 AM, calinalex said:

Dude its having an error with portable pot

I believe the mod is working fine, but you need to delete the mods\Smarter Crock Pot\scripts\cooking.lua file - it is an outdated version of the system cooking.lua and contains no important functions. The original 1.0 version has no such file, I have no idea why the author of 1.4 put it in the release.

Link to comment
Share on other sites

After you've removed the cooking.lua file you might want the mod to predict warly's recipes. You just need to modify the modmain.lua starting from the line 50:

local function GetCandidateRecipes(cooker, ingdata)
	local candidates = {}
	local specialfound = false

	if cooker.components.stewer.specialcookername == "portablecookpot" then
		local recipes = cooking.recipes["portablecookpot"] or {}
		for k,v in pairs(recipes) do
			if v.test(cooker, ingdata.names, ingdata.tags) then
				table.insert(candidates, v)
				specialfound = true
			end
		end
	end
	if not specialfound then
		local recipes = {}
		recipes = cooking.recipes["cookpot"] or {}

		for k,v in pairs(recipes) do
		--find all potentially valid recipes
			if v.test(cooker, ingdata.names, ingdata.tags) then
				table.insert(candidates, v)
			end
		end
	end
	table.sort( candidates, function(a,b) return (a.priority or 0) > (b.priority or 0) end )
	if #candidates > 0 then
    ...

The modified file attached.

modmain.lua

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...