npruehs / ue4-rts

Real-time strategy plugin and showcase for Unreal Engine 4.
MIT License
747 stars 151 forks source link

MoveTo order does not react, but order to build a building does. #169

Closed LegendsofBarcraft closed 3 years ago

LegendsofBarcraft commented 3 years ago

I´ve run into this peculiar issue -> units seems to be moving fine on a plane, but if you put in a landscape, the MoveTo orders stop working for some odd reason.

I have tags set up correctly, everything is correct. It has to be some landscape issue since I used the test project as well to see if I can replicate the bug.

If you open the project, replace the plane with a landscape, you will be able to replicate the bug.

Any ideas?

coolyoshi commented 3 years ago

That's strange, it should work with landscape. Do you have the latest code? I added a quick fix for one of the causes of movement issues here: https://github.com/npruehs/ue4-rts/commit/1df4991c6ec762110291a0f2d8f9eb4880928139

LegendsofBarcraft commented 3 years ago

Im using the 4.25 sample project latest release. I will try to use the additions to the code which you added and see if it works

LegendsofBarcraft commented 3 years ago

Btw: could you link the discord as well? :)

coolyoshi commented 3 years ago

Sure here it is: https://discord.gg/y8KETu8rVM

LegendsofBarcraft commented 3 years ago

The bug persists even through building paths. Does anybody experience similar issue?

npruehs commented 3 years ago

I can't confirm that being an issue, at least in UE5.0.

Here's what I've tried:

Initially, they didn't react to move orders - but the landscape was above the units. Make sure landscape Z is set properly, so units are above the landscape, not vice versa.

LegendsofBarcraft commented 3 years ago

Hi Nik! I eventually figured it out. The collision of other actors caused it. I had to remove ALL collision from the level and then go one by one and I figured it out :)

npruehs commented 3 years ago

Thanks for the update! :)