Changes

Line 52: Line 52:     
==Location Data==
 
==Location Data==
[[Modding:Location data|Data/Locations]] contains additional information about the game's locations. Each farm type has its own entry, identified by <samp>Farm_</samp> followed by the unique ID of the farm type. This step is optional. If a farm layout does not have location data, the location data of the standard farm layout will be used.
+
[[Modding:Location data|Data/Locations]] contains additional information about the game's locations. Each farm type has its own entry, identified by <samp>Farm_</samp> followed by the unique ID of the farm type. '''This step is optional.''' If a farm layout does not have location data, the location data of the standard farm layout will be used.  
 +
 
 +
For custom farms, some fields should have specific values to preserve expected behavior.
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! description
 +
|-
 +
| <samp>DisplayName</samp>
 +
| This is used to display the farm name. It should contain at least the <samp>FarmName</samp> token to be sure the farm name is shown. The standard value is
 +
<samp>[LocalizedText Strings\\StringsFromCSFiles:MapPage.cs.11064 [EscapedText [FarmName]]]</samp>
 +
|-
 +
| <samp>CreateOnLoad</samp>
 +
| Must be <samp>null</samp> or absent. Any other value will create duplicate locations.
 +
|-
 +
| <samp>CanPlantHere</samp>
 +
| Should be <samp>true</samp>. If <samp>false</samp> or absent, crops can't be grown on your farm.
 +
|-
 +
|}
    
[[Category:Modding]]
 
[[Category:Modding]]