The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Václav on June 02, 2011, 10:17:47 AM

Title: Dat files for res, com and ind buildings
Post by: Václav on June 02, 2011, 10:17:47 AM
May it be that some of you have already known about my latest project for pak128 - residential building - house-block based on idea of Alex Brose and his deed for Pak96.comic.

(http://www.simutrans-forum.de/forum/attachment.php?attachmentid=12132)
(http://www.simutrans-forum.de/forum/attachment.php?attachmentid=12147)

I need to know how to assemble my art to they could be built as is needed for house-block completion

Here you can see work previews
(http://graphics.simutrans.com/albums/userpics/10043/Res_1950_1.png)
(http://graphics.simutrans.com/albums/userpics/10043/Res_1950_2.png)
Title: Re: Dat files for res, com and ind buildings
Post by: An_dz on June 05, 2011, 06:51:14 AM
I did a fast search, but haven't found anything, but I'm almost sure I've read something about how to do it on SNFOS or pak96.comic sub-forum on German Forums, I think someone created something similar and there was a link to download the source there.
Title: Re: Dat files for res, com and ind buildings
Post by: Dwachs on June 05, 2011, 09:02:58 AM
You have to define dimensions 1,1,X with X = 1,2,4,8. The orientation you can see in the quote below. Here the characters '-', '+', '|' refer to streets, the numbers are the rotations of the building.

That is to be able to build a rectangular block of 8 different buildings, you have to define dimension = 1,1,8.

Please add these information to the wik after you got it working!

Code: [Select]
/*******************************************************
* this are the layout possible for city buildings
********************************************************
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: Dat files for res, com and ind buildings
Post by: Václav on June 05, 2011, 09:32:18 AM
Thanks, Dwachs. With this I can complete that house.
Title: Re: Dat files for res, com and ind buildings
Post by: VS on June 05, 2011, 09:49:00 AM
I tested this a bit... the code is not 100% reliable, I think facing T-junctions gives some problems :P Nevertheless, the behaviour Dwachs describes is generally correct.

Attached is a testing house for 128-sized paksets, which literally shows you the rotation chosen :)
Title: Re: Dat files for res, com and ind buildings
Post by: Václav on June 05, 2011, 04:20:25 PM
Here you can download test of that building. As it is clear from pictures linked above, it is for pak128.
Build_time = 5000
intro_year = 1950
retire_year = 1975

I am sorry for unwanted white pixels on edges. They will be removed in next version.
Title: Re: Dat files for res, com and ind buildings
Post by: Václav on July 11, 2011, 06:19:46 PM
Please add these information to the wik after you got it working!

Code: [Select]
dims=1,1,8
+---+
|625|
|3 1|
|704|
+---+
It works fine.