HolloFox_TS-Extra_Assets_Library icon

Extra Assets Library

Extra Assets Library is a new tool to allow the injection of new assets into your game.

Last updated 6 months ago
Total downloads 9630
Total rating 2 
Categories Networked Tools Integration Assets Minis
Dependency string HolloFox_TS-Extra_Assets_Library-1.3.4
Dependants 3 other mods depend on this mod

This mod requires the following mods to function

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
HolloFox_TS-AssetToolTipPlugin-1.0.2 icon
HolloFox_TS-AssetToolTipPlugin

See name of assets you are using within asset browser

Preferred version: 1.0.2
LordAshes-FileAccessPlugin-1.3.1 icon
LordAshes-FileAccessPlugin

Provides standardized methods for accessing both local file and url resources. Automatically handles searching local folders for assets.

Preferred version: 1.3.1

README

Extra Assets Library

The Extra Assets Library is a plugin to register custom assets into TaleSpire.

Installing With R2ModMan

This package is designed specifically for R2ModMan and Talespire. You can install them via clicking on "Install with Mod Manager" or using the r2modman directly.

Installing Without R2ModMan (WIP)

You can still manually install this with the downloaded DLLs. Upon doing so, you'll need to configure the plugin manual by updating the config file.

Player Usage

Players will start to find all your minis within the UI Asset Browser with every other minis.

Writing Mods with this

Loading an asset in:

var asset = new ExtraAssetsLibrary.DTO.Asset
   {
    Kind = AssetDb.DbEntry.EntryKind.Creature, // Future can do tiles and props
    Id = ExtraAssetsLibrary.DTO.Asset.GenerateID($"some sort of unique constant string"),
    GroupName = "Pokemon Gen I",
    Description = "Eevee, the evolution poke...",
    Name = "Eevee",
    groupTagOrder = 2, //Index in group
    Icon = icon, //Sprite (128x128)
    ModelCallback = ModelCallback, // Method
    
    // optional method to load custom base, null callback loads DefaultBase()
    BaseCallback = BaseCallback, 
};
ExtraAssetsLibrary.ExtraAssetPlugin.AddAsset(asset); // Name still WIP but methods the same.

Example Callback

public static GameObject ModelCallback(NGuid id){
  return new GameObject(); // You may want to return your actual model
}

public static GameObject BaseCallback(NGuid id){
  return new GameObject(); // You may want to return your actual custom base
}

Recommended Extra Plugin (WIP)

In the works is an Asset Distribution plugin that will be paired with this plugin.

Changelog

  • 1.3.4: Fix case sensitivity issue for 1.3.3.
  • 1.3.3: Add ability to dynamically hide groups in Categories (F for Sys.Reflec)
  • 1.3.2: Fix Mini leaking to placeables
  • 1.3.1: Fixed spawning of Effects.
  • 1.3.0: Planned Stable Release, Fixed Catagories
  • 1.2.15: Bug fix
  • 1.2.14: Add Config and loglevel support.
  • 1.2.13: Bug Fix for (Custom Size Support and base load).
  • 1.2.12: Add Custom Size Support. Only Base Increases (So you don't need to scale up/down your mini to 1x1)
  • 1.2.11: Adjust presenter patcher to also accept placeables.
  • 1.2.10: Config for failed spawns.
  • 1.2.9: UI Prompt to clear failed spawns.
  • 1.2.8: Fix icons packaging
  • 1.2.7: Unstable Release
  • 1.2.6: Fixed error being thrown in Harmony Patch due to Core TS Update.
  • 1.2.5: Fixed Padding for new Icon Categories
  • 1.2.4: Fixed blob errors being thrown
  • 1.2.3: Repiped Effects via creature spawner
  • 1.2.2: Added Asset ToolTip Dependency
  • 1.2.1: Added FAP Dependencies and Icons
  • 1.2.0: Added 2 new Catagories, (Aura and Effects) and (Slabs)
  • 1.1.4: Global callback supplied for on asset load. Extra Asset information is now applicable for positions: [Torch, Spell Origin, Head Position (LOS), Hit Position (where spells aim for)]
  • 1.1.3: pre-callbacks are moved to UI Event instead of pre-load allowing to stop spawn completely and only on try to spawn (e.g. trigger to adding an aura)
  • 1.1.2: fix error thrown when tags are null
  • 1.1.1: semi-fix base loading in. Refactor logging
  • 1.1.0: Now allows callbacks before load and after placement.
  • 1.0.4: Fixed zipping issue where re-entering campaign tries appending to db again
  • 1.0.3: Assets can be added to existing groups
  • 1.0.2: optimized package by pointing to existing default base instead of copy
  • 1.0.1: prevent race condition.
  • 1.0.0: Null callback stops creature spawn in prep for CMP Effects.
  • 0.9.0: Alpha release

Shoutout to my Patreons on https://www.patreon.com/HolloFox recognising your mighty contribution to my caffeine addiction:

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2022-2-20 1.3.4 3841 Version 1.3.4 Install
2022-2-19 1.3.3 114 Version 1.3.3 Install
2022-2-18 1.3.2 136 Version 1.3.2 Install
2022-2-3 1.3.1 851 Version 1.3.1 Install
2022-2-1 1.3.0 181 Version 1.3.0 Install
2022-1-16 1.2.15 794 Version 1.2.15 Install
2022-1-15 1.2.14 150 Version 1.2.14 Install
2022-1-13 1.2.13 214 Version 1.2.13 Install
2021-12-18 1.2.12 880 Version 1.2.12 Install
2021-12-17 1.2.11 99 Version 1.2.11 Install
2021-12-14 1.2.10 149 Version 1.2.10 Install
2021-12-14 1.2.9 34 Version 1.2.9 Install
2021-12-14 1.2.8 66 Version 1.2.8 Install
2021-12-9 1.2.7 181 Version 1.2.7 Install
2021-11-13 1.2.0 550 Version 1.2.0 Install
2021-11-5 1.1.4 239 Version 1.1.4 Install
2021-11-4 1.1.3 93 Version 1.1.3 Install
2021-11-3 1.1.2 68 Version 1.1.2 Install
2021-11-3 1.1.1 49 Version 1.1.1 Install
2021-11-1 1.1.0 111 Version 1.1.0 Install
2021-8-25 1.0.4 550 Version 1.0.4 Install
2021-8-25 1.0.3 58 Version 1.0.3 Install
2021-8-25 1.0.2 63 Version 1.0.2 Install
2021-8-24 1.0.1 55 Version 1.0.1 Install
2021-8-24 1.0.0 45 Version 1.0.0 Install
2021-8-23 0.9.0 59 Version 0.9.0 Install