Simutrans Forum Archive

The International Simutrans Forum > Resources & Development > Makeobj (Moderator: Timothy) > Topic: Can anyone help me to do debugging on this dat file?
Author
Topic: Can anyone help me to do debugging on this dat file?  (Read 801 times)
359
Member
*
Posts: 54
Can anyone help me to do debugging on this dat file?
Last Edit: July 17, 2006, 01:56:42 AM by 359
Code:
Obj=building
Name=Queenswood Villas I
Type=cur
Build_time=200
Passengers=225
Chance=100
Dims=6,3
BackImage[0][0][0][0][0]=Queenswood Villas I.0.0
BackImage[0][0][0][1][0]=Queenswood Villas I.0.1
BackImage[0][0][0][2][0]=Queenswood Villas I.0.2
BackImage[0][0][1][0][0]=Queenswood Villas I.0.3
BackImage[0][0][2][0][0]=Queenswood Villas I.0.4
BackImage[0][0][2][1][0]=Queenswood Villas I.0.5
BackImage[0][0][3][0][0]=Queenswood Villas I.0.4
BackImage[0][0][3][1][0]=Queenswood Villas I.0.5
BackImage[0][0][4][0][0]=Queenswood Villas I.0.3
BackImage[0][0][5][0][0]=Queenswood Villas I.0.0
BackImage[0][0][5][1][0]=Queenswood Villas I.0.1
BackImage[0][0][5][2][0]=Queenswood Villas I.0.2
BackImage[0][1][0][0][0]=Queenswood Villas I.1.0
BackImage[0][1][1][0][0]=Queenswood Villas I.0.4
BackImage[0][1][1][1][0]=Queenswood Villas I.0.5
BackImage[0][1][2][0][0]=Queenswood Villas I.1.1
BackImage[0][1][3][0][0]=Queenswood Villas I.1.1
BackImage[0][1][4][0][0]=Queenswood Villas I.0.4
BackImage[0][1][4][1][0]=Queenswood Villas I.0.5
BackImage[0][1][5][0][0]=Queenswood Villas I.1.2
BackImage[0][2][0][0][0]=Queenswood Villas I.0.4
BackImage[0][2][0][1][0]=Queenswood Villas I.0.5
BackImage[0][2][1][0][0]=Queenswood Villas I.1.3
BackImage[0][2][2][0][0]=Queenswood Villas I.1.4
BackImage[0][2][3][0][0]=Queenswood Villas I.1.4
BackImage[0][2][4][0][0]=Queenswood Villas I.1.5
BackImage[0][2][5][0][0]=Queenswood Villas I.0.4
BackImage[0][2][5][1][0]=Queenswood Villas I.0.5

I want it to build in 6 tiles to West-East and 3 tiles to North-South
Some building is normal but some build in 3 tiles to West-East and 6 tiles to North-South
Why?

Normal one:http://ktmc2a.hkidb.net/simu/QV1s.jpg
Bad one:http://ktmc2a.hkidb.net/simu/QV1b.jpg
mobo
Member
*
*
*
*
Gender: Male
Posts: 507
Re: Can anyone help me to do debugging on this dat file?
Last Edit: July 17, 2006, 02:42:26 AM by moistboy
Well, you have only one rotation of your pak.

So either you need to write the backimage lines for the second rotation (maybe also some new pics required)

Then you need to write Dims=6,3,2 (for 2 rotations)
..and then...
Backimage[1]
  • ......(for rotation 1 - 6x3)
Backimage[2]
  • ......(for rotation 2 - 3x6)

Or you try using dims=6,3,1 (only one rotation), but I'm not sure whether that works properly, IIRC Prissi once said asymmetric buildings should have 2 rotations. But you can try it anyway.

Hope this helps, also take a look at the wiki, i think there is a description for this topic.
Good luck! smile

Edit: Post looks odd  ugh_tongue in my browser (firefox) but i dont know what to do about that, MODERATOR 2_mad?!?!
Life will find a way.
martin
Member
*
*
*
*
*
Gender: Male
Posts: 345
Re: Can anyone help me to do debugging on this dat file?
I always thought the last number in Dims was for the number of used tiles in up/down direction.
from http://wiki.simutrans.com/tiki-index.php?page=BuildingDef+
Quote
  Dims=1,1,4
The dimensions of the building, given as number of tiles in the East-West dimension, number of tiles in the North-South dimension, number of tiles in the up-down dimension. City buildings may be only one tile at the base, but up to 4 tiles high. Special buildings and player-constructed buildings may be up to 16 tiles by 16 tiles at the base, and up to 4 tiles high.

Thus Dims=6,3,3 would be correct, as the there are 3 tile high buildings (e.g. at 0,0) . . .  However I doubt if this will solve the issue.
Timothy
Board Mod
Member
*
*
*
*
*
Gender: Male
Posts: 2163
pak64 - every pixel counts
Re: Can anyone help me to do debugging on this dat file?
TileCutter, when it's finished, will take care of this sort of thing automatically... Wink

But I agree with moistboy's analysis, you need to define 2 views for the building if it is irregular, even if they are identical.

I always thought the last number in Dims was for the number of used tiles in up/down direction.
from http://wiki.simutrans.com/tiki-index.php?page=BuildingDef+
Thus Dims=6,3,3 would be correct, as the there are 3 tile high buildings (e.g. at 0,0) . . .  However I doubt if this will solve the issue.

That information is incorrect, I should update the wiki... The third number in dims refers to the number of rotations.

<< Click here for a list of my Simutrans creations >>
mobo
Member
*
*
*
*
Gender: Male
Posts: 507
Re: Can anyone help me to do debugging on this dat file?
Last Edit: July 17, 2006, 03:48:59 AM by moistboy
Yep, i updated it in wiki.

Edit: here is a nice example: http://wiki.simutrans.com/tiki-index.php?page=LargeShipStop
Life will find a way.
prissi
Member
*
*
*
*
*
*
*
*
Gender: Male
Posts: 5135
Re: Can anyone help me to do debugging on this dat file?
Well, you need to specifiy only one rotation.
dims=6,3,1
This should work with recent versions of simutrans.
359
Member
*
Posts: 54
Re: Can anyone help me to do debugging on this dat file?
Last Edit: July 17, 2006, 06:10:48 AM by 359
Well, you need to specifiy only one rotation.
dims=6,3,1
This should work with recent versions of simutrans.
Is it work on 86.10.5 and Makeobj version v.0.1.24?
raven
Guest
Re: Can anyone help me to do debugging on this dat file?
Great idea, I love you.

A idea just struck my head, what if we turned industrial areas into low level residential (suburbs), and make industrial areas appear as tourist attractions?
martin
Member
*
*
*
*
*
Gender: Male
Posts: 345
Re: Can anyone help me to do debugging on this dat file?
Yep, i updated it in wiki.

Edit: here is a nice example: http://wiki.simutrans.com/tiki-index.php?page=LargeShipStop
OK, thanks.  Thumb up
BTW I don't read all the examples in the wiki, actually only when the definitions, like the quoted one, are not clear (enough) to me. So please try and keep the definitions up to date. Simple souls, like me, depend on it when writing our dat files.  confused
The International Simutrans Forum > Resources & Development > Makeobj (Moderator: Timothy) > Topic: Can anyone help me to do debugging on this dat file?