Traductions possibles :

Différences

Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.

en:tutostation [2010/06/28 18:10]
gauthier
en:tutostation [2015/02/18 11:05] (version actuelle)
Ligne 1: Ligne 1:
-<WRAP box>[[:en:tutomakeobj3#objects|Come back to   objects]] </WRAP> +<WRAP box>[[en:tutomakeobj3#objects|Come back to   objects]] </WRAP>
====== Stations ====== ====== Stations ======
- +Stations'graphical complexity is variable. There are two pictures station, eight pictures station or sixteen pictures station and four pictures stations made for way extremities (like planes tarmacs). Plus stations'graphics depend of the way type which the station is made for. These are some basic graphics for some waytypes which you can draw on.
-The stations'graphical complexity is variable. There are two pictures station, eight pictures station or sixteen pictures station and four pictures stations made for way extremities (like planes tarmacs). Plus stations'graphics depend of the way type which the station is made for. These are some basic graphics for some waytypes which you can draw on. +
===== Graphics ===== ===== Graphics =====
- 
==== Parameter Dims ==== ==== Parameter Dims ====
- 
LThe parameter “dims” which is in the .dat defines the number of pictures the station has. It's of the pattern dims=x,y,z LThe parameter “dims” which is in the .dat defines the number of pictures the station has. It's of the pattern dims=x,y,z
- 
x et y defines the size of the station, they're always equal to 1 because a station can't be more of one tile big. z defines the number of pictures of the station, it can be 2, 4, 8 or 16. x et y defines the size of the station, they're always equal to 1 because a station can't be more of one tile big. z defines the number of pictures of the station, it can be 2, 4, 8 or 16.
- 
|**dims**  |**directions**  |**possible sides for the platform**  |**possible configurations of one station**  |**backimage and frontimage**  |**total number of pictures**  | |**dims**  |**directions**  |**possible sides for the platform**  |**possible configurations of one station**  |**backimage and frontimage**  |**total number of pictures**  |
Ligne 24: Ligne 17:
|1,1,4 |4 (North, South, East, West extremities) |%%*%%1 ( on each side) |%%*%%1 (extremity) |%%*%%2 |8 | |1,1,4 |4 (North, South, East, West extremities) |%%*%%1 ( on each side) |%%*%%1 (extremity) |%%*%%2 |8 |
|1,1,8 |2 (North-South et East-West) |%%*%%1 ( on each side) |%%*%%4   (single station, extremity1, extremity2, central part) |%%*%%2 |16 | |1,1,8 |2 (North-South et East-West) |%%*%%1 ( on each side) |%%*%%4   (single station, extremity1, extremity2, central part) |%%*%%2 |16 |
-|1,1,16 |2 (North-South et East-West) |%%*%%2 (behind and before the way) |%%*%%4   (single station, extremity1, extremity2, central part) |%%*%%2 (frequently %%*%%1) |32 (frequently 16) |+|1,1,16 |2 (North-South et East-West) |%%*%%2 (behind and before the way) |%%*%%4   (single station, extremity1, extremity2, central part) |%%*%%2 |32 |
 +** 1,1,2 :{{  fr:tuto:dat:stations01.png  }}** 1,1,4 :{{  fr:tuto:dat:stations02.png  }}1,1,8 :{{  fr:tuto:dat:stations03.png  }}1,1,16 :{{  fr:tuto:dat:stations04.png  }}This is the graphican part of the .dat file   <WRAP   box>icon= > image.x.y\\  cursor=image.x.y\\  \\  backimage[0][0][0][0][0]=image.x.y\\  backimage[1][0][0][0][0]=image.x.y\\  backimage[2][0][0][0][0]=image.x.y\\  backimage[3][0][0][0][0]=image.x.y\\  backimage[4][0][0][0][0]=image.x.y\\  backimage[5][0][0][0][0]=image.x.y\\  backimage[6][0][0][0][0]=image.x.y\\  backimage[7][0][0][0][0]=image.x.y\\  backimage[8][0][0][0][0]=image.x.y\\  backimage[9][0][0][0][0]=image.x.y\\  backimage[10][0][0][0][0]=image.x.y\\  backimage[11][0][0][0][0]=image.x.y\\  backimage[12][0][0][0][0]=image.x.y\\  backimage[13][0][0][0][0]=image.x.y\\  backimage[14][0][0][0][0]=image.x.y\\  backimage[15][0][0][0][0]=image.x.y\\  \\  frontimage[0][0][0][0][0]=image.x.y\\  frontimage[1][0][0][0][0]=image.x.y\\  frontimage[2][0][0][0][0]=image.x.y\\  frontimage[3][0][0][0][0]=image.x.y\\  frontimage[4][0][0][0][0]=image.x.y\\  frontimage[5][0][0][0][0]=image.x.y\\  frontimage[6][0][0][0][0]=image.x.y\\  frontimage[7][0][0][0][0]=image.x.y\\  frontimage[8][0][0][0][0]=image.x.y\\  frontimage[9][0][0][0][0]=image.x.y\\  frontimage[10][0][0][0][0]=image.x.y\\  frontimage[11][0][0][0][0]=image.x.y\\  frontimage[12][0][0][0][0]=image.x.y\\  frontimage[13][0][0][0][0]=image.x.y\\  frontimage[14][0][0][0][0]=image.x.y\\  frontimage[15][0][0][0][0]=image.x.y</WRAP>
-**{{  :fr:stations01.png  }}** 1,1,4 :{{  :fr:stations02.png  }}1,1,8 :{{  :fr:stations03.png  }}1,1,16 :{{  :fr:stations04.png  }}This is the graphican part of the .dat file   <WRAP   box>icon= > image.x.y\\  cursor=image.x.y\\  \\  backimage[0][0][0][0][0]=image.x.y\\  backimage[1][0][0][0][0]=image.x.y\\  backimage[2][0][0][0][0]=image.x.y\\  backimage[3][0][0][0][0]=image.x.y\\  backimage[4][0][0][0][0]=image.x.y\\  backimage[5][0][0][0][0]=image.x.y\\  backimage[6][0][0][0][0]=image.x.y\\  backimage[7][0][0][0][0]=image.x.y\\  backimage[8][0][0][0][0]=image.x.y\\  backimage[9][0][0][0][0]=image.x.y\\  backimage[10][0][0][0][0]=image.x.y\\  backimage[11][0][0][0][0]=image.x.y\\  backimage[12][0][0][0][0]=image.x.y\\  backimage[13][0][0][0][0]=image.x.y\\  backimage[14][0][0][0][0]=image.x.y\\  backimage[15][0][0][0][0]=image.x.y\\  \\  frontimage[0][0][0][0][0]=image.x.y\\  frontimage[1][0][0][0][0]=image.x.y\\  frontimage[2][0][0][0][0]=image.x.y\\  frontimage[3][0][0][0][0]=image.x.y\\  frontimage[4][0][0][0][0]=image.x.y\\  frontimage[5][0][0][0][0]=image.x.y\\  frontimage[6][0][0][0][0]=image.x.y\\  frontimage[7][0][0][0][0]=image.x.y\\  frontimage[8][0][0][0][0]=image.x.y\\  frontimage[9][0][0][0][0]=image.x.y\\  frontimage[10][0][0][0][0]=image.x.y\\  frontimage[11][0][0][0][0]=image.x.y\\  frontimage[12][0][0][0][0]=image.x.y\\  frontimage[13][0][0][0][0]=image.x.y\\  frontimage[14][0][0][0][0]=image.x.y\\  frontimage[15][0][0][0][0]=image.x.y</WRAP> Backimages are displayed behind vehicles and frontimages are displayed before vehicles. The both will be displayed above the way. Here they are the necessary pictures for a 16 pictures station, you have to make pictures until image[1] if dims=1,1,2, image[3] if dims=1,1,4, image[7] if  dims=1,1,8 and   image[15] if dims=1,1,16. This is what stand for pictures for 1,1,2; 1,1,8 et 1,1,16{{  :fr:stations_16.png  }} +Backimages are displayed behind vehicles and frontimages are displayed before vehicles. The both will be displayed above the way. Here they are the necessary pictures for a 16 pictures station, you have to make pictures until image[1] if dims=1,1,2, image[3] if dims=1,1,4, image[7] if  dims=1,1,8 and   image[15] if dims=1,1,16. This is what stand for pictures for 1,1,2; 1,1,8 et 1,1,16{{  fr:tuto:dat:stations_16.png  }}
- +
- +
-\\ +
- +
-==== Particular case : 8 and 16 ==== +
- +
- +
-In the cases of the two last stations seen as examples before, these two stations use only sixteen pictures with the icon and the cursor for each one. The 16 pictures'station has a platform on each side, it uses backimages when the platform is behind the way and frontimages when the platform is before the way, the both simultaneously are rarely needed. But when two platforms are used together, one behind and one before the way, there's a 8 picture's station. The 8 pictures'station uses simultaneously backimage and frontimage of the 16 pictures'station. (see the downloadable sources at the bottom of this page to understand).+
==== Patterns ==== ==== Patterns ====
- 
Here are the patterns for the most difficult stations to draw : track/monorail/maglev and road/tram. River ports are easy to draw and airports'tarmacs aren't complex since the size of planes is very variable, ports fill a complete tile so they're not complex too. Here are the patterns for the most difficult stations to draw : track/monorail/maglev and road/tram. River ports are easy to draw and airports'tarmacs aren't complex since the size of planes is very variable, ports fill a complete tile so they're not complex too.
- 
=== Track/monorail/maglev === === Track/monorail/maglev ===
 +The image below is not a true pattern but gives graphical base accordingly with some of pak128's stations:
-This is a recent picture I made with home-made platforms and existing stations according to the era (there are modern, old and mix).+{{  fr:tuto:dat:platforms2.png  }}
 +<WRAP box>Obj=building
 + \\ Name=STATION_NAME_early
 + \\ Dims=1,1,16
 + \\ NoInfo=1
 + \\ intro_year=1800
 + \\ retire_year=1950
 + \\ icon=> source.1.8
 + \\ cursor=source.2.8
 + \\ type=stop
 + \\ enables_pax=1
 + \\ allow_underground=0
 + \\ waytype=track
 + \\ level=1
 + \\ backimage[0][0][0][0][0]=source.1.0
 + \\ backimage[1][0][0][0][0]=source.1.1
 + \\ backimage[2][0][0][0][0]=source.1.2
 + \\ backimage[3][0][0][0][0]=source.1.3
 + \\ backimage[4][0][0][0][0]=source.1.4
 + \\ backimage[5][0][0][0][0]=source.1.5
 + \\ backimage[6][0][0][0][0]=source.1.6
 + \\ backimage[7][0][0][0][0]=source.1.7
 + \\ frontimage[8][0][0][0][0]=source.2.0
 + \\ frontimage[9][0][0][0][0]=source.2.1
 + \\ frontimage[10][0][0][0][0]=source.2.2
 + \\ frontimage[11][0][0][0][0]=source.2.3
 + \\ frontimage[12][0][0][0][0]=source.2.4
 + \\ frontimage[13][0][0][0][0]=source.2.5
 + \\ frontimage[14][0][0][0][0]=source.2.6
 + \\ frontimage[15][0][0][0][0]=source.2.7
 + \\ ------------------------------
 + \\ Obj=building
 + \\ Name=STATION_NAME_med
 + \\ Dims=1,1,16
 + \\ NoInfo=1
 + \\ intro_year=1950
 + \\ retire_year=1990
 + \\ icon=> source.3.8
 + \\ cursor=source.4.8
 + \\ type=stop
 + \\ enables_pax=1
 + \\ allow_underground=0
 + \\ waytype=track
 + \\ level=1
 + \\ backimage[0][0][0][0][0]=source.3.0
 + \\ backimage[1][0][0][0][0]=source.3.1
 + \\ backimage[2][0][0][0][0]=source.3.2
 + \\ backimage[3][0][0][0][0]=source.3.3
 + \\ backimage[4][0][0][0][0]=source.3.4
 + \\ backimage[5][0][0][0][0]=source.3.5
 + \\ backimage[6][0][0][0][0]=source.3.6
 + \\ backimage[7][0][0][0][0]=source.3.7
 + \\ frontimage[8][0][0][0][0]=source.4.0
 + \\ frontimage[9][0][0][0][0]=source.4.1
 + \\ frontimage[10][0][0][0][0]=source.4.2
 + \\ frontimage[11][0][0][0][0]=source.4.3
 + \\ frontimage[12][0][0][0][0]=source.4.4
 + \\ frontimage[13][0][0][0][0]=source.4.5
 + \\ frontimage[14][0][0][0][0]=source.4.6
 + \\ frontimage[15][0][0][0][0]=source.4.7
 + \\ ------------------------------
 + \\ Obj=building
 + \\ Name=STATION_NAME_modern
 + \\ Dims=1,1,16
 + \\ NoInfo=1
 + \\ intro_year=1990
 + \\ icon=> source.5.8
 + \\ cursor=source.6.8
 + \\ type=stop
 + \\ enables_pax=1
 + \\ allow_underground=0
 + \\ waytype=track
 + \\ level=1
 + \\ backimage[0][0][0][0][0]=source.5.0
 + \\ backimage[1][0][0][0][0]=source.5.1
 + \\ backimage[2][0][0][0][0]=source.5.2
 + \\ backimage[3][0][0][0][0]=source.5.3
 + \\ backimage[4][0][0][0][0]=source.5.4
 + \\ backimage[5][0][0][0][0]=source.5.5
 + \\ backimage[6][0][0][0][0]=source.5.6
 + \\ backimage[7][0][0][0][0]=source.5.7
 + \\ frontimage[8][0][0][0][0]=source.6.0
 + \\ frontimage[9][0][0][0][0]=source.6.1
 + \\ frontimage[10][0][0][0][0]=source.6.2
 + \\ frontimage[11][0][0][0][0]=source.6.3
 + \\ frontimage[12][0][0][0][0]=source.6.4
 + \\ frontimage[13][0][0][0][0]=source.6.5
 + \\ frontimage[14][0][0][0][0]=source.6.6
 + \\ frontimage[15][0][0][0][0]=source.6.7</WRAP>
-{{  :fr:stations.png  }}+The same, empty:
 +{{  fr:tuto:dat:platforms1.png  }}
-The same empty :+=== Road/tram ===
 +{{  fr:tuto:dat:stations1.png  }}
-{{  :fr:quais.png  }} +This is the .dat file's pattern :
- +
- +
-Here are the .dat files'patterns : +
<WRAP box>Dims=1,1,8\\  \\  icon= > image.0.8\\  cursor=image.1.8\\  \\  backimage[0][0][0][0][0]=image.0.0\\  backimage[1][0][0][0][0]=image.0.1\\  backimage[2][0][0][0][0]=image.0.2\\  backimage[3][0][0][0][0]=image.0.3\\  backimage[4][0][0][0][0]=image.0.4\\  backimage[5][0][0][0][0]=image.0.5\\  backimage[6][0][0][0][0]=image.0.6\\  backimage[7][0][0][0][0]=image.0.7\\  \\  frontimage[0][0][0][0][0]=image.1.0\\  frontimage[1][0][0][0][0]=image.1.1\\  frontimage[2][0][0][0][0]=image.1.2\\  frontimage[3][0][0][0][0]=image.1.3\\  frontimage[4][0][0][0][0]=image.1.4\\  frontimage[5][0][0][0][0]=image.1.5\\  frontimage[6][0][0][0][0]=image.1.6\\  frontimage[7][0][0][0][0]=image.1.7</WRAP> <WRAP box>Dims=1,1,8\\  \\  icon= > image.0.8\\  cursor=image.1.8\\  \\  backimage[0][0][0][0][0]=image.0.0\\  backimage[1][0][0][0][0]=image.0.1\\  backimage[2][0][0][0][0]=image.0.2\\  backimage[3][0][0][0][0]=image.0.3\\  backimage[4][0][0][0][0]=image.0.4\\  backimage[5][0][0][0][0]=image.0.5\\  backimage[6][0][0][0][0]=image.0.6\\  backimage[7][0][0][0][0]=image.0.7\\  \\  frontimage[0][0][0][0][0]=image.1.0\\  frontimage[1][0][0][0][0]=image.1.1\\  frontimage[2][0][0][0][0]=image.1.2\\  frontimage[3][0][0][0][0]=image.1.3\\  frontimage[4][0][0][0][0]=image.1.4\\  frontimage[5][0][0][0][0]=image.1.5\\  frontimage[6][0][0][0][0]=image.1.6\\  frontimage[7][0][0][0][0]=image.1.7</WRAP>
 +==== Snowy/Winter view ====
-<WRAP box>Dims=1,1,16\\  \\  icon= > image.0.8\\  cursor=image.1.8\\  \\  backimage[0][0][0][0][0]=image.0.0\\  backimage[1][0][0][0][0]=image.0.1\\  backimage[2][0][0][0][0]=image.0.2\\  backimage[3][0][0][0][0]=image.0.3\\  backimage[4][0][0][0][0]=image.0.4\\  backimage[5][0][0][0][0]=image.0.5\\  backimage[6][0][0][0][0]=image.0.6\\  backimage[7][0][0][0][0]=image.0.7\\  \\  frontimage[8][0][0][0][0]=image.1.0\\  frontimage[9][0][0][0][0]=image.1.1\\  frontimage[10][0][0][0][0]=image.1.2\\  frontimage[11][0][0][0][0]=image.1.3\\  frontimage[12][0][0][0][0]=image.1.4\\  frontimage[13][0][0][0][0]=image.1.5\\  frontimage[14][0][0][0][0]=image.1.6\\  frontimage[15][0][0][0][0]=image.1.7</WRAP>+Stations can have snowy images. To define them, a parameter must be added to the name of each image, equal to 0 for normal (summer) view and 1 for snowy (winter) view. Here is an example:
- +<WRAP box>backimage[2][0][0][0][0]=source.1.2  
-=== Road/tram === + \\  
- + \\ #becomes ... 
- + \\  
-{{  :fr:stations1.png  }} + \\ #normal view 
- + \\ backimage[2][0][0][0][0][0]=source.1.2  
- + \\ #snowy view 
-This is the .dat file's pattern : + \\ backimage[2][0][0][0][0][1]=source.1.2 </WRAP>
- +
- +
-<WRAP box>Dims=1,1,8\\  \\  icon= > image.0.8\\  cursor=image.1.8\\  \\  backimage[0][0][0][0][0]=image.0.0\\  backimage[1][0][0][0][0]=image.0.1\\ backimage[2][0][0][0][0]=image.0.2\\ backimage[3][0][0][0][0]=image.0.3\\  backimage[4][0][0][0][0]=image.0.4\\ backimage[5][0][0][0][0]=image.0.5\\ backimage[6][0][0][0][0]=image.0.6\\ backimage[7][0][0][0][0]=image.0.7\\  \\  frontimage[0][0][0][0][0]=image.1.0\\ frontimage[1][0][0][0][0]=image.1.1\\ frontimage[2][0][0][0][0]=image.1.2\\  frontimage[3][0][0][0][0]=image.1.3\\  frontimage[4][0][0][0][0]=image.1.4\\  frontimage[5][0][0][0][0]=image.1.5\\  frontimage[6][0][0][0][0]=image.1.6\\  frontimage[7][0][0][0][0]=image.1.7</WRAP>+
===== Essential parameters ===== ===== Essential parameters =====
- 
|**Parameter**  |**Description**  |**Content**  |**Example**  | |**Parameter**  |**Description**  |**Content**  |**Example**  |
|obj |object type |building || |obj |object type |building ||
|type |building type |stop || |type |building type |stop ||
-|waytype |way type |internal_name |track |+|[[en:tutowaytype|waytype]] |way type |internal_name |track |
|name |name |text |SNFOS_trainstation_simple | |name |name |text |SNFOS_trainstation_simple |
|intro_year |introduction year |number |1990 | |intro_year |introduction year |number |1990 |
Ligne 91: Ligne 159:
|retire_month |retire month |number |1 | |retire_month |retire month |number |1 |
|copyright |name of the creator |text |Gauthier | |copyright |name of the creator |text |Gauthier |
-|NoInfo |don't display a window when click on the object |boolean |1 |+|NoInfo |don't display a window when click on the object \\ <wrap warning>This won't prevent station's content window from displaying !</wrap>|boolean |1 |
|noconstruction |don't display the construction picture |boolean |0 | |noconstruction |don't display the construction picture |boolean |0 |
|enables_pax |station can accept passengers |boolean |0 | |enables_pax |station can accept passengers |boolean |0 |
Ligne 97: Ligne 165:
|enables_ware |station can accept goods |boolean |1 | |enables_ware |station can accept goods |boolean |1 |
|level |number of passengers/mails/goods that the station can stock (%%*%%32 units) |number | \\ 2 | |level |number of passengers/mails/goods that the station can stock (%%*%%32 units) |number | \\ 2 |
- 
- 
-\\ 
==== type ==== ==== type ====
- 
type=habour is used for ports and type=stop is used for every other stations. type=habour is used for ports and type=stop is used for every other stations.
-==== waytype ==== +<WRAP box>[[en:tutomakeobj3#objects|Come back to objects]] </WRAP>
- +
- +
-[[:en:tutowaytype|Possible   waytypes]] +
- +
-===== Example files ===== +
- +
- +
-<WRAP download>You'll find here sources of SNFOS stations. +
- +
- +
-{{:fr:stations.rar|Stations.rar}}</WRAP> +
- +
- +
-<WRAP box>[[:en:tutomakeobj3#objects|Come back to  objects]] </WRAP>+