yapf.txt
author peter1138
Sun, 01 Oct 2006 12:00:32 +0000
changeset 4694 c917a3ad0dd2
parent 3971 77061ae9b534
permissions -rw-r--r--
(svn r6601) - Codechange: Support cargo subtypes in the refit window. The refit window has been altered to support resizing and scrolling. Note that the cargo subtype isn't yet passed for actual refitting yet. (Based on mart3p's patch)
3971
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     1
Ships:
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     2
======
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     3
Set the YAPF (Yet Another Path Finder) type in the "Configure Pathes/Vehicles/YAPF for ships":
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     4
 - 0 - No YAPF (NPF or old PF)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     5
 - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     6
 - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     7
 - 3 - YAPF type 3 (Node = Tile/Trackdir, no 90 deg.)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     8
 - 4 - YAPF type 4 (Node = Tile/ExitDir , no 90 deg.)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
     9
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    10
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    11
Set the "npf_max_search_nodes" value in your openttd.cfg to tune the pathfinder behavior.
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    12
This value tells, how many nodes (Tile/Trackdir or Tile/ExitDir) combinations the pathfinder
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    13
should visit before it ends. The lower number would mean quicker, but less accurate results.
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    14
The "npf_max_search_nodes" value is shared between NPF and YAPF and has the same meaning.
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    15
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    16
The pathfinder without such limit would be unusable on large maps, where number of visited
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    17
nodes can exceed 10 milions. NPF on my machine (dual code AMD 4400+) with 1 milion of nodes
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    18
visited took 2 minutes to finish, but with this limit set to 10000 it takes 20 miliseconds.
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    19
The new YAPF had similar results (18 seconds vs. 4 miliseconds).
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    20
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    21
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    22
Road Vehicles:
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    23
==============
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    24
Set the YAPF (Yet Another Path Finder) type in the "Configure Pathes/Vehicles/YAPF for road vehs":
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    25
 - 0 - No YAPF (NPF or old PF)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    26
 - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    27
 - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    28
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    29
Trains:
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    30
=======
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    31
Same types as for ships:
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    32
 - 0 - No YAPF (NPF or old PF)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    33
 - 1 - YAPF type 1 (Node = Tile/Trackdir, 90 deg. turns allowed)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    34
 - 2 - YAPF type 2 (Node = Tile/ExitDir , 90 deg. turns allowed)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    35
 - 3 - YAPF type 3 (Node = Tile/Trackdir, no 90 deg.)
77061ae9b534 (svn r5136) Fix various style bugs:
tron
parents: 3900
diff changeset
    36
 - 4 - YAPF type 4 (Node = Tile/ExitDir , no 90 deg.)