Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Creating a grid system and pathfinding using A* in UE4 - ALL BLUEPRINTS

Went back, rewatched several of the videos, found two nodes that I had hooked up as CurrentTile when they should have been CurrentNeighbor.

Recommended Posts

Posted · Original PosterOP

So let me first start out by saying that I have been following a youtube playlist to create my code for this project and it is all in French. I do not speak French. I understand for the most part what each thing does and I've learned a surprising amount about UE4 from him despite the language barrier. So my issue currently has to do with the pathfinding using A*. For some reason, I am able to create paths on my grid from a start to a target with certain areas being unreachable by design. However, some of the areas which should be reachable are not reachable from certain tiles.


A link to pictures of the problem: https://imgur.com/a/G8GCV2b


You can see in both pictures that I am attempting to move to the same tile, but for one there is no path found and the other there is a path found because the start tile is different. The only tiles in this program which should give the result of "no path" are the red tiles and the one green tile enclosed by red tiles.


A link to my Github repository for the program: https://github.com/FaTaL6266/GridReposioty


I believe the fault is somewhere in the BP_Grid class and more specifically the FindPathToTarget function which is massive and I can't seem to locate what might be causing this. If anyone is able to look at the code and deduce the problem or give a suggestion, that would be great. In the mean time, I am going to continue digging through it to see if I can figure out the issue. If I can't find a solution, this isn't really going to absolutely make or break my plan, but I would like it to work properly.


P.S. I've also left a message for him on his youtube channel, but it hasn't been active in a year so my hopes of getting a response are not high.

Link to post
Share on other sites

There's probably something wrong with how you connected your nodes.

...is there a question here? 🤔

sudo chmod -R 000 /*

What is scaling and how does it work? Asus PB287Q unboxing! Console alternatives :D Watch Netflix with Kodi on Arch Linux Sharing folders over the internet using SSH Beginner's Guide To LTT (by iamdarkyoshi)

Sauron'stm Product Scores:


Just a list of my personal scores for some products, in no particular order, with brief comments. I just got the idea to do them so they aren't many for now :)

Don't take these as complete reviews or final truths - they are just my personal impressions on products I may or may not have used, summed up in a couple of sentences and a rough score. All scores take into account the unit's price and time of release, heavily so, therefore don't expect absolute performance to be reflected here.


-Lenovo Thinkpad X220 - [8/10]


A durable and reliable machine that is relatively lightweight, has all the hardware it needs to never feel sluggish and has a great IPS matte screen. Downsides are mostly due to its age, most notably the screen resolution of 1366x768 and usb 2.0 ports.


-Apple Macbook (2015) - [Garbage -/10]


From my perspective, this product has no redeeming factors given its price and the competition. It is underpowered, overpriced, impractical due to its single port and is made redundant even by Apple's own iPad pro line.


-OnePlus X - [7/10]


A good phone for the price. It does everything I (and most people) need without being sluggish and has no particularly bad flaws. The lack of recent software updates and relatively barebones feature kit (most notably the lack of 5GHz wifi, biometric sensors and backlight for the capacitive buttons) prevent it from being exceptional.


-Microsoft Surface Book 2 - [Garbage - -/10]


Overpriced and rushed, offers nothing notable compared to the competition, doesn't come with an adequate charger despite the premium price. Worse than the Macbook for not even offering the small plus sides of having macOS. Buy a Razer Blade if you want high performance in a (relatively) light package.


-Intel Core i7 2600/k - [9/10]


Quite possibly Intel's best product launch ever. It had all the bleeding edge features of the time, it came with a very significant performance improvement over its predecessor and it had a soldered heatspreader, allowing for efficient cooling and great overclocking. Even the "locked" version could be overclocked through the multiplier within (quite reasonable) limits.


-Apple iPad Pro - [5/10]


A pretty good product, sunk by its price (plus the extra cost of the physical keyboard and the pencil). Buy it if you don't mind the Apple tax and are looking for a very light office machine with an excellent digitizer. Particularly good for rich students. Bad for cheap tinkerers like myself.



Link to post
Share on other sites
Posted · Original PosterOP · Best Answer

Went back, rewatched several of the videos, found two nodes that I had hooked up as CurrentTile when they should have been CurrentNeighbor.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now