Difference between revisions of "PATH"
m |
(added images) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{IplSection | {{IplSection | ||
− | | game = | + | | game = {{Icon|VC}} |
| description = Used to define paths for traffic | | description = Used to define paths for traffic | ||
}} | }} | ||
− | '''PATH''' is a section in the [[item placement]] file. It is used to define paths for traffic. Paths are grouped into nodes, each with at most 12 sub-nodes. The group nodes define the type of vehicle going to be used by the sub nodes. Sub nodes contain path coordinates which are linked to each other. There are two kinds of links: | + | '''PATH''' is a section in the [[item placement]] file in [[Vice City]]. It is used to define paths for traffic. Paths are grouped into nodes, each with at most 12 sub-nodes. The group nodes define the type of vehicle going to be used by the sub nodes. Sub nodes contain path coordinates which are linked to each other. There are two kinds of links: |
* internal links – connecting nodes within the same group. | * internal links – connecting nodes within the same group. | ||
* external links – connecting nodes over two different groups. | * external links – connecting nodes over two different groups. | ||
== Format == | == Format == | ||
− | + | {{Pre| | |
path | path | ||
GroupType, -1 | GroupType, -1 | ||
Line 24: | Line 24: | ||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | ||
end | end | ||
− | + | }} | |
{|class="wikitable center-col-1 center-col-2" style="width: 100%;" | {|class="wikitable center-col-1 center-col-2" style="width: 100%;" | ||
Line 58: | Line 58: | ||
| G || Median || float || | | G || Median || float || | ||
* Pedestrian traffic: width of walkway | * Pedestrian traffic: width of walkway | ||
− | * Road traffic: width of divider between left and right lanes | + | * Road traffic: width of divider between left and right lanes. |
|- | |- | ||
− | | H || LeftLanes || integer || Number of lanes left of the node | + | | H || LeftLanes || integer || Number of lanes left of the node. This is ignored for internal nodes |
|- | |- | ||
− | | I || RightLanes || integer || Number of lanes right of the node | + | | I || RightLanes || integer || Number of lanes right of the node. This is ignored for internal nodes |
|- | |- | ||
| J || SpeedLimit || integer || Sets the speed of vehicles traveling through the path | | J || SpeedLimit || integer || Sets the speed of vehicles traveling through the path | ||
Line 80: | Line 80: | ||
== Description == | == Description == | ||
− | + | [[File:Vc car paths.png|thumb|200px|Car Paths Visualization]] | |
− | + | [[File:Vc ped paths.png|thumb|200px|Ped Paths Visualization]] | |
+ | Consider a small segment of the line in vehicle paths node. The group has to be defined and then there must be 12 nodes inside it. If the total number of internal and external nodes in a group is not 12, then the remaining should be filled with null nodes. | ||
+ | |||
+ | The internal nodes define the connections inside the group whereas the external nodes define the connections to other group. External nodes in a group are connected to other external nodes in different group external sub-nodes by having the same coordinates. | ||
+ | |||
+ | Spawns are always made in internal nodes, and external nodes only act as a link. For vehicles, lane information and the median width inside internal nodes are ignored, those information are only retrieved from external nodes. And also for vehicles, junctions are always kept in a separate group and external nodes of the group must always point to beginning of a connected line segment, whereas pedestrian nodes can mix the two. | ||
− | One can add a maximum of | + | One can add a maximum of 4 paths group in Vice City though this limit can be increased by Maxorator's Path hacks. {{ref|1}} |
== Tools and scripts == | == Tools and scripts == | ||
Line 91: | Line 96: | ||
== External links == | == External links == | ||
* [http://projectcerbera.com/gta/vc/tutorials/paths Description of the Vice City paths format] – by {{U|Cerbera}} | * [http://projectcerbera.com/gta/vc/tutorials/paths Description of the Vice City paths format] – by {{U|Cerbera}} | ||
− | * | + | * {{GTAF|490426|In-Game Paths Maker for VC}} – by {{U|Swoorup}} |
− | * | + | * {{GTAF|post|93990|4027008|Flags description}} – by {{U|AK-73}} |
− | * | + | * {{GTAF|post|93990|1856773|Statistics for paths.ipl}} – by {{U|Steve-m}} |
{{N|VC}} | {{N|VC}} |
Latest revision as of 18:50, 22 May 2019
Short description: | Used to define paths for traffic | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Supported games: | ||||||||||||||||||||||
IPL Sections:
|
PATH is a section in the item placement file in Vice City. It is used to define paths for traffic. Paths are grouped into nodes, each with at most 12 sub-nodes. The group nodes define the type of vehicle going to be used by the sub nodes. Sub nodes contain path coordinates which are linked to each other. There are two kinds of links:
- internal links – connecting nodes within the same group.
- external links – connecting nodes over two different groups.
Format
path GroupType, -1 NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate end
Description
Consider a small segment of the line in vehicle paths node. The group has to be defined and then there must be 12 nodes inside it. If the total number of internal and external nodes in a group is not 12, then the remaining should be filled with null nodes.
The internal nodes define the connections inside the group whereas the external nodes define the connections to other group. External nodes in a group are connected to other external nodes in different group external sub-nodes by having the same coordinates.
Spawns are always made in internal nodes, and external nodes only act as a link. For vehicles, lane information and the median width inside internal nodes are ignored, those information are only retrieved from external nodes. And also for vehicles, junctions are always kept in a separate group and external nodes of the group must always point to beginning of a connected line segment, whereas pedestrian nodes can mix the two.
One can add a maximum of 4 paths group in Vice City though this limit can be increased by Maxorator's Path hacks. [1]
Tools and scripts
- GTAForums: In-Game Paths Maker – by Swoorup
- ^ Maxorator's Path Limit Hack – by GTAForums: Maxorator
External links
- Description of the Vice City paths format – by Cerbera
- GTAForums: In-Game Paths Maker for VC – by Swoorup
- GTAForums: Flags description – by AK-73
- GTAForums: Statistics for paths.ipl – by Steve-m