Configuring DefaultEngine.ini
Overview
This guide provides instructions for configuring the DefaultEngine.ini
file to ensure proper integration with SteamCore PRO (version 1.0.1.3 and later) for dedicated servers. The configuration enables Steam integration, player authentication, and network settings customization.
Setting Game Server Information
To ensure accurate communication with Steam, configure the GameServerProductName and GameServerGameDescription settings in the DefaultEngine.ini
file. If these are not set, the SteamAppId will be used as a fallback.
- Configuration (replace with your game’s name and description, keeping them concise):
[OnlineSubsystemSteamCore]
GameServerQueryPort=27015
GameServerProductName=JustUs
GameServerGameDescription=Simple Game
Example DefaultEngine.ini Configuration
Below is a complete example of a DefaultEngine.ini
configuration tailored for SteamCore PRO. Customize this template to match your project’s requirements.
[OnlineSubsystemSteamCore]
bEnabled=True
SteamDevAppId=480
SteamAppId=480
bVACEnabled=True
bUseSteamNetworking=True
bAllowP2PPacketRelay=True
GameServerQueryPort=27015
GameServerProductName=JustUs
GameServerGameDescription=Simple Game
GameVersion=1.0.0.0
[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/SteamCoreSockets.SteamCoreSocketsNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")
[OnlineSubsystem]
DefaultPlatformService=SteamCore
This is an example configuration. Adjust values such as SteamDevAppId
, SteamAppId
, and GameVersion
to align with your project’s settings.
Enabling Player Authentication
For SteamCore PRO 1.0.3.1 and later, the SteamCore Auth Module enables automatic player authentication on dedicated servers. Add the following to your DefaultEngine.ini
:
[PacketHandlerComponents]
+Components=OnlineSubsystemSteamCore.SteamCoreAuthComponentModuleInterface
Configuring IP-Based Connections
By default, SteamCore PRO (version 1.0.3.2 and later) uses Steam’s P2P relay network for client-server communication. To use traditional IP-based connections instead, disable the P2P relay by setting bAllowP2PPacketRelay
to False
:
[OnlineSubsystemSteamCore]
bAllowP2PPacketRelay=False
Best Practices
- Customization: Tailor all configuration settings to your project’s specific requirements, including Steam App IDs and game version.
- Testing: Verify the configuration in a test environment to ensure proper server functionality and player authentication.
- Security: When using IP-based connections, ensure proper network security measures are in place, as direct IP connections bypass Steam’s relay network.