Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
en:tutostation [2010/06/28 17:56] – gauthier | en:tutostation [2024/06/15 02:27] (Version actuelle) – modification externe 127.0.0.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** | |
|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 }} |
| |
| ==== 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. |
| |
==== Cas particulier : 8 et 16 ==== | === Track/monorail/maglev === |
| |
| The image below is not a true pattern but gives graphical base accordingly with some of pak128's stations: |
| |
Dans le cas des deux dernières stations vues en exemple, ces deux stations n'utilisent à elles deux que seize images plus l'icone et le curseur de chacune. La station a seize image comporte un quai de chaque côté, on utilise backimage lorsque le quai est derrière le rail et frontimage lorsque le quai est devant le rail, on a rarement besoin des deux à la fois. Mais lorsqu'on combine deux quais, un derrière un devant, on obtient une station à huit images. La station a huit image utilise simultanément backimage et frontimage de la station à seize images. (voir les fichiers source à télécharger en bas de cette page pour mieux comprendre). | {{ 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> |
| |
==== Trames ==== | The same, empty: |
| |
| {{ fr:tuto:dat:platforms1.png }} |
| |
Voici les trames pour les stations les plus complexes à dessiner : rail/monorail/maglev et route/tram. Les stations fluviales sont faciles à faire à partir des stations de bus et les tarmacs d'aéroports n'ont pas de contrainte vu que la taille des avions est très variable, les ports eux occupent un tile complet et n'ont donc pas de contrainte spéciale non plus. | === Road/tram === |
| |
| {{ fr:tuto:dat:stations1.png }} |
| |
=== Rail/monorail/maglev === | This is the .dat file's pattern : |
| |
| |
Voici une image toute récente avec des quais faits maison à partir de stations existantes variant selon les époques (on a moderne, ancien et entre les deux). | |
| |
| |
{{ :fr:stations.png }} | |
| |
| |
Voici les mêmes vides : | |
| |
| |
{{ :fr:quais.png }} | |
| |
| |
Voici les trames .dat liées : | |
| |
<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 |
| \\ |
| \\ #becomes ... |
| \\ |
| \\ #normal view |
| \\ backimage[2][0][0][0][0][0]=source.1.2 |
| \\ #snowy view |
| \\ backimage[2][0][0][0][0][1]=source.1.2 </WRAP> |
| |
=== Route/tram === | ===== Essential parameters ===== |
| |
| |
{{ :fr:stations1.png }} | |
| |
| |
Voici la trame .dat liée | |
| |
| |
<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> | |
| |
| |
===== Paramètres basiques ===== | |
| |
| |
|**Paramètre** |**Description** |**Contenu** |**Exemple** | | |
|obj |type d'objet |building || | |
|type |type de bâtiment |stop || | |
|waytype |type de voie |nom interne |track | | |
|name |nom |texte |SNFOS_trainstation_simple | | |
|intro_year |année de disponibilité |nombre |1990 | | |
|intro_month |mois de disponibilité |nombre |1 | | |
|retire_year |année de retraite |nombre |2080 | | |
|retire_month |mois de retraite |nombre |1 | | |
|copyright |nom du créateur |texte |Gauthier | | |
|NoInfo |non affichage d'une fenêtre d'info lors d'un clic sur l'objet |booléen |1 | | |
|noconstruction |non affichage de l'image de construction |booléen |0 | | |
|enables_pax |la station accepte les passagers |booléen |0 | | |
|enables_post |la station accepte les messages |booléen |0 | | |
|enables_ware |la station accepte les marchandises |booléen |1 | | |
|level |nombre de passagers/messages/marchandises que la station accepte (%%*%%32 unités) |nombre | \\ 2 | | |
| |
| |**Parameter** |**Description** |**Content** |**Example** | |
| |obj |object type |building || |
| |type |building type |stop || |
| |[[en:tutowaytype|waytype]] |way type |internal_name |track | |
| |name |name |text |SNFOS_trainstation_simple | |
| |intro_year |introduction year |number |1990 | |
| |intro_month |introduction month |number |1 | |
| |retire_year |retire year |number |2080 | |
| |retire_month |retire month |number |1 | |
| |copyright |name of the creator |text |Gauthier | |
| |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 | |
| |enables_pax |station can accept passengers |boolean |0 | |
| |enables_post |station can accept mails |boolean |0 | |
| |enables_ware |station can accept goods |boolean |1 | |
| |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. |
| |
On utilise type=habour pour les ports et type=stop pour toutes les autres stations. | <WRAP box>[[en:tutomakeobj3#objects|Come back to objects]] </WRAP> |
| |
| |
==== waytype ==== | |
| |
| |
[[:fr:tutowaytype|Types de voies possibles]] | |
| |
| |
===== Fichiers exemples ===== | |
| |
| |
<WRAP download>Vous trouverez à ce lien des fichiers sources des stations SNFOS. | |
| |
| |
{{:fr:stations.rar|Stations.rar}}</WRAP> | |
| |
| |
<WRAP box>[[http://www.simutrans-france.fr.nf/doku.php?id=fr:tutomakeobj3#objets|Revenir aux objets]] </WRAP> | |
| |
| |
\\ | |
| |