Is there any node that sort cables nicely?

Is there any node that doesnt do anything but only attach connections of any type so they dont pass trought other nodes and I can sort out the picture more compact? I post a picture you can see multiple cables passing trough nodes everywhere.


But looking at what you’ve got there, I’m assuming there is an easier way of doing it. ( I can’t actually read it, but I can see repeating patterns )

they are almost repeating, if a condition is slightly different the setup needs to be different with little bit
im sorting random numbers from -1000000000.999999 to 1000000000.999999 in arrays each number in index, so if the number is 6 digit i need 6 index array

i dont know if there is a node to do this automatically so I use “make array” with set amout of indexes for each digit

edit: I see now I could use “remove index” but im new in blueprints so I wanted to play options to learn

remove index can work great there because the number itself is storred in a different array than the decimal number

the first time I made this blueprint was around 20 times bigger than this picture lol

Ah, perhaps we’ve found a worthy one!

Yeah, it’s all fun and games until you learn bad habits ;p

What you’re doing up there does not look healthy; it looks like a carpal tunnel with extra steps. Don’t envy you.

I just tried to make the left side which is sorting the number before the decimal point, however when i try to put it into a text where is the red circle it format my text with zeroes after the actual number, to fix this i need to copy it 8 more times for each option 1-9 digit number and remove one or two nodes on each row, if you compare the picture this mode with remove index will actually take more screen space, it does looks more compact but since I’m not getting lost into my bp its not a problem at all :smiley:

the problem is if I straight away put the number into a text variable it also gives me coma symbols after each 3 digits, then I still again need to specify the digits of the number, put it into array againm remove the index with the comas and print it out again, it will definetely be a bigger bp in size

it looks complicated but since its almost repetitive its not that hard u just need to concentrate on all options and they are not many, is the number 1 or 2 or … 9 digit and after decimal is almost same, there i remove a coma if the number is greater than 1000, also there is something u cant do in normal random number node - u can choose the digits of the after decimal point so 1 to 3 means .1 or .2 or .3 and random float will give you all 6 digits range from .1 to .3 and thats horrible long story if u dont need all, u can just floor them probably and if the number is .4 repeat the process, so all .1 .2 and .3 will have equal chance.

I can share this BP if you can post it somewhere in useful place, the random number is stored in arrays each digit in specific index and all comas are cleared from the number

I made this because I had a win chance big flash appearance and if it was bigger than 1000 it looked like “congratulations it took you 1,583 attempts” where you smashed your keyboard 1583 times and it looks like you did it 1 times point 583 very underestimating if thats the word

You can open a text file ( like notepad ). In the blueprint, select all the nodes, copy, go to the text file, paste. Leave it as an attachment here. Then we can take a look…

Or you can paste it on, maybe also give that a go…

The file becomes too large to update its 3mb as BP or as TXT so I attached the blueprint archived with winRar then changed the extension to .txt instead .rar so u need to change this

Integer into array with same digits for index - Blueprint Visual Scripting - Unreal Engine Forums this link shows how the BP was intially loooked

Tidied up, it looks like this:

But, let me take a look, and see if there’s a better method…

Ok, so tell me now… you start with a random between two integers. Where does the decimal point occur.

Imagine you aren’t doing it in blueprint. Just tell me what you really want, not how to do it.

I hate to tell you, but I think it could be done like this:

I might have missed the point of your algorithm though…

This is the main reason I’m always asking for end result purpose/mechanic. 9 out 10 times the author is over complicating their code.

the point is, if you print a number larger than 1000 there is a coma in the print, there are not only numbers.
What i do with the code I investigate if the number is larger than 1,10,100,1000 etc and then each invidivual number goes inside a index in array.

the decimal number comes from other place - variables called SetDecimalMin and SetDecimalMax and they need to be set in a specific way there should be a comment in the BP

String Replace…ace/index.html

Usage … Remove commas from string. So Int to string → string replace

There’s also ToText(Float). Uncheck Grouping

If you try it, you’ll notice there are no commas:

I think most of your code is getting around the problem of the commas you get when you convert between ints and strings. It is possible to convert to string without getting commas, but it’s better not to go there at all.

I did not know the replace node, that would be super useful. Do I have to write FROM “,” to “” (i mean from coma to nothing)

yes. Replace “this” with “this”.

String manipulation