Difference between pages "Network Specs/Individual Network RULs" and "Template:Navbox/years"

From SC4D Encyclopaedia
< Network Specs(Difference between pages)
Jump to navigation Jump to search
sc4e>Blue Lightning
m (→‎For Type 1 lines: Added reference to Network Flags)
 
m (17 revisions imported)
 
Line 1: Line 1:
{{NetSpecsNav}}
+
{{Navbox
This file contains information related to the individual Network RULs.<br>
+
| name = Navbox/years
<br>
+
| title = Timeline
=Network specific RULs=
+
| state = {{{state}}}
Each individual network, including waterpipes (but not powerpoles), has two RUL files. One is the main RUL file for a given network, while the other is a supplementary RUL for a given network. RULs ending in odd values are the main network-specific RUL. While RULs ending in even values are the supplementary Rul for a given network. This covers RUL files from (address) 0x0A5BCF4B/AA5BCF57/00000001 to 0x0A5BCF4B/AA5BCF57/00000018.<br>
+
| group1 = [[2018]]
+
| list1 = {{months|2018}}
 
+
| group2 = [[2017]]
=Format=
+
| list2 = {{months|2017}}
{{TTC|#HighwayRules#}}
+
| group3 = [[2016]]
+
| list3 = {{months|2016}}
{{colour|#Header#}} -This basically contains {{colour|#NetworkTypeRules#}} here name. The engine recognises the different names used in the header section here, and does have an impact/influence on the network tool(s) used.<br>
+
| group4 = [[2015]]
A typical sample portion of rul code for individual networks may look something like the following (this was taken from a Highway RUL file)<br>
+
| list4 = {{months|2015}}
{{TTC|1,0,0,1,3<br>
+
| group5 = [[2014]]
2,5,1,0,2,4<br>
+
| list5 = {{months|2014}}
3,0,0x2001800,0,0}}<br>
+
| group6 = [[2013]]
<br>
+
| list6 = {{months|2013}}
Version/Type:Value1/Value2/Value3<br>
+
| group7 = [[2012]]
Different Versions/Types have different number of Values following after them, with differing purposes.<br>
+
| list7 = {{months|2012}}
Format is broken up into parts below, and is as follows;<br>
+
| group8 = [[2011]]
<br>
+
| list8 = {{months|2011}}
==For Type 1 lines==
+
| group9 = [[2010]]
{{TTC|1,0,0,1,3<br>}}
+
| list9 = {{months|2010}}
1[Type],West,North,East,South<br>
+
| group10 = [[2009]]
West/North/East/South use the following CheckFlag values;<br>
+
| list10 = {{months|2009}}
00 -no connection          <br>
+
| group11 = [[2008]]
01 -sloped connection-to the left<br>
+
| list11 = {{months|2008}}
02 -straight connection<br>
+
| group12 = [[2007]]
03 -sloped connection-to the right<br>
+
| list12 = {{months|2007}}
04 -shared median<br>
+
| group13 = [[2006]]
11 -sloped connection from an intersection - to the left<br>
+
| list13 = {{months|2006}}
13 -sloped connection from an intersection - to the right<br>
+
| group14 = [[2005]]
<nowiki>## ~</nowiki> There is quite a lot more number designations for some of the more complex stuff (such as Rail). The above ones are just the basic types that cover & work with most networks.<br>
+
| list14 = {{months|2005}}
 
+
| group15 = [[2004]]
{{also|Network_Flags}}
+
| list15 = {{months|2004}}
<br>
+
| group16 = [[2003]]
 
+
| list16 = {{months|2003}}
==For Type 2 lines==
+
| list17 =   <span style="float:left">[[{{{1}}}|Back]]</span><span style="float:right">[[{{{2}}}|Forward]]</span>
{{TTC|2,5,1,0,2,4<br>}}
+
}}__NOTOC__
2[Type],X,W,N,E,S<br>
 
X = See table further below.<br>
 
WNES = West/North/East/South ~ uses the same CheckFlag values as above. “?” (without quotes) is also valid though for Type2 lines as a wildcard.<br>
 
<br>
 
==For Type 3 lines==
 
{{TTC|3,0,0x2001800,0,0<br>}}
 
3[Type],X,FSH/Path/ExemplarReference,Rotation,Flip<br>
 
X = See table further below.<br>
 
Rotation: 0-3. Rotate piece:<br>
 
0=No change<br>
 
1=90 Degrees right<br>
 
2=180 Degrees<br>
 
3=270 degrees right/-90 degrees left. <br>
 
Where an Exemplar exists for the reference, the Exemplar subsequently points to a S3D file [NOTE: Referenced Exemplar files follow a specific GroupID format, for the different network types].<br>
 
<br>
 
==Table for Type2 & Type3 lines==
 
X = Reference in relation to the tile being referenced. For Type3 lines, zero is also valid reference & denotes that the image being loaded into the tile. The same also applies to other (non-zero neighbouring) tiles as well. Zero is the centre point, or the primary tile being coded for for the Type1 line, to which all other tiles are referenced in relation to.<br>
 
(each box/number here represents an in-game tile)<br>
 
[[Image:NSINR1.jpg]]<br>
 
Further explanation of CheckFlags:<br>
 
[[Image:NSINR2.jpg]]<br>
 
 
 
===Setup===
 
Imagine yourself at the centre of this transit tile at point E, looking North to point 2. Segment AB is the side for which we are trying to determine the border type.<br>
 
 
 
===Explanation===
 
The RUL entries dictate the centre point of the network (in this case, roads) along segment AB, and the direction the network is going, in comparison to segment E2. If the vector of the transportation tile is parallel with EA, the angle would be -45° in comparison to E2. Likewise, if the vector of the transportation tile is parallel to EB, the angle would be +45° in comparison to E2.<br>
 
 
 
===Table===
 
The Pixel position is based on the 128 pixel wide zoom 5 textures, with pixel points 0-127. Also, the pixel values might be off slightly due to anti-aliasing in the textures.<br>
 
<br>
 
The simpler table, showing absolute positions only:<br>
 
[[Image:NSINR3.jpg]]<br>
 
The more complex table, showing the relative offsets as well as absolute positions:<br>
 
[[Image:NSINR4.jpg]]<br>
 
That about covers it. As mentioned, there are more rul designations than just those mentioned here. Most other rul designations though are more complex. For this reason it’s advised to try & grasp the concepts of the above items first.<br>
 
{{NetSpecsNav}}
 
 
 
[[Category:Transit Modding]]
 

Revision as of 04:09, 4 August 2019