Byte Wars is the official tutorial game for AccelByte Gaming Services (AGS). It is intended to act as a sample project that can be used as a reference on the best practices to integrate our services into your game. We created Byte Wars from scratch as a fully functional offline game. This offline game was then brought online with the power of AccelByte’s platform by adding different services from each of our service areas like access, play and engagement. Every tutorial module walks you through a step by step guide to add a specific feature to Byte Wars which you can then translate into your own game.
- Use Unreal Engine version 5.1.0 source build from Unreal Engine on Github.
Byte Wars published the source code in two branches:
- main branch is the vanila version game source code without any submodule and will in use for Tutorial Module 1: Initial Setup.
- tutorialmodules branch is the branch that has the AccelByte's Plugins and all the Byte Wars tutorial modules with feature flag.
Run the following git command to clone the main
branch.
git clone git@github.com:AccelByte/accelbyte-unreal-bytewars-game.git
The tutorialmodules
branch has several plugins set as submodules:
- AccelByte Unreal Online Subsystem under
Plugins/AccelByte/OnlineSubsystemAccelByte
. - AccelByte Unreal SDK under
Plugins/AccelByte/AccelByteUe4Sdk
. - AccelByte Network Utilities under
Plugins/AccelByte/AccelByteNetworkUtilities
.
To clone the repository and checkout the submodule at the same time, run the following command:
git clone --branch <branch-name> --recursive git@github.com:AccelByte/accelbyte-unreal-bytewars-game.git
- Right click on AccelByteWars.uproject, select unreal engine version.. then choose unreal engine version 5.1.0 that you already installed.
- Open AccelByteWars.sln generated from step number 1, using your prefered IDE.
- Compile the game project using Development Editor - Win64.
- Open unreal editor by double clicking on AccelByteWars.uproject or run unreal editor via IDE (Development Editor - Win64).
- Click on PIE button to run the game.
- Open unreal editor.
- Package game sever platform Windows, Development config, AccelByteWars as the target.
- On build complete, then run the package game client.
- Open unreal editor.
- Package game sever platform Windows, Development config, AccelByteWarsServer as the target.
- On build complete, then run the package game server using the following command.
AccelByteWarsServer.exe -server -log
- Run both game client and game server.
- On game client, make sure it's in main menu, open command prompt using ` (tilde key on keyboard)
- Then run the following command to connect to game server.
open 127.0.0.1:7777/Game/ByteWars/Maps/MainMenu/MainMenu
Follow along Byte Wars Learning Paths. We suggest you to start with the Login with Device ID and Steam path if you're unsure where to start.