Stardew Valley

This article assumes you've read: Using MTN for your custom farm.

While creating your custom farm map, you may have the desire to restructure the entry points of your farm. The entry points of your farms, that connect to the neighboring maps to the farm such as Cindersap Forest, Bus Stop, etc, are handled by the Warp functionality within Stardew Valley. These warps are placed within the map themselves, via map properties. You can see this property by open a map in Tiled, selecting Map in the menu followed by Map Properties. Take note that each map only considers their own warp points, and not their neighbors. That means, if you relocate the entry/exit points to the neighboring maps, warping from Bus Stop to the Farm may pose a problem.

MTN mitigates this issue with the "Neighbor" JSON tag in farmType.json. When properly set, MTN will run through the neighboring maps to the Farm and adjust the warp points, allowing the map maker to relocate the entry/exit points of the farm map while having the functionality in tact (and making sure the player does not get stuck).

An example from Community Farm:
"Neighbors": [
{
"MapName": "Backwoods",
"WarpPoints": [
  {
"FromX": 13,
"FromY": 40,
"ToX": 117,
"ToY": 0
  },
  {
"FromX": 14,
"FromY": 40,
"ToX": 118,
"ToY": 0
  },
  {
"FromX": 15,
"FromY": 40,
"ToX": 119,
"ToY": 0
  }
]
},
{
"MapName": "BusStop",
"WarpPoints": [
  {
"FromX": -1,
"FromY": 22,
"ToX": 155,
"ToY": 24
  },
  {
"FromX": -1,
"FromY": 23,
"ToX": 155,
"ToY": 25
  },
  {
"FromX": -1,
"FromY": 24,
"ToX": 155,
"ToY": 26
  },
  {
"FromX": -1,
"FromY": 25,
"ToX": 155,
"ToY": 27
  }
]
}
}


The Neighbor tag is a JSON array, containing each map and another JSON array of each warp point to modify. The fields do the following:
MapName - The map to target and change the warp points.
WarpPoints - A JSON Array of the warp points within the map that you want to change.
FromX - The Warp Point placed at the X coordinates within MapName to change.
FromY - The Warp Point placed at the Y coordinates within MapName to change.
ToX - The new X coordinate the player will end up at after warping
ToY - The new Y coordinate the player will end up at after warping.

Lets take one warp point with the entry of MapName: BusStop. Consider:

"MapName": "BusStop",
"WarpPoints": [
 {
"FromX": -1,
"FromY": 22,
"ToX": 155,
"ToY": 24
 }


This informs MTN to look for the warp point, at BusStop, located at the coordinates [-1,22]. If MTN finds it, the X and Y coordinates of the farm it sends the player to, is altered to [155, 24].

Article information

Added on

Written by

Deleted54100067User

0 comments