Strange Array Generation Problem

Hello Guys,

I’m making a chess game with reference to this tutorial, but I’m stuck in the meterial setting of the chess piece.

Upper blue prints’ result is below.

As you see, I automatically created objects using arrays. And set first 30 objects’ meterial to black.
But result is very weird.

So I checked every objects’ array number, and that’s more strange.

image


I can’t understand everything…
Where’s 0,1,2,3,7?
Why there’re 5 of 63s?
55~59 before 4?
What the heck?

I tried to solve this couple of days but i didn’t make it.

Blueprint file attached.

BoardMaker.uasset (155.7 KB)

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Hopefully, this category change will help you to get an answer. In the meantime, good luck and happy developing! :slight_smile:

Can you show the full BP?

Blueprint files usually cannot be opened if shared like this (.uasset), if they depend on a specific parent class or linked assets (in this case the static meshes), copy an paste your graph/s to websites like blueprintue.com.

In this case I was able to open your file, but some parts are missing, so it’s kinda pointless:

The logic you are using looks pretty confusing to me, did you fill a 64 values array one by one? At this point you could have just used an array of structs with the mesh and the color and avoid all these nodes.

Personal curiosity: What do “==63” and “>30” stand for?