This framework lets modders create wide and hi-res wallpaper using Content Patcher.
Wallpaper should first be added to the catalogue using
the game's built-in custom wallpaper system.
To implement this mod, create a Content Patcher patch targeting this mod's dictionary, e.g.:
{
<br /> "Action": "EditData",
<br /> "Target": "aedenthorn.CustomWallpaperFramework/dictionary",
<br /> "Entries": {
<br /> "aedenthorn.CustomWallpaperWide": {
<br /> "id": "aedenthorn.CustomWallpaperWide",
<br /> "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper",
<br /> "width": 12
<br /> },
<br /> "aedenthorn.CustomWallpaperWide2": {
<br /> "id": "aedenthorn.CustomWallpaperWide2",
<br /> "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper2",
<br /> "width": 2
<br /> },
<br /> "aedenthorn.CustomWallpaperWide3": {
<br /> "id": "aedenthorn.CustomWallpaperWide3",
<br /> "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper3",
<br /> "width": 8
<br /> },
<br /> "aedenthorn.CustomWallpaperWide4": {
<br /> "id": "aedenthorn.CustomWallpaperWide4",
<br /> "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper4",
<br /> "width": 5,
<br /> "scale":2
<br /> },
<br /> "aedenthorn.CustomWallpaperWide5": {
<br /> "id": "aedenthorn.CustomWallpaperWide5",
<br /> "texturePath": "aedenthorn.CustomWallpaperWide/Wallpaper5",
<br /> "width": 6,
<br /> "scale":1
<br /> }
<br /> }
<br />}
<br />
id must refer to the id of your wallpaper added using the game's custom wallpaper system.
width refers to the number of tiles wide the wallpaper is. Wallpaper is always 3 tiles high.
scale is the size multiplier used when displaying the wallpaper, so a scale of 4 means your wallpaper will be scaled up 4x (this is the default). If you want higher-resolution wallpaper, you can set the scale to 2 or 1. Your texture file size must reflect this, so if your scale is 4, the texture must be 48 pixels tall (3 * 64 / 4), etc.
texturePath must be a path in the game's Content folder (usually a fake path using Content Patcher to load an actual png file).
An example pack is
here.
Technical
Requires
SMAPI, uses Harmony.
Compatible with
Mod Updater for automatic updates.
Code is at
https://github.com/aedenthorn/StardewValleyMods.
If you want to complain or ask for help or help me test my mods, you can visit
my Discord server.
A list of all my mods for Stardew Valley is available at
https://www.nexusmods.com/stardewvalley/articles/895.