Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

Pancham138

Uploaded by

pancham138

Virus scan

Safe to use

About this mod

This mod can help players who customized their Greenhouse such as replacing their Greenhouse interior for a bigger area but their entry (warp) location not aligned with new door location. Using this mod for such case will greatly help by setting a new entry location for the new Greenhouse in a config file.

Requirements
Permissions and credits
Changelogs
Descriptions:
This mod can help players who customized their Greenhouse such as replacing their Greenhouse interior for a bigger area but their entry warp location not aligned with new door location. Using this mod for such case will greatly help by setting a new entry warp location for the new Greenhouse in a config file.

How it works?
This mod is triggered when a player warped from Farm into Greenhouse, which using tile location {X: 10, Y:23} as default entry warp location for vanilla Greenhouse. If the player is using a custom Greenhouse mod, such as from a Content Patcher's content pack mod, or a standalone mod, or even a mod that replace Greenhouse using XNB replacing method, but entry warp location changed from the default assigned tile, then the player will still be warped to default tile and that can be problematic if that tile in a weird position for the custom Greenhouse.

By using this mod, you can change the entry warp location to any tile you desired by setting them in the config.json. After that, everytime you warped into Greenhouse, you will be correctly warped to desired location that is aligned with new door location in the Greenhouse.

This mod will correctly detect if you warped to entry warp location tile in Greenhouse, which is {X: 10, Y:23} by default, then it will change your location to correct location based on configured entry warp location (see Configurations below). Unfortunately, this mod will not check if your configured entry warp location contains a tile that is not passable, so you have to set the correct location yourself and made sure that tile is passable.

You can even change which direction your farmer will face when entering the Greenhouse, but that should be unnecessary unless your Greenhouse door positioned other than bottom/south.

Configurations:
  • DisableMod = true | false (default: false). This will disable the mod obviously, without the need to remove the mod.
  • EntryX = number (default: 10). Entry point for tile X.
  • EntryY = number (default: 23). Entry point for tile Y.
  • EntryFacingDirection = Up | Down | Left | Right (default: Up). The direction the player will face when entering the Greenhouse.

SMAPI Console Commands:
/ghem reload
This will reload mod config mid-game
/ghem location <x> <y>
This will set your custom entry location to <x> <y> tile and then save it to config file. Can only be executed inside Greenhouse.
/ghem location
This will set your custom entry location to your player character location tile and then save it to config file. Can only be executed inside Greenhouse.
/ghem debug
This will show debug information about current entry location that was set, and also farmer's current location

There are more commands available, just type /ghem in the console to read available commands.
It is better to install Chat Commands mod so you can test the commands in-game directly without having to alt-tabbing to SMAPI Console window.

Requirements:
  • Stardew Valley 1.4 or later (not tested yet against Stardew Valley 1.5)
  • SMAPI 3.5.0 (not tested yet against SMAPI that compatibles with Stardew Valley 1.5)

Notes:
  • This mod is only tested for Stardew Valley 1.4.5 version, but it should work with any 1.4 version.
  • This mod is only tested for SMAPI 3.5.0. Please, test lower version yourself and then post a bug report if you found any.
  • This mod is only tested for singleplayer. You can test it for multiplayer, but I'm not guaranteeing it will work. Maybe it will works as long as both host and every farmhand installed this mod, or it will works only for any player who installed this mod.

Compatibility:
This mod is compatible with the following Greenhouse related mods out-of-the-box (as of May 23th):

You can add other mods manually to data.json by using existing format in data.json. You must set its UniqueID, MinimumVersionEntryX, and EntryY for it to work. I have not tested many Greenhouse mods other than mentioned above.

If you found any Greenhouse mods that you want this mod to support out-of-the-box, please tell me the mod details including Name, Author, UniqueID, and Version taken from its manifest.json file, and also its supposed entry location (tile X and tile Y).

Currently this mod will only detect if you warped from "Farm" location area into "Greenhouse" location area, so any other mods that can teleport you directly into Greenhouse from anywhere, this mod will not correcting your location after warped if you warped from outside the "Farm". The "Farm" here includes any location name that contains "Farm", "Barn", "Coop" and "SlimeHutch".

Other compatibiliy:
- IFR2 (based on comment post from ilsanionadil), you need to set it manually unfortunately.
- Also will works with any Greenhouse mod as long as the entry warp location unchanged.

Bug Reports:
Please, post any bug reports to Bugs page instead of Posts page. Include your smapi log file by using SMAPI log parser feature.

Credits:
Credits to Pathoschild for SMAPI and some pieces of source code I used from

Credits to Forkmaster for his Custom Greenhouse mod as base idea of this mod