Using Composite tables to layer spreadsheets - building a difficulty system - UE C++ Tutorial

preview_player
Показать описание
Composite tables allow you to stack multiple tables on top of each other for a final result.
Composite tables allow you to override rows from tables lower in the stack.
This can be useful in many ways.
But for an intuitive demonstration, I've made a quick difficulty system example.
Showing how to balance a games difficult using composite tables.
Composite tables save time by inheriting other some data rows, while changing specific rows.
In this way, you can sort of think of composite tables allowing data inheritance in a data table work flow.

This requires some knowledge of Data Tables.
See my data table video for more information on using individual data tables.
Composite tables are treated as data tables as far as the code goes.
So the same information about UDataTable, FDataTableRowHandle, RowType, FTableRowBase, and importing applies.
It is just that the UDataTable* actually points to a composite table asset, rather than an explicit data table asset.

0:00 Preview
1:50 Disclaimer
2:10 Video Start - The C++ Types and goals
2:28 The spread sheets
3:05 GameState controlled difficulty
3:17 Making a composite table for the very hard difficulty
3:41 Setting up layers
5:08 The easy composite table
5:15 The hard composite table
5:24 The very hard composite table
5:30 Setting up a difficulty mapped to composite table in the game state
5:37 Testing the easy difficulty
5:57 Testing the very hard difficulty
6:18 Exploring the C++ behind how this works (enum and row struct)
6:25 GameState C++ code
6:55 Reading the current difficulty row data
8:59 Test the easy composite table
9:15 Test the normal composite table
9:29 Test the hard composite table
10:25 Demonstrating what happens when multiple layers change values (with very hard)
11:19 Test the very hard composite table
11:45 Setting up the Gameplay Framework (eg GameMode and GameState)
12:40 Sub table importing - Reimporting individual tables to update the composite table
13:26 Outro
Рекомендации по теме
Комментарии
Автор

Hello, thanks for this great content! I wish if you post the code (especially the C++) in GitHub in file for gist format. Its mush easier to reason about the code during/after watching the video if its in text format.

haydermabood
Автор

I appreciate the video! Can you make a video on quaternions.

l_t_m_f
welcome to shbcf.ru