Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

6135

Uploaded by

6135

Virus scan

Safe to use

Tags for this mod

About this mod

This is a simple profit calculator that calculates the profit of a crop (including modded crops based on the cost of buying the seed, selling price and the number of units sold and their quality.

Requirements
Permissions and credits
Translations
  • Mandarin
Mirrors
Changelogs
Donations
Profit Calculator


This is a simple profit calculator that calculates the profit of a product based on the cost of buying the seed, selling price and the number of units sold and their quality. Provides the ability to select whether the user wants to buy seeds or fertilizer and the quality of said fertilizer. The user can select the day of the season and the season itself. Works for Modded crops but might have a slight seed price error. For more accuracy, disable the seed buying option or add the seed price manually.
Installation

  • Install SMAPI
  • Install Generic Mod Config Menu. Optional but recommended to allow for more customization of settings.
  • Drag and drop the contents of the provided .zip files into the mods folder in the StardewValley game folder, or install using nexus.
  • Run the game using SMAPI.
  • Press "F8" to open the calculator. This can be changed in the config file or in the Generic Config Menu.


Configuration

The config file is located in "Stardew Valley/Mods/ProfitCalculator/config.json". It allows you to change the keybind to open the calculator and the time for the tooltip to appear.


Seed Price Override



The mod will automatically calculate the seed price based on the crop's base price and the season. However, if you want to override the seed price, you can do so by adding a "price" to the "SeedPrices.json" file in the "assets" folder. The "price" field should be a number. For example, if you want to override the seed price for the potato crop, you would add the following to the "SeedPrices.json" file:

{
//"SeedID": "price"
"475": 50,
//or for dga crops
"ppja.fruitsandveggies.DGA/Adzuki Bean Seeds": 50
...
}


Manual Crops


If you want to add a crop that is not in the game, you can do so by adding a "crop" to the "ManualCrops.json" file in the "assets" folder. The "crop" field should be an object with the following fields (this example is for the tea bush crop):

{
"215": [ // Id of the seed
"Tea Leaves", // Name of the crop.
"815", // Harvest ID (Id of item that drops).
"20", // Growth time. Time it takes to grow.
"1", // Regrowth time. Time it takes to regrow.
"spring summer fall", // Seasons the crop grows in.
"50", // Sale price of the crop.
"1500", // Seed price of the crop.
"1", // Min harvest. Minimum number of items that drop.
"1", // Max harvest. Maximum number of items that drop.
"0", // Max harvest increase per farming level. The Number of items the maximum limit increases by per farming level.
"0.0", // Extra chance. Extra chance of getting an extra item.
"false", // Affects quality. Whether the crop is affected by the quality (gold, Silver, Iridium).
"false", // Affects Fertilizer. Whether the crop is affected by fertilizer.
"false", // Raised crop. Whether the crop is raised (trellis).
"true", // Whether the crop is a bush.
"false", // Paddy crop. Whether the crop is a paddy crop. (grows in water like rice)
"false"  // Giant crop. Whether the crop can grow into a giant crop.
]
}


Know Issues


  • The mod does not take into account the farming level buffs. This is because I don't know how to get the farming level buffs. If anyone knows how to get them, please let me know.
  • The mod does not take into account the luck based chances of getting extra items.
  • Some modded crops might have a seed price error. This is because the mod uses the "SalePrice()"function to get the seed price but it seems that some modded crops don't return the correct seed price with this function, more specifically, DGA crops. If anyone Knows how to get these for DGA crops, please let me know. For now, you can add the seed price manually as described in section Seed Price Override.
  • Some extra large text may be too small to read. This is because the mod lowers the size of huge text to make it fit in the crop box. If you notice this, please let me know which crop it is and from which mod it is from so I can figure out a proper fix.
  • When changing the scale of the game, the main options menu will be scaled but the options will be in the original positions, to fix this you need to close and reopen the options menu.


TODO:


  • ☑ Add support for Vanilla crops.
  • ☑ Take Fertilizer into account.
  • ☑ Take Quality into account.
  • ☑ Add support for JA crops.
  • ☑ Add support for DGA crops.
  • ☐ Add proper scaling support for options menu.
  • ☐ Obtain Seed prices from stores and from DGA to get more accurate seed prices.
  • ☐ Add support to multi-drop crops.
  • ☐ Add support for fruit trees.
  • ☐ Add options to disable cross season crops.
  • ☐ Automatically get accurate price for modded crop seeds. Currently it uses the base price it finds and not the actual shop price.
  • ☐ Add Support for different types of output. (i.e. Jelly, Wine, Juice, etc.)
  • ☐ Possibly add easier ways to add manual crops and seed prices maybe through a config menu or command.
  • ☐ Take into account farming level buffs.
  • ☐ Make API to allow other mods to add crops or Providers.

See also