Overview
How to create content for Volcanoids in Unity and add it into game.
Info
Official modding support is planned, including Steam Workshop and tools for authoring content.
This guide show how it’s possible to mod Volcanoids even before official support is there.
Mods created according this guide will be compatible when official modding support arrives, but:
– they’ll have to be repackaged for uploading to Workshop
– some game features will change and mods utilizing these features will need updates
This guide builds on modding basics guide:
[link]
Authoring content in Unity
Download free version of Unity.
Create content you want, for example Cube and Material, assign Material to Cube.
Create prefab from the Cube (drag it from Scene to Project Window)
Put this script into project:
[link]
Right-click in Project window, Create, Bundle definition named ModBundle
Select created ModBundle and drag Cube from Project windows into Objects
Then right-click the bundle header and press Build
End result in Unity:
Now you have asset bundle built, it’s stored in Assets/AssetBundles
Asset bundle now contains your Cube and all the dependencies (material).
Copy your asset bundle into Mod directory and use script similar to this to load AssetBundle in the mod:
[link]
The script modifies CoalPowerPlantT1 prefab and adds there the cube.
All powerplants spawned from the prefab will have the cube.
Note: this does not affect cog drillships, because they are spawned as whole from different prefabs, more on that later.
End result in game: