-
Download docker-compose.yml file:
wget https://raw.githubusercontent.com/aileron-split/unreal-backers-api/main/docker-compose.yml -O docker-compose.yml
-
Alternatively, download .env file template:
wget https://raw.githubusercontent.com/aileron-split/unreal-backers-api/main/.env-template -O .env
-
Set environment variables (or update the variables in the .env file):
POSTGRES_PASSWORD= DJANGO_SUPERUSER_EMAIL= DJANGO_SUPERUSER_PASSWORD= ALLOWED_HOSTS= CSRF_TRUSTED_ORIGINS= HOST_API_PORT=
-
Run docker-compose the usual way for your hosting option, for example:
docker-compose pull docker-compose up -d
-
Note: Here is a list of paths which need to be exposed through proxy:
code register unregister admin/ config/ patreon/
Create Patreon API Key at https://www.patreon.com/portal/registration/register-clients
- Click Create Client
- Fill in the Patreon API Client form
- Copy corresponding keys to Configuration > API Config in the Backers API Admin panel
- Patreon Tiers will auto-sync with Patreon Campaign
- Select all tiers, choose "Mirror selected to Game Tiers" action, and click "Go"
- Edit Game Tier codes and labels
- Click Add Game Version and provide a Version string to generate the version hash and corresponding RSA key pair
Once you acquired the plugin from the Unreal Engine Marketplace all you need to do is click the "Install to Engine" button for the plugin in your Epic Games Launcher. After download and install process is finished, you can open your Unreal Engine project and enable Backers in your Plugins Settings.
If you need more detailed instructions you can find them in the Unreal Engine Documentation pages. On the same documentation page you'll find the instructions on how to enable the plugin too.
Once the plugin is installed and enabled you're all set to configure it in your Project Settings.
- Go to Project Settings > Plugins > Backers Plugin section
- Configure your API URLs
- Copy Game Version string from the API Admin
- Copy Game Version Public key from the API Admin
- Place the Backers Login widget anywhere in your game UI
- Bind an event to OnBackerCodeUpdated event dispatcher to respond to backer code changes
- Use the Backers Subsystem's variables to get the current backer login status and information
Optionally, you can download and import Game Tiers list to display user friendly tier names, and/or use Unreal Engine built-in localization system to translate tier labels to different languages.
- Download .csv file from Game Tiers page in the API Admin interface
- Import the
GameTiersConfiguration.csv
file into Unreal usingBackersGameTiersStruct
as data table row type - Configure the Backers Login Widget to use the imported data table
Once the user/backer is logged into the system with their crowdfunding platform account and have been assigned a game tier, the information is available anywhere within project's blueprints via the special Backers Subsystem blueprint node.
Complete Documentation for the Backers Subsystem and other related nodes can be found in the Wiki pages for the repository.