Skip to content
This repository has been archived by the owner on Oct 8, 2018. It is now read-only.

Rychard/TimberAndStone.MasterPlugin

Repository files navigation

MasterPlugin

An automatic plugin-loader for Timber And Stone.

As the game only allows a single plugin/modification to be installed at once, this modification acts as a proxy, allowing multiple plugins/modifications to be installed at the same time.

This modification watches a specific directory for changes, and will attempt to load any plugins contained within them. If those files are removed, the corresponding plugins are disabled in the game.

Due to constraints regarding the way the .NET framework loads assemblies, they can't be unloaded from memory completely unless they are loaded into their own AppDomain (which this mod doesn't bother with doing). Thus, this works only when the author of a given plugin abides by the rules set forth by the game's developer, and cleans up after themselves in the OnDisable method of their IPlugin-derived class.

Requirements

  • Visual Studio 2015
  • Timber And Stone (Normal or Steam version)

Building From Source

  1. Open the Assemblies directory and follow the instructions in the PUT_ASSEMBLIES_HERE.txt file.
  2. Open the Plugin.sln file in Visual Studio 2015
  3. Build the project:
  • Keyboard Shortcut: Ctrl + Shift + B
  • Using the Menu: Build > Build Solution

The compiled assembly will be located here:

TimberAndStone.MasterPlugin\Plugin.Rychard.MasterPlugin\bin\Debug\plugin.dll

Installation

  1. Copy the plugin.dll file into your saves directory
  • e.g. C:\Program Files (x86)\Steam\steamapps\common\Timber and Stone\saves\
  1. Launch the game

Installation of additional modifications is very simple:

  1. In the saves directory, create a new directory named plugins
  • e.g. C:\Program Files (x86)\Steam\steamapps\common\Timber and Stone\saves\plugins
  1. When downloading modifications, rename their plugin.dll file to whatever you like
  2. Copy the renamed dll file into the plugins folder you created
  3. Launch the game

About

An automatic plugin-loader for Timber And Stone

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages