0 of 0

File information

Last updated

Original upload

Created by

Prism 99-aedenthorn

Uploaded by

klatuprism

Virus scan

Safe to use

About this mod

Lets you turn in-game snapshots into framed pictures to hang on your walls.

Requirements
Permissions and credits
Updated Custom Picture Frame  by aedenthorn to be 1.6 compatible.  Now multilingual capable.

Permissions Disclaimer:
Aedenthorn has retired from SDV modding and has removed all restrictions on permissions concerning their mods.
This announcement can be found here in the Stardew Valley Modding Discord server.

Aedenthorn's Stardew Valley Mod repo uses the GPL-3 license which allows derivative works to be allowed without
requiring permission, given that they remain free, open source, and also use the same GPL-3 license.

Original Description
This mod is a framework for creating picture frame furniture that can display custom-made snap-shots created using an in-game interface.

This mod does not contain any frames, you will need to install at least one custom frames content pack, e.g.:


For information on creating your own frames, see below.


Taking Snapshots

Once you have installed some frames, you can take a snapshot to use in a specific frame by pressing the interface hotkey (default: F10). 

This will cause a frame to be shown next to the mouse cursor. To choose a different frame, press the frame switch key (default: F11).

Move the cursor so the frame outlines the subject and press the snapshot key (default: F12).

Press Esc or the interface hotkey to cancel taking a snapshot.

Note: Changing the game zoom lets you take zoomed in or out photos.


Assigning Snapshots

To assign a snapshot to a frame of the same type used to take the
snapshot, hover over the frame in-game and press the change picture
hotkey (default: F11).

You can take multiple snapshots for a given frame size and switch through them all for an
individual placed frame using the change picture hotkey.

Snapshots are specific to each save game.


Deleting Snapshots

If you hover over a frame with a snapshot currently set and press the delete hotkey (default: Delete), it will delete the snapshot file from the disk.


Creating Frames

You need a Content Patcher pack to tell this mod about your frames. The Content Patcher syntax is as follows, e.g.:

{
  "Format": "2.3.0",
  "Changes": [ //add the frame to the custom picture framelist
    {
      "Action": "EditData",
      "Target": "custom_picture_frame_dictionary",
      "Entries": {
        "MyFrame16x32": "MyPictureFrames/MyFrame16x32"
      }
    }, //add the frame texture
    {
      "Action": "Load",
      "Target": "MyPictureFrames/MyFrame16x32",
      "FromFile": "assets/MyFrame16x32.png"
    }, // add furniture entry
    {
      "Action": "EditData",
      "Target": "Data/Furniture",
      "Entries": {
        "MyFrame16x32": "MyFrame16x32/painting/Width Height/Width Height/1/Price/0/My Frame (16x32)/0/MyPictureFrames\\MyFrame16x32"
      }
    },
    // add shop entry
    {
      "Action": "EditData",
      "Target": "Data/Shops",
      "TargetField": [ "Carpenter", "Items" ],
      "Entries": {
        "MyFrame16x32": {
          "Id": "MyFrame16x32",
          "ItemId": "MyFrame16x32",
          "Price": Price,
          "IgnoreShopPriceModifiers": true
        }
      }
    }
  ]
}


Replace the 'Price' entries in the Furniture and Shop sections with the numeric cost of your frame.  Replace the 'Height' and 'Width' entry in the Furniture section with the Tile height and width values of your frame.

The mod attempts to find and map transparent enclosed pixels to show the snapshot. All pixels within the frame texture that

a) are completely transparent, and
b) are a part of a group of enclosed transparent pixels

will be used to show the snapshot. If you have enclosed transparent parts that you don't want to be used to show the snapshot, you can set those pixels to any color with 1% opacity.


You can edit all the config variables using Generic Mod Config Menu, or editing the config.json file.

Source Code: GitHub