RumbleModdingAPI

版本 v5.4.4·更新於 2026-09-12

API to Help Modders Get Started and to remove the necessity of GameObject.Find

模組介紹 作者原文

I created this API to Help others get into the Modding Scene for Rumble.

RUMBLE Modding Discord

RMAPI Documentation

Video Guide to Make Mods

  • (outdated)
  • Easier Method: Copy an existing Git posted in
  • Alternate Method:

How to Include the API in your Project:

  • Install MelonLoader Version 0.7.2 (or above currently)
  • Run Game (This initialized MelonLoader) (Close at T-Pose)
  • Put RumbleModdingAPI.dll in your Mods Folder
  • Add RumbleModdingAPI.dll as a Reference in your Project
  • Add "using RumbleModdingAPI.RMAPI;" at the top of your code / with the other "using"s
  • Here is a list of different Classes containing different Methods:
  • "Actions" Contains all the Actions to be able to Have listeners happen under certain conditions
  • "AssetBundles" Unsed to Load AssetBundles
  • "Calls" Contains Methods to get info about different stuff (stuff I couldn't figure out where to put it)
  • "Create" Contains Methods to create new objects easily at any time
  • "GameObjects" Contains access to almost every GameObject in Rumble Maps
  • "Utilities" Contains the contents of RMAPI's RaiseEvent Manager
  • "PhotonRPCs" This is the Class containing PunRPC to use Custom RPCs
  • "AudioManager" This is the Class containing Methods to Help with Audio.
  • "Lighting" This exposes the Lighting so multiple Mods can change the Lighting without incompatibilities.

RPCs

  • 1: in order to use RPCs, create a new Component class and inherit from MonoBehaviourPun instead of MonoBehaviour
  • 2: inside of your new class create a method and give it the [PunRPC] attribute (RumbleModdingAPI.RMAPI.PhotonRPCs.PunRPC),
  • 3: create a new gameobject or take an existing object,
  • 4: give that object a PhotonView, store it in a variable and assign a unique ViewID to it (must be consistent across all players),
  • 5: give that object your new components with the RPC,
  • 6: use photonView.RPC("your method name here") to send the RPC (for a better explanation go to the photon docs)

RaiseEvent

setup:

  • 1: on your main mod, inherit from RumbleMod instead of MelonMod (RumbleModdingAPI.RMAPI.Utilities.RumbleMod)
  • 2: the first time you load into the gym, call RegisterEvents(), (RumbleMod.RegisterEvents() )
  • 3: override the OnEvent(List data) function (RumbleMod.OnEvent(List data) )
  • 4: add whatever logic you need to your OnEvent, (if you need to get data such as a Vector3 or Quaternion use.Unbox() or.Unbox())
  • note: if you need to send integers, use a 'short' or 'int16' as normal ints dont work properly

actually raising an event

  • 1: create a new RaiseEventOptions (Il2CppPhoton.Realtime.RaiseEventOptions) and set set the Receivers variable
  • 2: create your data (most variables like Vector3 and Quaternions have a.BoxToIl2CppObject() method to convert them to an Il2CppSystem.Object, the others can be simply cast to it)
  • 3: Call RaiseEvent(List data, RaiseEventOptions raiseEventOptions, SendOptions sendOptions) (from RumbleMod)

SendOptions.SendReliable will make sure every player actually receives the event but might take a bit longer

SendOptions.SendUnreliable does not guarantee that the event will be received, use this for things like position values where losing out on it once every so often isn't too bad

ControllerInputPoller

  • 1: right and left controller are defined by RumbleModdingAPI.RMAPI.Utilities.ControllerInputPoller.RightController and LeftController respectively
  • 2: each controller contains 5 buttons and the joystick position (Vector2)

the buttons are: primary, secondary, trigger, grip and stick click

  • 3: each button contains 4 variables

(float) value: how much pressed in the button is, 0-1 for trigger and grip

(bool) pressed: if the button is currently held down

(bool) WasPressedThisFrame: if the button was pressed in this frame

(bool) WasReleasedThisFrame: if the but

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

LavaGang-MelonLoader

檔案與校驗

檔案名稱
RumbleModdingAPI-5.4.4.zip
檔案大小
184.5 KiB