RockCamDetachedPreviewManager

版本 v1.1.3·更新於 2026-05-09

A library that allows for creating custom detached previews.

模組介紹 作者原文

This is a library that allows for easier creation of custom detached preview modes for RockCam.

How to use

  • Install like a regular mod
  • Add it as a dependency for your mod
  • Add Il2CppRUMBLE.Recording.LCK as a dependency
  • In your mod create an instance of a class that is parented from the DetachedPreview class within RCDPM class or just an instance of that class.(see documentation on how to do that)
  • Call Melon.Instance.AddPreview(your preview instance)
  • Done

Template:

-

Documentation

DetachedPreview:

  • a class that is used to pass information to this mod, contains a name(string); Start, End, Initiate functions; preview(Il2CppRUMBLE.Recording.LCK.LCKTabletDetachedPreview.Preview).
  • name:
  • string that will be displayed on the button when the preview is active.
  • Initiate:
  • a function, that will be run on every mapload. Takes a Rock_cam input from RockCamEssentials and outputs a bool(the bool isn't used, can be anything, purely a limitation of how i wrote it). You must create a function and do preview.Initiate = function(same for Start/End).
  • Start:
  • a function, that will be run every time your preview is selected. IO same as Initiate.
  • End:
  • a function, that will be run every time your preview is unselected. IO same as Initiate.

Il2CppRUMBLE.Recording.LCK.LCKTabletDetachedPreview.Preview:

  • the ingame type used to save previews. Has to have Mode, AttachingMonitor and LocalizedKey filled.
  • Mode:
  • a type LCKTabletDetachedPreview.PreviewMode enum, has a value for every coresponding vanila preview, the behavior of the attaching monitor depends on this parameter, but i don't know how exactly as of now.
  • AttachingMonitor:
  • the monitor on which the output of the rpckcam will be displayed, imo the best way of doing this is to copy one from ingame and then modify it, you can find them in LCK Tablet -> LCKTabletDetachedPreview -> availablePreviews -> inspect some preview -> attaching monitor
  • LocalizedKey:
  • not entirely sure what it does, i just fill it with RockCam.DetachedPreview."Mod name"

AddPreview:

  • adds your preview into the preview list, which will be injected into the actual previews on any map load(could cause errors if rockcam doesn't exist), returns the index of your preview, which can be compared against in LCKTabletDetachedPreview.ActivePreviewNo(aka Rock_cam Camera._DetachedPreviewManager.ActivePreviewNo)

ForceInjectPreview:

  • immediately injects your preview, can be used if you want to inject your preview after the map has loaded, returns same as AddPreview

Debug keybinds:

hold e for every keybind

  • r - adds a dummy preview called aboba
  • t - switches to the next preview

Github repo:

Report bugs/suggestions/ask questions here:

  • (ping me, my username is deterraleon)

*

Release trailer:

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

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

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

前置依賴

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

UlvakSkillz-RumbleModdingAPIConcussion_LLC-RockCamEssentials

檔案與校驗

檔案名稱
RockCamDetachedPreviewManager-1.1.3.zip
檔案大小
110.8 KiB