Talk:Catalogue

From Stardew Valley Wiki
Jump to: navigation, search
This talk page is for discussing Catalogue.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

Exploit

Fascinating find!

When the game creates the catalog in Utility.cs, it creates a list of all wallpaper and floors based on the sprite sheet. The constructor in Wallpaper.cs gives each wallpaper and floor a (supposedly) unique index value. This is done in a loop, with the counter starting at 0 for the top left wallpaper/floor and increasing by 1 for each floor/wallpaper found, up to the bottom right of the sprite sheet. Since there are 112 wallpapers and 40 floors, the index values run from 0 to 111 for wallpaper and 0 to 39 for floors.

Correlating that with the object numbers in ObjectInformation.xnb, all collisions would theoretically be:
16: Wild Horseradish, 18: Daffodil, 20: Leek, 22: Dandelion, 24: Parsnip, 60: Emerald, 62: Aquamarine, 64: Ruby, 66: Amethyst, 68: Topaz, 70: Jade. 72: Diamond. 74: Prismatic Shard, 78: Cave Carrot, 80: Quartz, 82: Fire Quartz, 84: Frozen Tear, 86: Earth Crystal, 88: Coconut, 90: Cactus Fruit, 92: Sap, 93: Torch, 96: Dwarf Scroll I, 97: Dwarf Scroll II, 98: Dwarf Scroll III, 99: Dwarf Scroll IV, 100: Chipped Amphora, 101: Arrowhead, 103: Ancient Doll, 104: Elvish Jewelry, 105: Chewing Stick, 106: Ornamental Fan, 107: Dinosaur Egg, 108: Rare Disc, 109: Ancient Sword, 110: Rusty Spoon, 111: Rusty Spur

I don't think this exploit would work with wallpaper/floors purchased from Pierre, since they don't use the constructor in Wallpaper.cs ... but I could be wrong. Feel free to test. :D Margotbean (talk) 23:01, 27 December 2016 (UTC)

Tested the wallpaper purchased from Pierre to get galaxy sword, worked as of 12/9/17 H Nizzle (talk) 03:51, 10 December 2017 (UTC)

Update: This exploit applies to more than just gifting. I was able to craft a Marble Brazier with Wallpaper #62 (green wood) instead of an Aquamarine.
Just for funsies, I then gifted the Marble Brazier (Item number 151 from BigCraftables.xnb) to Pam (who hates Squid -- Item number 151 from ObjectInformation.xnb) and she hated it. Awesome!! Margotbean (talk) 01:04, 28 December 2016 (UTC)

I tried to turn in a wallpaper to the museum to see if this was affacted too. Gunther can tell the difference. --Vg-tal (talk) 18:21, 31 December 2016 (UTC)