# Create a Map with a table. Table used to put block on the screen.

**URL:** <https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740>\
**Category:** International\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [March 10, 2023, 8:55am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740 "2023-03-10T08:55:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![BakuryuReitoken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BakuryuReitoken](https://forums.unrealengine.com/u/BakuryuReitoken)\
**Post date:** [March 10, 2023, 8:55am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/1 "2023-03-10T08:55:41Z")

</div>

Hello,

I would like to know if it’s possible to place blueprints with a block to the map.  
But building that map with the data that i can put in a table. to create something like that.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/a/7ba525bd1594f49309c868fc8aa5267f14d8ebba.jpeg)

I have put manually all black block on the stage.

But i would like to use a table like that

[B, B, B, B , B, B, B, …]  
[B, B, B, B , B, B, B, …]  
[B, B, B, B , B, B, B, …]  
[B, B, B, B , B, B, B, …]  
[B, B, B, B , B, B, B, …]  
[B, B, B, B , B, B, B, …]

And the game will take the B blueprint which containt my black block and put it on the coordonate tha ti want regarding the table position [1,1], [1,2][1,3]… i will replace the that by coordonate.

Do you have any idea how to achieve that?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 10, 2023, 9:13am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/2 "2023-03-10T09:13:27Z")

</div>

> [@BakuryuReitoken](#):
>
> But building that map with the data that i can put in a table.

Where are you keeping the table / data atm? You could use a csv + struct + data table.

> And the game will take the B blueprint which containt my black block and put it on the coordonate

This is a bit confusing, though. Are you going to use characters A,B,C… to decide what goes where? Like an association?

---

<div class="post-metadata">

**Author:** ![BakuryuReitoken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BakuryuReitoken](https://forums.unrealengine.com/u/BakuryuReitoken)\
**Post date:** [March 10, 2023, 9:24am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/3 "2023-03-10T09:24:05Z")

</div>

In my Table i will have 2 tible of block (black block, colored block).  
I want to be able to build a table with UE or maybe another tool (exell). Where i will put :

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/6/fa64ff2aff0bd7f63948250dfd13a083f5b9f2b4.png)

And with that table (i say table but maybe it should be something else) i would like to put my 2 different blueprint on the screen.

For coordonate on the screen it will depend of the position on the table  
A1 = 0,0,0  
A2 = 100,0,0  
A3= 200,0,0  
A4= 300,0,0  
…  
B1= 0,100,0  
B2=100,100,0  
B3=200,100,0  
…  
C1=0,200,0  
C2=100,200,0  
C3=200,200,0  
… …

Like that, according to the containt of the table (B or C) it will put on my screen on the good coordinate the good block…

But i don’t want to do it manually because i will have something like 10.000 block to put manually… it’s a lot 😃

Is it more clear?

I say table but maybe it’s possible to do it with something else than a table?

I’m search for idea to achieve that things.

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 10, 2023, 9:55am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/4 "2023-03-10T09:55:31Z")

</div>

> [@Everynone](#):
>
> a csv + struct + data table.

Should be doable. Look into how those 3 elements work in the UE environment:

- structs
- importing csv file
- data tables

---

<div class="post-metadata">

**Author:** ![BakuryuReitoken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BakuryuReitoken](https://forums.unrealengine.com/u/BakuryuReitoken)\
**Post date:** [March 10, 2023, 9:58am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/5 "2023-03-10T09:58:21Z")

</div>

Ok, thanks for that guideline i will investigate onto the data tables and see how i can use it.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 10, 2023, 10:01am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/6 "2023-03-10T10:01:55Z")

</div>

There should be good tuts out there. Here’s an example of usage:

> [@Data table: find data in row according to date](https://forums.unrealengine.com/t/data-table-find-data-in-row-according-to-date/782989/4):
>
> Rows are dates, you provide a date and get a corresponding row: if this is my data: [image] I can look up today’s temp and the temp in 1938 by pressing 1 like so: This prints: [image]

Not a tutorial, here just to show how those 3 elements allow you to import data from a spreadsheet and take it apart.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 10, 2023, 11:04am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/7 "2023-03-10T11:04:42Z")

</div>

> [@BakuryuReitoken](#):
>
> guideline

In case you get stuck. See if this could work for you:

- the file:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/a/22ae87b34171ce1aaf0ebbe45b37d191d3580ff2.png)

The upper left corner cell must be empty.

- the struct:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/b/dfbffdf559117bf5de751d7924faf9bc21305072.png)

- the data table result:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/e/05eb070ae3e35117d9599de2b8ebbe773d5a8f6f.png)

- the script:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/e/8ee7a04dccd043826f1cdce33a41e563bfd3ef73.png)

Character \<=\> Class Association:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/d/b5d62d5a9906a98df91492d4737a33bd6aeef521.png)

- the result:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/6/5660440ec86ce6bc016c80085ed28fe3d7d14cad.jpeg)

* * *

It’s a bit crude but hopefully you could refine it. There’s a lot of work to be done, depending on what’s the end case use scenario is.

If you need 10k of these, do not use actors. ISMs if you want to see them all at once all the time. HISMs if you want to see them all occasionally only. Static Mesh Components if you expect unique interaction with the blocks. Actors if could not care less about performance.

* * *

Project link:

> **[blockTable.zip](https://drive.google.com/file/d/1zENqldnUsuAEV33LbsMCXwr0dcz97GTu/view?usp=share_link)**
>
> Google Drive file.

* * *

> Is it more clear?

Oh yeah, I think so. What’s not clear is what you’re going to use it for and how flexible and easy to maintain & expand you need it to be. It might be enough, it might turn out to be an unmanageable nightmare. 😇

---

<div class="post-metadata">

**Author:** ![BakuryuReitoken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BakuryuReitoken](https://forums.unrealengine.com/u/BakuryuReitoken)\
**Post date:** [March 10, 2023, 11:45am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/8 "2023-03-10T11:45:53Z")

</div>

Thanks, It works.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/2/612f66b3d13f8f34af5ac371f0821bfb19cc61cd.jpeg)

I watch some tuto and read some info before notice you details your answer. But you help me a lot by giving me the good direction!!

Thanks!!!

---

<div class="post-metadata">

**Author:** ![BakuryuReitoken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BakuryuReitoken](https://forums.unrealengine.com/u/BakuryuReitoken)\
**Post date:** [March 10, 2023, 11:50am UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/9 "2023-03-10T11:50:45Z")

</div>

> [@Everynone](#):
>
> If you need 10k of these, do not use actors. ISMs if you want to see them all at once all the time. HISMs if you want to see them all occasionally only. Static Mesh Components if you expect unique interaction with the blocks. Actors if could not care less about performance.

What is : ISMs? Beause i was using actor for my block. If i can use something else for performance, i will switch and learn how to use it.

Thanks.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 10, 2023, 12:07pm UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/10 "2023-03-10T12:07:37Z")

</div>

> [@BakuryuReitoken](#):
>
> What is : ISMs? Beause i was using actor for my block. If i can use something else for performance, i will switch and learn how to use it.

You may want to stay away from actors if you’re after 10 thousand of something. Consider adding the following to the neverending list of tutorials you want to watch:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/0/b80992fbfab2381767a74fa915c0c939eeaa95b6.jpeg "UE4 Optimization: Instancing") ](https://www.youtube.com/watch?v=oMIbV2rQO4k)

And an example:

> [@How to add a hit count (health points) to individual instances?](https://forums.unrealengine.com/t/how-to-add-a-hit-count-health-points-to-individual-instances/227176/2):
>
> The name of the game is Custom Primitive Data (check docs at the bottom). The material for a brick: each instance stores a float which is used to Lerp between 2 colours (to visualise hits remaining) this can (and probably should) get prettified Making a brick wall: create a bunch of instances and store their data in an int | int Map instead of an integer, you could have a struct and hold all kind of data here; perhaps this brick is worth some coins, or explodes when destroyed and …

This is a single actor with 1 component, 1 static mesh and 1 material. And each block is still interactive! It’s really fast but has limitations. You will always need to choose the right tool for the job.

---

<div class="post-metadata">

**Author:** ![BakuryuReitoken](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BakuryuReitoken](https://forums.unrealengine.com/u/BakuryuReitoken)\
**Post date:** [March 10, 2023, 12:22pm UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/11 "2023-03-10T12:22:06Z")

</div>

If i understand an actor can be an issue if we need to see all of them at the same time? But if we can only see 30 of them max, will impact the performance?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 10, 2023, 12:25pm UTC](https://forums.unrealengine.com/t/create-a-map-with-a-table-table-used-to-put-block-on-the-screen/787740/12 "2023-03-10T12:25:08Z")

</div>

Culling is automatic but do create 10k cube actors and find out:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/8/a28e606f0c2b48cea5cecea192baf04ed938fca2.png)
