TeamMoonstorm-MoonstormSharedUtils icon


Utility, content and module classes used by members of Team Moonstorm

Last updated a week ago
Total downloads 3438
Total rating 0 
Categories Tools Libraries
Dependency string TeamMoonstorm-MoonstormSharedUtils-0.2.1
Dependants 3 other mods depend on this mod

This mod requires the following mods to function

bbepis-BepInExPack-5.4.9 icon

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.9
tristanmcpherson-R2API-3.0.52 icon

A modding API for Risk of Rain 2

Preferred version: 3.0.52
RiskofThunder-FixPluginTypesSerialization-1.0.0 icon

Fix custom Serializable structs and such not properly getting deserialized by Unity.

Preferred version: 1.0.0


Moonstorm Shared Utils

  • Moonstorm Shared Utils (Abreviated as MSU) is a library mod with the intention to help ease the creation of mods, mainly ones that are developed trough Thunderkit. It is a library mod used by the members of Team Moonstorm.

  • Contains both classes for mod making and an assembly for Editor utilities.

  • Classes for mod making include a modular system using abstract classes, alongside abstract content classes. Taking heavy use off the ItemBehavior class found inside the CharacterBody.


  • Module Bases

    • A Module base is a type of class inside MSU that handles a specific type of content found inside RoR2. Theyre abstract by nature so you need to inherit from them to properly work.
    • Key aspects of module bases include:
      • Easily add items to your contentpacks.
      • Handles the automatic use of ItemBehaviors.
    • Module bases included are:
      • Artifact Module
      • Buff Module
      • Character Module
      • Damage Type Module (R2API Dependant)
      • Elite Module
      • Item Display Module
      • Items and Equipments Module
      • Projectile Module
  • Content Bases

    • A Content base is what MSU uses to identify the type of content youre trying to add to the game. Theyre abstract by nature so you need to inherit from them to properly work.
    • Key Aspects of Content bases include:
      • Initialization methods to finish anything on runtime, such as replacing materials with ingame ones, or getting any kind of asset that needs to be finished in runtime.
      • Abstract fields for ContentDefinitions (ItemDef, ArtifactDef, EquipmentDef, ETC).
    • Content Bases Included are:
      • Artifact
      • Buff
      • Character
      • Damage Type
      • Equipment (& Elite Equipment)
      • Item
      • Monster
      • Projectile
      • Survivor
  • Scriptable Object

    • MSU comes packaged with scriptable objects to either help the aid of content creation, or for the help of working alongside RoR2's Systems.
    • Scriptable Object Included are:
      • Vanilla Skin Def - Create a Skin for a vanilla character.
      • Serializable Difficulty Def - Creates a Difficulty Def
      • Monster Director Card & Monster Director Card Holder - Used for creation of monsters.
      • EffectDef Holder - Used for creating EffectDefs in the editor and adding them to the content pack.
      • String ItemDisplayRuleSet - Used for creating item display rules in the editor. all based off a system of strings and dictionaries. Creating a new display is as simple as writing the name of the key asset, and the display prefab. and you can even use the values from KEB's Item Display Placement Helper. as simple as copying them and pasting them in it's field.
      • Single Item Display Rule - Similar to R2API's ability to create item displays for each character in an item. Create item display rules for any vanilla IDRS using strings.
      • ItemDisplaysPrefabs - Holds the prefabs for item displays. Used for the ItemDisplays Module.
      • MSEliteDef - An improved version of the vanilla Elite Def. allows you to easily create either a tier 1 or tier 2 elite in the editor. including the ability to pre-set the Elite's Ramp, Overlay, Particles or Effects.
      • MSAspectAbilityDataHolder - Allows you to store data related to AspectAbilities. specifically the equipment def, the max distance and the anim curve needed.
  • Components:

    • Item Manager - Takes care of managing the items made with MSU. automatically handling their ItemBehaviors.
    • Moonstorm Item Display Helper - Used for the ItemDisplays module.
    • Comes pre-packaged with KomradeSpectre's HGController finder. modify in real time a material that uses hopoo's shaders with an inspector.
  • Utilities, Interfaces and Attributes:

    • Utilities:
      • MSUtil - Contains for now a single method for checking wether or not a mod is installed.
      • MSDebug - A MonoBehavior that gets attached to the base unity plugin. enabling this debug component causes changes that should facilitate the creation of mods.
        • Changes include:
          • Connect to yourself with a second instance of RoR2.
          • Muting commando by removing his skills (In case you need to do a lot of searching in a runtime inspector.)
          • Automatic deployment of the no_enemies command from debug toolkit.
          • Automatic addition of the Moonstorm Item Display Helper component to all the characterbodies found in the catalog.
          • Spawning the Material Tester, which comes pre-packaged with the HGControllerFinder.
    • Interfaces:
      • IStatItemBehavior - An interface that works alongside the ItemBehaviors. this Interface allows you to interact with RecalculateStats. Albeit only for the Begining portion and the end portion. if you want to interact in a more deeply level you should use recalcstatsAPI.
    • Attributes:
      • DisabledContent - Put this attribute on top of a content base inheriting class, and MSU will not load it nor add it to the content pack.

Documentation & Sourcecode

  • As it currently stands, MSU is not open source. This is due to the fact that is inside the Starstorm2 Github Repository. We here at Team Moonstorm are trying our best to sort this issue and letting people see the Sourcecode of MoonstormSharedUtils.

  • For now, you can find an example on how to use the mod in Lost In Transit's Github repository, which can be found here



  • Re-Added the MSAspectAbility, now named "MSAspectAbilityDataHolder"
    • Only holds data, doesnt use aspect abilities at all.
    • Used for elite equipments.
  • Fixed an issue where the EliteModuleBase wouldnt register new elites.
  • Fixed an issue where the ItemManager would not properly obtain new StatItemBehavior interfaces on buff removal.
  • Removed EditorUtils until further notice.
  • General internal changes


  • Deprecated MSAspectAbility due to issues with initalization of the mod.
    • It has been replaced by an Animation curve asset and a simple float for AIMaxUseDistance
  • Fixed an issue where MSIDRS/SIDRS would not be able to retrieve their display prefab correctly.
  • Changed any references to definitions adding to content pack to use the content pack's name.
  • Added more material controllers, courtesy of Vale-X
  • Removed abstract field from module abses
  • Module bases now use SystemInitializer attribute


  • Initial Release

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  
2021-9-13 0.2.1 3272 Version 0.2.1 Install