LordAshes-MirrorMiniPlugin icon

MirrorMiniPlugin

Allows a specifc texture of the mini to be swapped. For mirrors, portals and open doors.

Last updated 2 years ago
Total downloads 935
Total rating 0 
Categories Assets
Dependency string LordAshes-MirrorMiniPlugin-1.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

LordAshes-CustomMiniPlugin-1.6.1 icon
LordAshes-CustomMiniPlugin

Adds support for an unlimited number of custom minis to TaleSpire. Place OBJ/MTL contents in TaleSpire_CustomData/Minis/{ContentName}

Preferred version: 1.6.1
bbepisTaleSpire-BepInExPack-5.4.10 icon
bbepisTaleSpire-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.10
brcoding-SetInjectionFlagPlugin-2.3.0 icon
brcoding-SetInjectionFlagPlugin

Allows players to flag mods are installed

Preferred version: 2.3.0

README

Mirror Mini Plugin

This unofficial TaleSpire plugin which allows a specific texture of a mini to be swapped out. This is great for mirrors, portals, windows, and doors. Comes with a sample Mirror mini. Now supports making the replaced texture transparent to make the surface disappear. Great for door and portals.

Install

Use R2ModMan to install the plugin.

In the plugin ZIP file you will find a TaleSpire_CustomData directory. Copy that folder into your TaleSpire game directory. Merge with other contents if the folder already exists. Place additional mirror conetent under TaleSpire_CustomData/Minis/Mirror{Number}

Images for the mirror use the left half for one side of the mirror and the right half for the other side of the mirror.

Follow the rules for the Custom Mini Plugin

Usage

Once a board has loaded there are two triggering shortcuts.

The first sets the style and is activated by CTRL+N (Style Number) by default. In the dialog keep the Mirror prefix and then enter teh desired style number to select the desire style. Please note that the style number has to correspond to an existing Mirror{StyleNumber} content.

The second activates the mirror effect. In the dialog enter the name of an image in the TaleSpire_CustomData\Images folder. Exclude the extension. The mirror will update to reflect the selected content on its surface.

Mirror using the default Style Mirror01 is included with the plugin as well as a few sample images. Follow the above instructions to "install" it. You can test the plugin by CTRL+M and then entering one of the following:

Warlock DoorClosed DoorOpen Empty

If the name of the image does not correspond to a local image file in the TaleSpire_CustomData\Images folder, the surface will be made transparent instead.

Adding Custom Minis

In order for the Mirror Plugin to be able to swap a surface texture in your custom mini, one of the textures used by the mini needs to match the content name. Other textures will not be affected. For example:

# Blender MTL File: 'None'
# Material Count: 2

newmtl Base
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Mirror01Base.bmp

newmtl Plane
Ns 225.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2
map_Kd Mirror01.BMP

In the above example, the mirror has two textures, one for the base (Mirror01Base.bmp) and one for the surface plane (Mirror01.BMP). Since the surface plane texture matches the content name (i.e. Mirror01) it is the texture that will be replace. Since the base texture does not match the content name (has the extra "base" in the name), that texture will remain as is.

Credit

Thanks to CariTheKitty for suggesting this plugin, providing the initial Mirror mini asset (which has been replace in this version), and for coming up with the design of the Mirror mini (which is still referenced in the replaced mini).