Difference between revisions of "Modding:Location data"
AlSweigart (talk | contribs) (Listing the names and classes for all GameLocation objects in vanilla SDV.) |
Margotbean (talk | contribs) (→GameLocation Names: formatting & direct links) |
||
Line 68: | Line 68: | ||
<samp>[[Modding:Modder_Guide/Game_Fundamentals#GameLocation_et_al|GameLocation]]</samp> objects represent an area that the player can move around in, such as the Farm, Beach, or Saloon. They all have names as strings. Some are represented by subclasses of <samp>GameLocation</samp>. The following table lists several <samp>GameLocation</samp> objects in vanilla Stardew Valley: | <samp>[[Modding:Modder_Guide/Game_Fundamentals#GameLocation_et_al|GameLocation]]</samp> objects represent an area that the player can move around in, such as the Farm, Beach, or Saloon. They all have names as strings. Some are represented by subclasses of <samp>GameLocation</samp>. The following table lists several <samp>GameLocation</samp> objects in vanilla Stardew Valley: | ||
− | {| class="wikitable" | + | {| class="wikitable sortable" |
|- | |- | ||
− | ! Name | + | ! style="position: sticky; top: 0;"|Name |
− | ! Class | + | ! style="position: sticky; top: 0;"|Class |
− | ! Description | + | ! style="position: sticky; top: 0;"|Description |
|- | |- | ||
| <samp>Farm</samp> | | <samp>Farm</samp> | ||
Line 112: | Line 112: | ||
| <samp>SeedShop</samp> | | <samp>SeedShop</samp> | ||
| <samp>StardewValley.Locations.SeedShop</samp> | | <samp>StardewValley.Locations.SeedShop</samp> | ||
− | | [[Pierre]]'s [[Pierre' | + | | [[Pierre]]'s [[Pierre's General Store|general store]] (also [[Caroline]]/[[Abigail]]'s house and church) |
|- | |- | ||
| <samp>Saloon</samp> | | <samp>Saloon</samp> | ||
| <samp>StardewValley.GameLocation</samp> | | <samp>StardewValley.GameLocation</samp> | ||
− | | | + | | [[The Stardrop Saloon]] (and [[Gus]]'s house) |
|- | |- | ||
| <samp>Trailer</samp> | | <samp>Trailer</samp> | ||
| <samp>StardewValley.GameLocation</samp> | | <samp>StardewValley.GameLocation</samp> | ||
− | | [[Pam]]/[[Penny]]'s trailer. | + | | [[Pam]]/[[Penny]]'s [[trailer]]. |
|- | |- | ||
| <samp>Hospital</samp> | | <samp>Hospital</samp> |
Revision as of 03:55, 26 March 2022
Data/Locations controls many things about locations.
Here is an example location:
"Beach": "372 .9 718 .1 719 .3 723 .3/372 .9 394 .5 718 .1 719 .3 723 .3/372 .9 718 .1 719 .3 723 .3/372 .4 392 .8 718 .05 719 .2 723 .2/129 -1 131 -1 147 -1 148 -1 152 -1 708 -1 267 -1/128 -1 130 -1 146 -1 149 -1 150 -1 152 -1 155 -1 708 -1 701 -1 267 -1/129 -1 131 -1 148 -1 150 -1 152 -1 154 -1 155 -1 705 -1 701 -1/708 -1 130 -1 131 -1 146 -1 147 -1 150 -1 151 -1 152 -1 154 -1 705 -1/384 .08 589 .09 102 .15 390 .25 330 1",
Breaking it down:
Index | Entry | Explanation |
---|---|---|
0 | "372 .9 718 .1 719 .3 723 .3" | Spring forage. Item ID chance. No particular order required. |
1 | "372 .9 394 .5 718 .1 719 .3 723 .3" | Summer forage. As above. |
2 | "372 .9 718 .1 719 .3 723 .3" | Fall forage. As above. |
3 | "372 .4 392 .8 718 .05 719 .2 723 .2" | Winter forage. As above. |
4 | "129 -1 131 -1 147 -1 148 -1 152 -1 708 -1 267 -1" | Fish data for spring. Fish is ID zoneNumber ID zoneNumber. Some locations have multiple fishing locations. To seperate fish, the zoneNumber is used. It starts at -1, and some locations have 0, or even 1, to indicate the zone. For more information, see Modding:Fish_data |
5 | "128 -1 130 -1 146 -1 149 -1 150 -1 152 -1 155 -1 708 -1 701 -1 267 -1" | Fish data for summer |
6 | "129 -1 131 -1 148 -1 150 -1 152 -1 154 -1 155 -1 705 -1 701 -1" | Fish data for autumn |
7 | "708 -1 130 -1 131 -1 146 -1 147 -1 150 -1 151 -1 152 -1 154 -1 705 -1" | Fish data for winter |
8 | "384 .08 589 .09 102 .15 390 .25 330 1" | Artifact data. (Article data TBA): Artifacts should be added in increasing likelihood, and in format: ID chance ID chance, with chance being addressed in 0 to 1. |
Note that not all fields are required: If you have no fish, you can just put -1 for the relevant fields, and if you have no forage, you can just put -1 for the relevant fields.
Examples are:
"Farm": "-1/-1/-1/-1/-1/-1/-1/-1/382 .05 770 .1 390 .25 330 1",
This has no forage or fishing data (handled programmatically) so it's just -1.
In order to have artifacts work, custom locations need to add their data to this file, which can be done with mods such as Content Patcher.
GameLocation Names
GameLocation objects represent an area that the player can move around in, such as the Farm, Beach, or Saloon. They all have names as strings. Some are represented by subclasses of GameLocation. The following table lists several GameLocation objects in vanilla Stardew Valley:
Name | Class | Description |
---|---|---|
Farm | StardewValley.Farm | The outdoor area of the Pelican Town farm. |
FarmHouse | StardewValley.Locations.FarmHouse | The interior of the farm house. |
FarmCave | StardewValley.Locations.FarmCave | The bats/mushroom cave on the farm. |
Town | StardewValley.Locations.Town | The outdoor area of Pelican Town. |
JoshHouse | StardewValley.GameLocation | Alex/George/Evelyn's house. (Josh was the old name for the Alex character.) |
HaleyHouse | StardewValley.GameLocation | Haley/Emily's house. |
SamHouse | StardewValley.GameLocation | Sam/Jodi/Kent/Vincent's house. |
Blacksmith | StardewValley.GameLocation | Clint's blacksmith shop. |
ManorHouse | StardewValley.Locations.ManorHouse | Mayor Lewis's house. |
SeedShop | StardewValley.Locations.SeedShop | Pierre's general store (also Caroline/Abigail's house and church) |
Saloon | StardewValley.GameLocation | The Stardrop Saloon (and Gus's house) |
Trailer | StardewValley.GameLocation | Pam/Penny's trailer. |
Hospital | StardewValley.GameLocation | |
HarveyRoom | StardewValley.GameLocation | |
Beach | StardewValley.Locations.Beach | |
ElliottHouse | StardewValley.GameLocation | |
Mountain | StardewValley.Locations.Mountain | |
ScienceHouse | StardewValley.GameLocation | |
SebastianRoom | StardewValley.GameLocation | |
Tent | StardewValley.GameLocation | |
Forest | StardewValley.Locations.Forest | |
WizardHouse | StardewValley.Locations.WizardHouse | |
AnimalShop | StardewValley.GameLocation | |
LeahHouse | StardewValley.GameLocation | |
BusStop | StardewValley.Locations.BusStop | |
Mine | StardewValley.Locations.Mine | |
Sewer | StardewValley.Locations.Sewer | |
BugLand | StardewValley.Locations.BugLand | |
Desert | StardewValley.Locations.Desert | |
Club | StardewValley.Locations.Club | |
SandyHouse | StardewValley.GameLocation | |
ArchaeologyHouse | StardewValley.Locations.LibraryMuseum | |
WizardHouseBasement | StardewValley.GameLocation | |
AdventureGuild | StardewValley.Locations.AdventureGuild | |
Woods | StardewValley.Locations.Woods | |
Railroad | StardewValley.Locations.Railroad | |
WitchSwamp | StardewValley.GameLocation | |
WitchHut | StardewValley.GameLocation | |
WitchWarpCave | StardewValley.GameLocation | |
Summit | StardewValley.Locations.Summit | |
FishShop | StardewValley.Locations.FishShop | |
BathHouse_Entry | StardewValley.GameLocation | |
BathHouse_MensLocker | StardewValley.GameLocation | |
BathHouse_WomensLocker | StardewValley.GameLocation | |
BathHouse_Pool | StardewValley.Locations.BathHousePool | |
CommunityCenter | StardewValley.Locations.CommunityCenter | |
JojaMart | StardewValley.Locations.JojaMart | |
Greenhouse | StardewValley.GameLocation | |
SkullCave | StardewValley.GameLocation | |
Backwoods | StardewValley.GameLocation | |
Tunnel | StardewValley.GameLocation | |
Trailer_Big | StardewValley.GameLocation | |
Cellar | StardewValley.Locations.Cellar | |
Cellar2 | StardewValley.Locations.Cellar | |
Cellar3 | StardewValley.Locations.Cellar | |
Cellar4 | StardewValley.Locations.Cellar | |
BeachNightMarket | StardewValley.Locations.BeachNightMarket | |
MermaidHouse | StardewValley.Locations.MermaidHouse | |
Submarine | StardewValley.Locations.Submarine | |
AbandonedJojaMart | StardewValley.Locations.AbandonedJojaMart | |
MovieTheater | StardewValley.Locations.MovieTheater | |
Sunroom | StardewValley.GameLocation | |
BoatTunnel | StardewValley.Locations.BoatTunnel | |
IslandSouth | StardewValley.Locations.IslandSouth | |
IslandSouthEast | StardewValley.Locations.IslandSouthEast | |
IslandSouthEastCave | StardewValley.Locations.IslandSouthEastCave | |
IslandEast | StardewValley.Locations.IslandEast | |
IslandWest | StardewValley.Locations.IslandWest | |
IslandNorth | StardewValley.Locations.IslandNorth | |
IslandHut | StardewValley.Locations.IslandHut | |
IslandWestCave1 | StardewValley.Locations.IslandWestCave1 | |
IslandNorthCave1 | StardewValley.Locations.IslandLocation | |
IslandFieldOffice | StardewValley.Locations.IslandFieldOffice | |
IslandFarmHouse | StardewValley.Locations.IslandFarmHouse | |
CaptainRoom | StardewValley.Locations.IslandLocation | |
IslandShrine | StardewValley.Locations.IslandShrine | |
IslandFarmCave | StardewValley.Locations.IslandFarmCave | |
Caldera | StardewValley.Locations.Caldera | |
LeoTreeHouse | StardewValley.GameLocation | |
QiNutRoom | StardewValley.Locations.IslandLocation |