shprotx

  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About shprotx

  • Rank
    Junior Member
...
  1. 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
  2. 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.