Skip to content

Commit 2c0d419

Browse files
committed
インストール時のパスチェックを強化
1 parent 33d3d66 commit 2c0d419

File tree

2 files changed

+40
-62
lines changed

2 files changed

+40
-62
lines changed

build/README.md

Lines changed: 7 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,17 @@
11
# VMT - Virtual Motion Tracker
2-
The OSC Virtual OpenVR Tracker Driver for your DIY tracking devices.
3-
Very easy, simple, and robust.
2+
## [Official page and Manual / 公式ページ & 説明書](https://gpsnmeajp.github.io/VirtualMotionTrackerDocument/)
43

5-
シンプルなOpenVR 仮想トラッカードライバです。
6-
OSCで姿勢(座標や回転)を受け取り、仮想的なトラッカーとしてSteamVR上で利用することができます。
7-
8-
今まで難易度の高かったVRトラッキングデバイスの自作を、UnityでGameObjectにアタッチする程度の簡単な処理で行うことができるようになります。
9-
OpenVRのサンプルと仕様に沿った作りになっており、他のドライバのようにSteamVRのアップデートの度にクラッシュすることは起きにくい作りになっています。
4+
An easy-to-use virtual tracker driver for OpenVR. With your own device, your own software, and any.
5+
You can send pose (position and rotation) with OSC Protocol and use it as a virtual tracker on SteamVR.
106

11-
# [Download / ダウンロード](https://github.com/gpsnmeajp/VirtualMotionTracker/releases)
12-
# [Manual & sample(English)](docs/note_en.md)
13-
# [説明書・サンプル(日本語)](docs/note.md)
7+
Creating your own OpenVR tracking device was difficult and required a high degree of technical work.
8+
However, from now on, by using VMT, it will be possible to do it in a simple way like attaching to a GameObject in Unity.
149

15-
**本ソフトウェアは、自分で問題を解決できる人向け(上級者向け)です。**
16-
**入れただけで何かができるツールではなく、他のアプリケーションやデバイスと組み合わせて使用します。**
17-
**This software for developers. (not for end user)**
18-
19-
**64bit Windows 10環境でのみ動作します。**
20-
**Only works on 64bit Windows 10**
10+
自作デバイス、自作のソフトウェアで、簡単に使える OpenVR 仮想トラッカードライバです。OSCで姿勢(座標や回転)を受け取り、仮想的なトラッカーとしてSteamVR上で利用することができます。
2111

22-
**Steam VRがHMDを認識していない場合、利用できません。(HMD未接続、Oculus Link起動前など)**
23-
**It should not work when you are not connect HMD. (Ex. disconnected, not started Oculus Link)**
24-
25-
VMT_005までにあった"起動しない"などのトラブルに関しては、VMT_006を使用するとエラーメッセージが表示されます。
26-
If you have trouble for VMT 005 such as not starting, use VMT 006 or after will shows error message.
27-
28-
認識しないソフトがある場合、以下を確認してください。
29-
+ VMT_009以降を使用しているか
30-
+ [SteamVRトラッカーロールの設定](docs/howto.md)
31-
+ [SteamVRバインディングの割当](docs/binding.md)
32-
+ C:\Program Files (x86)\Steam\config\steamvr.vrsettings からVMT周りの設定を削除してみる(必ずバックアップを取ってください)
33-
34-
Please check below if you meet software won't recognize VMT.
35-
+ Use after version of VMT_009
36-
+ [SteamVR Tracker Role](docs/note_en.md)
37-
+ [SteamVR binding (Pose)](docs/binding.md)
38-
+ Try remove VMT setting on C:\Program Files (x86)\Steam\config\steamvr.vrsettings (You must backup before change it.)
39-
40-
# サポートは閉鎖しました。(Support desk has been closed.)
41-
説明書を読んで理解できない場合は、使用されないことを勧めします。
42-
Please don't use if you can not understand manual.
43-
44-
コードレベル以外のIssueは返答無くCloseすることがあります。
45-
Issues other than code level may be closed without a response.
46-
47-
明らかな不具合や異常挙動に関しては、詳細を添えてIssueを立ててください。
48-
49-
# 他のソフトウェアに同梱されたVMTを使っている人へ (To VMT users bundled with other software)
50-
このソフトは、無料、無保証で、使い方がわかる開発者に向けて作成しています。
51-
各ソフトウェアとの組み合わせで発生したトラブルは、各作者にサポートの依頼をしてください。
52-
This software is free, non-warranty, and designed for developers who know how to use it.
53-
For troubles that occur in combination with each software, ask each author for support.
54-
55-
<img src="https://github.com/gpsnmeajp/VirtualMotionTracker/blob/master/docs/vmt_vr.png?raw=true"></img>
56-
<img src="https://github.com/gpsnmeajp/VirtualMotionTracker/blob/master/docs/screen0.png?raw=true"></img>
57-
<img src="https://github.com/gpsnmeajp/VirtualMotionTracker/blob/master/docs/Architecture.png?raw=true"></img>
12+
これまで、独自のOpenVRトラッキングデバイスを作成するということは難しい作業であり、高度な技術的作業が必要でした。しかし、これからはVMTを用いることで、UnityでGameObjectにアタッチするような簡単な方法で行うことができるようになります。
5813

5914
# Licence
6015
MIT Licence
6116

6217
Logo text font: M+ Fonts https://mplus-fonts.osdn.jp/about2.html
63-
64-
# Keyword
65-
Virtual Motion Tracker
66-
バーチャルモーショントラッカー
67-
OpenVR 仮想トラッカー
68-
OSCトラッカー
69-
ばもとら
70-
71-
# 苦労話
72-
[Virtual Motion Trackerを作ったときのノウハウ](https://qiita.com/gpsnmeajp/items/9c41654e6c89c6b9702f)

vmt_manager/MainWindow.xaml.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,39 @@ private void InstallButton(object sender, RoutedEventArgs e)
527527
Console.WriteLine(OpenVR.RuntimePath() + @"\bin\win64");
528528
Console.WriteLine(driverPath);
529529

530+
if (driverPath.Length > 100)
531+
{
532+
MessageBox.Show("Path length over 100. it couldn't install.\nパスの長さが100を超えています。インストールできません。\n\n" + driverPath, title, MessageBoxButton.OK, MessageBoxImage.Error);
533+
return;
534+
}
535+
536+
if (driverPath.Contains("Program Files"))
537+
{
538+
MessageBox.Show("Path contains \"Program Files\". it couldn't install.\nパスに\"Program Files\"が入っています。インストールできません。\n\n" + driverPath, title, MessageBoxButton.OK, MessageBoxImage.Error);
539+
return;
540+
}
541+
542+
if (driverPath.Contains(" ")) {
543+
MessageBox.Show("Path contains space. it couldn't install.\nパスにスペースが入っています。インストールできません。\n\n"+driverPath, title, MessageBoxButton.OK, MessageBoxImage.Error);
544+
return;
545+
}
546+
547+
if (!File.Exists(driverPath+ @"\bin\win64\driver_vmt.dll"))
548+
{
549+
MessageBox.Show("driver_vmt.dll not found. Do not break apart files. it couldn't install.\ndriver_vmt.dllが見つかりませんでした。ファイル構成をバラバラにしないでください。。インストールできません。\n\n" + driverPath, title, MessageBoxButton.OK, MessageBoxImage.Error);
550+
return;
551+
}
552+
553+
Encoding enc = Encoding.GetEncoding("us-ascii", new EncoderExceptionFallback(), new DecoderExceptionFallback());
554+
try
555+
{
556+
enc.GetBytes(driverPath);
557+
}
558+
catch (EncoderFallbackException) {
559+
MessageBox.Show("Path contains non-ascii (Japanese, Chinese, emoji, or other). it couldn't install.\nパスに非ASCII文字(日本語、中国語、絵文字、その他)が入っています。インストールできません。\n\n" + driverPath, title, MessageBoxButton.OK, MessageBoxImage.Error);
560+
return;
561+
}
562+
530563
System.Diagnostics.Process process = new System.Diagnostics.Process();
531564
process.StartInfo.WorkingDirectory = OpenVR.RuntimePath() + @"\bin\win64";
532565
process.StartInfo.FileName = OpenVR.RuntimePath() + @"\bin\win64\vrpathreg.exe";

0 commit comments

Comments
 (0)