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

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.

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.

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?

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

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 :smiley:

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.

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

  • structs
  • importing csv file
  • data tables

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

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

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

1 Like

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

  • the file:

The upper left corner cell must be empty.

  • the struct:

image

  • the data table result:

image

  • the script:

Character <=> Class Association:

  • the result:


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:


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. :innocent:

Thanks, It works.

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!!!

1 Like

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.

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:

And an example:

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.

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?

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