Skip to main content

Decks

Deck Blueprint is the actual Actor that exists in your game world. Its purpose is to list the cards and manage interactions such as drawing and shuffling.

Deck Blueprint actor in the game world

This guide explains how to create and configure decks.

If you need to create decks manually, you have to follows this guides:

  1. Create Card Blueprint Manually
  2. Create Deck Generator
  3. Create decks manually

Create a Deck​

To do this guide you need a card set, if you don’t have one yet you can create here:

Step 1 – Select Mod and Deck​

The first step is to open the Deck Editor.

Open the Deck Editor from the toolbar

Select the mod in which you want to create your deck. Then, under Existing Decks, you can select an existing deck to edit or create a new one. In this example, select New Deck.

Select the mod and New Deck

New Deck selected in the Deck Editor

Step 2 - Configure each deck you want to create​

The first step you have to do in the Deck Creation Wizard is to select the game you want to create the decks for.

After that, enter the number of the decks you want to create in the Number of Decks field.

To configure each deck, you have the following fields:

  • Deck Name: The name of your deck in the Game Index General Data Table and the name of the deck Blueprint. For example, if you enter “EnemyDeck” as the name, the Blueprint will be named BP_GameID_EnemyDeck. For example: Action_Deck.
  • Create Deck From: If this option appears, it means that you already have a deck Blueprint in your game. Use this field if you want to create a new deck based on an existing deck. We recommend selecting the base deck when creating a new deck.
  • Name Cards: The name of the cards in the Game Index General Data Table, the Actor Tag of the card Blueprint, and the name of the Blueprint. For example: CardAction
  • Card Dimensions: The dimensions you want for your cards. You can choose from several options: Big, Poker, American Narrow and Small.
  • Card Textures: This field is where you can drag and drop your card textures or card sheets. If you are using a card sheet, in Texture Mode you must specify the number of Rows and Columns in the texture.
  • Back Texture: This field is where you can set the texture for the back of your cards.
  • Start Shuffle: This option allows you to have the deck shuffled at the beginning of the game.
  • Cards Face Up: This option allows you to choose whether the cards in the deck start face up or face down.
  • Has Discard Pile: Choose whether you want to have a discard pile for this deck.
  • Is Player Deck: This option creates one deck for each player in your game. For example, if your game supports a maximum of 4 players, enabling this option will create 4 decks, one for each player.

Once you have configured everything, click Generate Decks. Your decks will then be ready to be placed on the table.

Deploying elements

Create Deck Generator​

A Deck Generator in All On Board! is an asset that defines the composition of a specific deck. Essentially, it's a list of which cards should be in a deck and how many copies of each. You'll create a unique Deck Generator for each different pre-defined deck in your game

Step 1 - Create a New Deck Generator Blueprint​

First, right-click in an empty space in the counter bowser to open the Add Window and select All On Board! Blueprint Class.

Open the Add Window and select Blueprint Class

Once the Pick Parent Class Dialog opens Select CardGeneratorDeck and name your new blueprint

Select CardGeneratorDeck in the Pick Parent Class dialog

Step 2 - Configure the Card List​

Open the Card Generator and make sure you are viewing the Class Defaults. On the right side, in the Details panel, find the Card Configurations property. This is an array where each item defines a card and the number of copies included in the deck.

Card Configurations property in the Details panel

Following this, add Card Entries to the Card Configurations array and expand the new array element (e.g., “0”) to view its properties: Card Generator and Count.

Expand the new array element to view its properties

To add one card you have to Click the dropdown arrow next to the Card Generator field and select Card Generator Card

Select Card Generator Card in the dropdown

  • Card ID: This ID tells the system which specific card to generate. Enter the exact RowName that you assigned to this card in your DT_GameID_GameElementsIndexGeneral Data Table.
  • Count: This determines how many copies of the card specified by Card ID will be included in this deck.

Repeat this step for every different card you want to include in this specific deck. Click the “+” icon next to Card Configurations to add more entries. Once you have finished, you can create your deck. Create decks manually

Completed Card Configurations array

:::tip Order Matters with CardGeneratorCard When using CardGeneratorCard for multiple entries in the CardConfigurations array, the order in which these entries appear in the array dictates the initial order of cards in the deck if the deck is not set to shuffle on start. Cards listed higher in the array will be at the top of the deck (or drawn first, depending on draw direction), and cards listed lower will be at the bottom. :::

Create decks manually​

The Deck Blueprint is the actual Actor that will exist in your game world, being its purpose listing the cards and manage interactions like drawing or shuffling.

All On Board! provides two primary starting points for your game's base deck Blueprint:

  • Basic Deck or BP_000AOB_Deck: Choose this if your deck actor generally does not require a built-in UI Widget for the top card.
  • BP_000AOB_Deck_Widget: Choose this if your deck will display information via an embedded UI Widget for the top card.
tip

Remember: The Deck Blueprint and Card Blueprint must use the corresponding class.

BP_000AOB_Deck_Widget can only be used with BP_000AOB_CardWidget, while BP_000AOB_Deck can only be used with BP_000AOB_Cards.

Step 1: Create the Deck Blueprint​

There are two ways to do this:

Using All On Board! Mod Kit Toolbar​

If you want to create a deck that does not require a built-in UI Widget for the top card, select our toolbar and hover over All On Board!, then select Basic Deck. I you want to create a BP_000AOB_Deck_Widget you have to use the pick parent class dialog.

Next, select the folder where you want to save the Deck Blueprint and give it a name if you prefer a different name than the default name.

Create a Basic Deck from the toolbar

Using the Pick Parent Class Dialog​

Right-click on an empty space in the folder where you want to create your deck. The Add New menu will open. Then, hover over All On Board! and select Blueprint Class (All On Board!).

Open the Add New menu and select Blueprint Class (All On Board!)

When the Pick Parent Class dialog opens, if you want to create a deck that does not require a built-in UI Widget for the top card, select our toolbar, hover over All On Board!, and then select Basic Deck.

On the other hand, if you need a deck with a built-in UI Widget for the top card, search for BP_000AOB_Deck_Widget and select it.

Select the deck class in the Pick Parent Class dialog

Next, give the Blueprint a name if you prefer a different name than the default name. We recommend use a convention like BP_GameID_Deck_Base.

Step 2- Skip register the blueprint in the Data Table​

If you created a Basic Deck, regardless of which method you used, a window will automatically open to register your new deck in the Game Element Index Data Table. Click Skip to skip this step if the game has multiple decks of cards.

If your game only has one deck, go here:

Step 3 - Create the Specific Deck Blueprint​

If the game consists of multiple decks of cards, you must create Child Blueprints from the base deck we created. Find the Blueprint created in the previous steps, right-click on it, and select Create Child Blueprint Class.

Create Child Blueprint Class from the base deck

Step 4 - Configure the new child deck​

Open the new child blueprint to configure the next fiels:

  • Card Generator: This crucial property links your Deck Blueprint to the Deck Generator asset you created, which defines the deck's contents. Click the dropdown arrow and select the specific Deck Generator Blueprint you created. If you don’t have one yet go here:
  • Start Shuffled: Determines if the deck will automatically shuffle its cards when it is spawned into the game world.

Configure the child deck Class Defaults

When you scroll down in the details panel you can find this section with this fields to configure:

  • Mesh Representation: Defines how the deck's visual mesh changes based on the number of cards it contains.

    • None: The deck's mesh will not change regardless of card count. You'd typically set a fixed mesh for the deck.

    • MeshMap: Allows you to define a map where you specify a different Static Mesh for various card counts (e.g., one mesh for 1-5 cards, another for 6-10 cards). This provides precise control but requires more setup.

    • Scalable (Most Common): The deck will use a single card's mesh and scale it along specified axes to visually represent the number of cards.

    • If Mesh Representation is set to Scalable:

      • Max Cards: This is the number of cards represented by the Static Mesh of the deck in its default state.

      For example, if we choose the card as Static Mesh, we must enter “1” since the unscaled Static Mesh represents one card. If the Static Mesh we choose represents a deck with 40 cards, this number must be “40” for the scaling calculation to work correctly.

  • Empty Deck Material: The material that will be applied to the deck's mesh when it contains no cards.

  • Face Up: Controls whether the top card of the deck is visually displayed face up or face down.

  • Mesh Top Card: To display the Top Card, we use this auxiliary Static Mesh, which is placed at the top of the deck.

    It is usually the Static Mesh of the card.

Deck mesh representation settings

After that, if your Mesh Representation is Scalable you need configure the ScaleByCountComponent.

  • Scaled Base Mesh: Assign the Static Mesh of a single card. This is the mesh that will be scaled.

  • Scaled Base Mesh Material: Assign the material for that single card mesh. Often this is the card back material.

  • Scaling Axis: Check the boxes for the axes along which the ScaledBaseMesh should grow as cards are added. Typically, for a stack of cards, you would scale along the Z-axis (height).

    ScaleByCountComponent scaling axis settings

In addition to the Class Defaults, you also need to configure the Deck Slot Component. In its Details panel, find the Slot category, expand Requirements, and add a new element.

Deck Slot Component requirements

Click the dropdown next to the requirement type, which is initially set to None or a default value. From the list of available requirement types, select Requirement Actor Tag. Then, enter the Actor Tag you assigned to your cards.

Select Requirement Actor Tag and enter the Actor Tag

If your cards don’t have a tag, or you don’t remember it, open the card Blueprint and check it.

Check the Actor Tag in the card Blueprint

Step 5 - Register the Blueprint in the Data Table​

First create a Game Element Data Table right click in the foulder you want to create the Data asset. Select Miscellaneous→Data Asset.

Create a Data Asset from the Content Browser

Pick the Data Asset class

Open the Game Element Data Asset and, under World Representation, select the child Blueprint Deck you configured.

Select the child deck in World Representation

Then open the GameElementIndexGeneral Data Table and add a new row for the deck

Add a new row in the GameElementIndexGeneral Data Table

Finally, change the row name. This name will be the Game Element ID for the deck, and assign its GEDA.

Change the row name and assign the GEDA

tip

If you want to place your deck or multiple decks like this one on the table, go to this page: Deploying elements