Files
VRCX/README.md
SpookySkeletons 2060e0e3de Update README.md (#512)
Better Linux experience in README
2023-03-23 00:57:27 +13:00

256 lines
12 KiB
Markdown

# VRCX
[![GitHub Workflow Status](https://github.com/vrcx-team/VRCX/actions/workflows/github_actions.yml/badge.svg)](https://github.com/vrcx-team/VRCX/actions/workflows/github_actions.yml)
[![VRCX Discord Invite](https://img.shields.io/discord/854071236363550763?color=%237289DA&logo=discord&logoColor=white)](https://vrcx.pypy.moe/discord)
VRCX is an assistant application for VRChat that provides information about and managing friendship. This application makes use of the unofficial VRChat API SDK.
VRCX is not endorsed by VRChat and does not reflect the views or opinions of VRChat or anyone officially involved in producing or managing VRChat properties. VRChat and all associated properties are trademarks or registered trademarks of VRChat Inc. VRChat © VRChat Inc.
pypy & Natsumi are not responsible for any problems caused by VRCX. **_Use at your own risk!_**
## How to install VRCX
- Download latest release setup from [here](https://github.com/vrcx-team/VRCX/releases/latest).
- Run `VRCX_Setup.exe`.
## Is VRCX against VRChat ToS?
**TL;DR:** no.
_VRChat's official stance on usage of the API, as listed in their Discord #faq channel._
![vrchat api](https://user-images.githubusercontent.com/11171153/114227156-b559c400-99c8-11eb-9df6-ee6615b8118e.png)
# Screenshots
<details><summary><h2>Screenshot(click to open)</h2></summary>
### Login
![login](https://user-images.githubusercontent.com/82102170/224703139-9cb24dda-3839-4f75-a665-cca69f9e08ea.png)
![2fa](https://user-images.githubusercontent.com/82102170/224703275-103e78fd-e917-428d-b901-6817d6b59b29.png)
### Feed
![feed](https://user-images.githubusercontent.com/82102170/224714129-772d7418-034a-4fe3-aa2e-22ea71154d9a.png)
### GameLog
![gamelog](https://user-images.githubusercontent.com/82102170/224714186-75cbf46d-f7b2-4a16-bcc5-2ec06d7f4b0d.png)
### UserInfo
#### Me
![me](https://user-images.githubusercontent.com/82102170/224704240-b10aba50-29b9-4ef4-b35a-958107a32cd6.png)
#### Friend
![friend](https://user-images.githubusercontent.com/82102170/224714608-ac49621f-c28f-4266-8af8-715f4b9f2367.png)
### World
![instance](https://user-images.githubusercontent.com/82102170/224715566-67782a5e-f948-402b-b78d-1b2dd5e2382f.png)
![info](https://user-images.githubusercontent.com/82102170/224715824-c0c4220e-4f20-4799-8419-f8138de35b7a.png)
### Favorite
#### Friend
![friend](https://user-images.githubusercontent.com/82102170/224716414-5c6720bd-6d38-4e2d-9353-6bfaee47700e.png)
#### World
![world](https://user-images.githubusercontent.com/82102170/224716652-ca54f3d1-449b-43f9-81f3-7bd0833c7d9d.png)
#### Avatar
![avatar](https://user-images.githubusercontent.com/82102170/224717146-37681b38-61ef-4302-8104-212c2161dc12.png)
### FriendLog
![friendlog](https://user-images.githubusercontent.com/82102170/224717793-dbbccdfd-4f89-4597-b38e-8070549b2cf8.png)
### Moderation
![moderation](https://user-images.githubusercontent.com/82102170/224718331-87ab30b2-aae1-4bbf-9472-7279af48bd5d.png)
### Notification
![notification](https://user-images.githubusercontent.com/82102170/224718963-706e2d99-fc35-41a5-be2c-ff45681ab084.png)
### PlayerList
![image](https://user-images.githubusercontent.com/82102170/224722231-54de7848-340c-4e9d-adce-30bccb6f2e8c.png)
### Settings
#### General
![general](https://user-images.githubusercontent.com/82102170/224722538-9e320d5d-5348-4696-9a3d-720e7027b06c.png)
#### Appearance
![appearance_1](https://user-images.githubusercontent.com/82102170/224724725-8e319924-91cb-41f9-96b4-0ec438aeaa76.png)
![appearance_2](https://user-images.githubusercontent.com/82102170/224724776-002c8ac3-69f3-4d7a-877f-54faf574a6f4.png)
#### Notifications
![notif](https://user-images.githubusercontent.com/82102170/224723929-edafafd1-69d1-4367-bc1c-1097f7478dba.png)
#### Wrist Overlay
![overlay](https://user-images.githubusercontent.com/82102170/224723886-415487fa-5c99-4b07-a6ab-2c8477aa576c.png)
#### Discord Presence
![rpc_setting](https://user-images.githubusercontent.com/82102170/224724105-3e97c7a3-6aa0-414b-a363-7bae56b9b3b1.png)
#### Advanced
![advance_1](https://user-images.githubusercontent.com/82102170/224724348-84ef6fca-5a00-45db-915d-ed42d244f0ca.png)
![advance_2](https://user-images.githubusercontent.com/82102170/224724480-07618cd1-fbf5-4f1e-a85f-f7fb94e7d70f.png)
### Other
#### Join
![join](https://user-images.githubusercontent.com/82102170/224725201-8eb04169-af9c-476b-a5c5-58986d17d2e6.png)
#### Create Instance
![create](https://user-images.githubusercontent.com/82102170/224725526-7eab7b52-fec7-4c23-a941-7c4c29e8c944.png)
#### Discord Rich Presence
![rpc](https://user-images.githubusercontent.com/82102170/224725991-3fc81a3d-ca15-4dcb-a057-d713803bd666.png)
### VR Overlay(old)
![overlay1](https://user-images.githubusercontent.com/82102170/178281800-af4c69da-a0f5-43d8-9515-e960e1a16b39.png)
![overlay2](https://user-images.githubusercontent.com/82102170/178281884-ea1df88c-f16c-4c83-825c-c285f49b1ff1.png)
</details>
## Themes
To install a theme place `custom.css` into your `%AppData%\VRCX` folder then press `Shift + Alt + R`.
[Dark Vanilla](https://github.com/MintLily/Dark-Vanilla/tree/main/VRCX) by [MintLily](https://github.com/MintLily)
![dark-vanilla](https://user-images.githubusercontent.com/11171153/190136499-13ab2fe3-9fed-4b45-a764-e8665993d994.png)
[Pink Theme](https://github.com/kamiya10/VRCX-theme/tree/main/pink) by [Kamiya](https://github.com/kamiya10)
![pink-theme](https://user-images.githubusercontent.com/11171153/190136121-4d6ba6e5-4a04-43b2-8264-0325c858f2d8.png)
[Material 3](https://github.com/kamiya10/VRCX-theme/tree/main/m3) by [Kamiya](https://github.com/kamiya10)
![material-3](https://user-images.githubusercontent.com/11171153/190136730-65268fac-1dab-4528-813c-b4d5e5e86f7d.png)
## VRCX launch parameters
- `--debug` launch Chromium DevTools with VRCX.
- `--config="C:\VRCX.sqlite3"` set a custom path for VRCX database.
- `--gpufix` set VRCX overlay rendering GPU to index 1 forcing the overlay to render to a secondary dedicated GPU or if you're using an integrated GPU it will force rendering to your dedicated GPU.
- `vrcx://user/usr_id` open VRCX user dialog.
- `vrcx://avatar/avtr_id` open VRCX avatar dialog.
- `vrcx://group/grp_id` open VRCX group dialog.
- `vrcx://world/wrld_id` open VRCX world dialog.
- `vrcx://world/wrld_id:12345` open VRCX world dialog with instance.
- `vrcx://world/https://vrch.at/0gmbxjpj` open VRCX world dialog with unlocked instance.
- `vrcx://import/avatar/avtr_id,avtr_id...` open VRCX avatar favorites import dialog.
- `vrcx://import/world/wrld_id,wrld_id...` open VRCX world favorites import dialog.
- `vrcx://import/friend/usr_id,usr_id...` open VRCX friend favorites import dialog.
- `vrcx://addavatardb/https://website/vrcx_search.php` open VRCX remote avatar database provider dialog.
## Keyboard shortcuts
- `Ctrl + Shift + I` open Chromium DevTools.
- `Ctrl + R` restart VRCX.
- `Shift + Alt + R` reload custom css.
## Common issues
### **VRCX running slow**
- Settings > Appearance > Max Table Size
- Lower this value to something like 100 this will decrease the amount of table entries stored in RAM.
- Settings > Advanced > Auto Clear Cache
- Lower this interval to something like 3 hours this will decrease the amount of unnecessary worlds, users and avatars stored in RAM.
### **VRCX opens to a white screen**
This can be caused by a many different things here's a list of things to try:
- Install [Microsoft Visual C++ Redistributable 2019](https://aka.ms/vs/17/release/vc_redist.x64.exe).
- Reboot your computer, maybe another process is trying to read the database file.
- Disable antivirus software, Avast and AVG are known to delete Cef/VRCX.
- Remove AVerMedia AssistCentral this is known to cause problems with VRCX for some unknown reason.
- Unstable RAM can be a potential cause, remove any RAM overclock and run MemTest86.
- Run VRCX as administrator, this can fix it on some rare occasions.
- Test a fresh database, first close VRCX then backup your current database by opening `%AppData%\VRCX\` and renaming `VRCX.sqlite3` to something like `Backup.sqlite3`, if this solves it but you'd like to still keep your data follow the steps bellow on how to repair your database.
### **SteamVR Overlay not working**
- Try launch VRCX with the launch parameter `--gpufix`.
- Disable SteamVR safe mode.
- If your computer has an iGPU follow these [steps](https://www.windowsdigitals.com/force-chrome-firefox-game-to-use-nvidia-gpu-integrated-graphics/).
### **How to repair VRCX database**
- Close VRCX.
- Install [DB Browser for SQLite](https://sqlitebrowser.org/).
- File > Open Database...
- Browse to `%AppData%\VRCX\` then select `VRCX.sqlite3`.
- File > Export > Database to SQL file...
- Click Save and place the file somewhere.
- File > Close Database
- Rename `VRCX.sqlite3` in `%AppData%\VRCX\` to something like `Backup.sqlite3`.
- File > Import > Database from SQL file...
- Click Yes to creating a new database.
- Save it in `%AppData%\VRCX\` as `VRCX.sqlite3`.
- File > Write Changes.
- Close DB Browser and delete the no longer needed `*.sql` export file.
## How to run VRCX on Linux
Guide made by [RinLovesYou](https://github.com/RinLovesYou)
- Installing Wine
- Arch Linux: Wine can be installed by enabling the [multilib](https://wiki.archlinux.org/title/Multilib) repository and running `sudo pacman -S wine`
- Ubuntu: Please refer to the [wiki](https://wiki.winehq.org/Ubuntu)
- Winetricks Magic
> It is imperative that you are using Wine 7.0rc5 or later! this has not been tested on earlier versions. Wine 7.0 Finally allows for full installation of the .net framework, which is needed for VRCX to function.
- Start over with a clean wine prefix. Either create one for VRCX or `rm -rf ~/.wine` and use the main prefix.
- Ensure you are NOT using DXVK either within your prefix or for your VRCX.exe. VRCX requires WineD3D to operate.
- `winetricks --force -q dotnet472 corefonts` Silent and easy automation of the process of installing dependencies.
- `wine winecfg -v win10` Set your prefix windows version.
- You will require the `Linux` branch as CEF newer than 108 is currently incompatible with wine staging 8.4 as of this moment. It can be found in the Actions tab under the Linux branch. Download and extract the VRCX artifact.
- You should just be able to run `wine VRCX.exe` now. Should you get an error about CEFSharp, you can try wine `VRCX.exe -no-cef-sandbox`
- Notes
- VRCX on Linux is known to have a nasty memory leak so keep an eye on memory usage or restart it frequently.
- If you have a laptop that uses hardware muxing with an Intel iGPU you'll need to set your graphics device in `nvidia-settings` to only the NVIDIA GPU.
![image](https://camo.githubusercontent.com/ed672a01defae989c4bf5963c0cc9db973b42203e1e5e927f3341c6a9115beb8/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3835343037313233363336333535303736362f3933353531333532313839373233343435322f756e6b6e6f776e2e706e67)
## How to build VRCX from source
- Get source code
- Download latest source code [zip](https://github.com/vrcx-team/VRCX/archive/master.zip) or clone repo with `git clone`.
- Build .NET
- Install [Visual Studio](https://visualstudio.microsoft.com/) if it's not already installed.
- In Visual Studio "Open Project/Solution" and browse to the [Solution file](https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file) provided inside the downloaded source code.
- Set [Configuration](https://docs.microsoft.com/en-us/visualstudio/ide/understanding-build-configurations?view=vs-2019) to `Release` and Platform to `x64`
- Restore [NuGet](https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore#restore-packages-automatically-using-visual-studio) packages.
- [Build](https://docs.microsoft.com/en-us/visualstudio/ide/building-and-cleaning-projects-and-solutions-in-visual-studio) Solution.
- Build Node.js
- Download and install [Node.js](https://nodejs.org/en/download/).
- Run `build-node.js.cmd`.
- Run `make-junction.cmd`.
- Create release zip
- Run `make-zip.cmd` for [Bandizip](https://www.bandisoft.com/bandizip) or `make-zip-7z.cmd` for [7-Zip](https://www.7-zip.org).