![PeppaStone-StaticLIVCamera-2.3.1 icon](https://gcdn.thunderstore.io/live/repository/icons/PeppaStone-StaticLIVCamera-2.3.1.png.128x128_q95.png)
Date uploaded | 6 months ago |
Version | 2.3.1 |
Download link | PeppaStone-StaticLIVCamera-2.3.1.zip |
Downloads | 170 |
Dependency string | PeppaStone-StaticLIVCamera-2.3.1 |
This mod requires the following mods to function
![UlvakSkillz-RumbleModdingAPI-3.3.0 icon](https://gcdn.thunderstore.io/live/repository/icons/UlvakSkillz-RumbleModdingAPI-3.3.0.png.64x64_q95.jpg)
UlvakSkillz-RumbleModdingAPI
API to Help Modders Get Started and to remove the necessity of GameObject.Find
Preferred version: 3.3.0![Baumritter-RumbleModUI-2.1.2 icon](https://gcdn.thunderstore.io/live/repository/icons/Baumritter-RumbleModUI-2.1.2.png.64x64_q95.png)
Baumritter-RumbleModUI
Adds a pop-up window for centralized management of mod settings
Preferred version: 2.1.2README
- Install MelonLoader
- Run Game
- Follow Ulvak's guide on how to install liv https://steamcommunity.com/sharedfiles/filedetails/?id=3106240874
- Put the StaticCamera.dll mod file into your mods folder
- In the VR LIV menu, select the mixed reality camera
- To move your LIV camera around, press both of your joysticks at once or press Y on your keyboard
Camera modes
By default, the camera is in Static Mode. You can cycle through modes by pressing your right joystick at the same time as your right trigger, or by pressing U on your keyboard. As of Version 1.2.2, there are 4 modes: Static, Default, Locked and Orbit. Default is the normal LIV camera. Static is a camera that doesn't move. Set its position by pressing both joysticks or Y. Locked is a camera that doesn't move but has its rotation modified to always be looking at the player. Set its position by pressing both joysticks or Y. Orbit is a camera that rotates around a point. Set its center point by pressing left joystick or Y, then set its radius by pressing right joystick or O.
Default Camera Position
You can change the default position of the camera on every map in 3 different ways. 1: You can edit the UserData/StaticLIVCamera/Settings.txt file (The format is XPosition YPosition ZPosition XRotation YRotation ZRotation). 2: You can edit it through ModUI (using the same formatting). 3: If you press P, the camera's current position will be saved as the default position on that map.
Automatically switch LIV profiles
It's annoying to always change from 1st/3rd person to Mixed Reality every time, so there is now a way to make it automatic. First, after having launched LIV PCVR AVATARS, click on "camera" on the LIV window (on your PC, not in VR). In there you should have 2 profiles (make a second one if you don't already have 2). Select the first profile and then, in VR, set the camera to 1st or 3rd person. Then, select the 2nd profile and, in VR, set the camera to Mixed Reality. Now, in-game, you can use ModUI to toggle "Automatically switch LIV profile" to true and press Save. If you've done everything correctly, it should now switch profiles when you go in and out of Default Mode. If you need any help, don't hesitate to message Pep on discord.
Unity Explorer Camera
When the camera is in Static Mode or Locked Mode, if you're using Unity Explorer, you can use the Unity Explorer free cam to position the LIV camera. Simply press I on your keyboard and the LIV camera will teleport to the free cam. This can be useful for aerial shots, for example.
How to code your own custom Camera Modes
If you're a modder, you can add a new Camera Mode by creating a class that extends CameraMode. In that class, override OnEnteringMode(), OnExitingMode and OnUpdate(). Note: OnUpdate() only gets called while the mode is selected. The way to move the camera is by moving the StaticCamera.LIVCamera game object. That object also has an extra child, StaticCamera.cameraOffset, that you can use as an extra animation layer (I use it for my orbit mode, as an example). Then, you can do StaticCamera.cameraModes.Add(new CLASSNAME("NAME", "DESCRIPTION", isEnabledByDefault)) once when the gym gets loaded for the first time. There is an example mod that you can look at called "ModeExample.cs".
Help And Other Resources
Get help and find other resources in the Modding Discord: https://discord.gg/fsbcnZgzfa DM @peppastone on discord if you need any help
CHANGELOG
Version 3.0.2
- Added "Hide Camera Mode" setting
- Added Static Mode
- Added Orbit Mode
Version 3.0.1
- Fixed a bug where the "Lock Z Rotation" setting would prevent any camera rotation
Version 3.0.0
- Rewrote the whole mod
- Probably fixed most issues with crashes and stuff
- Updated to be compatible with the RUMBLE 0.4 Update
- This version is very barebones. Expect updates very soon adding more Camera Modes
- Added the Handheld Mode. Click your left joystick to pick up or put down your camera
- Added the FOV Change Speed option. It's set to 0 by default. This controls How much your camera FOV should change by while you're holding the secondary buttons.
Version 2.3.1
- Added alternate controls for bibin (You can activate it in the ModUI menu)
Version 2.3.0
- Added Automatic Mode
- Added position and rotation smoothing controls for Automatic Mode using ModUI
- Every controller supported by RumbleModdingAPI can now be used with this mod (YES THAT MEANS INDEX PLAYERS CAN NOW USE THE MOD MY BAD I SHOULD HAVE DONE THIS SOONER)
Version 2.2.1
- Changed the way the game handles default mode. There was a glitch where external mods that add new camera modes would break default mode, but now we're good
Version 2.2.0
- Added setting to control if text should appear when changing modes
- Added the ability to set the camera's default position on a map to where the camera currently is by pressing P.
- Added the ability to chose the mode that gets chosen when the game opens
- Rearranged the code in different files (took me long enough)
- Mode detection is now optimized (don't think about that one too much)
Version 2.1.0
- The visual representation of the camera disappears in Default Mode
- The Mode system has completely changed, allowing for other mods to create their own Camera modes.
Version 2.0.1
- You no longer need to click 'Save' whenever you input a value (whoops). Just pressing enter after entering the value should be enough.
Version 2.0.0
- Updated the MelonLoader version
Version 1.3.1
- Added a default mode option using UIMod
Version 1.3.0
- Added Orbit Mode, a new Camera Mode which makes the camera orbit around a point
- Added Support for RumbleModUI
- Using ModUI, you can toggle which Camera Modes you want in your rotation
- Using ModUI, you can change the Camera FOV
- Using ModUI, you can change the the Orbit Speed of the Orbit Mode
- Using ModUI, you can change the Locked Rotation Speed, which is the speed at which the Locked Camera rotates
- Using ModUI, you can change the default camera position of every map
- The camera can now switch from a LIV profile to another, so that you don't have to manually switch from 1st/3rd person to Mixed Reality and vice-versa every time. Take a look at the README for more information -Using ModUI, you can toggle the automatic LIV profile switch mentioned above
- I'm going to sleep now. goodbye :D
Version 1.2.3
- Will now stop looking for LIV objects every frame if you don't have LIV open (whoops)
Version 1.2.2
- Added Locked Mode. In Locked Mode, the camera rotation is locked onto the player
Version 1.2.1
- Fixed a bug where the LIV object wouldn't get found
Version 1.2.0
- Changed KeyBinds to be compatible with other mods
- Completely reworked the camera system to use LIV.SetPose(), as recommended on the LIV website.
- You no longer need to use the Mixed Reality Camera. You can keep using whatever LIV Camera you like.
- Made a system to move the Camera in an easier way, meaning that more Camera Modes like "Oriented at the player" and "Orbiting around a point" are coming soon!
Version 1.1.5
- Fixed a bug where the game would crash if the user didn't have the UserData/Settings.txt file
Version 1.1.4
- Added a config file to change the default camera position on every map
Version 1.1.3
- Fixed a bug where some players' camera would be offset
Version 1.1.2
- Fixed some bugs whoops
Version 1.1.1
- Cleaned up camera modes and added a visual representation of the camera
Version 1.1.0
- Added camera modes and the ability to move the camera to the Unity explorer camera
Version 1.0.2
- Fixed the README with more accurate information
Version 1.0.1
- Fixed the console spam
Version 1.0.0
- Created
Help And Other Resources
Get help and find other resources in the Modding Discord: https://discord.gg/fsbcnZgzfa