13

I was wondering if you could possibly duplicate items in Stardew Valley.

I want to try to make a really good farm layout, but obviously don't have all the resources for it.

26

There is, yes, though it may depend on what device you're playing the game on. The 'Stardew Valley Item ID Glitch' allows you to spawn items that you can then sell to generate resources you want. You can perform it by naming either your character or an animal you own after the game's item codes. By doing this, the item will spawn every time that name is referenced (so, whenever you talk to the animal). Also, you can find all game item codes at this website. So, for example:

  • A chicken named [72] will spawn a diamond whenever you talk to it, because diamonds are item 72 in the game code.
  • A chicken named [60][64] will spawn an emerald and a ruby when you talk to it, because 60 and 64 are those items' IDs in the game code.

In an interview with IGN, the Stardew Valley developer confirmed he finds this glitch charming and doesn't plan to patch it out, so it can be used without fear:

“I am aware of it, but I don’t think I want to fix it,” Barone said. “It's not game-breaking, it's kind of amusing, and the likelihood that someone would randomly stumble upon it is extremely low. So I feel like it's okay to leave it, and actually kind of fun.”

However, this is no longer possible on Switch as of December 2018 (version 1.3), as Nintendo mandated that that the glitch be fixed there.

  • 10
    It is patched in version 1.3 on the Switch: "Fixed item spawn codes allowed in character names. (This was required by Nintendo since it can cause crashes" link – Mathias711 Dec 11 '19 at 7:48
  • 9
    As a software dev, I'm curious on how this bug happens :o – Simon Arsenault Dec 11 '19 at 12:43
  • 11
    @SimonArsenault My guess would be, there's a database of strings for dialogue and such stored separately from the game's code, and the devs wanted a way to embed "and at this point in the dialogue, the character gives you an X" into those strings. So when the dialogue-printing function sees [X] in a string, it spawns an X instead of printing it. They just didn't realize that player-chosen NPC names would allow the player to run their own arbitrary strings through the dialogue-printer… – Draconis Dec 11 '19 at 16:47
  • 1
    (Which is probably also why it can cause crashes, if it wasn't intended for player use, so they never hardened it to deal with edge cases like "[99999]" or "[99999".) – Draconis Dec 11 '19 at 16:49
  • 2
    @Draconis that actually makes sense! – Simon Arsenault Dec 11 '19 at 17:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.