The International Simutrans Forum

Development => Extension Requests => Topic started by: Fabio on July 27, 2010, 08:00:12 AM

Title: Cluster object
Post by: Fabio 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.

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


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]=-

Title: Re: Cluster object
Post by: Isaac Eiland-Hall 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 :)
Title: Re: Cluster object
Post by: Dwachs on July 27, 2010, 04:27:41 PM
I can almost smell these unique and clarifying error messages:
Quote
wrong ground! something there! etc!
Title: Re: Cluster object
Post by: Isaac Eiland-Hall on July 27, 2010, 04:44:46 PM
nono! It'd have to be:

QuoteDer Boden ist nicht frei!

hehehe