Author Topic: Ajuda com a elaboração do DAT  (Read 656 times)

0 Members and 1 Guest are viewing this topic.

Offline Riskkos

Ajuda com a elaboração do DAT
« 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.


Offline IgorEliezer

  • Devotee
  • Administrator
  • *
  • Posts: 3952
  • Total likes: 145
  • Helpful: 71
  • Lost In Stupid Parenthesis
    • Igor Eliezer Architect and Urban Planner/Arquiteto e Urbanista
  • Languages: PT, EN, AutoLISP, Python
Re: Ajuda com a elaboração do DAT
« Reply #1 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

Offline Frank

Re: Ajuda com a elaboração do DAT
« Reply #2 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|
+---+


Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2594
  • Total likes: 290
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Re: Ajuda com a elaboração do DAT
« Reply #3 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.