Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
en:tutobridge [2010/06/28 15:29] – créée gauthieren:tutobridge [2024/06/15 00:27] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
-<WRAP box>[[:en:tutomakeobj3#objects|Come back to  objects]] </WRAP> +<WRAP box>[[en:tutomakeobj3#objects|Come back to  objects]] </WRAP>
  
 ====== Bridges ====== ====== Bridges ======
  
 +===== Png and dat patterns =====
  
-===== Graphics =====+Here is the bridge pattern:
  
 +{{  fr:tuto:dat:bridge.png  }}
  
-Graphical pattern for bridges :+<WRAP box>obj=bridge 
 + \\ name= 
 + \\ waytype= 
 + \\ cost= 
 + \\ maintenance= 
 + \\ topspeed= 
 + \\ max_weight= 
 + \\ max_lenght= 
 + \\ max_height= 
 + \\ pillar_distance= 
 + \\ pillar_asymmetric=1 
 + \\ copyright= 
 + \\  
 + \\ intro_year=1800 
 + \\ intro_month=1 
 + \\ retire_year=2999 
 + \\ retire_month=1 
 + \\  
 + \\ icon=> source.0.4 
 + \\ cursor=source.0.5 
 + \\ backPillar[S]=source.1.4 
 + \\ backPillar[W]=source.1.5 
 + \\  
 + \\ BackImage[NS]=source.0.0 
 + \\ FrontImage[NS]=source.1.0 
 + \\ BackImage[EW]=source.0.1 
 + \\ FrontImage[EW]=source.1.1 
 + \\ BackImage2[NS]=source.0.2 
 + \\ FrontImage2[NS]=source.1.2 
 + \\ BackImage2[EW]=source.0.3 
 + \\ FrontImage2[EW]=source.1.3 
 + \\  
 + \\ BackRamp[N]=source.2.0 
 + \\ FrontRamp[N]=source.3.0 
 + \\ BackRamp[W]=source.2.1 
 + \\ FrontRamp[W]=source.3.1 
 + \\ BackRamp[S]=source.2.2 
 + \\ FrontRamp[S]=source.3.2 
 + \\ BackRamp[E]=source.2.3 
 + \\ FrontRamp[E]=source.3.3 
 + \\  
 + \\ BackRamp2[N]=source.4.0 
 + \\ FrontRamp2[N]=source.5.0 
 + \\ BackRamp2[W]=source.4.1 
 + \\ FrontRamp2[W]=source.5.1 
 + \\ BackRamp2[S]=source.4.2 
 + \\ FrontRamp2[S]=source.5.2 
 + \\ BackRamp2[E]=source.4.3 
 + \\ FrontRamp2[E]=source.5.3 
 + \\  
 + \\ BackStart[N]=source.2.4 
 + \\ FrontStart[N]=source.3.4 
 + \\ BackStart[W]=source.2.5 
 + \\ FrontStart[W]=source.3.5 
 + \\ BackStart[S]=source.2.6 
 + \\ FrontStart[S]=source.3.6 
 + \\ BackStart[E]=source.2.7 
 + \\ FrontStart[E]=source.3.7 
 + \\  
 + \\ BackStart2[N]=source.4.4 
 + \\ FrontStart2[N]=source.5.4 
 + \\ BackStart2[W]=source.4.5 
 + \\ FrontStart2[W]=source.5.5 
 + \\ BackStart2[S]=source.4.6 
 + \\ FrontStart2[S]=source.5.6 
 + \\ BackStart2[E]=source.4.7 
 + \\ FrontStart2[E]=source.5.7</WRAP>
  
 +Red images are backimage (the images to be displayed behind passing vehicles) and blue ones are frontimage (to be displayed before passing vehicles).
  
-{{  :fr:trame_bridge.png  }}+<WRAP info>If the bridge is one of a way which does not support hard slopes, remove "Ramp2" images to keep consistent.</WRAP>
  
 +The images "Image" are the central parts of the bridge which are displayed in the height beneath the bridge is not higher that one unit, otherwise "Image2" is displayed.
  
-On this patterneach width is made of different grey, to use this   pattern, delete,   thanks to replace color tool and playing on the tolerance, the greys   until the right width. Blue squares stand for the ground. +Bridges can have snowy images. To define them, a parameter must be added to the name of each imageequal to 0 for normal (summer) view and for snowy (winter) view. Here is an example:
- +
- +
-This is the graphical part of the .dat fileexplained below. +
- +
- +
-<WRAP box>cursor=image.3.1\\  icon= > image.3.0\\  \\  backstart[N]=image.1.0\\  backstart[S]=image.1.2\\  backstart[E]=image.1.3\\  backstart[W]=image.1.1\\  backramp[N]=image.0.0\\  backramp[S]=image.0.2\\  backramp[E]=image.0.3\\  backramp[W]=image.0.1\\  backimage[NS]=image.2.0\\  backimage[EW]=image.2.1\\  \\  frontstart[N]=image.1.0\\  frontstart[S]=image.1.2\\  frontstart[E]=image.1.3\\  frontstart[W]=image.1.1\\  frontramp[N]=image.0.0\\  frontramp[S]=image.0.2\\  frontramp[E]=image.0.3\\  frontramp[W]=image.0.1\\  frontimage[NS]=image.2.0\\  frontimage[EW]=image.2.1\\  \\  backPillar[S]=image.2.2\\  backPillar[W]=image.2.3</WRAP> +
- +
- +
-Back… is for pictures displayed behind vehicles and Front… is for  pictures displayed before vehicles. Here these are the same since I  haven't any examples of sources for this object which have the both. +
- +
- +
-<WRAP tip>An easier way should be creating a picture with frontimage and a picture  with backimage, so you'll only have to change the name of the picture.</WRAP> +
- +
- +
-{{  :fr:pont01.png  }} +
- +
- +
-<WRAP tip>If you use the patterns, you won't have to know that.</WRAP>+
  
 +<WRAP box>FrontStart[E]=source.3.7 
 + \\ 
 + \\ #becomes ...
 + \\ 
 + \\ #normal view
 + \\ FrontStart[E][0]=source.3.7 
 + \\ #snowy view
 + \\ FrontStart[E][1]=sourcewinter.3.7 </WRAP>
  
 ===== Essential parameters ===== ===== Essential parameters =====
- 
  
 |**Parameter **  |**Description  **  |**Content  **  |**Example **  | |**Parameter **  |**Description  **  |**Content  **  |**Example **  |
 |obj |object type |bridge || |obj |object type |bridge ||
-|waytype |way type |internal_name |maglev_track |+|[[en:tutowaytype|waytype]] |way type |internal_name |maglev_track |
 |name |name |text |AMT_bridge | |name |name |text |AMT_bridge |
 |cost |price (%%*%%100c) |number |15000 | |cost |price (%%*%%100c) |number |15000 |
Ligne 48: Ligne 106:
 |max_length |max lentgh |number |14 | |max_length |max lentgh |number |14 |
 |max_height |max height |number |10 | |max_height |max height |number |10 |
-|pillar_asymmetric |draw pillars on slopes ? |boolean |1 |+|pillar_asymmetric |use if the pillar's graphic isn'on the center of the tile (put the graphic on the lower part of the tile) |boolean |1 
 +|pillar_distance |distance between each pillar (at least 1) |number |2 |
 |intro_year |introduction year |number |2025 | |intro_year |introduction year |number |2025 |
 |intro_month |introduction month |number |1 | |intro_month |introduction month |number |1 |
 |copyright |name of the creator |text |Gauthier | |copyright |name of the creator |text |Gauthier |
  
 +<WRAP box>[[en:tutomakeobj3#objects|Come back to objects]] </WRAP>
  
-==== waytype ==== 
- 
- 
-[[:en:tutowaytype|Possible   waytypes]] 
- 
- 
-===== Example files ===== 
- 
- 
-<WRAP download>You'll find here the MLM bridge source files. 
- 
- 
-{{:fr:ponts.rar|Ponts.rar}}</WRAP> 
- 
- 
-<WRAP box>[[:en:tutomakeobj3#objects|Come back to  objects]] </WRAP> 
- 
- 
-\\