0 of 0

File information

Last updated

Original upload

Created by

6135

Uploaded by

6135

Virus scan

Some manually verified files

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.

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 shop stock. 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
}


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": {
    "Name": "Tea Leaves", // Name
    "HarvestID": 815, // Harvest ID (Id of item that drops)
    "GrowthTime": 20, //growth time
    "RegrowthTime": 1, //regrowth time
    "Seasons": "spring summer fall", //seasons
    "SalePrice": 50, //sale price
    "PurchasePrice": 1500, //purchase price
    "MinimumHarvests": 1, //min harvest
    "MaximumHarvests": 1, //max harvest
    "MaxHarvestsIncreasePerFarmingLevel": 0, //max harvest increase per farming level
    "ExtraHarvestChance": 0.0, //chance for extra harvest
    "HasQuality": false, //affected by quality
    "AcceptsFertilizer": false, //affected by fertilizer
    "IsRaisedCrop": false, //raised crop
    "IsBushCrop": true, //bush crop
    "IsPaddyCrop": false, //paddy crop
    "IsGiantCrop": false //giant crop
  }
}


Know Issues



  • The mod does not take into account the luck based chances of getting extra items.
  • 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 proper scaling support for options menu.
  • ☑ Obtain Seed prices from stores
  • ☑ Add support to multi-drop crops.
  • ☑ Add support for fruit trees.
  • ☐ Add options to disable cross season crops.
  • ☐ 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.

See also