Chef Archive
Thread: Chef Recipe-O-Matic v0.1 Input Requested
Page 1 of 2
Ultramidiman
Sat Oct 09, 2004 3:52 pm
#1
Good day all,
As a fairly new master chef, I find searching for the best resource for a particular food product and stat emphasis to be very time consuming. I love the job. I'm keeping the job. It would be nice though to apply my programming skills to make the process super fast. This would give me more time for factory production, networking with hungry life forms, and playing music in random areas of the galaxy. That is why I'm producing the ultimate chef program - Chef Recipe-O-Matic. I would appreciate your input on this subject as I may be misled in my research. Also, how do you feel this would make the galaxy a better place, or ruin the chef profession? Thank you much!
The Goal
After choosing a galaxy, a food product, checking areas of emphasis such as buff size and buff length, a recipe will be generated listing the best resources to use for the chosen food product. XML data will be brought in from swgcraft.com and some personal work. Flash and/or PHP will be used to work with the data to produce fast optimized results. To make the recipe complete, other resources such as factory identical alcohol and food additives will also be listed.
Interface Preview
Visit http://www.treetrip.com/images/recipematic.gifto see a preview of the interface.
Sample Data
Here's some sample data that I've chosen from swgcraft.com and SWG itself to test formulas with. I will be using it below to demonstrate how I'm going to find results.
Vagnerian Canape 20 Berries, 20 fruit, 2 identical dough, 1 carbo, 1 medium food additive
Exp Filling
DR=75%
OQ=75%
Exp Flavor
FL=66%
OQ=33%
Exp Nutrition
OQ=33%
PE=75%
Exp Quantity
DR=25%
PE=75%
Berries
Tatooinian Berry Fruit Iepeq DR=26 OQ=208 FL=205 PE=874
Talusian Berry Fruit Ohenau DR=367 OQ=507 FL=274 PE=728
Rori Berry Fruit Choilicac DR=410 OQ=550 FL=86 PE=596
Fruits
Yavinian Fruits Ecek DR=178 OQ=141 FL=969 PE=319
Tatooinian Fruits Odederc DR=266 OQ=866 FL=538 PE=176
Talusian Fruits Thoghte DR=971 OQ=672 FL=574 PE=184
Finding the Best Resource for Vagnerian Canape (using the above berries and fruits)
I'm guessing that the best way for the Chef Recipe-O-Matic to find the best resource is to use a point system. Whichever resource receives the highest points wins the race and is displayed in the recipe. I'll show my work as best as I can.
Let's say that I chose Vagnerian Canape, and placed emphasis on Buff Size alone (experimental nutrition). I would do the following:
//determine what the multipliers are (the experimental percentages converted into a decimal).
Percentages - OQexp=.33, PEexp=.75
//Give the resources points based on the chosen product experimental percentages.
Tatooinian Berry Fruit Iepeq (208 x OQexp .33) + (874 x PEexp .75) = 724.14 points
Talusian Berry Fruit Ohenau (507 x .33) + (728 x .75) = 713.31 points
Rori Berry Fruit Choilicac (550 x .33) + (596 x .75) = 628.5 points
Yavinian Fruits Ecek (OQ 141 x OQexp .33) + (PE 319 x PEexp .75) = 285.78 points
Tatooinian Fruits Odederc (866 x .33) + (176 x .75) = 424.38 points
Talusian Fruits Thoghte (672 x .33) + (184 x .75) = 359.76 points
Tatooinian Berry Fruit Iepeq, and Tatooinian Fruits Odederc would be displayed in the recipe. The points were only used to determine the best resources, but are not displayed or used.
Now for something a little more interesting. This time I choose Buff Size (experimental nutrition), and Buff Length (experimental flavor), both at the same time.
###############Formula in question###############
//determine what the multipliers are.
Percentages - (experimental nutrition OQexp=.33 + experimental flavor OQexp=.33) / 2 = OQexp=.33, PEexp=.75, FLexp=.66
//Since both experimental nutrition and experimental flavor had an Overall Quality value, they were added and averaged out.
//should I be averaging out multiple experimental values, or adding them todether? Why? - question added 10/11/04
###############End Formula in question###############
//Give the resources points based on the chosen product experimental percentages.
Tatooinian Berry Fruit Iepeq (208 x OQexp .33) + (874 x PEexp .75) + (205 x FLexp .66) = 859.44 points
Talusian Berry Fruit Ohenau (507 x .33) + (728 x .75) + (274 x .66) = 894.15 points
Rori Berry Fruit Choilicac (550 x .33) + (596 x .75) + (86 x .66) = 685.26 points
Yavinian Fruits Ecek (OQ 141 x OQexp .33) + (PE 319 x PEexp .75) + (969 FLexp .66) = 925.32 points
Tatooinian Fruits Odederc (866 x .33) + (176 x .75) + (538 x .66) = 779.46 points
Talusian Fruits Thoghte (672 x .33) + (184 x .75) + (574 x .66) = 738.6 points
Talusian Berry Fruit Ohenau, and Yavinian Fruits Ecek would be added to the recipe as they have the highest points when it comes to Buff Size and Buff Length as a whole.
Conclusion
If I were to add something to this program, I would add a rough Stat/Skill description as a reminder of what the food product does. There is still much programming to be done. I'm holding off on parts until I'm sure I'm doing the right thing. How am I doing? What should be added? How is my termage? Thanks for the input.
Message Edited by Ultramidiman on 10-11-2004 06:54 PM
Higginsis
Sat Oct 09, 2004 5:09 pm
#2
I'd love to help but i'm really, really bad at maths. 
I'll leave it to sciguy, he's got more equations than einstein, i'm sure he'll be able to help.
I'll leave it to sciguy, he's got more equations than einstein, i'm sure he'll be able to help.
ChefVomit
Sat Oct 09, 2004 5:11 pm
#3
I like it. I need to put some thought into what would be the most helpful features, and then I will post.
Looks like a good start though. I would say at the very least the pilot idea would be of great service.
Looks like a good start though. I would say at the very least the pilot idea would be of great service.
Diona
Sat Oct 09, 2004 5:56 pm
#4
This sounds wonderful! Especially for people like me who hate math.
A question for you.. would it be only with available resources on the boards atm or would a chef be able to type in the stats of the berries/fruits etc that they have in stock? Most people use resources they have stocked up on and not whats available right then and there.
You may have actually answered this in the post but please humor me? I just got my 2 year old and my 1 year old to bed and mind is a bit fried.
Ultramidiman
Sat Oct 09, 2004 11:09 pm
#5
No Problem. This post fried my brain as well. As much as I love solving problems, I hate math. THat's why I'm making this program. hehe.
The goal of this program is to find the best resources currently available. However, it would be a nicefeature to add some inputfields that would be compared with the rest of the resources, or just compare what is in the custom fields. What do you think? Maybe this would be a seperate sister program or an extra pop-up-like window?
TheEpigoni
Sun Oct 10, 2004 1:10 am
#6
Although this is a very interesting idea, it may not be worth the effort.
What I use insead of this is 2 bookmarks.
Go to swgcraft.com. Go to find resources, put in 40% pe 25% oq 15% fl 10% dr. Set it to your server and resource type, organic. Then click Find. After it gives you the list, at the top right you'll see an up and down arrow next to the word Rating, click the down arrow.Bookmark. Go back. Repeat but this time check "Available" and then Find/Bookmark.
What this does is give you two bookmarks. One of the best current organics, and one with the best ever organics.
Tips:
With the current organics list simply go down the list until you see the Resource Type you are looking for. (Fruits)
With the best ever organics list, go down the list until you see you're Resource Type. Or go down the list until you see the little # under the Availability collumn and then you can see how the resource compares to ones that have already de-spawned.
What I would appreciate much more is a Chef Food calculator.
Although by no means a simple task. It would let you choose a Food, Choose an Additive, Choose and Container (for drinks). Then you give it the stats of the resources you want to use. And it gives you the following.
Starting %ages and stats.
Max %ages and stats.
Ability to add/check how many experimentation points you need to get to a certain value. Make a virtual crafting station without actually having to go into the game make all the components and additives and craft it just to test if a new resource spawn is worth harvesting.
If you need the math on all the calculations I suggest you talk to Sci I'm sure he'll give you all the relevant numbers and forumals.
Fofa
Sun Oct 10, 2004 10:15 am
#7
I think it's a wonderful idea... As long as you incorperate the fields to input your own resources as stated above. I personally have a large stock of resources that are no longer spawning, and the program would do me no good with no input quality fields... I would definatly give this program a shot, as, i'm to lazy to weed through all my different fruits and berries to find the best combo for brandy and canape 
Thanks,
Fo'fa / FuzzieWuzzie (Fattest Wookiee Chef on Shadowfire)
Thanks,
Fo'fa / FuzzieWuzzie (Fattest Wookiee Chef on Shadowfire)
Ultramidiman
Sun Oct 10, 2004 10:22 am
#8
Thanks for the idea. I'll need to look more into the chef calculator later.
The problem I see with your resource searching method is that it still requires work. I'm lazy. The program would all the work with only 6-10ish quick clicks in one place. Your method requires many clicks, page loadings, and manual resource comparisonsfor areas of the food you want to emphasize on.
There are some chef calculators in use. You can find a few at this post: http://forums.station.sony.com/swg/board/message?board.id=chef&message.id=38855. Perhaps a chef calculator would be a good addition, or projected food stats automatically generated when a resource is chosen. Any ideas?
Ultramidiman
Sun Oct 10, 2004 1:52 pm
#9
UPDATE!
Thanks to your input, I've put together a new model. This version will not read from swgcraft.com's xml files. Instead, it will compare and choose the best resource for a selected food product based off resources manually entered. Comparing any new or old resource is possible now.
Interface Preview
http://www.treetrip.com/images/recipematic2.gif
After a food product is selected, a description shows skill and stat ranges for the product - just like grandma's recipe book. Thisreduces time of having to look it up.Check areas of desired emphasis, then add resource names and stats. After clicking the 'Build Optimized Recipe' button, the inputted resources are compared, and the best resources are displayed in thefinal recipe. What's missing?
Ultramidiman
Sun Oct 10, 2004 11:29 pm
#11
Yay! I'm glad you like it so far. I've already made significant progress on the programming. Anyone else have suggestions on mathmatical formulas and features?
TheEpigoni
Mon Oct 11, 2004 8:43 am
#13
Also would appreciate the ability for the final printout to include serial numbers of components that you can input so you can keep track of what components you use in each food.
Page 1 of 2