Thoriana-PaintingReplacer icon

PaintingReplacer

Swaps out paintings with custom image files

Last updated 2 weeks ago
Total downloads 302
Total rating 1 
Categories Mods
Dependency string Thoriana-PaintingReplacer-0.0.2
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

Painting Replacer

This is a simple painting replacement mod for R.E.P.O that loads the image data after the level has loaded, rather than pre-loading the images during startup.

This mod is inspired by UnderratedJunk.CustomPaintings

https://github.com/LittleHund/CustomPaintingsMod

https://thunderstore.io/c/repo/p/UnderratedJunk/CustomPaintings/

Some code for the default map painting references and specific aspect ratios for image material targets was taken from this mod.

During initial game load, the image dimensions are taken from reading the header of the file, rather than using Unity's Texture2D. This makes initialisation much faster at the expense of image compatibility.

Multiplayer

Images are selected based on:

  • Position of the painting
  • Target Material Name
  • AspectRatioType (Landscape, Portrait, Square)

This means that in multiplayer, all clients should pick the same images as long as the same image list is present on all clients.

Custom Map Compatibility

Custom maps can choose to provide their own ".paintings.json" file in a "PaintingsConfig" directory.

This file simply contains the material name and which aspect ratio to use:

For example, this mod includes a config file for the ApexBanking level by Nikki:

{
    "PaintingTime": 2,
    "PaintingHiccubz": 2,
    "PaintingMystorra": 1,
    "PaintingMoney": 2,
    "PaintingInsym": 2
}

Landscape = 0, Portrait = 1, Square = 2