Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (EternallyCurious, howardR), 646 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Pathfinding on multiple stories #463977
01/11/17 14:14
01/11/17 14:14
Joined: Nov 2016
Posts: 31
middleagechinese Offline OP
Newbie
middleagechinese  Offline OP
Newbie

Joined: Nov 2016
Posts: 31
I was playing around with ways to implement pathfinding.

Try 1
First I tryed those path entities (those from WED) and found on the Manuel how to use it via lite-c.
Basically:
If A cannot trace B, then move to nearest preset path (made in WED).
I noticed a problem, it seems to only go in one direction... tired

Try 2

So now I'm guessing I need to have some sort of nods (models) I place in my level.
Meaning if A cannot trace B, the fastest connection between the nearest visible node that can be seen by B, the nearest visible node that can be seen by A, and all nodes in between (creating an obstacle free path).

Problems:
- I am not sure how the syntax would look like to do the proper node calculation and setting the temp ids for the individual AI to folow the correct nodes accordantly.

- Even if the above works flawless, as soon the there is a height difference (target is in a different room on a different story), this can't work anymore.
Maybe some sort of invisible Block that globals registers in which room each character is?
Meaning:
If Character A is room 1 and character B room 4, then follow premade path (those paths from WED) to the correct room, then resume default pathfinding routine?

Thanks in advance tongue


Hello, it is me,

Middleagedchineseman!

Note: Not actually Chinese, nor middle age
Re: Pathfinding on multiple stories [Re: middleagechinese] #463978
01/11/17 14:19
01/11/17 14:19
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hey!

I could advice you to take a look at Superku's pathfinding, to understand how it works (or maybe he will see this thread, and will reply). You can find his pathfinding here:
Tip of the Week #10: New Pathfinding Solution!

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Pathfinding on multiple stories [Re: 3run] #463979
01/11/17 15:06
01/11/17 15:06
Joined: Nov 2016
Posts: 31
middleagechinese Offline OP
Newbie
middleagechinese  Offline OP
Newbie

Joined: Nov 2016
Posts: 31
ohhh........

There is already one we can use grin


Thanks, will play around with it ^^


Hello, it is me,

Middleagedchineseman!

Note: Not actually Chinese, nor middle age
Re: Pathfinding on multiple stories [Re: middleagechinese] #464043
01/16/17 16:41
01/16/17 16:41
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Yes, it's pretty much exactly what you were trying to do/ were working on.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Pathfinding on multiple stories [Re: Superku] #464058
01/18/17 17:26
01/18/17 17:26
Joined: Nov 2016
Posts: 31
middleagechinese Offline OP
Newbie
middleagechinese  Offline OP
Newbie

Joined: Nov 2016
Posts: 31
OK it works; multi level(floors) pathfinding.

Sorry, I didn't create any fancy scripts or anything for this.
I simply added invisible walls, which are also passable around and in between all cliffs and high places tongue


Hello, it is me,

Middleagedchineseman!

Note: Not actually Chinese, nor middle age
Re: Pathfinding on multiple stories [Re: middleagechinese] #464061
01/18/17 17:45
01/18/17 17:45
Joined: Nov 2016
Posts: 31
middleagechinese Offline OP
Newbie
middleagechinese  Offline OP
Newbie

Joined: Nov 2016
Posts: 31
So that means cover would work as follows:

Set several "cover-places" in the level.
A cover point traces the nearest entities of both parties, party A and party B.
If an cover-place cannot trace any entity of party B, but can trace an entity of party A, then the cover-place turn into an potential cover-place for the specific entity of party A (the nearest one) in relation to the nearest unseen entity of party B , vise versa.

Now an entity (if it now wants to move to the nearest cover-place) depending on it's party, will move to the nearest potential cover-place.

process looped.


Is that correct?
If yes, I will try to create that and share what ever I throw together.
It will probably be ugly and silently scream "kill me!...", but it should work wink

Last edited by middleagechinese; 01/18/17 17:54.

Hello, it is me,

Middleagedchineseman!

Note: Not actually Chinese, nor middle age

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1