RockCamDetachedPreviewManager

v1.1.3·Updated 2026-05-09

A library that allows for creating custom detached previews.

About this mod Author’s original text

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:

Install & use Install: follow the bundled instructions

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
  3. For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
  4. Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.

Install locations vary a lot between mods — the bundled readme is the most reliable guide.

Dependencies

Install these first, or the mod will not work:

UlvakSkillz-RumbleModdingAPIConcussion_LLC-RockCamEssentials

File & checksum

Filename
RockCamDetachedPreviewManager-1.1.3.zip
File size
110.8 KiB