Jump to content
OpenRCT2

Recommended Posts

How to build a big food area so guests can sit down and eat but they don't get lost because of the too many paths. I know to use fences to separate paths but what formats would you build ? I usually build small squares and put some scenery around it.

Share this post


Link to post

If the square has one or more main paths without many junctions, you should be fine. You can use the "show wide paths" open from the debug window to see if it'll become an issue. Peeps can only look ahead up to 16 junctions when searching for a path.

White = paths guests don't use while pathfinding (but can use when wandering around, and sit on benches for example)
brown = path not seen as junctions
red = paths seen as junctions

An example of a terrible food court:

5b56221f50786_SixFlags2018-07-2320-36-52.png.a7e038d11f0af4017d220ee4a1f5cb99.png

If a guest wants to go through here, they have to use at least 4 junctions (red tiles).

Using just wide paths, and making one of the main paths wide as well, greatly reduses the number of junctions:

5b5622d27fe93_SixFlags2018-07-2320-43-00.png.5840491c62c5c45dc74217152b8acbea.png

Now guests can talk through from one side to the other with 5 junctions.

Having a path that goes around the food court can prevent guests from getting lost entirely, but isn't always the most elegant looking.

  • Like 1

Share this post


Link to post

Hello,

I would ask you to explain to me a problem with pathfinding and how to solve it. When I make two squares wide path, people use only half of it. Why they don't use whole path?

Thanks

Coaster Valley 2018-08-08 12-59-31.png

Share this post


Link to post
On 08/08/2018 at 13:03, Toomix said:

I would ask you to explain to me a problem with pathfinding and how to solve it

Every path in front of these shops counts as a junction. Place them somewhere not next to a path, but to its own plaza or something, and they pathfinding won't have to deal with so many junctions, and guests won't get stuck.

On 08/08/2018 at 13:03, Toomix said:

When I make two squares wide path, people use only half of it. Why they don't use whole path?

That's just how it works right now. The white paths are ignored by the pathfinding, so guests who are walking to somehting (not wandering) will only walk on those footpaths.

Share this post


Link to post

I've never studied the pathfinding AI in RCT, nor have I cared about it, but it seems now that this totally matters. 

Speaking of this, is there a thread containing the detailed pathfinding algorithm that I can take a look? Now it seems really interesting. 

Edited by Cubo-C

Share this post


Link to post
36 minutes ago, Cubo-C said:

I've never studied the pathfinding AI in RCT, nor have I cared about it, but it seems now that this totally matters. 

Speaking of this, is there a thread containing the detailed pathfinding algorithm that I can take a look? Now it seems really interesting. 

http://rct.wikia.com/wiki/Paths here is paragraph (Pathing Systems) about how to build paths

Share this post


Link to post
On 21/08/2018 at 16:37, Cubo-C said:

I've never studied the pathfinding AI in RCT, nor have I cared about it, but it seems now that this totally matters. 

Speaking of this, is there a thread containing the detailed pathfinding algorithm that I can take a look? Now it seems really interesting. 

The code for pathfinding can be found here: https://github.com/OpenRCT2/OpenRCT2/blob/develop/src/openrct2/peep/GuestPathfinding.cpp

It's a few thousand lines of code and comments though so good luck :P 

Edited by Deurklink

Share this post


Link to post
On 08/08/2018 at 08:03, Toomix said:

I would ask you to explain to me a problem with pathfinding and how to solve it. When I make two squares wide path, people use only half of it. Why they don't use whole path?

They are polite enough to not disturb people while having their meal 9_9

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...