Difference between revisions of "Network Specs/Paths"
sc4e>Warrior (New page: When the original version of SimCity 4 was released, there were two Path file versions, 1.0 & 1.1. Rush Hour saw the introduction of a third version, 1.2. The “Header” below is the st...) |
m (6 revisions imported) |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | When the original version of SimCity 4 was released, there were two Path file versions, 1.0 & 1.1. Rush Hour saw the introduction of a third version, 1.2. | + | {{NetSpecsNav}} |
− | The | + | __NOTOC__ |
+ | When the original version of [[SimCity 4]] was released, there were two [[SC4Path|Path]] file versions, 1.0 & 1.1. [[Rush Hour]] saw the introduction of a third version, 1.2. The "Header" below is the starting point of a Path. The whole specs are further below. This path file has just been provided as a sample. | ||
<font color="green" face="Courier New"> | <font color="green" face="Courier New"> | ||
Line 47: | Line 48: | ||
</font> | </font> | ||
− | + | ==Specific Format== | |
− | SC4PATHS | + | ===Header=== |
− | 1.2 – Path file version. There is: 1.0 1.1 1.2. | + | <pre> |
− | 3 - Number of | + | SC4PATHS - Header |
− | 0 - Number of Stop Path Sections in file. Includes Stop Paths for any valid Transport Type. Does not include Normal Paths. | + | 1.2 – Path file version. There is: 1.0 1.1 1.2. |
− | 1 - | + | 3 - Number of Normal Path Sections in file. Includes Normal Paths for any valid Transport Type. |
− | + | Does not include Stop Sections. | |
− | 1 - Transport Type. Or in other words, the different modes of transport. See table below. <br> | + | 0 - Number of Stop Path Sections in file. Includes Stop Paths for any valid Transport Type. |
+ | Does not include Normal Paths. | ||
+ | 1 - Terrain variance (This is the End of the Header section) | ||
+ | </pre> | ||
+ | |||
+ | ===Normal Section/Path=== | ||
+ | This can usually include comments about the following Path. | ||
+ | |||
+ | 1 - Transport Type. Or in other words, the different modes of transport. See table below.<br> | ||
1 - Class/Path number. 0 to infinite. The actual limit is not known. There can exist a lot of Paths for the same Transport type with same Entry/Exit points.<br> | 1 - Class/Path number. 0 to infinite. The actual limit is not known. There can exist a lot of Paths for the same Transport type with same Entry/Exit points.<br> | ||
− | + | ||
2 - Entry side/point<br> | 2 - Entry side/point<br> | ||
− | 3 - Exit side/ | + | 3 - Exit side/point<br> |
− | + | ||
− | 0 – Junction Key | + | 0 – Junction Key (only found in 1.2 version. Rail-based networks make use of the JunctionKey for U-Drive-It)<br> |
− | 4 – Number of Path, or rather Plotting Points or Coordinate lines that follow.<font color="blue"> First Coordinate "Line" is the</font><font color="red"> Entry Point position.</font><font color="blue"> Last Coordinate "Line" is the</font><font color="red"> Exit Point position.</font> | + | 4 – Number of Path, or rather Plotting Points or Coordinate lines that follow. |
− | X1 - Coordinate line1 | + | |
− | X2 - etc | + | <font color="blue"> First Coordinate "Line" is the</font><font color="red"> Entry Point position.</font> |
− | X3 | + | |
− | X4</font> | + | <font color="blue"> Last Coordinate "Line" is the</font><font color="red"> Exit Point position.</font> |
− | + | ||
+ | <font color="blue"> | ||
+ | X1 - Coordinate line1<br> | ||
+ | X2 - etc<br> | ||
+ | X3<br> | ||
+ | X4<br> | ||
+ | </font>End of normal path/Section, and/or File. Repeat for each "normal" path/section within a Path file. | ||
+ | |||
+ | ===STOP Paths=== | ||
+ | It is very important that any & all STOP Paths are done *AFTER* ALL normal Paths, otherwise the game can & will crash. | ||
+ | |||
1 – Left/Right hand side. Or UK/US<br> | 1 – Left/Right hand side. Or UK/US<br> | ||
7 – Transport Type. See table below<br> | 7 – Transport Type. See table below<br> | ||
− | 1 - Class/Path number. 0 to infinite. The actual limit is not known. There can exist a lot of Paths for the same Transport type with same Entry/Exit points. | + | 1 - Class/Path number. 0 to infinite. The actual limit is not known. There can exist a lot of Paths for the same Transport type with same Entry/Exit points. |
+ | |||
+ | <font color="red"> | ||
2 - Entry side<br> | 2 - Entry side<br> | ||
− | 3 - Exit Side | + | 3 - Exit Side<br> |
− | + | </font> | |
− | |||
+ | <font color="blue"> | ||
+ | X1 - Coordinate line1<br> | ||
+ | </font> For stop paths, this is just one line as they are stopping points. | ||
− | + | End of Section (and/or file). Repeat for each section within a Path file. | |
− | The different versions have slightly different formats to them, but the specs above should help understand them. Typically, if creating new paths | + | |
− | + | ==Versions== | |
+ | The different versions have slightly different formats to them, but the specs above should help understand them. Typically, if creating new paths and/or path files, try to use version 1.2 as it contains all formats of previous versions. Be mindful of changing the version of an existing file though, as all Paths within the file may need changing if the version is changed. | ||
− | + | ==Transport Type== | |
# Car. | # Car. | ||
# Sim. | # Sim. | ||
# Train (surface rail). | # Train (surface rail). | ||
# Subway. | # Subway. | ||
− | # Supposedly | + | # Supposedly not used. |
# Elevated Train. | # Elevated Train. | ||
# Monorail. | # Monorail. | ||
− | |||
− | + | ==Class/Path Number== | |
− | If the Transport Type is the same | + | If the Transport Type is the same and the Entry & Exit Points are the same for two or more Paths, then this Class/Path Number must contain a non-zero number. So if there are 4 Car Paths which go from side 2 to side 3, each path must have a unique class/path designation. A zero in this value defines it as the only path of its type with the stipulated entry/exit sides. So if you add a path to a 1.1 or 1.2 version file which has a zero as the path number for the tile entry/exit combination you want to use, you must change the existing path's class/path number to something other than zero, otherwise the whole Path file may be void. |
− | + | ||
+ | ==Junction Key== | ||
+ | This is only found in version 1.2. | ||
+ | |||
+ | Basically ''0'' denotes no junction and ''1'' defines the path as a junction (one entry point to more than one exit point). This is used for [[U-Drive-It]] vehicles, such as Trains. | ||
− | + | ==Entry/Exit values== | |
− | + | 0=West, 1=North, 2=East, 3=South | |
− | + | 255=special type. i.e. neighbour connections, end stubs and others. | |
− | |||
− | + | ==Coordinate Values== | |
− | + | <pre> | |
− | + | Positive x=East, | |
− | + | Negative x=West, | |
+ | Positive y=North, | ||
+ | Negative y=South. | ||
− | + | Or alternatively; | |
− | + | North = positive 'X' values. | |
− | + | South = negative 'Y' values. | |
− | + | East = positive 'X' values. | |
− | + | West = negative 'X' values. | |
− | Or alternatively; | + | Z = Height. 0 = Ground. |
− | North= positive 'X' values. | + | Min/Max [for NSEW] = -8 to 8. |
− | South= negative 'Y' values. | + | - Values outside of this may cause automata to do funny things, |
− | East= positive 'X' values. | + | and even cause the Path file not to function properly. |
− | West= negative 'X' values. | + | </pre> |
− | Z = Height. 0 = Ground. | ||
− | Min/Max [for NSEW] = -8 to 8. Values outside of this may cause automata to do funny things, | ||
− | |||
+ | NOTE: for the Coordinate Lines, it's a good idea to take a look at the Piece/File/Rules that the Path(s) are for, especially when the height of the network piece moves. | ||
− | + | ==General notes== | |
− | When SimCity 4 was originally released, Cars would jump from a highway to an underneath road without any existence of ramps (under certain circumstances). This is something that Maxis fixed. Unfortunately, networks still have some limitations | + | When SimCity 4 was originally released, Cars would jump from a highway to an underneath road without any existence of ramps (under certain circumstances). This is something that Maxis fixed. Unfortunately, networks still have some limitations and/or issues with them related to Paths, which subsequently affects normal path routing and also U-Drive-It. These limitations/issues are more noticeable with some of the custom-made items that have been made for the game. So just be aware of this. |
− | |||
− | The Group ID (GID) for the Path file(s) is | + | The [[Group ID]] (GID) for the Path file(s) is dependent on whether or not the tile in-game is a 3D model or just plain texturing. |
− | Path file GID for 3D Model tile(s) | + | *Path file GID for 3D Model tile(s): ''0xA966883F'' |
− | Path file GID for Texture tile(s) | + | *Path file GID for Texture tile(s): ''0x69668828'' |
The following is a simple diagram of how Entry/Exit Points & Path Coordinates works for any single Path for any given Transport Type. | The following is a simple diagram of how Entry/Exit Points & Path Coordinates works for any single Path for any given Transport Type. | ||
[[Image:NSPath1.jpg]] | [[Image:NSPath1.jpg]] | ||
+ | |||
+ | |||
+ | {{NetSpecsNav}} | ||
+ | [[Category:Network Specs]] |
Latest revision as of 21:45, 3 August 2019
When the original version of SimCity 4 was released, there were two Path file versions, 1.0 & 1.1. Rush Hour saw the introduction of a third version, 1.2. The "Header" below is the starting point of a Path. The whole specs are further below. This path file has just been provided as a sample.
SC4PATHS
1.1
2
3
0
-- Car_3_1
1
0
3
1
2
2.5,-8.0,0.0
2.5,8.0,0.0
-- Sim_3_1
2
0
3
1
2
2.5,-8.0,0.0
2.5,8.0,0.0
-- stopUK_car_1_255
2
1
0
1
255
2.54713,7.26555,0.0
-- stop_car_1_255
1
1
0
1
255
-2.51329,7.24569,0.0
-- stop_sim_a_0_255
1
2
1
0
255
-5.00628,6.41454,0.0
Specific Format
Header
SC4PATHS - Header 1.2 – Path file version. There is: 1.0 1.1 1.2. 3 - Number of Normal Path Sections in file. Includes Normal Paths for any valid Transport Type. Does not include Stop Sections. 0 - Number of Stop Path Sections in file. Includes Stop Paths for any valid Transport Type. Does not include Normal Paths. 1 - Terrain variance (This is the End of the Header section)
Normal Section/Path
This can usually include comments about the following Path.
1 - Transport Type. Or in other words, the different modes of transport. See table below.
1 - Class/Path number. 0 to infinite. The actual limit is not known. There can exist a lot of Paths for the same Transport type with same Entry/Exit points.
2 - Entry side/point
3 - Exit side/point
0 – Junction Key (only found in 1.2 version. Rail-based networks make use of the JunctionKey for U-Drive-It)
4 – Number of Path, or rather Plotting Points or Coordinate lines that follow.
First Coordinate "Line" is the Entry Point position.
Last Coordinate "Line" is the Exit Point position.
X1 - Coordinate line1
X2 - etc
X3
X4
End of normal path/Section, and/or File. Repeat for each "normal" path/section within a Path file.
STOP Paths
It is very important that any & all STOP Paths are done *AFTER* ALL normal Paths, otherwise the game can & will crash.
1 – Left/Right hand side. Or UK/US
7 – Transport Type. See table below
1 - Class/Path number. 0 to infinite. The actual limit is not known. There can exist a lot of Paths for the same Transport type with same Entry/Exit points.
2 - Entry side
3 - Exit Side
X1 - Coordinate line1
For stop paths, this is just one line as they are stopping points.
End of Section (and/or file). Repeat for each section within a Path file.
Versions
The different versions have slightly different formats to them, but the specs above should help understand them. Typically, if creating new paths and/or path files, try to use version 1.2 as it contains all formats of previous versions. Be mindful of changing the version of an existing file though, as all Paths within the file may need changing if the version is changed.
Transport Type
- Car.
- Sim.
- Train (surface rail).
- Subway.
- Supposedly not used.
- Elevated Train.
- Monorail.
Class/Path Number
If the Transport Type is the same and the Entry & Exit Points are the same for two or more Paths, then this Class/Path Number must contain a non-zero number. So if there are 4 Car Paths which go from side 2 to side 3, each path must have a unique class/path designation. A zero in this value defines it as the only path of its type with the stipulated entry/exit sides. So if you add a path to a 1.1 or 1.2 version file which has a zero as the path number for the tile entry/exit combination you want to use, you must change the existing path's class/path number to something other than zero, otherwise the whole Path file may be void.
Junction Key
This is only found in version 1.2.
Basically 0 denotes no junction and 1 defines the path as a junction (one entry point to more than one exit point). This is used for U-Drive-It vehicles, such as Trains.
Entry/Exit values
0=West, 1=North, 2=East, 3=South 255=special type. i.e. neighbour connections, end stubs and others.
Coordinate Values
Positive x=East, Negative x=West, Positive y=North, Negative y=South. Or alternatively; North = positive 'X' values. South = negative 'Y' values. East = positive 'X' values. West = negative 'X' values. Z = Height. 0 = Ground. Min/Max [for NSEW] = -8 to 8. - Values outside of this may cause automata to do funny things, and even cause the Path file not to function properly.
NOTE: for the Coordinate Lines, it's a good idea to take a look at the Piece/File/Rules that the Path(s) are for, especially when the height of the network piece moves.
General notes
When SimCity 4 was originally released, Cars would jump from a highway to an underneath road without any existence of ramps (under certain circumstances). This is something that Maxis fixed. Unfortunately, networks still have some limitations and/or issues with them related to Paths, which subsequently affects normal path routing and also U-Drive-It. These limitations/issues are more noticeable with some of the custom-made items that have been made for the game. So just be aware of this.
The Group ID (GID) for the Path file(s) is dependent on whether or not the tile in-game is a 3D model or just plain texturing.
- Path file GID for 3D Model tile(s): 0xA966883F
- Path file GID for Texture tile(s): 0x69668828
The following is a simple diagram of how Entry/Exit Points & Path Coordinates works for any single Path for any given Transport Type. File:NSPath1.jpg