Concussion_LLC-RockCamDetachedPreviewManager icon

RockCamDetachedPreviewManager

A library that allows for creating custom detached previews.

Last updated 8 hours ago
Total downloads 1
Total rating 0 
Categories Mods Tools Libraries
Dependency string Concussion_LLC-RockCamDetachedPreviewManager-1.0.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

UlvakSkillz-RumbleModdingAPI-5.1.5 icon
UlvakSkillz-RumbleModdingAPI

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

Preferred version: 5.1.5
Concussion_LLC-RockCamEssentials-1.6.2 icon
Concussion_LLC-RockCamEssentials

A library that adds a class that makes rock cam easier to work with.

Preferred version: 1.6.2

README

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

How to use

  1. Install like a regular mod
  2. Add it as a dependency for your mod
  3. Add Il2CppRUMBLE.Recording.LCK as a dependency
  4. 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)
  5. Call Melon< RockCamDetachedPreviewManager.Main>.Instance.AddPreview(your preview instance)
  6. Done

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

  1. r - adds a dummy preview called aboba
  2. t - switches to the next preview

Report bugs/suggestions/ask questions here:

Release trailer: https://youtu.be/6mxeWeOLPiQ