This code is over 6 months old. The code may have expired and might no longer function.
Of Course I Didnt Place All The Nodes For My AI's Path Finding By Hand In Vectors No I Developed A Tool With Everything I Would Need, If Your Trying To Copy My pathing Scripts (Which i Doubt, They Are Quite Bad and Messy) Then You Can Use This Easy To Use Tool To Build The Nodes For The Maps
Some maps Layouts Are In There Already So If You Just Want The Nodes You Can Just Copy paste Them If You Dont Wanna Spend Time Building them or If You Just Dont Want To Use The Node Maker
The Maps Listed As enabled Will Be The Ones In The Layouts Already
Im Adding A Section Here About The Beam Color Because Someone Was Confused By It
(Blue Both Ways - Orange Only Down - Red No Connection)
When Within 1.2 Meters From The Node Up And Down, Its Blue
If Your Above 1.2 Meters From A Node The Beam Will be Orange, Because The Node Your Making Will Be Able To Go To The Node, But That Node Cant Go To The Node Your Making
However If Your Below 1.2 Meters From The Node Its Will Display Red, Because While The Node Can Go To The Node Your Making, The Node Your Making Cant Go To That Node
Ive Also Added A Video To Better Explain This Since Explaining This Kind Of Thing In Words Can be Confusing
This Has Been Remastered The Code For The Remastered Version Is 9005G
Sources
This post utilizes other codes either in part or in full. This could be because they remixed them, used parts of them, were inspired by them, or other reasons.
Controls
Source code
Loading...
18 Comments
this tool has trouble with LOS with nodes when going up the stairs or jumping off certain high grounds
I'm Not Quite Sure If I Understand What You Mean, If Your Talking About The Node Being One Way If Its Lower Then The Other Nodes, That's Because Its Doesn't Use Edges And Weights, I Couldn't Be Bothered To Learn How To Use Them When Making My AI, Instead I just Filter Out Nodes Higher Then 1.2 Meters From The Player Position Added An Additional 1.55 Meters To Be level With The Nodes
However That's In The Pathfinding Scripts So I'm Not Sure Why You Be Commenting On That Here
the reason i mentioned this was because as at one point when i was making a map for midtown, it could not go up the stairs as the line showed a red colour but if the bot spawned there then it would be orange meaning it would only go down...
Also i forgot that you uploaded the actual pathfinding functions itself with another code when i wrote that message so apologies for that.
Ya Know I Think Just Realised Why This (Bug) Happened, Were You Below The Node Because Its Displays The Color Based On The Node You Would Be Making Not The Node Its Connected To
If Your Above 1.2 Meters From A Node The Beam Will be Orange Because The Node Your Making Will Be Able To Go To The Node But That Node Cant Go To The Node Your Making
However If Your Below 1.2 Meters From The Node Its Will Display Red Because While The Node Can Go To The Node Your Making The Node Your Making Cant Go To That Node
EEHHHH!?!?!
oh wait i get it. If i remember correctly, yes i was when i placed a node on the ground before placing another on the stairs itself.
See Its All makes Sense Now
but is there a way to make it within LOS when going up AND going down the stairs?
Without Changing How My Pathfinding Scripts Works No, I Filter All Height Difference Of 1.2 Meters Or Higher Otherwise The AI Will Try To Walk Into A Wall
insert mario game over theme
damit.
Well Took 7 Hours Off And On But I Made A New Pathfind Node Maker Update With Staircase Nodes Its A Different Code 9005G, Only Pathfinder 1.0 3CZ1R Currently Has Support For It
Edit: Also You Can Delete Any Nodes In The Update So You Dont Have To Start From Scratch Just Load A Layout Then Edit It
alright i will try it out at some point as my gaming time is limited nowdays
=D