1 Screenshot




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

Share this comment


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

Share this comment


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.

Share this comment


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

Share this comment


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