uzair-ashraf / vrc-osc-discord-band

A python osc application to control a notification band on an avatar in VRChat

Home Page:https://shadoki.booth.pm/items/4467967

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vrc-discord-osc

A python application for VRChat players to receive discord notifications on their avatar via OSC

Credits

  • Application - Shadoki
  • Bracelet Model - Sorru
  • Shader Configuration - Harumodoki
  • Avatars 3.0 Manager - For the animator merging script

Table of Contents

Installation


Head over to the Releases page to get the latest release.

  • Download the executable and run it after you start VRChat.
  • Download the Unity Package and add the Prefab to your avatar. (More Instructions on this below)

Contributing


Requirements

  • Python 3.10.9
  • Windows 10
  • pip
  1. Clone the repository

    git clone git@github.com:uzair-ashraf/vrc-osc-discord-band.git
    cd vrc-osc-discord-band
  2. Install Dependencies

    pip install -r requirements.txt
  3. Run

    python main.py
  4. Build a standalone executable

    This repository is setup with a Github action to compile the standalone executable. If you would like to compile it on your local machine you can read the action for the command via pyinstaller here.

Setting a different port number


In the same directory your executable is located in, create a file named vrc-discord-osc.config.json

In the file add the following contents, and change 9000 to the port you'd like to send your OSC data to.

{
  "port": 9000
}

If you did it properly the next time you run your application, the terminal window should state the port number you set.

Setting up your avatar


If this your first time working with OSC head over to the VRChat docs to learn more.

This doc assumes you have a Unity Package with an avatar already set up to be published to VRChat along with some knowledge of how to use Unity.

  1. Head over to the releases page and download the unity package from the latest release.

  2. Open your Unity Project with your avatar.

  3. Download the Poiyomi Shader and import it into your project: https://github.com/poiyomi/PoiyomiToonShader/releases

  4. Import the unity package from the latest release.

  5. If the materials in Assets/OSC Bracelet/MAT are purple, set them all to Poiyomi and the settings should transfer

  6. Place the prefab in your scene

  7. Move the prefab into your armature as a child of your lower left arm bone and adjust it's scale/position to fit your avatar:

  8. In your tool bar click Shadoki > Discord Bracelet

  9. Add the Discord Bracelet, Controllers, and Animations into the editor window and press Apply. Keep an eye in the debug console for possible errors.

  10. Your new FX layer should be present in OSC Bracelet/Animations. Drag and drop it into your avatar's FX Layer.

  11. If you are having trouble getting the OSC program to communicate with VRChat, checkout this troubleshooting doc that Wizard wrote for their TTS App: https://github.com/VRCWizard/TTS-Voice-Wizard/wiki/OSC-Troubleshooting

  12. Additionally, this program requires that you have Windows Notifications enabled for Discord to run properly. This should be enabled by default but if you are having trouble double check. Go to Windows Settings > System > Notifications. Make sure notifications are turned on at the top and make sure that notifications are turned on specifically for discord.

image

About

A python osc application to control a notification band on an avatar in VRChat

https://shadoki.booth.pm/items/4467967


Languages

Language:Python 100.0%