Difference between pages "Tutorial:Understanding the Traffic Simulator" and "Template:Navbox/old"

From SC4D Encyclopaedia
(Difference between pages)
Jump to navigation Jump to search
sc4e>Jplumbley
 
sc4e>Freedo50
(Added warning templates!)
 
Line 1: Line 1:
== <span style="color:RED">Understanding The Important Properties of the Traffic Simulator</span> ==
+
<noinclude>{{pp-template}}
<small>Written by JPlumbley</small>
+
{{mbox
 +
|type = content
 +
|text = '''This template employs intricate features of parser and wiki syntax'''.<br /><small>Please do not edit without [{{fullurl:{{TALKPAGENAMEE}}}} discussion] first as this is a '''VERY''' complex template.</small>}}
 +
<!--
  
== <span style="color:Blue">Intro</span> ==
+
Please do not edit without discussion first as this is a VERY complex template.
  
 +
--></noinclude>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="navbox" cellspacing="0" <!--
 +
-->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!--
  
<span style="font:VERDANA">The Traffic Simulator is a very complicated simulator and it is very mathematically intensive.  Each Property within the Traffic Simuator has a different effect, but many of the Properties are closely tied together and must be tuned as a whole.  Due to this it is recommended that you do not tamper with the simulator without the proper knowledge and the confidence in your mathematical calculations.  This is an informative guide that will help describe the Properties, their functions and how everything is tied in together.
+
--><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!--
 +
-->#default=collapsible {{#if:{{{state|}}}|{{{state|}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!--
 +
-->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!--
 +
-->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!--
  
Not all properties are known about and their effects can be harmful to your game if modified in anyway.  In the future some additions to this guide may be added due to new discoveries.</span>
 
  
== <span style="color:Blue">Properties</span> ==
 
  
 +
---Title and Navbar---
 +
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!--
 +
--><td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!--
 +
--><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!--
 +
-->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} <!--
 +
-->class="navbox-title"><!--
  
The most important Properties in the Traffic Simulator are:
+
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!--
 +
-->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!--
 +
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}|<!--
 +
-->{{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}|<!--
 +
--><div style="float:left; width:6em;text-align:left;"><!--
 +
-->{{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}}<!--
 +
--></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}}<!--
  
  The Network Speed properties
+
--><span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!--
  Commute Trip Maximum Time
+
-->{{{title}}}</span></th></tr>}}<!--
  Pathfinding Heuristic
 
  Network Traffic Capacity
 
  Travel Type Generates Traffic
 
  Travel Type Can Reach Destination
 
  
These properties are the heart of the Traffic Simulator because they determine what the Simulator's boundaries are and how it is to react.  The other properties affect the Simulator in other ways but are not required for the Simulator to run.
 
  
  
== <span style="color:Blue">Network Speed Properties</span> ==
+
---Above---
 +
-->{{#if:{{{above|}}}|<!--
 +
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
 +
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
 +
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!--
  
  
Sample:
 
  
<table><tr bgcolor="cadetblue"><td>'''Walking Speed'''</td><td>= 5,0,0,5,0,0,5,0,0,0,5,0,0</td></tr>
+
---Body---
<tr bgcolor="lightblue"><td>'''Driving Speed'''</td><td>= 60,0,100,40,0,0,60,0,0,0,60,100,100</td></tr>
 
<tr bgcolor="cadetblue"><td>'''Bus Speed'''</td><td>= 55,0,90,35,0,0,55,0,0,0,55,90,90</td></tr>
 
<tr bgcolor="lightblue"><td>'''Train Speed'''</td><td>= 0,110,0,0,0,0,0,0,0,0,0,0,0</td></tr>
 
<tr bgcolor="cadetblue"><td>'''Truck Speed'''</td><td>= 55,0,90,35,0,0,55,0,0,0,55,90,90</td></tr>
 
<tr bgcolor="lightblue"><td>'''Freight Train Speed'''</td><td>= 0,150,0,0,0,0,0,0,0,0,0,0,0</td></tr>
 
<tr bgcolor="cadetblue"><td>'''Subway Speed'''</td><td>= 0,0,0,0,0,0,0,150,0,0,0,0,0</td></tr>
 
<tr bgcolor="lightblue"><td>'''El Train Speed'''</td><td>= 0,0,0,0,0,0,0,0,150,0,0,0,0</td></tr>
 
<tr bgcolor="cadetblue"><td>'''Monorail Train Speed'''</td><td>= 0,0,0,0,0,0,0,0,0,200,0,0,0</td></tr></table>
 
  
 +
---First group/list and images---
 +
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<tr style="height:2px;"><td></td></tr>}}<tr><!--
  
These are the speeds of the corresponding Path Types. The Path Types have their own properties and each value for the properties define the speed for the specific Network. There are 13 values and in order the values define the speed for the following networks:
+
-->{{#if:{{{imageleft|}}}|<!--
 +
--><td style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!--
 +
-->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!--
 +
  -->{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!--
 +
  -->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}<!--
 +
-->{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!--
 +
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><!--
 +
-->{{{imageleft|}}}</td>}}<!--
  
  Road
+
-->{{#if:{{{group1|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}"><!--
  Rail
+
-->{{{group1}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
  Highway (Elevated)
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!--
  Street
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
  Pipes
+
--><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">}}{{{list1|}}}{{#if:{{{list1|}}}|</div></td><!--
  Power Poles
 
  Avenue
 
  Subway
 
  Elevated Rail
 
  Monorail
 
  One Way Road
 
  Dirt Road (ANT/RHW)
 
  Ground Highway
 
  
Or in a table format:
+
-->{{#if:{{{image|}}}|<!--
 +
--><td style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!--
 +
-->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!--
 +
-->{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!--
 +
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}<!--
 +
-->{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!--
 +
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><!--
 +
-->{{{image|}}}</td>}}<!--
  
<table>
+
--></tr>}}<!--
<tr>
 
<th bgcolor="cadetblue">Network Type:</th>
 
<th bgcolor="lightblue">Ro</th>
 
<th bgcolor="cadetblue">Ra</th>
 
<th bgcolor="lightblue">Hw</th>
 
<th bgcolor="cadetblue">St</th>
 
<th bgcolor="lightblue">Pi</th>
 
<th bgcolor="cadetblue">Po</th>
 
<th bgcolor="lightblue">Av</th>
 
<th bgcolor="cadetblue">SW</th>
 
<th bgcolor="lightblue">ER</th>
 
<th bgcolor="cadetblue">MR</th>
 
<th bgcolor="lightblue">1W</th>
 
<th bgcolor="cadetblue">DR</th>
 
<th bgcolor="lightblue">GH</th>
 
</tr>
 
  
<tr><th>Traffic Type:</th></tr>
 
  
<tr>
 
<th bgcolor="cadetblue">Walking Speed</th>
 
<td bgcolor="lightblue">5</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">5</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">5</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">5</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td></tr>
 
  
<tr>
+
---Remaining groups/lists---
<th bgcolor="cadetblue">Driving Speed</th>
 
<td bgcolor="lightblue">60</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">100</td>
 
<td bgcolor="cadetblue">40</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">60</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">60</td>
 
<td bgcolor="cadetblue">100</td>
 
<td bgcolor="lightblue">100</td></tr>
 
  
<tr><th bgcolor="cadetblue">Bus Speed</th>
+
-->{{#if:{{{list2|}}}|<!--
<td bgcolor="lightblue">55</td>
+
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
<td bgcolor="cadetblue">0</td>
+
-->{{#if:{{{group2|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group2style|}}}"><!--
<td bgcolor="lightblue">90</td>
+
-->{{{group2}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
<td bgcolor="cadetblue">35</td>
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!--
<td bgcolor="lightblue">0</td>
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
<td bgcolor="cadetblue">0</td>
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">}}{{{list2|}}}{{#if:{{{list2|}}}|</div></td></tr>}}<!--
<td bgcolor="lightblue">55</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">55</td>
 
<td bgcolor="cadetblue">90</td>
 
<td bgcolor="lightblue">90</td></tr>
 
  
<tr><th bgcolor="cadetblue">Train Speed</th>
+
-->{{#if:{{{list3|}}}|<!--
<td bgcolor="lightblue">0</td>
+
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
<td bgcolor="cadetblue">110</td>
+
-->{{#if:{{{group3|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group3style|}}}"><!--
<td bgcolor="lightblue">0</td>
+
-->{{{group3}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
<td bgcolor="cadetblue">0</td>
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!--
<td bgcolor="lightblue">0</td>
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
<td bgcolor="cadetblue">0</td>
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">}}{{{list3|}}}{{#if:{{{list3|}}}|</div></td></tr>}}<!--
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td></tr>
 
  
<tr><th bgcolor="cadetblue">Truck Speed</th>
+
-->{{#if:{{{list4|}}}|<!--
<td bgcolor="lightblue">55</td>
+
--><tr style="height:2px"><td></td></tr><tr><!--
<td bgcolor="cadetblue">0</td>
+
-->{{#if:{{{group4|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group4style|}}}"><!--
<td bgcolor="lightblue">90</td>
+
-->{{{group4}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
<td bgcolor="cadetblue">35</td>
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!--
<td bgcolor="lightblue">0</td>
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
<td bgcolor="cadetblue">0</td>
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">}}{{{list4|}}}{{#if:{{{list4|}}}|</div></td></tr>}}<!--
<td bgcolor="lightblue">55</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">55</td>
 
<td bgcolor="cadetblue">90</td>
 
<td bgcolor="lightblue">90</td></tr>
 
  
<tr><th bgcolor="cadetblue">Freight Train Speed</th>
+
-->{{#if:{{{list5|}}}|<!--
<td bgcolor="lightblue">0</td>
+
--><tr style="height:2px"><td></td></tr><tr><!--
<td bgcolor="cadetblue">150</td>
+
-->{{#if:{{{group5|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group5style|}}}"><!--
<td bgcolor="lightblue">0</td>
+
-->{{{group5}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
<td bgcolor="cadetblue">0</td>
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!--
<td bgcolor="lightblue">0</td>
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
<td bgcolor="cadetblue">0</td>
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">}}{{{list5|}}}{{#if:{{{list5|}}}|</div></td></tr>}}<!--
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td></tr>
 
  
<tr><th bgcolor="cadetblue">Subway Speed</th>
+
-->{{#if:{{{list6|}}}|<!--
<td bgcolor="lightblue">0</td>
+
--><tr style="height:2px"><td></td></tr><tr><!--
<td bgcolor="cadetblue">0</td>
+
-->{{#if:{{{group6|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group6style|}}}"><!--
<td bgcolor="lightblue">0</td>
+
-->{{{group6}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
<td bgcolor="cadetblue">0</td>
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!--
<td bgcolor="lightblue">0</td>
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
<td bgcolor="cadetblue">0</td>
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list6|}}}</div></td></tr>}}<!--
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">150</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td></tr>
 
  
<tr><th bgcolor="cadetblue">El Train Speed</th>
+
-->{{#if:{{{list7|}}}|<!--
<td bgcolor="lightblue">0</td>
+
--><tr style="height:2px"><td></td></tr><tr><!--
<td bgcolor="cadetblue">0</td>
+
-->{{#if:{{{group7|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group7style|}}}"><!--
<td bgcolor="lightblue">0</td>
+
-->{{{group7}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
<td bgcolor="cadetblue">0</td>
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!--
<td bgcolor="lightblue">0</td>
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
<td bgcolor="cadetblue">0</td>
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list7|}}}</div></td></tr>}}<!--
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">150</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td></tr>
 
  
<tr><th bgcolor="cadetblue">Monorail Speed</th>
+
-->{{#if:{{{list8|}}}|<!--
<td bgcolor="lightblue">0</td>
+
--><tr style="height:2px"><td></td></tr><tr><!--
<td bgcolor="cadetblue">0</td>
+
-->{{#if:{{{group8|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group8style|}}}"><!--
<td bgcolor="lightblue">0</td>
+
-->{{{group8}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
<td bgcolor="cadetblue">0</td>
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!--
<td bgcolor="lightblue">0</td>
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
<td bgcolor="cadetblue">0</td>
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list8|}}}</div></td></tr>}}<!--
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">200</td>
 
<td bgcolor="lightblue">0</td>
 
<td bgcolor="cadetblue">0</td>
 
<td bgcolor="lightblue">0</td></tr>
 
</table>
 
  
The speed value for the Path Types are in # of Tiles per Unit of Time. Therefore in 1 unit of time based on the above example, a Sim will walk 5 tiles.
+
-->{{#if:{{{list9|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group9|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group9style|}}}"><!--
 +
-->{{{group9}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
  --><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list9|}}}</div></td></tr>}}<!--
  
== <span style="color:Blue">Commute Trip Maximum Time</span> ==
+
-->{{#if:{{{list10|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group10|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group10style|}}}"><!--
 +
-->{{{group10}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list10|}}}</div></td></tr>}}<!--
  
 +
-->{{#if:{{{list11|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group11|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group11style|}}}"><!--
 +
-->{{{group11}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list11|}}}</div></td></tr>}}<!--
  
This has one value. It is the maximum trip value as stated in the title. The MAXIS default value is 6. This means if the speed of the Path Type is 31 tiles per unit of time then for the entire there and back travel distance can be 186 tiles.
+
-->{{#if:{{{list12|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group12|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group12style|}}}"><!--
 +
-->{{{group12}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
  -->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!--
 +
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
  --><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list12|}}}</div></td></tr>}}<!--
  
Tiles per Unit of Time = 1/31
+
-->{{#if:{{{list13|}}}|<!--
Maximum Commute Time = 6
+
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group13|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group13style|}}}"><!--
 +
-->{{{group13}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list13|}}}</div></td></tr>}}<!--
  
1/31 = 6
+
-->{{#if:{{{list14|}}}|<!--
Travel Distance = 31x6 = 186 Tiles
+
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group14|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group14style|}}}"><!--
 +
-->{{{group14}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list14|}}}</div></td></tr>}}<!--
  
Due to this being there and back, this would mean the maximum distance from work being from home can be 93 tiles. Since it would be 93+93 = 186 tiles.
+
-->{{#if:{{{list15|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group15|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group15style|}}}"><!--
 +
-->{{{group15}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
  --><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list15|}}}</div></td></tr>}}<!--
  
*NoteThe Maximum Mass Transit Strategy Trip Length operates in the exact same fashion as the Commute Trip Maximum Time property.
+
-->{{#if:{{{list16|}}}|<!--
 +
  --><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group16|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group16style|}}}"><!--
 +
-->{{{group16}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list16|}}}</div></td></tr>}}<!--
  
 +
-->{{#if:{{{list17|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group17|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group17style|}}}"><!--
 +
-->{{{group17}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list17|}}}</div></td></tr>}}<!--
  
== <span style="color:Blue">Pathfinding Heuristic</span> ==
+
-->{{#if:{{{list18|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group18|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group18style|}}}"><!--
 +
-->{{{group18}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list18|}}}</div></td></tr>}}<!--
  
 +
-->{{#if:{{{list19|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group19|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group19style|}}}"><!--
 +
-->{{{group19}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 +
--><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list19|}}}</div></td></tr>}}<!--
  
This is an accuracy function of the Simulator. Basically, the lower the value the more accurate and more paths the Simulator will search before selecting the route for the Traffic.
+
-->{{#if:{{{list20|}}}|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:{{{group20|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group20style|}}}"><!--
 +
-->{{{group20}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!--
 +
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!--
 +
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 +
  --><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list20|}}}</div></td></tr>}}<!--
  
The way the Simulator calculates the path is based on a Manhattan A* Algorithm.  There are articles around the web that can explain this Algorithm better than I can.
 
  
[http://www.policyalmanac.org/games/aStarTutorial.htm A* Pathfinding for Beginners]
+
---Below---
 +
-->{{#if:{{{below|}}}|<!--
 +
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
 +
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" <!--
 +
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{below}}}</td></tr>}}<!--
  
  
== <span style="color:Blue">Network Traffic Capacity</span> ==
+
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}
 
 
 
 
Network Traffic Capacity is exactly what it sounds like.  It is the capacity for each network.  The capacities are defined in the same fashion as the way the Speeds are where the values are tied in a specific order to which network it refers to:
 
 
 
  Road
 
  Rail
 
  Highway (Elevated)
 
  Street
 
  Pipes
 
  Power Poles
 
  Avenue
 
  Subway
 
  Elevated Rail
 
  Monorail
 
  One Way Road
 
  Dirt Road (ANT/RHW)
 
  Ground Highway
 
 
 
Capcity is an important property for the simulator though it may not seem like it would be.  If you are trying to re-create realistic paths, then a Maximum Capacity is definately required.  Every network doesnt restrict the number of cars that are allowed on them, but this value is used to determine the congestion of the network.
 
 
 
For example a Avenue may have a capacity of 2500 cars a day, but it can handle more than 2500 cars before Sims start looking for other ways to get around the congestion.  There are other properties that define what the Sim should do if he comes in contact with such congestion.  One important one would be 1.5 Congestion vs Speed.
 
 
 
== <span style="color:Blue">Congestion vs Speed</span> ==
 
 
 
This has an infinite number of values defined by the user.  In alternating values it defines:
 
 
 
Value A = Congestion % of Network
 
Value B = Speed Multiplier Adjustment
 
 
 
Value organization:  A,B,A,B,A,B,A,B
 
 
 
Sample:
 
0,1.4,0.25,1.3,0.50,1.2,0.75,1.1,1,1,1.25,0.9,1.5,0.75,1.75,0.5,2,0.2
 
 
 
Translation:
 
<table><tr bgcolor="cadetblue"><th><center>Congestion</center></th><th>vs</th><th><center>Speed</center></th></tr>
 
<tr bgcolor="lightblue"><td><center>0%</center></td><td></td><td><center>140%</center></td></tr>
 
<tr bgcolor="cadetblue"><td><center>25%</center></td><td></td><td><center>130%</center></td></tr>
 
<tr bgcolor="lightblue"><td><center>50%</center></td><td></td><td><center>120%</center></td></tr>
 
<tr bgcolor="cadetblue"><td><center>75%</center></td><td></td><td><center>110%</center></td></tr>
 
<tr bgcolor="lightblue"><td><center>100%</center></td><td></td><td><center>100%</center></td></tr>
 
<tr bgcolor="cadetblue"><td><center>125%</center></td><td></td><td><center>90%</center></td></tr>
 
<tr bgcolor="lightblue"><td><center>150%</center></td><td></td><td><center>75%</center></td></tr>
 
<tr bgcolor="cadetblue"><td><center>175%</center></td><td></td><td><center>50%</center></td></tr>
 
<tr bgcolor="lightblue"><td><center>200%</center></td><td></td><td><center>20%</center></td></tr></table>
 
 
 
 
 
Essentially, this will slow your Sims down for the higher congestion your network may have.  If the speed gets too low the Simulator will find a faster way to get around it.  Maybe by taking another road or street.
 
 
 
== <span style="color:Blue">Intersection and Turn Capacity Effect</span> ==
 
 
 
 
 
This is a properrty that modifies the Capacity of an intersection and the 2 tiles leading upto the intersection.  Hence the three values of the property.  The first value modifies the capacity of the Intersection itself and the following two values modify the capacity of the two tiles leading upto the intersection. 
 
 
 
Example for a Road:
 
 
 
Values = 1.5, 0.8, 0.9
 
 
 
This means that at the Intersection the Capacity is multiplied by 1.5, the tile next to the intersection is multiplied by 0.8 and the tile before that is multiplied by 0.9.
 
 
 
So, if the Capacity for the Road is 2500, then the actual capacities of these tiles are:
 
 
 
  Intersection = 3750
 
  1 Tile away    = 2000
 
  2 Tiles away = 2250
 
 
 
This causes the Simulation to act as if the 2 Immediate Tiles are "slow downs" for the intersection when coupled with a properly designed Congestion vs Speed Property.  This setup makes is so that the intersection has a proportionally higher capacity since there are two separate routes.  This increase in Capacity at the intersection tile allows for both routes to be used to almost fully and not being hampered by the intersection.
 
 
 
== <span style="color:Blue">Travel Type Generates Traffic</span> ==
 
 
 
 
 
This is a value that determines whether or not the Traffic Type will add to congestion.  It is a yes (1) or no (0) value.  The order of these Traffic Types is:
 
 
 
  Walking
 
  Car
 
  Bus
 
  Passenger Rail
 
  Truck
 
  Frieght Rail
 
  Subway
 
  El-Rail
 
  Monorail
 
 
 
In the MAXIS Original values Subway is set to not add to congestion.  Buses and Pedestrians are also set not to add to congestion.  There is no phyisical way for the Simulator to do a simple math calculation for busses such as 20 Bus Trips = 1 Car Trip so, each Sim will always be equal to 1 Bus Trip = 1 Car Trip no matter what.  This is the reason Busses do not add to congestion and the reason they are given such a big preference when you have a high population city.  This one simple calculation added as another property in the Simulator could have made a big difference.
 
 
 
 
 
== <span style="color:Blue">Travel Type Can Reach Destination</span> ==
 
 
 
 
 
This is a set of values that does exactly what it says.  It is a yes (1) or no (0) value that determines whether the Traffic Type may reach their destination.  The order of these Traffic Types is:
 
 
 
  Walking
 
  Car
 
  Bus
 
  Passenger Rail
 
  Truck
 
  Frieght Rail
 
  Subway
 
  El-Rail
 
  Monorail
 
 
 
The default game has Walking (Pedestrians) and Cars set to (1) and allows these two transit types to reach destination.  So, this means your Sims will have to enter a Commercial or Industrial Lot by Car or Pedestrian.
 
 
 
== <span style="color:Blue">Travel Strategy Percentage Properties</span> ==
 
 
 
 
 
There are four of these properties.  No Wealth, $, $$, $$$.  Each one has 3 values and each value is tied to a different Strategy TYpe.  The Strategy Types are in order Car Preferred, Mass Transit Prefered and No Preference.  Car Preferred will give the Sim travelling the path an advantage to using Car Traffic by penalizing the Mass Transit Strategy.  Mass Transit Strategy will give the Sim travelling an advantage to find a Mass Transit Route by penalizing the Car Traffic.  No preferrence will not add any penalties to any strategies and the Simulator will look at both Strategies euqally.  For this the three values in each Property must add upto 100%.  So for example, you can have the Car Prefered 50%, MT Prefered 25% and No Preference 25% but you cannot have 75%, 25%, 50%.
 
 
 
 
 
== <span style="color:Blue">Trip Starting Cost by Travel Type (Mass Transit or Car Preffered)</span> ==
 
 
 
 
 
These are the two properties that determine the Penalties to the "unprefered" Travel Strategies from 1.9.  There are 9 values listed here but only two of them really get used.  Walking or Car Traffic.
 
 
 
In the Mass Transit Prefered the second value (Car Traffic) is 1.95 as a Starting Cost for the Car Traffic.  This means that when the Simulator is calculating the trip cost any path is searches for with Car Traffic, it will add this value to it.  For Car Preffered the first value (Pedestrian Traffic) is given the Starting cost.
 
 
 
The reason none of the other Traffic Types require a Starting Cost is because no Sim generates anything other than Pedestrian or Car Traffic.  The other Traffic Types are generated by a TE Lot after the initial path is found.
 
 
 
[[Category:Transit Networks]]
 

Revision as of 12:58, 29 December 2008