Wrong pathfinding

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Post Reply
User avatar
Loko
Engineer
Engineer
Posts: 28
Joined: 16 Apr 2004 23:59
Location: Wroclaw, Poland

Wrong pathfinding

Post by Loko »

There is a problem with patchfinding in my game. Road vehicle seem to go the shortest way from station A to B but it doesn't (see picture).

Why?
Attachments
Unnecessary detour
Unnecessary detour
Scr11.jpg (183.05 KiB) Viewed 977 times
Last edited by Loko on 06 Jun 2004 12:29, edited 1 time in total.
Prof. Frink
Tycoon
Tycoon
Posts: 3849
Joined: 20 Jan 2003 14:51
Location: Broadstone, Dorset
Contact:

Post by Prof. Frink »

I think it's to do with the number of junctions on each route.
RVs always find the route with the fewest junctions.
User avatar
Loko
Engineer
Engineer
Posts: 28
Joined: 16 Apr 2004 23:59
Location: Wroclaw, Poland

Post by Loko »

I've made an experiment (picture) It's true. The path depends on number of junction, but junctions don't influence the RVs time of travel in the game. In real traffic yes, but not in the game.

It should be change, don't you think so?
Attachments
Scr12.jpg
Scr12.jpg (49.61 KiB) Viewed 960 times
User avatar
Merri
Traffic Manager
Traffic Manager
Posts: 200
Joined: 11 May 2004 19:06
Location: Finland
Contact:

Post by Merri »

Just make extra junctions to the long way and they prefer the shorter way.
Transport Tycoon Deluxe stuff
- Suomenkielinen Transport Tycoon Deluxe (versio 1.10, päivitetty 28.5.2004)
User avatar
Loko
Engineer
Engineer
Posts: 28
Joined: 16 Apr 2004 23:59
Location: Wroclaw, Poland

Post by Loko »

Yeah, it works, but I had to make 10 extra junctions going nowhere :D It doesn't look good.

Road without junctions is good to get ahead but from the other hand in my case it generates longer routes = reqiure more time = transport less goods = give less income :cry:
x22
Engineer
Engineer
Posts: 7
Joined: 16 Apr 2004 08:30
Location: Slovakia

new word

Post by x22 »

Loko wrote:... patchfinding ...
pat-c-hfinding - nice new word :)
User avatar
Loko
Engineer
Engineer
Posts: 28
Joined: 16 Apr 2004 23:59
Location: Wroclaw, Poland

Post by Loko »

Nice, nobody wants to give a concrete answere :x .

I thought that the RV's pathfinding algorhytm base on the least number of squers between A and B. It seemed to be the most reasonable way. But obviously it isn't. :cry: Pity
Eskiboy
Engineer
Engineer
Posts: 39
Joined: 03 Jun 2004 11:33

Post by Eskiboy »

I don't know about your problem, but what scenario are you playing?
User avatar
Loko
Engineer
Engineer
Posts: 28
Joined: 16 Apr 2004 23:59
Location: Wroclaw, Poland

Post by Loko »

My own scenario which I've created long time ago and which was modified several times since then. But it's not a point which scenario I'm playing. Wrong pathfinding exists in TTD general (see the result of my experiment). Make your own exp. RVs always choose the route with the least number of junctions even if the chosed route is much longer :!:
User avatar
Merri
Traffic Manager
Traffic Manager
Posts: 200
Joined: 11 May 2004 19:06
Location: Finland
Contact:

Post by Merri »

Well, the reason I can think of is that TTD looks for the junctions. Probably because Chris (who coded TTD) found it to be more effective/faster to handle than to find out the actually shortest path. Yes, he probably cheated in programming to make the game work faster.
Transport Tycoon Deluxe stuff
- Suomenkielinen Transport Tycoon Deluxe (versio 1.10, päivitetty 28.5.2004)
User avatar
Loko
Engineer
Engineer
Posts: 28
Joined: 16 Apr 2004 23:59
Location: Wroclaw, Poland

Post by Loko »

Ok, it makes sense. But we have much faster computers now. Most of PCs can handle with more comlicated calculations. The only problem seems to be how to make appropriate changes in TTDPatch code? Is it actually possible and how much work it requires?
I'm not a programmer but I think it's worth of discusion. The correct pathfinding is very important especialy in transport's games.

Btw The Patchteam is doing a graet job, adding so many new features to TTD. You made this game much much better :D . Thank You in the name of all players. :bow: :bow: :bow:
User avatar
habell
Transport Coordinator
Transport Coordinator
Posts: 374
Joined: 04 Mar 2004 12:47
Location: Veenendaal, The Netherlands

Post by habell »

I kinda liked the way the pathfinder works. This way I can make the vehicles take the route I'd like them to by creating another route without junctions.

If this feature/bug is removed it would be nice to have a way of setting a route the roadvehicle should take.
For instence to avoid level crossings.
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 16 guests