@Lew Zealand I added a
debug command in the upcoming Stardew Valley 1.6.9 which lets you find items in the current save:
> debug whereItem "Watering Can"
Found 1 item matching name 'Watering Can':
- Farm > Shed at 50, 14 > Shed149bae63-2add-4ab6-a5aa-b3bd76372004 > Chest at 4, 4 > Watering Can ((T)CopperWateringCan)
But in the meantime, the location is encoded in the XML structure (not the fields like
initialParentTileIndex). You can
format the save file and then check which elements contain the item.
For example, that save file has:
Code:
<?xml version="1.0" encoding="utf-8"?>
<SaveGame>
...
<locations>
<GameLocation p3:type="Farm" xmlns:p3="http://www.w3.org/2001/XMLSchema-instance">
...
<name>Farm</name>
...
<buildings>
...
<Building>
<indoors p3:type="Shed">
<characters/>
<objects>
...
<item>
<key>
<Vector2>
<X>4</X>
<Y>4</Y>
</Vector2>
</key>
<value>
<Object p3:type="Chest">
...
<items>
...
<Item p3:type="WateringCan">
So reading down the structure, you have:
Code:
location (farm)
building (shed)
indoor location
chest at tile (4, 4)
Finding items by reading the save file is a bit tedious though, so the debug command in 1.6.9 will be much easier.