The International Simutrans Forum

Language boards => [PT]Português (Portuguese) => [PT]Tutoriais e Ajuda => Topic started by: Riskkos on July 05, 2017, 10:20:36 AM

Title: Ajuda com a elaboração do DAT
Post by: Riskkos on July 05, 2017, 10:20:36 AM
Bom dia

Pretendo fazer uma construção em quadrado

------
|     |
|     |
------

 Já fiz as 8 imagens necessárias, mas quando mudo de vista (N/S/E/W) a visualização altera-se, sobretudo com as imagens de canto que mudam do sitio.
Já tentei várias definições no DAT mas não consigo acertar com as imagens.
Alguém pode dar uma ajuda?
Obrigado.
Bem Hajam.

Title: Re: Ajuda com a elaboração do DAT
Post by: IgorEliezer on July 05, 2017, 10:26:00 PM
Olá,

Para facilitar: tem como você postar o dat e o png? E screenshots de como fica nas quatro direções?

Você pode fazer o upload das imagens nestes links aqui descritos: http://forum.simutrans.com/index.php?topic=3018.0 (http://forum.simutrans.com/index.php?topic=3018.0)
Title: Re: Ajuda com a elaboração do DAT
Post by: Frank on July 06, 2017, 06:22:54 AM
Eu acho que isso ajuda

Now in trunk, but not yet on nightly site.

Code I used for test is below.
In pak128.Britain, east and west of all building is wrong. So, you need to change all. As prissi wrote, it is SENW.

Code: [Select]
Obj=building
Name=KG_COM_1880_0
copyright=Kieron
type=com
chance=20
Level=10
intro_year=1880
retire_year=1910
needs_ground=1
dims=1,1,8

BackImage[0][0][0][0][0]=images/com/1880-terrace-row-shop.2
BackImage[1][0][0][0][0]=images/com/1880-terrace-row-shop.1
BackImage[2][0][0][0][0]=images/com/1880-terrace-row-shop.0
BackImage[3][0][0][0][0]=images/com/1880-terrace-row-shop.3
BackImage[4][0][0][0][0]=images/com/1880-terrace-corner-shop.1
BackImage[5][0][0][0][0]=images/com/1880-terrace-corner-shop.0
BackImage[6][0][0][0][0]=images/com/1880-terrace-corner-shop.3
BackImage[7][0][0][0][0]=images/com/1880-terrace-corner-shop.2
----
Obj=building
Name=KG_COM_1880_1
copyright=Kieron
type=com
chance=20
Level=8
intro_year=1880
retire_year=1910
needs_ground=1
dims=1,1,8

BackImage[0][0][0][0][0]=images/com/1880-terrace-row-shop.2
BackImage[1][0][0][0][0]=images/com/1880-terrace-row-shop.1
BackImage[2][0][0][0][0]=images/com/1880-terrace-row-shop.0
BackImage[3][0][0][0][0]=images/com/1880-terrace-row-shop.3
BackImage[4][0][0][0][0]=images/com/1880-terrace-corner-shop.1
BackImage[5][0][0][0][0]=images/com/1880-terrace-corner-shop.0
BackImage[6][0][0][0][0]=images/com/1880-terrace-corner-shop.3
BackImage[7][0][0][0][0]=images/com/1880-terrace-corner-shop.2
----
Obj=building
Name=KG_COM_1880_2
copyright=Kieron
type=com
chance=20
Level=6
intro_year=1880
retire_year=1910
needs_ground=1
dims=1,1,4

BackImage[0][0][0][0][0]=images/com/1880-terrace-row-shop-2f.2
BackImage[1][0][0][0][0]=images/com/1880-terrace-row-shop-2f.1
BackImage[2][0][0][0][0]=images/com/1880-terrace-row-shop-2f.0
BackImage[3][0][0][0][0]=images/com/1880-terrace-row-shop-2f.3

Code: [Select]
dims=1,1,1
+---+
|000|
|0 0|
|000|
+---+
dims=1,1,2
+---+
|001|
|1 1|
|100|
+---+
dims=1,1,4
+---+
|221|
|3 1|
|300|
+---+
dims=1,1,8
+---+
|625|
|3 1|
|704|
+---+

Title: Re: Ajuda com a elaboração do DAT
Post by: An_dz on July 06, 2017, 04:31:00 PM
A resposta do Frank é perfeita, dims deve ser 8 e o esquemático mostra quais números correspondem a cada espaço.