The International Simutrans Forum

 

Author Topic: Dat files for res, com and ind buildings  (Read 2052 times)

0 Members and 1 Guest are viewing this topic.

Offline Václav

  • Devotee
  • *
  • Posts: 3266
  • formerly VaclavMacurek
  • Languages: CZ, EN
Dat files for res, com and ind buildings
« 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.




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

« Last Edit: June 04, 2011, 11:20:12 AM by VaclavMacurek »

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2893
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Dat files for res, com and ind buildings
« Reply #1 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4587
  • Languages: EN, DE, AT
Re: Dat files for res, com and ind buildings
« Reply #2 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|
+---+

Offline Václav

  • Devotee
  • *
  • Posts: 3266
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Dat files for res, com and ind buildings
« Reply #3 on: June 05, 2011, 09:32:18 AM »
Thanks, Dwachs. With this I can complete that house.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Dat files for res, com and ind buildings
« Reply #4 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 :)

Offline Václav

  • Devotee
  • *
  • Posts: 3266
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Dat files for res, com and ind buildings
« Reply #5 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.

Offline Václav

  • Devotee
  • *
  • Posts: 3266
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Dat files for res, com and ind buildings
« Reply #6 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.