We recommend using the Thunderstore Mod Manager or an alternative for installing mods
Date uploaded | 9 months ago |
Version | 3.0.52 |
Download link | tristanmcpherson-R2API-3.0.52.zip |
Downloads | 79282 |
Dependency string | tristanmcpherson-R2API-3.0.52 |
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.9In the Release version of RoR2, Hopoo Games made a NetworkModCompatibilityHelper
class, which can be given a mod list that is then transformed into a hash that will be checked upon client connection in multiplayer.
If the hash doesnt correspond between the server and the connecting client, the connection is refused.
R2API will add mods to that mod list if they:
NetworkCompatibility
Attribute, either as an custom assembly attribute, or at the top of their plugin class inheriting from BaseUnityPlugin
with the first argument being CompatibilityLevel.EveryoneMustHaveMod
.NetworkCompatibility
Attribute but depend on R2API (have [BepInDependency("com.bepis.r2api")]
attribute).R2API is a modding framework for other mods to work in, providing centralized and simplified APIs for Risk of Rain 2. This helps keeping mods compatible with each other.
At it's core, R2API should not change how the game behaves without any other mod installed. The only change is to keep mods out of quickplay and prismatic trials by request of the Hopoo Games team.
The contents of R2API
should be extracted into the BepInEx
folder, such that the files inside the plugins
folder in the zip sit in the plugins
folder in BepInEx.
Also you need to install HookGenPatcher because R2API wont function without it.
A lot of documentation is in the included xmldocs, and further information may be on the dedicated R2API wiki. Do not hestiate to ask in the modding discord too!
Unless you are a mod developer, you won't need this.
Want to get the latest versions of R2API? The latest bleeding edge builds of master
are hosted on Azure, and may be downloaded using the Artifacts
drop down menu.
Note that such builds may be unstable.
The most recent changelog can always be found on the GitHub. In this readme, only the most recent minor version will have a changelog.
Current
3.0.50
3.0.48
3.0.44
3.0.43
3.0.30
3.0.25
3.0.13
patchers
folder3.0.11
3.0.7
3.0.1
3.0.0
Anniversary Update
monomod
folder