Difference between revisions of "SC4Path"

From SC4D Encyclopaedia
Jump to navigation Jump to search
sc4e>Dedgren
(Started section on SC4Path Tool)
sc4e>Warrior
(expanded a bit, not sure what a stanza is though.)
Line 1: Line 1:
SC4Path files define where the game's automata (Sims, vehicles and trains) travel on transit networks.  These files are associated with a corresponding gridsquare containing a transit network by a file ending in the same instance ID (IID) as that of the particular network piece involved.  An ortho section of road, for instance, which ends in IID 0x00004b00 has a matching SC4Path file ending in that same IID.  For puzzle pieces, the SC4Path file ends in the same IID as the corresponding S3D file in the piece.
+
SC4Path files define where the game's automata (Sims, vehicles and trains) travel on transit networks.  These files are associated with a corresponding gridsquare containing a transit network by a file ending in the same instance ID (IID) as that of the particular network piece involved.  An ortho section of road, for instance, which ends in IID 0x00004b00 has a matching SC4Path file ending in that same IID.  For puzzle pieces, the SC4Path has the same IID as the corresponding [[Exemplar]] file in the piece.
  
 
[add detail here]
 
[add detail here]
Line 15: Line 15:
 
==Path Stanzas==
 
==Path Stanzas==
 
==StopPaths==
 
==StopPaths==
=Troubleshooting with the DrawPaths Cheat
+
Stop paths tell automata where to stop when a vehicule is crossing the path ahead, this is used at intersections to prevent collisions.
  
 +
==Troubleshooting with the DrawPaths Cheat==
 +
The {{plugin|SC4_Extra_Cheats.dll}} contains a very useful [[cheat]] called 'DrawPaths'. This cheat draws arrows showing the direction and location of paths on all network tiles. Typing a number after the cheat can limit the paths drawn. Path will flash Red-White when their Entry/Exit points don't match the coordinates of the path, making testing the paths much easier than before when testers had to [[UDI]] through the tile on all possible paths.
 +
Stop Paths also appear as red crosses.
 +
 +
==Lag issues==
 
If a path file is not included for a transit network it will cause the game to lag when dragging the network, this can be avoided by using a path file which contains no paths, but still has a header.
 
If a path file is not included for a transit network it will cause the game to lag when dragging the network, this can be avoided by using a path file which contains no paths, but still has a header.
  
==Daeley's SC4Path Tool==
+
==Daeley's SC4Path Creator==
 
+
[[Image:PathCreator.jpg|thumb|right|200px|A screenshot of the single tile frame]]BSC member {{member|Daeley}} has created a tool to create and edit SC4Path files called [[SC4 Path Creator]]
BSC member Daeley has created a tool to create and edit SC4Path files called SC4Path Tool.
+
The tool is currently in version 1.60.   
 
 
[insert image]
 
 
 
The tool is currently in version ___It is available for download here [linkie].
 
  
The SC4Path Tool...
 
 
{{expand}}
 
{{expand}}
  
 
{{also|Network Specs/Paths}}
 
{{also|Network Specs/Paths}}
 
[[Category:File Formats/SC4]]
 
[[Category:File Formats/SC4]]

Revision as of 06:51, 6 February 2009

SC4Path files define where the game's automata (Sims, vehicles and trains) travel on transit networks. These files are associated with a corresponding gridsquare containing a transit network by a file ending in the same instance ID (IID) as that of the particular network piece involved. An ortho section of road, for instance, which ends in IID 0x00004b00 has a matching SC4Path file ending in that same IID. For puzzle pieces, the SC4Path has the same IID as the corresponding Exemplar file in the piece.

[add detail here]

Path File Sections

Header

The header specifies the path "version", the number of paths contained within, and the number of StopPaths. Here is a sample header:
SC4PATHS
1.1 -Version Number (1.0, 1.1 or 1.2)
4 -Number of Paths
0 -Number of StopPaths
0 -3D Key

Path Stanzas

StopPaths

Stop paths tell automata where to stop when a vehicule is crossing the path ahead, this is used at intersections to prevent collisions.

Troubleshooting with the DrawPaths Cheat

The SC4_Extra_Cheats.dll contains a very useful cheat called 'DrawPaths'. This cheat draws arrows showing the direction and location of paths on all network tiles. Typing a number after the cheat can limit the paths drawn. Path will flash Red-White when their Entry/Exit points don't match the coordinates of the path, making testing the paths much easier than before when testers had to UDI through the tile on all possible paths. Stop Paths also appear as red crosses.

Lag issues

If a path file is not included for a transit network it will cause the game to lag when dragging the network, this can be avoided by using a path file which contains no paths, but still has a header.

Daeley's SC4Path Creator

File:PathCreator.jpg
A screenshot of the single tile frame

BSC member Daeley has created a tool to create and edit SC4Path files called SC4 Path Creator

The tool is currently in version 1.60.

See also: Network Specs/Paths