commit b6c5940fb734b27d4af81ebca7ae193c5d94776d Author: Tango Date: Sat Feb 28 19:14:16 2026 +0000 Initial commit, added README.md and OSCWalker.py diff --git a/OSCWalker.py b/OSCWalker.py new file mode 100644 index 0000000..5f0afa3 --- /dev/null +++ b/OSCWalker.py @@ -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) \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7e36e5b --- /dev/null +++ b/README.md @@ -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)
+- Bluetooth
+- Uses Pygame (pip install pygame)
+- [Uses Python](https://www.python.org/)
+- [Uses WiiBalanceWalker by Shachar Liberman](https://github.com/lshachar/WiiBalanceWalker)
+ +## 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. \ No newline at end of file