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

# Usando versões mais antigas do Unreal Engine 4

> Integre o PlayFab Party Online Subsystem a versões mais antigas do Unreal Engine 4, incluindo patches de código-fonte e observações de compatibilidade para projetos UE4 legados.

Embora não tenha suporte oficial do PlayFab Online Subsystem (OSS), é perfeitamente possível usá-lo em versões mais antigas do Unreal Engine 4. A funcionalidade de rede principal pode ser migrada de volta para versões anteriores do Unreal Engine 4 com pequenos ajustes nos nomes e assinaturas das funções da interface, com determinadas instâncias renomeadas ou removidas para corresponder às versões mais antigas da interface OSS do Unreal Engine 4.

## Suporte ao XDK na versão 1.07 e anteriores

* Aplique as alterações abaixo ao arquivo INI do jogo (não do mecanismo) 'XboxOneEngine.ini'
* Substitua as seções INI, se já existirem (por exemplo, Engine.GameEngine)
* Certifique-se de substituir todos os campos *\<REPLACE ME>* pelos seus dados.

```
[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")
```

## Habilitando o jogo entre gerações entre XDK e GDK

A implementação de jogo padrão no Unreal Engine 4 valida se uma Net ID remota recebida é do mesmo tipo de subsistema que a instância local; dessa forma, no cross-play entre XDK e GDK, os tipos serão diferentes, o que exige que você faça uma das seguintes alterações:

* Substitua a função no seu GameMode e implemente uma função PreLogin que não exija essa verificação ou passe um nullptr para a função base como NetID, ignorando a verificação.
  * Talvez você já tenha substituído essa classe
  * Edite a função base AGameMode::PreLogin para remover a verificação de tipo do OSS (**bUniqueIdCheckOk**)


## Related topics

- [PlayFab Online Subsystem (OSS)](https://docs.xbox.com/pt-BR/services/playfab/multiplayer/networking/party-unreal-engine-oss-overview.md)
- [PlayFab Party Online Subsystem para Unreal](https://docs.xbox.com/pt-BR/build/console-features/networking/game-mesh/party-unreal-online-subsystem.md)
- [Introdução ao Unreal Engine para desenvolvimento para PC](https://docs.xbox.com/pt-BR/build/gdk-and-engines/unreal/unreal.md)
- [Desenvolvimento com Unreal para PC: introdução (versões anteriores)](https://docs.xbox.com/pt-BR/build/gdk-and-engines/unreal/unreal-legacy.md)
- [Notas de versão do PlayFab 2017](https://docs.xbox.com/pt-BR/services/playfab/release-notes/2017.md)
