Page 1 of 2

Glutony Calculator

PostPosted: Thu May 16, 2013 12:57 pm
by gnox24
There is a thread on the forums (http://forum.salemthegame.com/viewtopic.php?f=5&t=6459) where we derrived a method to simulate the glutony calculation done in the game. Since the internals are rather mathematically and it is hard to read the results, I started to write a tool which calculates modified glutony values depending on the given ingredients.

The application is not done because i lack a lots of data to calculate the modifier values, but there are a few recipes and ingredients implemented at the moment.

Here is a screenshot:
Calculator.jpg
Calculator.jpg (111.34 KiB) Viewed 11196 times





How to install:

Method A:
Download it from the link below and run the executable. This is experimental - im not sure if it works.
https://www.dropbox.com/s/xe9hlkypbrcxvz4/GlutonyCalculator_Exe.rar

Method B:
If A is not working or you don't use Windows follow the next steps.

1. Download and install Python 2.7.5 for your operating system. The tool is written for Python 2.7.5. I didn't test it for higher versions, but If i does not work it shouldn't be much effort to adapt it.
http://www.python.org/getit/

2. Download and install PySide for your operating system. PySide is needed to show a user interface.
http://qt-project.org/wiki/Category:LanguageBindings::PySide::Downloads

3. Download the archive attached to this post, unpack it and run (double click) the file 'GlutonyCalculator.py'
GlutonyCalculator.rar
(16.07 KiB) Downloaded 538 times




How to use:

Select the desired recipe from the list and then select the ingredients you want to use. The resulting glutony values are listed in the table at the bottom. Ingredients marked with a * are likely to have wrong modifier values and may result in incorrect results.




How to support this project:

1. Collect Data: As i wrote above, there are lots of ingredients missing. This is due to the lack of data. For every ingredient to calculate i need two different food types which have to be only modified by the ingredient in question. Cook some food and write down the glutony values together with the multiplier (The four elemental purity values are even better) and post them in this thread.

2. Expand the recipes: If you are a little familiar with the xml syntax, extend the 'recipies.xml' with recipes taken from the wiki. Upload the changes into this thread and i'll update the tool.

3. Test the tool: Just click around and try to do stuff. Post bugs if you encounter them.

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 2:53 pm
by Jalpha
This looks nice, I'll throw you some data when I get around to it. If you don't have Fruit Jelly in there I'll try to make some more isinglass and craft up a few combinations, it's a little hard to come by though so I'd rather know before I start ;)

Great idea and thanks for putting in the effort to make something like this. I'll try it out a bit later.

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 3:12 pm
by Droj
I don't know if it's possible but it might be worthwhile trying to pull the data directly from the wiki and then using py2Exe for distributing the program. I already have python installed for development but I doubt the majority will and would do so.

edit: also noticed a slight typo; recipe

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 3:23 pm
by gnox24
Droj wrote:I don't know if it's possible but it might be worthwhile trying to pull the data directly from the wiki and then using py2Exe for distributing the program. I already have python installed for development but I doubt the majority will and would do so.


I just stumbled upon that while surfing the PySide documentation - i'll give it a try. As for pulling the data from the wiki, i never did something like this before. Might take a while.

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 3:35 pm
by sabinati
the wiki data is all wrong now :(

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 5:12 pm
by fox
ya, need to rework on it :idea: :arrow:

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 5:33 pm
by gnox24
I uploaded an experimental version, where i created an windows executable. If this works, none of the windows users would have to download the sources and python / pyside installer.


sabinati wrote:the wiki data is all wrong now :(


The wiki data is ok, but it's just displaying the base values for the food items.

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 5:35 pm
by Pjotr84
gnox24 wrote:I uploaded an experimental version, where i created an windows executable. If this works, none of the windows users would have to download the sources and python / pyside installer.


sabinati wrote:the wiki data is all wrong now :(


The wiki data is ok, but it's just displaying the base values for the food items.


They are displaying the pre-patch base values, as long as no updating has been done on them, and those values were higher than the current post-patch base values.

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 5:48 pm
by gnox24
Pjotr84 wrote:They are displaying the pre-patch base values, as long as no updating has been done on them, and those values were higher than the current post-patch base values.


I checked for some recipies and they were ok. But you are right, some might have been changed.

Re: Glutony Calculator

PostPosted: Thu May 16, 2013 5:57 pm
by Pjotr84
Jorb did mention in the patch thread that, when using T1 crops, food strength would be below their old level.