GetLocationAtDistance when Spline set to Linear

Hi,

I was following a tutorial from Dokipen ([Tutorial][1]) about using spline to create linear arrays. Everything is working fine for spline curve type, but for linear, things are getting somehow weird. For some reason the GetLocationAtDistanceAlongSpline function return wrong values. I do not know if this is some kind of bug or propriety of the linear type spline. If anyone has the answer to this error or a alternative script to get the same result it will be awesome. :smiley: Thanks anyway!

The first spline is set to linear and the second one to curve.

English not my first language.Sorry.

Hi brucassol,

I tested your setup but I can’t get your results. How exactly are you changing curve type?

TJ Ballard,
Right clicking on the spline nodes and setting to linear. Both of them.
Thanks!

Hmm okay, that’s what I thought. I’m not getting the same results. Both splines are identical. Could you try this in a new project and if it still happens, post a test project with the issue?

Ok. I didn’t thought about that. I tried to create the scenario in another project but I’m getting the same results. And I did the same thing in a previous build that I have (4.8.3). In that case it works perfectly. I saw in another thread that there was some changes/fixes in the spline component. I don’t know if is that the case. These are my files. Let me know if you need something else. Thanks anyway. :smiley:
link text
link text

I copied the nodes of the blueprint in question from your 4.9 project and pasted it in my 4.9 test project. I still can’t reproduce your results outside of the project you gave me.

Did you make the 4.8 project and convert it to 4.9 or did you create it as a fresh 4.9 project?

First, thank you so much for the support.
I made a new project for both of them. I will verify the engine or even remove everything and reinstall only the 4.9 version. Maybe something wrong with my compiler.
I did send a copy of the file to a friend and with my file in the 4.9 version, he got the same problem.
I will try and post if anything happens.

Hi brucassol,

Any luck tracking this down yet?

Hi brucassol,

We haven’t heard back from you in a few days, so we are marking this post as resolved for tracking purposes. If you’re still experiencing this issue, please feel free to post back here with additional information.

Cheers,

TJ

I have the same problem here. UE 4.9.1

Hi wagnerdesouza,

Are you able to reproduce this in a new project and if so, could you list repro steps or attach the project?

That was the issue that brucassol and myself were having above, it was only reproducible inside of his project.

Hi TJ Ballard, thank you for response.
Well, I created a New Level, Drag and Drop the Blueprint for the Scene, and converted the first/end point of Spline to Linear.
Im using UE4.9.1. If you want, I can record my screen and share with you.

Thanks,

link text

Sure, if you could create a gif or short video showing how you are adding > changing the blueprint and then your results, that would be helpful.

I just added the spline bp like you described above but I couldn’t get your results. The only difference is that I am using 4.9.2 but that hotfix shouldn’t have included anything that changed this. Feel free to try 4.9.2 if you like.

Hi TJ Ballard, here is a video where i’m trying in 4.9.2, but I tried in 4.10 and there is the same problem.

Hey wagner,

That video is set to private.

Sorry TJ Ballard, its ok now.

Okay, I was able to reproduce this reliably using those assets. Thank you for taking the time to upload them and the video.

I have entered JIRA UE-22909 into our tracking software. Our developers will be investigating the issue further and we may post here with questions or comments.

Cheers,

TJ

Any updates on this? I am still able to reproduce this in 4.11.

Hi Aschratt,

This is still active in our system and is being triaged by the developers. We are aware that it is also happening in 4.11, but thank you for the additional info.

Hotfix? 4.12? Wondering if I should wait or abandon splines and make my own system.