Traductions possibles :

Différences

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

en:tutowayobject [2014/04/22 14:01]
gauthier
en:tutowayobject [2015/09/03 10:42] (version actuelle)
gauthier
Ligne 1: Ligne 1:
-<WRAP box>[[:en:tutomakeobj3#objects|Come back to  objects]] </WRAP> +<WRAP box>[[en:tutomakeobj3#objects|Come back to  objects]] </WRAP>
====== Way objects ====== ====== Way objects ======
 +Way objects are mostly used for electrifications (catenaries, third rails, ...) although they can be used as decorations.
-Most of the time these objects are used to make catenaries, their graphics works the same way as way graphics and the paramater are almost the same.+===== Png and dat patterns =====
 +Way objects follow the exact same graphical scheme as ways, so the patterns are almost the same.
-===== Graphics =====+<WRAP warning>Way objects don't feature snowy/winter view and changeable crossings.</WRAP>
 +On some objects, some parts of the object must be displayed above passing vehicles (like catenaries'wire) and other parts behind vehicles (like third rails). To do that, frontimage and backimage are respectively used.
-Here are two graphical patterns for ways : the second one gives rounded  turns to make the work easier.+Each view can have two images, one frontimage to be displayed above passing vehicles and one backimage to be displayed behind the vehicles.
 +<WRAP info>Simple objects rarely have both images for each view.</WRAP>
-{{  fr:tuto:dat:trame_way.png  }}+<WRAP tip>To use the pattern below, it is advised to work with two images, one for backimages and one for frontimages.</WRAP>
 +{{  fr:tuto:dat:wayobj.png  }}
-{{  fr:tuto:dat:trame_way2.png  }}On this pattern, each width is made of a different grey, to use this   pattern, delete,   thanks to replace color tool and playing on the tolerance, the greys   until the right width. +<WRAP box>obj=way-object 
- + \\ waytype= 
- + \\ name= 
-This is the graphical part of the .dat file, explained below. + \\ cost= 
- + \\ maintenance= 
- + \\ topspeed= 
-<WRAP box>icon= > image.4.0\\ cursor=image.4.1\\ backimage[-]=image.3.1\\ backimage[S]=image.0.1\\ backimage[N]=image.0.3\\ backimage[W]=image.0.2\\ backimage[E]=image.0.0\\ backimage[NS]=image.0.5\\ backimage[EW]=image.0.4\\ backimage[NSE]=image.2.3\\ backimage[NSW]=image.2.1\\ backimage[NEW]=image.2.0\\ backimage[SEW]=image.2.2\\ backimage[NSEW]=image.3.0\\ backimage[NE]=image.1.1\\ backimage[SE]=image.1.3\\ backimage[NW]=image.1.2\\ backimage[SW]=image.1.0\\ backimageUp[3]=image.3.3\\ backimageUp[6]=image.3.2\\ backimageUp[9]=image.3.5\\ backimageUp[12]=image.3.4\\ backdiagonal[NE]=image.2.4\\ backdiagonal[NW]=image.1.5\\ backdiagonal[SE]=image.1.4\\ backdiagonal[SW]=image.2.+ \\ copyright= 
- + \\ own_waytype=electrified_track 
- + \\  
-frontimage[-]=image.3.1\\ frontimage[S]=image.0.1\\ frontimage[N]=image.0.3\\ frontimage[W]=image.0.2\\ frontimage[E]=image.0.0\\ frontimage[NS]=image.0.5\\ frontimage[EW]=image.0.4\\ frontimage[NSE]=image.2.3\\ frontimage[NSW]=image.2.1\\ frontimage[NEW]=image.2.0\\ frontimage[SEW]=image.2.2\\ frontimage[NSEW]=image.3.0\\ frontimage[NE]=image.1.1\\ frontimage[SE]=image.1.3\\ frontimage[NW]=image.1.2\\ frontimage[SW]=image.1.0\\ frontimageUp[3]=image.3.3\\ frontimageUp[6]=image.3.2\\ frontimageUp[9]=image.3.5\\ frontimageUp[12]=image.3.4\\ frontdiagonal[NE]=image.2.4\\ frontdiagonal[NW]=image.1.5\\ frontdiagonal[SE]=image.1.4\\ frontdiagonal[SW]=image.2.5</WRAP> + \\ intro_year=1800 
- + \\ intro_month=1 
- + \\ retire_year=2999 
-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. If you make for example a third rail electrification, use only backimage. If you make a catenary as pillars carrying the wire are before trains, use only frontimage. If you have pillars on each side, use frontimage for the wire and the front pillar and backimage for the back pillar. Don't forget to modify coordinates of these pictures. + \\ retire_month=1 
- + \\  
- + \\ icon=> sourceback.0.2 
-<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> + \\ cursor=sourceback.0.
- + \\  
- + \\ backimage[-]=sourceback.4.
-This .dat file pattern is usable only in one picture (replace the name  of the picture as you want). There are several pictures : cursor is the  picture which is used as a cursor when you build the way, icon is the  picture which appears in Simutrans'toolbox, of course an icon doesn't  fill a complete 128%%*%%128 tile, it must be 32%%*%%32 px and at the top left of  the 128%%*%%128 square. If you draw another thing in this square it will be  displayed so be careful. ImageUp[x] are slopes, the number in brackets  doesn't mean anything but is needed. Diagonal[x] are the pictures used  when you make a diagonal way, if these pictures aren't defined,  Simutrans will use turns'pictures (that isn't very aesthetic …). The  reste of the pictures are the other positions : extremities, straight  lines, turns, crossings, … This is a graphical explaination to  understand : + \\ backimage[N]=sourceback.1.0 
- + \\ backimage[S]=sourceback.1.
- + \\ backimage[E]=sourceback.1.2 
-{{  fr:tuto:dat:voie01.png  }}<WRAP tip>If you use the patterns, you won't have to know that.</WRAP> + \\ backimage[W]=sourceback.1.
- + \\ backimage[NS]=sourceback.0.
-===== Paramètres basiques =====+ \\ backimage[EW]=sourceback.0.
 + \\ backimage[NE]=sourceback.2.
 + \\ backimage[SE]=sourceback.2.1 
 + \\ backimage[SW]=sourceback.2.
 + \\ backimage[NW]=sourceback.2.
 + \\ backimage[NEW]=sourceback.3.0 
 + \\ backimage[NSE]=sourceback.3.1 
 + \\ backimage[SEW]=sourceback.3.2 
 + \\ backimage[NSW]=sourceback.3.
 + \\ backimage[NSEW]=track.4.0 
 + \\ backimageUp[3]=sourceback.5.
 + \\ backimageUp[6]=sourceback.5.
 + \\ backimageUp[9]=sourceback.5.2 
 + \\ backimageUp[12]=sourceback.5.
 + \\ backimageUp2[3]=sourceback.6.
 + \\ backimageUp2[6]=sourceback.6.
 + \\ backimageUp2[9]=sourceback.6.
 + \\ backimageUp2[12]=sourceback.6.3 
 + \\  
 + \\ frontimage[-]=sourcefront.4.
 + \\ frontimage[N]=sourcefront.1.0 
 + \\ frontimage[S]=sourcefront.1.
 + \\ frontimage[E]=sourcefront.1.2 
 + \\ frontimage[W]=sourcefront.1.
 + \\ frontimage[NS]=sourcefront.0.
 + \\ frontimage[EW]=sourcefront.0.
 + \\ frontimage[NE]=sourcefront.2.
 + \\ frontimage[SE]=sourcefront.2.1 
 + \\ frontimage[SW]=sourcefront.2.
 + \\ frontimage[NW]=sourcefront.2.
 + \\ frontimage[NEW]=sourcefront.3.0 
 + \\ frontimage[NSE]=sourcefront.3.1 
 + \\ frontimage[SEW]=sourcefront.3.2 
 + \\ frontimage[NSW]=sourcefront.3.
 + \\ frontimage[NSEW]=track.4.0 
 + \\ frontimageUp[3]=sourcefront.5.
 + \\ frontimageUp[6]=sourcefront.5.
 + \\ frontimageUp[9]=sourcefront.5.2 
 + \\ frontimageUp[12]=sourcefront.5.
 + \\ frontimageUp2[3]=sourcefront.6.
 + \\ frontimageUp2[6]=sourcefront.6.1 
 + \\ frontimageUp2[9]=sourcefront.6.
 + \\ frontimageUp2[12]=sourcefront.6.3</WRAP>
 +===== Essential parameters =====
|Parameter  |Description  |Content |Example  | |Parameter  |Description  |Content |Example  |
|obj |object type |way || |obj |object type |way ||
-|waytype |way type |internal_name |maglev_track |+|[[en:tutowaytype|waytype]] |way type |internal_name |maglev_track |
|name |name |text |AMT | |name |name |text |AMT |
|cost |price (%%*%%100c) |number |390000 | |cost |price (%%*%%100c) |number |390000 |
Ligne 55: Ligne 102:
|own_waytype | \\ Is the object an electrification ?     \\  \\ (don't use it if it's not the case) |this text |electrified_track | |own_waytype | \\ Is the object an electrification ?     \\  \\ (don't use it if it's not the case) |this text |electrified_track |
 +<WRAP box>[[en:tutomakeobj3#objects|Come back to  objects]] </WRAP>
-==== waytype ==== 
- 
- 
-[[:en:tutowaytype|Possible  waytypes]] 
- 
- 
-<WRAP box>[[:en:tutomakeobj3#objects|Come back to  objects]] </WRAP> 
- 
- 
-\\