Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utilities>array>sort does not do anything #56

Open
Starkium opened this issue Feb 10, 2019 · 4 comments
Open

utilities>array>sort does not do anything #56

Starkium opened this issue Feb 10, 2019 · 4 comments

Comments

@Starkium
Copy link

I tried using the sort function to sort a struct and it doesn't seem to do anything or perhaps the sorted array isn't outputed? I tried looking through the code and it seems like there isn't anything there aside from a comment saying that you should just call the generic function instead. I can't access that in blueprint obviously. Am I doing something incorrectly with this?

@Starkium
Copy link
Author

found out why it isn't working, the function is not looking for the short name I assigned the value in the Struct, "Ammo" is the name. Instead it is looking for Ammo_5_19145E324396439F5c10A6941E12EBAC I'm not even sure how I would obtain that from a node if I didn't happen to hover over a populated array and notice the contents were that.

@Starkium
Copy link
Author

I can think of times when you want to use the literal name of the variable, but I don't even know how to get that from within blueprint.

if I want to pass in any object or variable and get the string literal of it's name or ID or whatever would I just use #variable in c++
example bellow
i have a variable in blueprint called ID and it is an int
i go to sort a struct based on the name of this variable, but it isn't finding ID, instead it is looking for ID followed by a series of letters and numbers, I assume this is it's literal name
second example, I did this same thing with an int named ammo and it wasn't looking for ammo, it was looking for Ammo_5_19145E324396439F5c10A6941E12EBAC
i found this on accident in a log and I don't know how to recreate this accident so I am going to make a blueprint node that can get the litteral name, which I assume this is that, so would I just be passing in my variable and then calling #variable ?

@EverNewJoy
Copy link
Owner

The developer (Kris RedBeard) who did the original sort function did not ever update it for newer engine versions, if there is urgency for this I will try and get ahold of him on this matter :)

Rama

@EverNewJoy EverNewJoy reopened this Sep 6, 2019
@Downchuck
Copy link
Contributor

There's a distinction between the get authored name and get name -- and that's the difference from the one with the suffix versus that which was provided by the coder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants