Skip to content

Unreal Engine 5

Follow the instructions below to create and configure the hive_config.xml file. The file will be created at the path below. For more details, refer to the Basic Configuration Guide.

  • Android
    • /HIVESDK/Source/HIVESDK/ThirdParty/android/resource/res/raw/hive_config.xml
  • iOS
    • /HIVESDK/Source/HIVESDK/ThirdParty/iOS/resource/hive_config.xml
  • Windows
    • /HIVESDK/Source/HIVESDK/ThirdParty/Windows/config/hive_config.xml

Setting up with Unreal Editor

In the Unreal environment, you can automatically create the hive_config.xml file using the Unreal Editor and assign configuration values.

The method for configuring the hive_config.xml file for using Hive in Unreal Editor is as follows.

  1. Click Edit > Project Settings in the Unreal Editor menu. The project settings window will appear on the screen.
  2. In the left panel of the project settings window, click the Hive Config menu. The HIVEConfig XML settings screen will appear.

hive_config.xml example

Below is an example of the hive_config.xml file when using authentication (Google authentication) and payment (Google Play Store or Apple AppStore). Please change, add, or delete values according to the Hive SDK features you want to use and the app environment. Since iOS only supports Apple AppStore payments, set the market to AP in the Unreal iOS environment.

<properties>

    <!-- Hive SDK Common Settings: START -->
    <appId>com.sample.your</appId>

    <gameLanguage>en</gameLanguage>

    <!-- Select Hive platform server. sandbox for development, real for production
        (sandbox, real) -->
    <zone>real</zone>

    <!-- Set whether to use internal operation logs of the SDK
        (true, false) -->
    <useLog>false</useLog>

    <!-- Company settings
        (C2S: Com2us, GVI: Com2us Holdings) -->
    <company>C2S</company>

    <!-- Channel settings
        (C2S: Hive Platform) -->
    <channel>C2S</channel>

    <!-- Payment market settings
        (GO: Google Play, LE: Com2us Lebi, AP: Apple App Store) -->
    <market>GO</market>

    <!-- Set the HTTP Connect Timeout used internally by the Hive SDK in seconds
        (Do not change unless in special cases) -->
    <httpConnectTimeout>8</httpConnectTimeout>

    <!-- Set the HTTP Read Timeout used internally by the Hive SDK in seconds
        (Do not change unless in special cases) -->
    <httpReadTimeout>8</httpReadTimeout>

    <agreementDetermineBase>device</agreementDetermineBase>
    <!-- Hive SDK Common Settings: END -->

    <!-- Hive SDK Feature-specific Settings: START -->
    <!-- Authentication product settings: Use Google authentication -->
    <providers>             
        <google playAppId="123456789012" clientId="123456789012-abc.apps.googleusercontent.com" serverClientId="123456789012-abc.apps.googleusercontent.com" reversedClientId="com.googleusercontent.apps.123456789012-abc" deviceFlowClientId="331526026701-gn1abq1ev23nqj7rdvvlaamf7ii4f3u9.apps.googleusercontent.com" />
    </providers>
    <!-- Hive SDK Feature-specific Settings: END -->

</properties>
Info

Hive SDK configuration can save values in the configuration file before app build or change configuration values during runtime (app execution). For more details, please refer to Hive SDK configuration.