Skip to main content

Card

In All On Board!, a card consists of a Card Blueprint, which defines its appearance and common behaviors, and a Card Data Asset, which stores its unique data, such as its name, text, and specific stats.

Card Blueprint and Card Data Asset

The following is a list of things you can do with cards in All On Board!:

Create Cards​

All On Board! Mod Kit have a tool to create set of cards for your decks. You can find it in the —-

Step 1 - Have your textures ready​

Before creating your deck or decks, make sure you already have your card textures in the project.

Don’t worry about the texture format: you can use either individual textures (one per card) or card sheets. However, all cards in the deck must use the same format. For example, if you use card sheets, all cards must be provided as card sheets.

Once you have everything ready, select the All On Board! toolbar and click on Set Cards Editor

Mod: Select the mod in which you want to create your die.

Existing Card Set: Select if you want to create a new one card set or you want to edit an existing card set

Prefix Card name

  • Card Size: Select the size of your cards. You can choose Custom Size to specify your cards' dimensions or Custom Mesh to use your own mesh for the cards.
  • Texture Mode: Choose whether to use separate textures for each card or a card sheet containing multiple cards.
  • Texture: Drag and drop your card textures into this array.
  • Back Texture: Select the texture to use for the back of your cards.
  • Variables: Create variables that will be shared by all your cards. You can then customize their values for each card in its respective Card Data Asset.

Set Cards Editor configuration fields

When you select Card Sheet as the Texture Mode, additional fields will appear to help you configure how the textures are arranged and ensure they are displayed correctly.

  • Rows: Set the number of rows of cards in each card sheet.
  • Columns: Set the number of columns of cards in each card sheet.
  • Margin Left / Top / Right / Bottom: Specify the margins, in pixels, between the edges of the card sheet and the cards.
  • Cell Spacing: Set the spacing, in pixels, between adjacent cards in the card sheet.

Card Sheet configuration fields

In the centre of the card set editor you have

Centre of the card set editor

Create Card Blueprint Manually​

All On Board! provides two primary parent classes for your universal base card Blueprint:

  • BP_000AOB_Card: Choose this if your cards generally do not require built-in text display managed by a UI Widget, or if any text is purely part of the card's static artwork (texture).
  • BP_000AOB_CardWidget: Choose this if your cards will frequently display text (like descriptions, stats, titles) that you want to be rendered as actual text elements via an embedded UI Widget. This class typically includes functionality to manage and display that text.
tip

Remember: The Card Blueprint and Deck 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 Blueprint​

There are two ways to do this:

Using All On Board! Mod Kit Toolbar​

If you want to create a BP_000AOB_CardWidget you have to use the Pick Parent Class dialog. Select our toolbar and hover over All On Board!, then select Basic Card.

Create a Basic Card from the toolbar

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

Using the Pick Parent Class Dialog​

Right-click on an empty space in the folder where you want to create your card. 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, select Basic Card if you want to create a BP_000AOB_Card, or select BP_000AOB_CardWidget if you want to create a BP_000AOB_CardWidget.

Select the card class in the Pick Parent Class dialog

Next, give the Blueprint a name if you prefer a different name than the default name.

Step 2 - Register the Blueprint in the Data Table​

Once you have completed the previous step, regardless of which method you used, a window will automatically open to register your new card in the Game Elements Index Data Table. This table contains a list of all the objects that will be used in your game.

The correct Data Table is selected automatically, but make sure to check it just in case. For example, if your Game ID is "Example", the Data Table will be named DT_Example_GameElementIndexGeneral.

Then, enter the name you want your card blueprint to have in the table and click Register.

Register the card in the Game Elements Index Data Table

Step 3 - Configure your Card Blueprint​

Open your Card Blueprint and, in the Components panel on the left, click the Card Static Mesh Comp component.

Now, in the Details panel on the right, select the mesh you want to use for your Card. All On Board! Mod Kit already provides some options, such as SM_000AOB_Card_Standard, SM_000AOB_Card_Poker or SM_000AOB_Card_Bridge.

If you want to see all the meshes available in the All On Board! Mod Kit, check this page. Guide: Available Assets

Select the card mesh in the Details panel

Finally, click on Compile and Save. Your Card Blueprint is now created and configured.

Compile and Save the Card Blueprint

We recommend that whenever you want to create a new type of Card without using the Deck Creation Wizard, you first create a Card Blueprint like this one and name it for example BP_Card_Base.

Then, right-click it and select Create Child Blueprint Class to create the Card Blueprints you actually need.

Create Child Blueprint Class from the base card

Step 4 - Create Card Data Assets​

Create a new Card Data Asset, right-click in an empty space in the Content Browser and select Miscellaneous → Data Asset.

Create a Data Asset from the Content Browser

Then, search for Card Data Asset in the Pick Class dialog. For example, you can name it CDA_Card_001.

Search for Card Data Asset in the Pick Class dialog

Afterwards, you must fill in the following fields:

  • Card Mesh: The mesh used by your card Blueprint.
  • General Texture: The texture displayed on the front of your card.
  • General Material: The material applied to the front texture of your card.
  • Back Material: The material applied to the back of your card.
  • World Representation: The field where you select your card Blueprint.

Card Data Asset fields

Next, open your Game Elements Index General Data Table and add a new row.

Open the Game Elements Index General Data Table

Add a new row to the Data Table

You need to enter a name, which will be used as the Card ID later, for example Card_001. Then, in Game Element Data Asset, select the CDA you created.

Enter the Card ID row name

Select the CDA in Game Element Data Asset

Repeat this step for each card you want to create. Once you have finished, you can create your Deck Generator.

Add a card to an existing Deck​

If you already have a Deck and Card Blueprint and want to add a new card to your deck, follow these steps:

Step 1 - Create a new Card Data Asset​

Create a new Card Data Asset or duplicate an existing one from the deck you want to add the card to.

To duplicate an existing Card Data Asset, right-click it and select Duplicate.

Duplicate an existing Card Data Asset

To create a new one, right-click in an empty space in the Content Browser and select Miscellaneous → Data Asset.

Create a new Data Asset

Then, search for Card Data Asset in the Pick Class dialog.

Search for Card Data Asset in the Pick Class dialog

Step 2 - Configure your Card Data Asset​

If you created a new one, you must fill in the following fields:

  • Card Mesh: The mesh used by your card Blueprint.
  • General Texture: The texture displayed on the front of your card.
  • General Material: The material applied to the front texture of your card.
  • Back Material: The material applied to the back of your card.
  • World Representation: The field where you select your card Blueprint.

If you duplicated an existing Card Data Asset in the previous step, you only need to change the General Texture.

Card Data Asset configuration

Step 3 - Register the CDA in the Game Elements Index General Data Table​

Open your Game Elements Index General Data Table and add a new row.

Open the Game Elements Index General Data Table

Add a new row

You need to enter a name, which will be used as the Card ID later, for example Card_025. Then, in Game Element Data Asset, select the CDA you created.

Enter the Card ID and select the CDA

Step 4 - Adding the Card to the Deck​

If you created your deck using the Deck Creation Wizard, you already have a Deck Generator. If not, you can create one. Right-click on an empty space in the folder where you want to create your Deck Generator. The Add New menu will open. Then, hover over All On Board! and select Blueprint Class (All On Board!).

Open the Add New menu

Next, search for and select Card Generator Deck.

Select Card Generator Deck

Open the Card Generator Deck Blueprint corresponding to the deck you want to add the card to. It should look similar to this:

Card Generator Deck Blueprint

Whether you had to create the Card Generator Deck or it already existed, click Add Index and expand the last index that was added.

Click Add Index and expand the new index

Select Card Generation Card for the Card Generator and enter the Card ID you chose in Step 3. For example: Card_025

Select Card Generation Card and enter the Card ID

This is how you add a card to a deck that was created previously with other cards.