メインコンテンツまでスキップ

設定インジェクション

Last updated on July 14, 2026

注釈:本資料はAI技術を用いて翻訳されています。

はじめに

AccelByte Gaming Services (AGS) では、設定インジェクションを使用して、ゲームの実行呼び出し時に SDK と OAuth の設定を上書きできます。設定インジェクションは複数の上書きコマンドに対応しています。

注記

設定を上書きしても、SDK 設定ファイルの値は変更されません。上書きコマンドで宣言された値のみが上書きされ、他の設定値はそのまま保持されます。

上書きコマンド

SDK と OAuth の設定をインジェクションするには、次の例のように -AB<Config_Name> <Config_Value> コマンドを使用します。

バイナリを実行する前に、コマンドをコマンドライン引数として設定します。

GameExecutable -ABIamServerUrl "https://dev.accelbyte.io/iam" -ABMatchmakingServerUrl "https://dev.accelbyte.io/matchmaking" -ABClientId "YourClientId" -ABClientSecret "YourClientSecret"

AGS 3.78 のリリース以降、等号 (=) も使用できます。

GameExecutable -ABIamServerUrl="https://dev.accelbyte.io/iam" -ABMatchmakingServerUrl="https://dev.accelbyte.io/matchmaking" -ABClientId="YourClientId" -ABClientSecret="YourClientSecret"

設定一覧

このセクションの一覧は、共通の設定とエンジン固有の設定に分かれています。

すべてのエンジンで利用可能

以下に記載されているゲームクライアントおよびデディケイテッドサーバーは、すべてのエンジンの SDK に存在します。

NoNameTypeUsage
1Namespacestringゲームのネームスペース
2PublisherNamespacestringスタジオまたはパブリッシャーのネームスペース
3ClientIdstringクライアント OAuth 設定用の ID
4ClientSecretstringクライアント OAuth 設定用のシークレット
5BaseUrlstringサービス URL のベース
6IamServerUrlstring
7PlatformServerUrlstring
8BasicServerUrlstring
9LobbyServerUrlstring
10CloudStorageServerUrlstring
11GameProfileServerUrlstring
12StatisticServerUrlstring
13QosManagerServerUrlstring
14AgreementServerUrlstring
15LeaderboardServerUrlstring
16CloudSaveServerUrlstring
17GameTelemetryServerUrlstring
18AchievementServerUrlstring
19UGCServerUrlstring
20ReportingServerUrlstring
21SeasonPassServerUrlstring
22SessionBrowserServerUrlstring
23SessionServerUrlstring
24MatchmakingV2ServerUrlstring
25GroupServerUrlstring
26ChatServerWsUrlstring
27ChatServerUrlstring
28GdprServerUrlstring
29AMSServerUrlstring
30RedirectURIstring
31AppIdstring
32UseTurnManagerbool
33TurnManagerServerUrlstring
34TurnServerHoststring
35TurnServerPortint
36TurnServerPasswordstring
37TurnServerSecretstring
38TurnServerUsernamestring
39PeerMonitorTimeoutMsint
40PeerMonitorIntervalMsint
41HostCheckTimeoutMsint
42EnablePreDefinedEventbool
43EnablePresenceBroadcastEventbool
44PresenceBroadcastEventIntervalint
45CustomerNamestring

Unreal SDK で利用可能

以下は、Unreal SDK でのみ利用可能なゲームクライアントおよびデディケイテッドサーバーの設定です。

NoNameType
1GameTelemetryCacheEnabledbool
2EnableAMSbool
3EnableHttpCachebool
4HttpCacheTypestring
5QosPingTimeoutint
6QosLatencyPollIntervalSecsint
7QosServerLatencyPollIntervalSecsint
8NonSeamlessTravelUseNewConnectionbool
9RequiresEncryptPacketsbool
10ConnectionIdleTimeoutint
11RequestConnectTimeoutint
12AutoLobbyConnectAfterLoginSuccessbool
13AutoChatConnectAfterLoginSuccessbool
14MultipleLocalUsersEnabledbool
15NativePlatformTokenRefreshManuallybool
16SecondaryPlatformNamestring
17EnableMatchTicketCheckbool
18MatchTicketCheckInitialDelayint
19MatchTicketCheckPollIntervalint
20EnableSessionInviteCheckPollingbool
21SessionInviteCheckPollInitialDelayint
22SessionInviteCheckPollIntervalint
23EnableSessionServerCheckPollingbool
24SessionServerCheckPollInitialDelayint
25SessionServerCheckPollIntervalint
26EnabledEncryptionbool
27Componentsstring

Unity SDK で利用可能

以下は、Unity SDK でのみ利用可能なゲームクライアント、デディケイテッドサーバー、および外部の設定です。

NoNameType
1UsePlayerPrefsbool
2EnableDebugLogbool
3DebugLogFilterstring
4EnableAuthHandshakebool
5MaximumCacheSizeint
6MaximumCacheLifeTimeint
7PresenceBroadcastEventGameStateint
8PresenceBroadcastEventGameStateDescriptionstring
9EnableClientAnalyticsEventbool
10ClientAnalyticsEventIntervalfloat
11EnableAmsServerQosbool

使用例

このセクションでは、設定インジェクションを使用できるいくつかのシナリオを紹介します。

別のネームスペースに切り替える

現在ゲームが参照しているネームスペースを切り替えることができます。たとえば、開発ネームスペースでビルドをテストし、ビルドが安定した後にステージネームスペースへ昇格させたい場合、設定インジェクションを使用してこれを実現できます。つまり、ゲームを再ビルドする必要がありません。

ご利用の AGS アカウントティアに適したコマンドを使用してください。

GameExecutable -ABNamespace "studionamespace-targetedgamenamespace" -ABClientId "YourClientId" -ABClientSecret "YourClientSecret"

AGS 3.78 のリリース以降、等号 (=) も使用できます。

GameExecutable -ABNamespace="studionamespace-targetedgamenamespace" -ABClientId="YourClientId" -ABClientSecret="YourClientSecret"

別の環境に切り替える

ゲームが現在参照している環境を変更することもできます。これは、開発環境内のネームスペースから、社内プレイテストイベントやコミュニティプレイテスト向けに指定されている可能性のあるステージ環境のネームスペースへ移行することを意味します。

この方法は、次のようなシナリオで使用できます。

  • ある AGS Private Cloud 環境から別の AGS Private Cloud 環境への設定インジェクション。
  • AGS Public Cloud 環境から AGS Private Cloud 環境への設定インジェクション、およびその逆。
GameExecutable -ABNamespace "targetedgamenamespace" -ABPublisherNamespace "targetedpublishernamespace" -ABClientId "YourClientId" -ABClientSecret "YourClientSecret" -ABBaseUrl "https://cert.accelbyte.io"

AGS 3.78 のリリース以降、等号 (=) も使用できます。

GameExecutable -ABNamespace="targetedgamenamespace" -ABPublisherNamespace="targetedpublishernamespace" -ABClientId="YourClientId" -ABClientSecret="YourClientSecret" -ABBaseUrl="https://cert.accelbyte.io"