We recommend using the Thunderstore Mod Manager or an alternative for installing mods

Last updated | 3 months ago |
Total downloads | 66 |
Total rating | 0 |
Categories | Mods |
Dependency string | Jamesthe1-MissionLoader-1.1.0 |
Dependants | 1 other mod depends on this mod |
README
MissionLoader
A BepInEx plugin that loads modded missions for House of the Dying Sun.
Using as a library
NOTE: You will need to have a
SortieTemplate
. It is recommended that the game is decompiled first and an AssetBundle is created.
NOTE: If your node depends on a mission from another mod, please add a
BepInDependency
to that mod in your plugin so that yours loads after it. This mod does not work well with cyclic dependencies.
MissionLoader comes pre-packed with an event to detect when a scene is completely ready to spawn objects in. This is useful for loading objects from an AssetBundle, as well as spawning new GameObjects.
- At the top of your plugin script, add
using MissionLoader
. - Create a method called
OnSceneReady
in your plugin class with no arguments. - Inside this method:
- Add the line
NodeSpawner.SceneReady -= OnSceneReady
. - Load your AssetBundle(s) here, if you have any.
- Create one or more
NamedNodeDatum
s with the name of yourSortieTemplate
, a list of the GameObject names of the nodes you want this to connect to, and the name of a GameObject positioned where you want your node to be on the map. - Call
NodeSpawner.FindAndReadyNodes
and input a list of yourNamedNodeDatum
(s).
- Add the line
- In the
Awake
method of your plugin, add the lineNodeSpawner.SceneReady += OnSceneReady
.
You should now have your node(s) spawn in the game with the connections you specified.
CHANGELOG
1.1.0
Simplify node spawning
1.0.3
Fix incomplete sentence in README
1.0.2
Remove link in CHANGELOG when trying to type out README
1.0.1
Fix to markdown typo in README
1.0.0
First publish
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 | |
---|---|---|---|---|
2023-3-6 | 1.1.0 | 22 | Version 1.1.0 | Install |
2023-3-4 | 1.0.3 | 10 | Version 1.0.3 | Install |
2023-3-3 | 1.0.2 | 13 | Version 1.0.2 | Install |
2023-3-3 | 1.0.1 | 11 | Version 1.0.1 | Install |
2023-3-3 | 1.0.0 | 10 | Version 1.0.0 | Install |