PolaroidCamera

v0.1.9·Updated 2024-01-13

A Working Polaroid Camera

About this mod Author’s original text

Polaroid Camera

This adds a Polaroid Camera that allows you to take pictures

You can get the Camera by purchasing it from the store for 50 credits, by default.

Things are still fairly WIP, but it's in a functional state.

Known Issues:

  • Loading images from previous saves is fairly unstable
  • Images don't load on Photo items until you pick them up. I had it set up this way because I was worried about bandwidth usage, but in the future, I'll add an option to automatically load them when they're taken.
  • Camera does not consistently show up in the store
  • Image transferring might be causing voice chat distortions.

NOTE:

None of the current configuration values are synced. If you want to change the image size or format, you have to manually make sure

all users have the same settings. This is the first thing I'll be working on fixing.

TODO:

  • Synchronize Config values between server and client
  • Make it more configurable
  • Different ways of powering the camera: Batteries/Film/etc.
  • Make stored image files be in a readable image format
  • Make the Camera flash stun enemies
  • Rate limit the image transfer

Credits

  • 2018 - LC_API
  • HolographicWings - LethalExpansion: I pulled heavily from LethalExpansion in order to add items.
  • Evaisa - LethalLib and NetcodePatcher
  • RickArg - Helmet Cameras: It helped a lot with figuring out creating RenderTextures at runtime.

Changelog

  • v0.1.1: Hotfix: Item would get stuck in your hand after the battery runs out
  • v0.1.2: ~~Hotfix: Fix Photo Icon~~
  • v0.1.3: Hotfix: Actually fix the Photo icon
  • v0.1.4: Hotfix: Photos not working on moon
  • v0.1.5: Add configurable price for camera. Make image loading a bit more stable.
  • v0.1.6: Switch to LethalLib. Stability fixes.
  • v0.1.7: fix photo bug
  • v0.1.8: Remove problematic audio source
  • v0.1.9: HOTFIX: remove WIP code

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

2018-LC_APIEvaisa-LethalLib

File & checksum

Filename
PolaroidCamera-0.1.9.zip
File size
312.6 KiB