Traductions possibles :

Différences

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

en:tutomakeobj3 [2014/11/29 21:40]
gauthier
en:tutomakeobj3 [2015/02/18 04:40] (version actuelle)
Ligne 1: Ligne 1:
-<WRAP important>These tutorials are now two years old and some additions to the game are not taken into account yet. Nothing essential is lacking, though you can find what is missing on German wiki until next update. In case of complaint, you can send all sort of insults to the adress given in "Contact" page ;)</WRAP> 
- 
====== III.Source files ====== ====== III.Source files ======
-<WRAP warning>This tutorial is made for latest versions of Simutrans, it may not be good for previous versions. Last updates : +<WRAP info>Latest update of this tutorial: Simutrans 120.0.1</WRAP>
- +
-    * Simutrans : 102.+
-    * Makeobj : 50 +
- +
-</WRAP>+
===== 1.How does it work ? ===== ===== 1.How does it work ? =====
Ligne 72: Ligne 65:
<WRAP important>The icons and the [-] view of ways don't support offset.</WRAP> <WRAP important>The icons and the [-] view of ways don't support offset.</WRAP>
-===== 3.Using your notepad =====+===== 3.Angle of slopes ===== 
 + 
 +Since Simutrans 120, slopes can be of two different heights. Some paksets use full and half slopes, some other paksets use full and double slopes. 
 + 
 +Pak128 use half slopes. In this pakset, most ways cannot be built on hard slopes, such as tracks and highways. 
 + 
 +<WRAP info>In pak128, soft slopes are 16 pixels high and hard slopes are 32 pixels high.</WRAP> 
 + 
 +===== 4.Icons (buttons) ===== 
 + 
 +Objects which need icons have something like that on their graphical pattern: 
 + 
 +{{  fr:tuto:dat:icon.png  }} 
 + 
 +Images of icons must contain only the 16 by 16 pixels square at top left of this image, everything else must be removed, otherwise there would be display errors in game. 
 + 
 +The elements around the icon itself are specific to pak128, they are used in its icons. 
 + 
 +===== 5.Cursors ===== 
 + 
 +On graphical patterns of objects needing a cursor, the tile used to place the cursor is higher than the bottom of the square which it is placed in. This is intended to compensate an offset downward applied by the game. 
 + 
 +===== 6.Examples of source files ===== 
 + 
 +You will find example of source files for all kinds of objects in each pakset's repository. 
 + 
 +[[http://svn.code.sf.net/p/simutrans/code/pak128/|Sources of pak128]] 
 + 
 +===== 7.Using your notepad =====
==== 1.Windows ==== ==== 1.Windows ====
Ligne 96: Ligne 117:
<WRAP tip>Be careful, if you work on linux and windows, the wrap symbols aren't the same on the two OS. A file created on the one can be strangely displayed on the other one. You'd rather work on only one OS if you don't know the conversion commands.</WRAP> <WRAP tip>Be careful, if you work on linux and windows, the wrap symbols aren't the same on the two OS. A file created on the one can be strangely displayed on the other one. You'd rather work on only one OS if you don't know the conversion commands.</WRAP>
-===== 4.Objects =====+===== 8.Objects =====
[[en:tutovehicle|vehicles]] [[en:tutovehicle|vehicles]]
Ligne 132: Ligne 153:
[[en:tutosmoke2|smokes]] [[en:tutosmoke2|smokes]]
-===== 5.Annex pages =====+===== 9.Related pages =====
graphics of buildings : [[en:tutobuilding2|Buildings'graphics]] graphics of buildings : [[en:tutobuilding2|Buildings'graphics]]