Initial commit, added README.md and OSCWalker.py

This commit is contained in:
2026-02-28 19:14:16 +00:00
commit b6c5940fb7
2 changed files with 94 additions and 0 deletions

62
OSCWalker.py Normal file
View File

@ -0,0 +1,62 @@
from pythonosc.udp_client import SimpleUDPClient
import time
import pygame
pygame.init()
screen = pygame.display.set_mode((200,200))
running = True
clock = pygame.time.Clock()
ip = "127.0.0.1"
port = 9000
client = SimpleUDPClient(ip, port) # Create client
right = True
left = True
movingAmount = 40 # Change for moving duration
moving = 0
steps = 0
# Movement
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
keys=pygame.key.get_pressed()
screen.fill("orange")
#Code for alternating steps
if keys[pygame.K_F13] and left == True:
steps += 1
moving = movingAmount
left = False
client.send_message("/input/MoveForward", 1) # Move forward
right = True
print(steps)
if keys[pygame.K_F14] and right == True:
steps += 1
moving = movingAmount
right = False
client.send_message("/input/MoveForward", 1) # Move forward
left = True
print(steps)
#Constant move forward code with grace period to allow non-stop steps.
if moving == 0:
client.send_message("/input/MoveForward", 0)
else:
moving -= 1
pygame.display.flip()
clock.tick(100)

32
README.md Normal file
View File

@ -0,0 +1,32 @@
# OSCWalker
Extremely simple program that allows to track inputs from a Wii Balance Board into steps in VRChat using OSC.
## Requirements
- VRChat (It was kind of made for... specifically VRChat)<br>
- Bluetooth<br>
- Uses Pygame (pip install pygame)<br>
- [Uses Python](https://www.python.org/)<br>
- [Uses WiiBalanceWalker by Shachar Liberman](https://github.com/lshachar/WiiBalanceWalker)<br>
## Setup with WiiBalanceWalker
- Run the .EXE file.
- Press the sync/bluetooth button on Wii Balance Board.
- Connect Wii Balance Board to your PC via Bluetooth (Should be labeled starting with "Nintendo").
- When asking for a PIN, press "Add/Remove bluetooth Wii device" button to get your unique PIN code.
- After inputting PIN code, press "Connect to Wii Balance Board" button.
- Confirm connection by stepping on and off, and seeing if values change.
- After connection, set ALL actions under the "Actions" tab to "Do Nothing"
- Set action "Left" to "Key F13" and "Right" to "Key F14".
- Uncheck "Disable All Actions" checkbox.
## Usage
- After setting up, simply run the Python application.
## Troubleshoot
- Ensure that pygame is installed.
- Ensure that the pygame window is focused.
- Ensure OSC is enabled in the VRChat quick menu.