> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using older versions of Unreal Engine 4

> レガシー UE4 プロジェクト用のソース パッチおよび互換性メモを含む、古い Unreal Engine 4 バージョンと PlayFab Party Online Subsystem を統合します。

PlayFab Online Subsystem (OSS) は正式にはサポートしていませんが、Unreal Engine 4 の古いバージョンでも使用することは十分可能です。コア ネットワーキング機能は、インターフェイス関数名とシグネチャに軽微な調整を加えることで Unreal Engine 4 の以前のバージョンに移行され、特定のインスタンスは Unreal Engine 4 OSS インターフェイスの古いバージョンに一致するように名前が変更または削除されます。

## バージョン 1.07 以前の XDK サポート

* 以下の変更を Game (Engine ではない) INI ファイル 'XboxOneEngine.ini' に適用します
* INI セクションが既に存在する場合は置き換えます (例: Engine.GameEngine)
* すべての *\<REPLACE ME>* フィールドをデータで置き換えるようにしてください。

```
[OnlineSubsystem]
DefaultPlatformService=PlayFab
NativePlatformService=Live

[OnlineSubsystemPlayFab]
bEnabled=true
PlayFabTitleID=<REPLACE ME with your PlayFab title ID>
MaxDeviceCount=<REPLACE ME with your max player count (note: split screen is still 1 device). In the example of an 8 player game, this would be 8.>
MaxDevicesPerUserCount=<REPLACE ME with your max player count per box (note: split screen is still 1 device) In the example of an 8 player game, this would be 1.>	
MaxEndpointsPerDeviceCount=<REPLACE ME with your max player count per box (note: split screen is still 1 device)  In the example of an 8 player game, this would be 1.>
MaxUserCount=<REPLACE ME with your max player count (note: split screen is still 1 device)  In the example of an 8 player game, this would be 8.>		
MaxUsersPerDeviceCount=<REPLACE ME with your max player count per box (note: split screen is still 1 device)  In the example of an 8 player game, this would be 1.>

[/Script/OnlineSubsystemPlayFab.PlayFabNetDriver]
NetConnectionClassName="OnlineSubsystemPlayFab.PlayFabNetConnection"
ReplicationDriverClassName="<REPLACE ME with your existing replication driver class name>"
ConnectionTimeout=15.0
InitialConnectTimeout=30.0

[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemPlayFab.PlayFabNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
```

## XDK と GDK 間の世代間プレイを有効にする

Unreal Engine 4 の既定のゲーム実装では、受信するリモート Net ID がローカル インスタンスと同じサブシステム タイプであることを検証するため、XDK と GDK 間のクロスプレイでは異なるタイプが発生し、以下のいずれかの変更を行う必要があります:

* GameMode 内の関数をオーバーライドし、このチェックを必要としない PreLogin 関数を実装するか、NetID のベース関数に nullptr を渡してチェックをスキップします。
  * このクラスは既にオーバーライドされている可能性があります
  * ベース関数 AGameMode::PreLogin を編集して OSS タイプ チェック (**bUniqueIdCheckOk**) を削除します


## Related topics

- [Unreal Engine で GDK を使用する](/ja-jp/build/gdk-and-engines/unreal/unreal.md)
- [Unreal Engine 概要](/ja-jp/paths/unreal/overview.md)
- [unreal_client_initialization_completed](/ja-jp/services/playfab/api-references/events/Networking/unreal-client-initialization-completed.md)
- [Unreal Engine (C++、Blueprints) SDK](/ja-jp/services/playfab/sdks/unreal/index.md)
- [Unreal Engine クイックスタート](/ja-jp/services/playfab/sdks/unreal/quickstart.md)
