第二种是你的农场没有建造任何建筑,可在存档文件中添加牛棚模块的语句
<Building xsi:type="Barn">
<indoors xsi:type="AnimalHouse">
<characters />
<objects>
<item>
<key>
<Vector2>
<X>6</X>
<Y>3</Y>
</Vector2>
</key>
<value>
<Object>
<specialVariable>0</specialVariable>
<category>-9</category>
<specialItem>false</specialItem>
<hasBeenInInventory>false</hasBeenInInventory>
<Name>Feed Hopper</Name>
<Stack>1</Stack>
<tileLocation>
<X>6</X>
<Y>3</Y>
</tileLocation>
<parentSheetIndex>99</parentSheetIndex>
<owner>0</owner>
<name>Feed Hopper</name>
<type>Crafting</type>
<canBeSetDown>true</canBeSetDown>
<canBeGrabbed>true</canBeGrabbed>
<isHoedirt>false</isHoedirt>
<isSpawnedObject>false</isSpawnedObject>
<questItem>false</questItem>
<isOn>true</isOn>
<fragility>2</fragility>
<price>0</price>
<edibility>-300</edibility>
<stack>1</stack>
<quality>0</quality>
<bigCraftable>true</bigCraftable>
<setOutdoors>true</setOutdoors>
<setIndoors>false</setIndoors>
<readyForHarvest>false</readyForHarvest>
<showNextIndex>false</showNextIndex>
<flipped>false</flipped>
<hasBeenPickedUpByFarmer>false</hasBeenPickedUpByFarmer>
<isRecipe>false</isRecipe>
<isLamp>false</isLamp>
<minutesUntilReady>0</minutesUntilReady>
<boundingBox>
<X>384</X>
<Y>192</Y>
<Width>64</Width>
<Height>64</Height>
<Location>
<X>384</X>
<Y>192</Y>
</Location>
</boundingBox>
<scale>
<X>0</X>
<Y>5</Y>
</scale>
</Object>
</value>
</item>
</objects>
<terrainFeatures />
<debris />
@ <name>Barn</name>
<waterColor>
@ <R>84</R>
@ <G>84</G>
@ <B>84</B>
@ <A>84</A>
@ <PackedValue>1414812756</PackedValue>
</waterColor>
<isFarm>true</isFarm>
<isOutdoors>false</isOutdoors>
<isStructure>true</isStructure>
<ignoreDebrisWeather>false</ignoreDebrisWeather>
<ignoreOutdoorLighting>false</ignoreOutdoorLighting>
<ignoreLights>false</ignoreLights>
<numberOfSpawnedObjectsOnMap>0</numberOfSpawnedObjectsOnMap>
<animals />
@ <animalLimit>4</animalLimit>
<animalsThatLiveHere />
<incubatingEgg>
<X>0</X>
<Y>0</Y>
</incubatingEgg>
</indoors>
<texture>
<Name />
</texture>
* <tileX>21</tileX>
* <tileY>22</tileY>
<tilesWide>7</tilesWide>
<tilesHigh>4</tilesHigh>
<maxOccupants>4</maxOccupants>
<currentOccupants>0</currentOccupants>
<daysOfConstructionLeft>0</daysOfConstructionLeft>
<daysUntilUpgrade>0</daysUntilUpgrade>
<buildingType>Barn</buildingType>
* <nameOfIndoors>Barn32028</nameOfIndoors>
<baseNameOfIndoors>Barn</baseNameOfIndoors>
@ <nameOfIndoorsWithoutUnique>Barn</nameOfIndoorsWithoutUnique>
<humanDoor>
<X>1</X>
<Y>3</Y>
</humanDoor>
<animalDoor>
<X>3</X>
<Y>3</Y>
</animalDoor>
<color>
<R>255</R>
<G>255</G>
<B>255</B>
<A>255</A>
<PackedValue>4294967295</PackedValue>
</color>
<animalDoorOpen>false</animalDoorOpen>
<owner>-6666666</owner>
</Building>