Command Line Arguments/ja: Difference between revisions

From Resonite Wiki
Created page with "HTCの視線・リップトラッキング用のSRAnipal SDKを、Vive Pro Eyeが接続されていない場合でも強制的に初期化します。"
Created page with "path/to/logs/dir"
Line 52: Line 52:


<!--T:39-->
<!--T:39-->
<span lang="en" dir="ltr" class="mw-content-ltr">And also these args usable for Drone Camera.</span>
また、これらの引数はドローンカメラにも使用可能です。
* '''-UseResoniteCamera''' - <span lang="en" dir="ltr" class="mw-content-ltr">Will spawn Static Camera as the Resonite Camera with zoom controls, preview and other functions</span>
* '''-UseResoniteCamera''' - ズーム操作、プレビュー表示などの機能を備えたResonite Cameraとして静的カメラを生成します。


== 共通アバタービルダー ==
== 共通アバタービルダー ==
* '''-ForceNoVoice''' - <span lang="en" dir="ltr" class="mw-content-ltr">CommonAvatarBuilder won't setup any avatars with voice (useful for local presentations)</span>
* '''-ForceNoVoice''' - CommonAvatarBuilderが、アバターに音声機能を一切セットアップしなくなります(ローカルでのプレゼンテーションなどに役立ちます)。


== データフォルダー ==
== データフォルダー ==
Resoniteには複数の[[Resonite Data Folders|データフォルダー]]があり、これらを制御するためのさまざまなコマンドライン引数があります。それらの引数を使用する前に、必ず [[Relocate Resonite Folders]] を読んで内容を理解してください。そうしないと、データが失われる可能性があります。
Resoniteには複数の[[Resonite Data Folders|データフォルダー]]があり、これらを制御するためのさまざまなコマンドライン引数があります。それらの引数を使用する前に、必ず [[Relocate Resonite Folders]] を読んで内容を理解してください。そうしないと、データが失われる可能性があります。


* '''-DataPath''' ''path/to/data/dir'' - <span lang="en" dir="ltr" class="mw-content-ltr">Path to the database directory</span>
* '''-DataPath''' ''path/to/data/dir'' - データベースディレクトリへのパスを指定します。
* '''-CachePath''' ''path/to/cache/dir'' - <span lang="en" dir="ltr" class="mw-content-ltr">Path to the cache directory</span>
* '''-CachePath''' ''path/to/cache/dir'' - キャッシュディレクトリへのパスを指定します。


<!--T:43-->
<!--T:43-->
Line 68: Line 68:
== ログフォルダー ==
== ログフォルダー ==


* '''-LogsPath''' ''<span lang="en" dir="ltr" class="mw-content-ltr">path/to/logs/dir</span>'' - ログファイルを指定されたカスタムディレクトリに保存するようにリダイレクトします。
* '''-LogsPath''' ''path/to/logs/dir'' - ログファイルを指定されたカスタムディレクトリに保存するようにリダイレクトします。


== 同期の問題 ==
== 同期の問題 ==
<!-- Don't place ForceSyncConflictingCloudRecords or DeleteUnsyncedCloudRecords here, these CLI arguments are overused and we want users to go via the guides to avoid data loss and over-use. -->
<!-- Don't place ForceSyncConflictingCloudRecords or DeleteUnsyncedCloudRecords here, these CLI arguments are overused and we want users to go via the guides to avoid data loss and over-use. -->
<span lang="en" dir="ltr" class="mw-content-ltr">There are some Command Line Arguments, that are reserved for solving synchronization issues with Resonite. These arguments can, in some cases, result in data-loss so unless you have a synchronization issue, they should not be used.</span>
Resoniteの同期問題を解決するために予約されたコマンドライン引数がいくつかあります。これらの引数は、場合によってはデータ損失を引き起こす可能性があるため、同期問題が発生している場合を除いて使用しないでください。


同期の問題が発生している場合は、[[Sync Errors|同期エラー]]を参照してください。そこには、利用可能なコマンドライン引数と、それらを使って同期問題を解決する方法についてのさまざまなガイドがあります。
同期の問題が発生している場合は、[[Sync Errors|同期エラー]]を参照してください。そこには、利用可能なコマンドライン引数と、それらを使って同期問題を解決する方法についてのさまざまなガイドがあります。
Line 81: Line 81:


== ポストプロセシング ==
== ポストプロセシング ==
* '''-ctaa''' - <span lang="en" dir="ltr" class="mw-content-ltr">Enables ctaa (Cinematic Temporal Anti-Aliasing)</span>
* '''-ctaa''' - CTAA(Cinematic Temporal Anti-Aliasing:映画的時間的アンチエイリアス)を有効にします。
* '''-ctaaTemporalEdgePower ''<span lang="en" dir="ltr" class="mw-content-ltr">Insert_Number_here</span>''''' - <span lang="en" dir="ltr" class="mw-content-ltr">Sets ctaa's TemporalEdgePower</span>
* '''-ctaaTemporalEdgePower ''Insert_Number_here''''' - CTAAの TemporalEdgePower を指定した数値に設定します。
* '''-ctaaSharpnessEnabled ''<span lang="en" dir="ltr" class="mw-content-ltr">Insert_True_or_False_here</span>''''' - <span lang="en" dir="ltr" class="mw-content-ltr">Sets whether ctaa's Sharpness is Enabled</span>
* '''-ctaaSharpnessEnabled ''Insert_True_or_False_here''''' - CTAAのシャープネスを有効にするかどうかを設定します(true または false)。
* '''-ctaaAptiveSharpness ''<span lang="en" dir="ltr" class="mw-content-ltr">Insert_Number_here</span>''''' - <span lang="en" dir="ltr" class="mw-content-ltr">Sets ctaa's ctaaAptiveSharpness amount</span>
* '''-ctaaAptiveSharpness ''Insert_Number_here''''' - CTAAの ctaaAptiveSharpness の値を指定した数値に設定します。


== その他 ==
== その他 ==
* '''-Watchdog ''<span lang="en" dir="ltr" class="mw-content-ltr">Insert_filepath_here</span>''''' - <span lang="en" dir="ltr" class="mw-content-ltr">Resonite will periodically write current time into given file. This can be used to restart the process when it freezes</span>
* '''-Watchdog ''Insert_filepath_here''''' - <span lang="en" dir="ltr" class="mw-content-ltr">Resonite will periodically write current time into given file. This can be used to restart the process when it freezes</span>
* '''-LoadAssembly ''<span lang="en" dir="ltr" class="mw-content-ltr">Insert_path_here</span>''''' - <span lang="en" dir="ltr" class="mw-content-ltr">Loads extra CLR assembly into the Resonite process</span>
* '''-LoadAssembly ''<span lang="en" dir="ltr" class="mw-content-ltr">Insert_path_here</span>''''' - <span lang="en" dir="ltr" class="mw-content-ltr">Loads extra CLR assembly into the Resonite process</span>
* '''-Kiosk''' - Resoniteを[[Kiosk Mode|キオスクモード]]で実行します([[Userspace|ユーザースペース]]のアイテム(ロゴやワールドスイッチャーなど)を非表示にし、ゲストのテレポートをデフォルトで無効にします)。
* '''-Kiosk''' - Resoniteを[[Kiosk Mode|キオスクモード]]で実行します([[Userspace|ユーザースペース]]のアイテム(ロゴやワールドスイッチャーなど)を非表示にし、ゲストのテレポートをデフォルトで無効にします)。

Revision as of 03:55, 19 May 2025

suggestion

Resoniteのデスクトップ版ビルドでは、いくつかのコマンドライン引数がサポートされています。これらの引数のほとんどは、Resonite Launcherを使用して、より視覚的な方法で設定し、起動ごとに保存することができます。

These command line arguments, can be useful in setting up Standalone Experiences. これらのコマンドライン引数は、Standalone Experiencesの設定に役立ちます。

特定のハードウェアを強制使用する

  • 指定なし - 自動検出
  • -Screen - スクリーンモード(デスクトップモードとも呼ばれます)
  • -Device SteamVR SteamVR
  • -Device WindowsMR Windows Mixed Reality
  • -Device Oculus Oculus Rift + Touchコントローラー
  • -Device OculusQuest Oculus Quest + Touchコントローラー
  • -Device Screen360 スクリーンモード(360度投影付き)
  • -Device LegacyScreen Resonite を旧式のデスクトップ「デバッグ」モードで強制的に起動します。
  • -Device StaticCamera 非インタラクティブカメラモード
  • -Device StaticCamera360 360度正距円筒レンダリングを使用した非インタラクティブカメラモード
  • -LegacySteamVRInput SteamVRのレガシー入力処理を強制します。Oculus QuestのVirtual Desktopなど、SteamVRデバイスの一部で手や指のスケルトンモデルが欠落または不具合がある場合の回避策として使用されます。
  • -ForceSRAnipal HTCの視線・リップトラッキング用のSRAnipal SDKを、Vive Pro Eyeが接続されていない場合でも強制的に初期化します。
  • -EnableOWO Insert_ip_address_here OWO Gameの触覚ベストとの統合機能を有効にします(ベストのIPアドレスを指定する必要があります)。現在のところ機能していません。詳細については関連するGitHubのIssueを参照してください。

セッションへ参加 / ワールドを開く

  • -Join Auto - LAN上のアクティブセッションに自動的に参加してフォーカスします(最も多くのユーザーがいるワールドに切り替わります)
  • -Join Insert_URL_or_IP:Port_here - 指定されたURI(Resonite-session | lnl)でセッションに参加します
  • -Open Insert_URL_here - 起動時に指定されたURLのワールドを開きます(resrec)
  • -Scratchspace Insert_port_here - 指定したポートで新しいスクラッチスペース(Scratchspace)ワールドを開始します(古い機能であり、今後削除される可能性が高いです)。
  • -AnnounceHomeOnLAN - ホームワールドと ユーザースペースがデフォルトでLANからアクセス可能になります
  • -Bootstrap Insert_bootstrap_class_here - 指定したクラス名内のカスタムブートストラップ関数を実行します。

ネットワーク

  • -ForceLANOnly - すべてのワールドはデフォルトでLANネットワーク上のみに公開され、インターネットからはアクセスできません
  • -CloudProfile - 使用するクラウドAPIサーバーを指定します(デバッグ目的で使用されます)。有効な値:Production, Staging, Local

ドローンカメラのプリセット

これらのオプションは、特定の動作プリセットを使ったドローンスクリプトにより、静的カメラを初期化します:

  • -CameraBiggestGroup
  • -CameraTimelapse
  • -CameraStayBehind
  • -CameraStayInFront

また、これらの引数はドローンカメラにも使用可能です。

  • -UseResoniteCamera - ズーム操作、プレビュー表示などの機能を備えたResonite Cameraとして静的カメラを生成します。

共通アバタービルダー

  • -ForceNoVoice - CommonAvatarBuilderが、アバターに音声機能を一切セットアップしなくなります(ローカルでのプレゼンテーションなどに役立ちます)。

データフォルダー

Resoniteには複数のデータフォルダーがあり、これらを制御するためのさまざまなコマンドライン引数があります。それらの引数を使用する前に、必ず Relocate Resonite Folders を読んで内容を理解してください。そうしないと、データが失われる可能性があります。

  • -DataPath path/to/data/dir - データベースディレクトリへのパスを指定します。
  • -CachePath path/to/cache/dir - キャッシュディレクトリへのパスを指定します。


ログフォルダー

  • -LogsPath path/to/logs/dir - ログファイルを指定されたカスタムディレクトリに保存するようにリダイレクトします。

同期の問題

Resoniteの同期問題を解決するために予約されたコマンドライン引数がいくつかあります。これらの引数は、場合によってはデータ損失を引き起こす可能性があるため、同期問題が発生している場合を除いて使用しないでください。

同期の問題が発生している場合は、同期エラーを参照してください。そこには、利用可能なコマンドライン引数と、それらを使って同期問題を解決する方法についてのさまざまなガイドがあります。

データベース修復

If you're having database issues then Database repair may help to resolve them.

  • -RepairDatabase

ポストプロセシング

  • -ctaa - CTAA(Cinematic Temporal Anti-Aliasing:映画的時間的アンチエイリアス)を有効にします。
  • -ctaaTemporalEdgePower Insert_Number_here - CTAAの TemporalEdgePower を指定した数値に設定します。
  • -ctaaSharpnessEnabled Insert_True_or_False_here - CTAAのシャープネスを有効にするかどうかを設定します(true または false)。
  • -ctaaAptiveSharpness Insert_Number_here - CTAAの ctaaAptiveSharpness の値を指定した数値に設定します。

その他

  • -Watchdog Insert_filepath_here - Resonite will periodically write current time into given file. This can be used to restart the process when it freezes
  • -LoadAssembly Insert_path_here - Loads extra CLR assembly into the Resonite process
  • -Kiosk - Resoniteをキオスクモードで実行します(ユーザースペースのアイテム(ロゴやワールドスイッチャーなど)を非表示にし、ゲストのテレポートをデフォルトで無効にします)。
  • -NoUI - ユーザースペースのUIを非表示にします。
  • -CubemapResolution Insert_resolution_here - Force the 360 equirectangular rendering to use this resolution for the cubemap
  • -DoNotAutoLoadHome - 起動時にクラウドホームが自動で読み込まれることはありません(手動で読み込むことは可能です)。あるいは、Settings#Favorites でユーザーごとの設定として指定することもできます。
  • -ResetDash - ダッシュメニューのレイアウトをデフォルトの設定にリセットします。
  • -SkipIntroTutorial - 起動時にゲームのチュートリアルを始めないようにします。
  • -Forceintrotutorial - 起動時にゲームのチュートリアルを強制的に開始します。
  • -Invisible - ログイン時にオンラインステータスを非表示にします。
  • -EngineConfig Insert_filepath_here - カスタムの起動設定ファイルを指定します。
  • -BackgroundWorkers Insert_number_here - overrides the number of background worker processes. WARNING: Don't use this unless you really need to, things could break!
  • -PriorityWorkers Insert_number_here - overrides the number of priority worker processes. WARNING: Don't use this unless you really need to, things could break!
  • -ForceReticleAboveHorizon - Disallows looking below the Horizon for desktop when in first person by default.
  • -Verbose - Produces more detailed logs during engine initialization, useful for plugin developers and debugging.
  • -GeneratePrecache - Causes cloud records to get cached to (Resonite install folder)/RuntimeData/PreCache in addition to the normal cache location.
  • -ExportDatabaseAll Insert_path_here - Will export everything found in the local database, this includes user and group records that have been saved on the given machine.
  • -ExportDatabaseMachine Insert_path_here - Will export records specifically owned by the local machine, such as local worlds and settings.
  • -ValidateTypes - Internally checks and logs if all loaded DataModel types pass DataModel validation tests.
  • -NeverSaveSettings - Prevents settings from being saved and synced, useful for testing purposes and on prerelease builds.
  • -NeverSaveDash - Prevents dashboard changes from being saved and synced, useful for testing purposes and on prerelease builds.
  • -DisablePlatformInterfaces - Disables all platform interfaces. This includes things like Discord and Steam rich presence, but also includes platform interfaces such as the clipboard manager. This argument essentially stops Resonite from advertising itself to the host system completely.

Resoniteカスタムプロトコルハンドラー(Steam専用)

Resonite registers a custom protocol handler with your computer on installation. You can use this to create links which will open Resonite to a set location or world when they are clicked. These arguments are given to the Resonite launcher, which will make sure Resonite is launched and running and forward them to the running instance.

  • Resonite:?world=Insert_URL_here - Open a world or session at given URL
    • For example Resonite:?world=resrec:///U-ProbablePrime/R-9ce872e1-ffb8-4194-bb91-3d3ab5f157a1 - Will Open "The Directory" by ProbablePrime
    • And for Sessions Resonite:?world=Resonite-session://eea1442e-0ff2-4d6a-ad16-2dac9ea786fc will join session eea1442e-0ff2-4d6a-ad16-2dac9ea786fc

The URL of a world can be accessed by opening the inspector for a world orb and navigating to the WorldOrb component or by using the Session menu's "Copy Record URL" button:

Dashboard on the "Session" tab and the "Settings" selected with the button "Copy Record URL" highlighted

The URL field can be selected by double clicking into the field. The URL text can be copied to the Windows clipboard via Ctrl+C.

When linking to a world on a platform that restricts the clickability protocol handlers, you can use the redirect junction located at https://api.resonite.com/open/ instead. They will redirect to use the above Resonite: protocol handler.

Unityスタンドアロンプレイヤーの起動引数

The Unity Standalone Player command line arguments can be useful for setting a specific resolution, or the windowed mode.

  • -screen-fullscreen 0 - Launch Resonite in a window.
  • -screen-fullscreen 1 - Launch Resonite in full-screen.
  • -screen-width - Sets the horizontal resolution.
  • -screen-height - Sets the vertical resolution.

Example: If you use -screen-fullscreen 0 -screen-width 1280 -screen-height 720 Resonite will launch in a 1280x720 window.

起動引数の使用方法

以下は、コマンドライン引数を使ってResoniteを起動するための3つの方法です。

Each example explains how to combine the -Invisible and -CachePath Insert_path_here commands. Here the examples show how to specify a non-default cache location at D:\Temporary files\ResoniteCache\.

Choosing the best method to use depends on how you normally launch Resonite. For most users, the setup described in #Launching from Steam is likely the best choice.

Launching from Steam

  1. Open Steam
  2. Right click on Resonite in your library
  3. Select "Properties" and then "Set Launch Options".
  4. Enter the command you need to use, exactly as it appears above and Run Resonite.

Setting custom launch options via Steam

Now, if Resonite is launched via Steam, the custom command line arguments will take effect.

Commands entered via this method will not take effect if Resonite is launched any other way, such as directly launching the Resonite.exe.

スタンドアロンビルドの場合

Use a shortcut

It is possible to use launch commands via a custom shortcut targeting the Resonite.exe file.

To create a shortcut:

  1. Find the Resonite install folder and right-click on the Resonite.exe.
  2. In the context menu click 'Create Shortcut'
  3. Move the 'Resonite.exe - Shortcut' file to somewhere more convenient (such as the Desktop).
  4. Right-click on the shortcut file and click 'Properties' in the context menu.
  5. This opens a dialog window. Select the 'Shortcut' tab.
  6. In the 'Target' text box add a space after the Resonite.exe filepath and then add your command line arguments.
  7. Click 'Apply' and 'OK'.

Now, if Resonite is launched by double clicking on the shortcut it will launch using the custom options. These will not be applied if a different method is used to start Resonite.

Setting custom launch options for a Shortcut

Examples

Here we're providing some example Command Line Argument setups and describing what they can do:

  • Single world experience - Use command line arguments to setup a single world experience version of Resonite. Useful for conventions and exhibitions.
  • Automatically join a session - Use command line arguments to create a copy of Resonite that automatically joins a session on launch. Useful for classrooms, meetings etc.