How Food Recipes Work

Ask and answer any and all questions pertaining to Salem's game-play.

Re: How Food Recipes Work

Postby Thor » Tue Sep 10, 2013 6:40 pm

Good to see you're still updating this.
saltmummy wrote:You sad sad little man, my heart weeps for you. Better not go outside or your thin, tissue paper like skin might spontaneously rupture while your fragile sensibilities violently shatter spraying salt and urine all over the street.
User avatar
Thor
 
Posts: 2335
Joined: Wed Jun 12, 2013 10:09 am

Re: How Food Recipes Work

Postby red_29A » Tue Sep 10, 2013 10:43 pm

Yeah, thanks a lot for this! I've been trying to figure out the whole gluttony system and it's nice to see the math. For the first few days I played I just worked on proficiency and skills, my humors are sorely neglected. Back to hiding!
User avatar
red_29A
 
Posts: 1
Joined: Tue Sep 03, 2013 1:45 am
Location: Under the Arch

Re: How Food Recipes Work

Postby Kandarim » Tue Sep 10, 2013 11:25 pm

I've got these to share.
Out of interest, how did you get the corn matrices? I didn't find any recipe where I could succesfully extract the matrices :? My method for calculating the matrices (matlab code) is:

Code: Select all
%assume: you have two different types of food with known base matrices,
% and for each type of food you have one with only one modifier, the
% unknown.
%the modifier matrix is then gotten through:
modifier = (base1 + base2) \ (modified1 + modified2);


where that backslash operator works as
Code: Select all
X = A\B is the solution to the equation A*X = B


Ingredients

Colewort
Code: Select all
    0.9000         0         0    0.2000
         0    1.1000         0         0
    0.3000    0.1000    0.8000         0
         0         0         0    0.6000


Food base matrices

aztec abattoir
Code: Select all
    0.9000         0         0    0.2000
         0    1.1000         0         0
    0.3000    0.1000    0.8000         0
         0         0         0    0.6000


cabbage cakes
Code: Select all
    8.0000         0         0   16.0000
         0    8.0000         0   15.0000
    8.0000         0         0   17.5000
         0    8.0000         0   18.0000


cabbage crumbs
Code: Select all
   12.5000         0   19.0000         0
         0         0         0   12.0000
    8.0000         0   15.0000         0
         0         0   12.0000   18.0000


cabbage rolls
Code: Select all
    6.5000         0    7.0000         0
         0         0    9.0000         0
    8.5000         0    6.5000         0
    6.9000         0         0         0


corn pudding
Code: Select all
   10.0000         0         0   15.0000
         0    7.5000         0         0
   10.0000   12.5000         0    7.5000
         0   20.0000         0         0


cornmeal flatbread
Code: Select all
    9.0000         0         0         0
    5.5000         0         0         0
    6.5000         0         0         0
    9.5000         0         0         0


goldtilla
Code: Select all
         0         0    7.5000         0
         0         0   15.0000         0
         0         0    7.5000         0
         0         0    7.5000         0


johnnycake
Code: Select all
   10.5000         0         0         0
    7.5000         0         0         0
    3.0000         0         0   20.0000
   12.0000         0         0         0


windy pooh
Code: Select all
   30.0000         0   27.5000         0
   15.0000         0   25.0000         0
   35.0000         0         0   40.0000
   25.0000         0   15.0000         0
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Re: How Food Recipes Work

Postby DarkNacht » Wed Sep 11, 2013 1:00 am

Kandarim wrote:I've got these to share.
Out of interest, how did you get the corn matrices? I didn't find any recipe where I could succesfully extract the matrices :? My method for calculating the matrices (matlab code) is:

Code: Select all
%assume: you have two different types of food with known base matrices,
% and for each type of food you have one with only one modifier, the
% unknown.
%the modifier matrix is then gotten through:
modifier = (base1 + base2) \ (modified1 + modified2);


where that backslash operator works as
Code: Select all
X = A\B is the solution to the equation A*X = B


Ingredients

Colewort
Code: Select all
    0.9000         0         0    0.2000
         0    1.1000         0         0
    0.3000    0.1000    0.8000         0
         0         0         0    0.6000


Food base matrices

Thank you, I will add the Colewort matrix to the list. The food base matrices should all match the original food values.
I found that many of the food items could not easily and completely be solved using a program such as yours so I broke the matrices down into a series of equations and solved as much of each set of equations as possible, with corn this is very easy because so many of the base matrices have a lot of 0s, but this is also the reason that the corn matrices are incomplete.
DarkNacht
 
Posts: 2684
Joined: Thu May 02, 2013 11:24 am

Re: How Food Recipes Work

Postby daopa » Mon Sep 30, 2013 12:34 am

Ummm, If i was to understand this a tad more, this doesnt seem to be that difficult to create a webpage that lets you select stuff and press a button to spit out the results ....

did anyone create something like this yet? Anyone make a spreadsheet that does this .. i guess you can do that also ..
User avatar
daopa
Customer
 
Posts: 217
Joined: Thu Nov 08, 2012 9:40 pm
Location: Jamestown

Re: How Food Recipes Work

Postby Thor » Mon Sep 30, 2013 5:44 am

I do remember someone starting to make that kind of program a while ago.
saltmummy wrote:You sad sad little man, my heart weeps for you. Better not go outside or your thin, tissue paper like skin might spontaneously rupture while your fragile sensibilities violently shatter spraying salt and urine all over the street.
User avatar
Thor
 
Posts: 2335
Joined: Wed Jun 12, 2013 10:09 am

Re: How Food Recipes Work

Postby DarkNacht » Mon Sep 30, 2013 6:01 am

There is a program posted on the forums, but it only handles recipes with one variable ingredient and the text file with the data in it is missing a lot of values and has some incorrect values. If anyone wants to make a program or site that spits out results for the recipes, I would be glad to post it on the original post.
DarkNacht
 
Posts: 2684
Joined: Thu May 02, 2013 11:24 am

Re: How Food Recipes Work

Postby jwhitehorn » Fri Oct 11, 2013 3:57 am

DarkNacht wrote:There is a program posted on the forums, but it only handles recipes with one variable ingredient and the text file with the data in it is missing a lot of values and has some incorrect values. If anyone wants to make a program or site that spits out results for the recipes, I would be glad to post it on the original post.


The Tribe would also be interested in somebody making this program.

Chief PeePooKaKa
MM Tribe
Admin for Salem Wiki • Make suggestions or complaints in the Wiki Suggestion thread
User avatar
jwhitehorn
 
Posts: 5307
Joined: Sat Aug 18, 2012 7:07 pm

Re: How Food Recipes Work

Postby DarkNacht » Wed Oct 23, 2013 7:12 pm

Wild Garlic added and Gold corn fixed thanks to Tammer.
DarkNacht
 
Posts: 2684
Joined: Thu May 02, 2013 11:24 am

Re: How Food Recipes Work

Postby Hardy » Thu Oct 24, 2013 1:03 am

Cool thanks for keeping up with this it has been a big help.
Hardy
 
Posts: 40
Joined: Thu May 09, 2013 4:49 am

PreviousNext

Return to Help!

Who is online

Users browsing this forum: No registered users and 66 guests