The International Simutrans Forum

 

Author Topic: Wrong dat for Fabio's block house res_31_60  (Read 2734 times)

0 Members and 1 Guest are viewing this topic.

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Wrong dat for Fabio's block house res_31_60
« on: May 14, 2014, 05:55:44 PM »
Today I made test on finished seaport control tower (it sounds very strange but I think that also seaport needs something like a control tower) for pak96.comic.

Building is high 2 tiles, and I found that my dat is wrong because building was missing - because coords were written wrong (I used dat of seaport pier for pak96.comic I created recently, as a pattern).

So I tried to find correct dat and I remember that for pak128 were prepared many city buildings higher than 1 tile. So I looked into SVN and found Fabio's block houses.

I opened res_31_60 - and found that image is high 384 pixels, that means house is high 3 tiles. But in dat file I found (I chose only one direction - but it is the same for all)

Code: [Select]
backimage[0][0][0][1][0][0]=res_31_60.1.0
backimage[0][0][0][0][0][0]=res_31_60.2.0

that is very strange. There should be probably

Code: [Select]
backimage[0][0][0][2][0][0]=res_31_60.0.0
backimage[0][0][0][1][0][0]=res_31_60.1.0
backimage[0][0][0][0][0][0]=res_31_60.2.0

because else house would be displayed very strange, not complete.


I did not looked into files of other buildings.

Offline gauthier

  • Moderator
  • *
  • Posts: 3628
    • SNFOS'website (in both FR and EN)
  • Languages: FR, EN, JP
Re: Wrong dat for Fabio's block house res_31_60
« Reply #1 on: May 14, 2014, 06:25:22 PM »
Oh yes I remember having reported a glitch about residential buildings without top image, but looking for which one had the glitch ... You found one of them, congratulations ;)

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Wrong dat for Fabio's block house res_31_60
« Reply #2 on: May 15, 2014, 07:54:04 AM »
... fully accidentally ...

But as I found today, that text on the top of buildings made me wrong. 384 pixels of height includes that text. So, 31_60 is correct.