The International Simutrans Forum

 

Author Topic: Cluster object  (Read 1601 times)

0 Members and 1 Guest are viewing this topic.

Offline Fabio

  • Devotee
  • Administrator
  • *
  • Posts: 2898
  • The Pak128 Guy
    • Visit me on Facebook
  • Languages: EN, IT, RO, FR
Cluster object
« on: July 27, 2010, 08:00:12 AM »
As a solution for the Multitile Depot issue, and for complex station layouts, we could have a new object defining a customizable size grid (e.g. 3*4). Every tile in the grid points to an object in the existing pak and one is arbitrarily considered the "target tile" where to start building on click.
if all objects in the grid (except for "-") can be built (in 4 rotations), they are all built simultaneously.
e.g.
Code: [Select]
Name=DepotCluster
Dims=3,4
Target=1,0
Cluster[0,0]=Depot_Extn
Cluster[0,1]=Depot_Extn
Cluster[0,2]=Depot_Extn
Cluster[0,3]=Depot_Extn_Front
Cluster[1,0]=Depot_2
Cluster[1,1]=Depot_Station
Cluster[1,2]=Depot_Station
Cluster[1,3]=Depot_Station_Front
Cluster[2,0]=Depot_Extn
Cluster[2,1]=Depot_Extn
Cluster[2,2]=Depot_Extn
Cluster[2,3]=Depot_Extn_Front
(the inside objects could also be hidden not setting an icon)

Or

Code: [Select]
Name=ComplexTwoWayStation
Dims=3,6
Target=1,0
Cluster[0,0]=Station_2
Cluster[0,1]=Station_2
Cluster[0,2]=Station_2_Overpass
Cluster[0,3]=Station_2_Kiosk
Cluster[0,4]=Station_2
Cluster[0,5]=Station_2_Sign
Cluster[1,0]=Station_2_Sign
Cluster[1,1]=Station_2
Cluster[1,2]=Station_2_Overpass
Cluster[1,3]=Station_2
Cluster[1,4]=Station_2_Kiosk
Cluster[1,5]=Station_2
Cluster[2,0]=-
Cluster[2,1]=-
Cluster[2,2]=Station_Bldg_left
Cluster[2,3]=Station_Bldg_right
Cluster[0,4]=-
Cluster[0,5]=-

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3649
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Cluster object
« Reply #1 on: July 27, 2010, 01:48:18 PM »
I like this idea.

If one accidentally deletes one (or more) of the tiles - perhaps placement will 1) override any existing depot tiles and/or 2) if that's not good, then at least allow it to be built if the tiles are either empty or consist of the proper tiles (i.e. to 'repair' if you deleted a tile)

I suppose if you try and build it on top of two stations, it should fail to build...

And also, I suppose it should work sort of like factory building placement - showing highlight of affected tiles?

This would even be handy for road-train stops, even with just two tiles :)

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
Re: Cluster object
« Reply #2 on: July 27, 2010, 04:27:41 PM »
I can almost smell these unique and clarifying error messages:
Quote
wrong ground! something there! etc!

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3649
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: Cluster object
« Reply #3 on: July 27, 2010, 04:44:46 PM »
nono! It'd have to be:

Quote
Der Boden ist nicht frei!

hehehe