> ## 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.

# Uso de versiones anteriores de Unreal Engine 4

> Integre el Online Subsystem de PlayFab Party con versiones anteriores de Unreal Engine 4, incluidas revisiones de código fuente y notas de compatibilidad para proyectos de UE4 heredados.

Aunque el Online Subsystem (OSS) de PlayFab no lo admite oficialmente, es totalmente posible usarlo en versiones anteriores de Unreal Engine 4. La funcionalidad de red principal se puede migrar a versiones anteriores de Unreal Engine 4 con pequeños ajustes en los nombres y firmas de las funciones de interfaz, con determinadas instancias renombradas o eliminadas para coincidir con las versiones anteriores de la interfaz OSS de Unreal Engine 4.

## Compatibilidad con XDK en la versión 1.07 y anteriores

* Aplique los cambios siguientes al archivo INI del juego (no del motor) 'XboxOneEngine.ini'
* Reemplace las secciones INI si ya existen (por ejemplo, Engine.GameEngine)
* Asegúrese de reemplazar todos los campos *\<REPLACE ME>* con sus datos.

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

## Habilitación del juego entre generaciones entre XDK y GDK

La implementación de juego predeterminada de Unreal Engine 4 valida que un Net ID remoto entrante sea del mismo tipo de subsistema que la instancia local; por lo tanto, el juego cruzado entre XDK y GDK tendrá tipos diferentes y requiere que realice uno de los cambios siguientes:

* Invalide la función dentro de su GameMode e implemente una función PreLogin que no requiera esta comprobación, o pase un nullptr a la función base para el NetID, omitiendo la comprobación.
  * Es posible que ya tenga esta clase invalidada
  * Edite la función base AGameMode::PreLogin para eliminar la comprobación de tipo de OSS (**bUniqueIdCheckOk**)


## Related topics

- [Uso del GDK con Unreal Engine](/es/build/gdk-and-engines/unreal/unreal.md)
- [Azure PlayFab Party Online Subsystem para Unreal](/es/build/console-features/networking/game-mesh/party-unreal-online-subsystem.md)
- [PlayFab Online Subsystem (OSS)](/es/services/playfab/multiplayer/networking/party-unreal-engine-oss-overview.md)
- [Integración del GDK con un proyecto de Unreal Engine anterior a la versión 4.26](/es/build/gdk-and-engines/unreal/unreal-legacy.md)
- [Uso del GDK con Unity](/es/build/gdk-and-engines/unity/unity.md)
