Glutony Calculator

Forum for game modifications and custom clients.

Glutony Calculator

Postby gnox24 » Thu May 16, 2013 12:57 pm

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 11220 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 539 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.
Last edited by gnox24 on Thu May 16, 2013 5:31 pm, edited 1 time in total.
gnox24
 
Posts: 30
Joined: Mon Mar 25, 2013 5:29 pm

Re: Glutony Calculator

Postby Jalpha » Thu May 16, 2013 2:53 pm

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.
Professor Gu Zhongmao wrote:These projects are beautiful to scientists, but nightmarish to engineers
User avatar
Jalpha
 
Posts: 1044
Joined: Mon Oct 01, 2012 5:04 am

Re: Glutony Calculator

Postby Droj » Thu May 16, 2013 3:12 pm

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
Last edited by Droj on Thu May 16, 2013 3:26 pm, edited 2 times in total.
***** the Treaty!
loftar wrote:I not like, you not get
User avatar
Droj
 
Posts: 1192
Joined: Wed Aug 01, 2012 1:23 am
Location: England

Re: Glutony Calculator

Postby gnox24 » Thu May 16, 2013 3:23 pm

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.
gnox24
 
Posts: 30
Joined: Mon Mar 25, 2013 5:29 pm

Re: Glutony Calculator

Postby sabinati » Thu May 16, 2013 3:35 pm

the wiki data is all wrong now :(
Admin for Salem Wiki • Make suggestions or complaints in the Wiki Suggestion thread
User avatar
sabinati
 
Posts: 1135
Joined: Wed Aug 01, 2012 1:48 am

Re: Glutony Calculator

Postby fox » Thu May 16, 2013 5:12 pm

ya, need to rework on it :idea: :arrow:
Image
Image Unaussprechlichen Kulten
Image De Furtivis Literarum Notis by Giovanni Battista della Porta
fox
 
Posts: 345
Joined: Wed Aug 01, 2012 1:20 am

Re: Glutony Calculator

Postby gnox24 » Thu May 16, 2013 5:33 pm

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.
gnox24
 
Posts: 30
Joined: Mon Mar 25, 2013 5:29 pm

Re: Glutony Calculator

Postby Pjotr84 » Thu May 16, 2013 5:35 pm

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.
Mushibag wrote: Pjotr confirmed racist.


RIP Gemini
User avatar
Pjotr84
 
Posts: 505
Joined: Sat Aug 25, 2012 12:09 am
Location: The Netherlands

Re: Glutony Calculator

Postby gnox24 » Thu May 16, 2013 5:48 pm

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.
gnox24
 
Posts: 30
Joined: Mon Mar 25, 2013 5:29 pm

Re: Glutony Calculator

Postby Pjotr84 » Thu May 16, 2013 5:57 pm

Jorb did mention in the patch thread that, when using T1 crops, food strength would be below their old level.
Mushibag wrote: Pjotr confirmed racist.


RIP Gemini
User avatar
Pjotr84
 
Posts: 505
Joined: Sat Aug 25, 2012 12:09 am
Location: The Netherlands

Next

Return to Artifice & Arcana

Who is online

Users browsing this forum: No registered users and 43 guests