DenchiSoft / VTubeStudio

VTube Studio API Development Page
MIT License
850 stars 79 forks source link

BUG: Virtual camera install.bat (regsvr32) path issue #35

Open Kirdej opened 2 years ago

Kirdej commented 2 years ago

vdoninja Reference image from VDO.Ninja when selecting VTubeStudioCam as a camera source.

The Issue:

When Steam is used to import an existing game library, some Japanese VTubers made use of Japanese characters in the directory name.

Normally, this isn't an issue. Games and software installed through Steam work just fine, and so does VTubeStudio to some extent.

The problem is installing the virtual camera with regsvr32. It does not recognize non-ASCII characters in the install path.

When install.bat is ran as admin, it forces the registration of the UnityCaptureFilter DLLs and notifies the user that it is a successful install. However, any non-ASCII characters in the install path will be left blank in the Windows Registry (from my testing at least).

Example: This H:\ゲーム\steamapps\common\VTube Studio\VTube Studio_Data\Install_Webcam\UnityCaptureFilter64bit.dll will become this H:\ in the Windows Registry, resulting in the camera being listed but not functional.

When install.bat is not ran as admin, it fails as expected but immediately closes the terminal window without notifying the user of the error.

This won't be an issue if VTubeStudio is installed in the default C:\Program Files (x86)\Steam\steamapps\common directory.

This is only an issue for people who like to move their "games" to a dedicated game drive and give the folder a custom name with Japanese or Chinese characters.


SOLUTION: (Hopefully, you can read or translate English.) For those of you who come across this issue before the devs are able to address it.