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.
- Open the
Assemblies
directory and follow the instructions in thePUT_ASSEMBLIES_HERE.txt
file. - Open the
Plugin.sln
file in Visual Studio 2015 - 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
- Copy the
plugin.dll
file into yoursaves
directory
- e.g.
C:\Program Files (x86)\Steam\steamapps\common\Timber and Stone\saves\
- Launch the game
Installation of additional modifications is very simple:
- In the
saves
directory, create a new directory namedplugins
- e.g.
C:\Program Files (x86)\Steam\steamapps\common\Timber and Stone\saves\plugins
- When downloading modifications, rename their
plugin.dll
file to whatever you like - Copy the renamed
dll
file into theplugins
folder you created - Launch the game