Roguelike Multiplayer Starter: Documentation
This document was first published on our former documentation site under the title "Roguelike Multi Player". The current engine versions and contents are on the product page.
Thank you for your purchase.
This product is a template that allows you to build an online game with only blueprints.
This article gives a basic explanation of the product.
Please inquire at the forum regarding customization.
Unreal Engine 4 Marketplace URL : https://www.fab.com/listings/c8edb316-520e-4ef2-a724-dfdaf0487587
Forum : https://forums.unrealengine.com/t/roguelike-multiplayer-template/53895
Table of Contents
Introduction
First of all, you want to know what you can do with this product.
In this product, processing starts in the following order when you start the game from the start screen.
- Automatically generate dungeons.
- Automatically generate enemies and place them.
- Automatically generate and arrange item boxes and traps.
- Generate and place characters that the player controls.
- The game starts.
I will explain one by one.
The start screen divides the levels. The level name is "Start Menu".
At startup, "Start Menu" is executed, and the game starts by pressing the "Single Play" button.
When the game starts, the levels switch. The level moves to the level of "Main_map".
Then, the function to automatically generate the dungeon is executed. The Blueprint "GameStart" placed on the outliner performs the first to third processing.
By the process up to here, the game environment is ready.
Next, I will explain the fourth, which is the process of the player operated by the user.
Please open the game mode "RL_GameMode" to see the fourth process.
Here, we are performing the spawn processing of the player character.
I'm linking the spawned character to the player controller.
This process is made in consideration of multiplayer.
Through this series of process flow, this product realizes multiplayer games.
Next, we will explain the base enemy AI characters and player characters and the user interface associated with them.
"Player Character" exchanges information with "RL_PlayerState" and "RL_GameInstance" to save its own state, and is controlled by "RL_PlayerController".
UMG related to the player character is aggregated in "Player UI". This includes features such as the inventory system and Damageview.
"Enemy Character" is a base class of enemy AI characters. What constitutes this class will be the classes contained in the "AISystem folder". AI controls are mainly implemented using a behavior tree.
It is this composition as processing to support multiplayer.
System Chart

It has a very simple system configuration.
Blueprint List
Blueprint list and function description
- RL_GameMode
- Game mode handles multiplayer player logins.
- Player controls and player characters are linked to the logged in player.
- RL_GameInstance
- Game instances provide read / write functionality to save information about the game being played and to pass information to the next stage.
- RL_PlayerState
- Player State provides functions for acquiring information about players from game instances and placing Damage View.
- RL_PlayerController
- The player controller provides a mechanism to set the player's user interface and to spawn characters after the player logs in.
- PlayerType
- The player type defines the player type in Enum. It defines three types of players, enemies, and friends.
- PlayerCharacter
- The player character is the base player class. You can customize easily by inheriting this class and creating your own player function.
- It includes battle handling, item handling, and user interface handling.
- ItemType
- Item type defines the type of item. This definition is used when processing item boxes or using items with player characters.
- InventoryStruct
- An inventory struct is a structure that defines data about an item.
- Use this definition to set values or get values when processing items.
- AnimeInterface
- The animation interface provides notifications from the animation of players and enemy characters, and is used to aggregate the processing to be called when making an attack.
- EnemyCharacter
- Enemy characters are the base Enemy class.
- You can easily customize it by inheriting this class and creating your own enemy process.
- Provides basic combat handling and level up processing.
- AIcharacter_behaviourTree
- It is a tree diagram that defines the basic operation of AI.
- Here, as a basic action, we move at random and describe the logic to attack when the player enters the search range.
- AICharacter_BlackboardData
- Defines data about AI.
- The stored data is used in AI processing.
- AICharacter_Controller
- It becomes a controller of AI.
- The execution of the behavior tree and the notification that the AI character started attacking and the notification that it ended are passed to the animation character animation BP through the interface.
- AIInterface
- This is an interface used to pass the start and end notifications of AI attacks to animation BP.
- Knowing the start and end of an attack makes it easy to customize.
- AIState
- Defines the state of the AI character.
- If you want to add a new action, it is better to increase the definition here.
- We use in Blackboard.
- BTS_VisionCheck
- It is a process to search for a player.
- If it is within the set range, it will transition to the state to start tracking or attack.
- By customizing this logic, you can create various behavior of AI character when you find the player.
- BTT_Attack
- Sends an attack process to the AI controller.
- Notifies that the attack has started.
- BTT_SetWalkSpeed
- Change the moving speed of AI character.
- The setting value will be the number defined by Speed.
- BTT_WanderToPoint
- It is a process to move the AI character at random.
- It will be the behavior when the player can not recognize.
- BP_Relevancy
- It becomes processing of a treasure chest.
- You can spawn items and equipment.
- By adding item types and processes, it becomes possible to add various types of items and equipment.
- DropItemTemplate
- You can define the appearance of the item when it is dropped.
- By setting the mesh, it can be changed to various appearance items.
- This template is not divided by type, but it can be changed by specifying a static mesh when popping with BP_Relevancy.
- 2D_SoundManager
- It becomes a sound system for 2D corresponding to multiplayer.
- Use when you want to share the volume.
- 3D_SoundManager
- It becomes a sound system for 3D corresponding to multiplayer.
- Use when you want to share the volume.
- SoundAttenuation
- It will be set for 3D sound.
- SoundType
- Defines the type of sound.
- What is defined this time is two types of SE that is played in connection with BGM and interaction flowing during play.
- GameStart
- Automatic generation of dungeons at run time, placing enemies and item boxes.
- WorldData
- A random number corresponding to multiplayer is stored.
- AABB
- Performs an Axis-Aligned Bounding Box calculation.
- We are performing calculation processing to automatically generate dungeons.
- GridData
- Calculate GridData.
- We are performing calculation processing to automatically generate dungeons.
- QuadtreeSetup
- We are performing calculation processing to automatically generate dungeons.
- GenerateAsset
- Generate assets such as enemies, traps, item boxes, etc.
- NextStageTrigger
- It is a collection object for the next Floor to appear.
- When all are collected, the next Floor will appear.
- Floor
- Floor mesh for automatic generation.
- Wall
- Column mesh for automatic generation.
- Slope
- It is a stairs mesh to move to the next Floor.
- The process of floor movement is defined in game mode.
- BomBP
- It is a bomb that is spawned from a trap.
- Explode and damage the user.
- TrapBP
- It is a function of the trap box that is disguised as an item box.
- It spawns a bomb that does damage to the player.
- DamageView
- It is a view function to display damage.
- DropItemName
- It provides a user interface function to display the name of the dropped item.
- GameOver
- It provides a user interface during game over.
- InventorySlot
- Defines one slot of inventory.
- LoadingUI
- Provides loading screen and loading function.
- New_StartMenu
- It becomes the menu function in the start screen.
- Here, P2P connection processing is mainly performed.
- PlayerUI
- Provides screens and features of the player character's main user interface.
- It displays the item display process and the player status.
- SettingMenu
- It provides screens and features for changing game settings on the start screen.
- MagicTemplate
- It offers a magical look and features.
- You can customize it to look gorgeous by setting Effect and model.
- You can make magic of various effects by changing the process at the time of hit.
- Punch
- Defines the processing of the punch that is the basic attack.
- SwordTemplate
- It provides the look and function of the sword.
- To customize it, you can change it to a gorgeous look by changing animation and sword effects and models.
- You can make weapons of various effects by changing the processing at the time of hit.