Most UK trams have a length of slightly (1-3m) more than the graphics scale of 30m.
Due to the tile nature of simutrans these will require two full tiles.
I have shortened the last car of any tram up to 33m to fit into a single tile.
Otherwise there are only exactly two trams in the whole pakset that fit into a single tile. Now any, except for CAF edingburgh(42.8m), siemens-duewag supertram(34.8m) and sheffield Vossloh Tram-Train(37.2m) should fit into a single tile.
However, for some reason they still display as 2 tiles in the depot although their summed-up length is exactly 16=1tile and observating track reservations, they can fit into a single tile. When assigning a single tile station, they will however complain.
The changes can be found there: https://github.com/irgend42/simutrans-pak128.britain/commits/tramLength
I have noticed and pointed out that it is currently useless.
That far from intuitive length calculation needs to be fixed and once it's fixed it will work.
Quote from: Freahk on February 11, 2020, 12:11:47 PM
I have noticed and pointed out that it is currently useless.
That far from intuitive length calculation needs to be fixed and once it's fixed it will work.
The length calculation system is unchanged from Standard so far as I am aware.
Bombardier flexity swift can be fixed by setting length=8 (or just commenting the length)
It will look a bit funny, but will fit on one tile.
Maybe also modifying graphic offsets of the first or second car might look better.
Didn't play around with it yet.
How about this? - offset applied only to rear car in red livery
diff --git a/trams/bombardier-flexity-swift.dat b/trams/bombardier-flexity-swift.dat
index 6611a4084..35d39f0a8 100644
--- a/trams/bombardier-flexity-swift.dat
+++ b/trams/bombardier-flexity-swift.dat
@@ -13,7 +13,7 @@ intro_month=3
waytype=tram_track
freight=Passagiere
payload=35
-length=9
+#length=9
# http://en.wikipedia.org/wiki/CR4000
overcrowded_capacity=69
weight=18.2
@@ -83,7 +83,7 @@ intro_month=3
waytype=tram_track
freight=Passagiere
payload=35
-length=7
+#length=9
# http://en.wikipedia.org/wiki/CR4000
overcrowded_capacity=69
weight=18.2
@@ -109,14 +109,14 @@ liverytype[0]=Tramlink-red
liverytype[1]=Tramlink-green
liverytype[2]=Metrolink-yellow
-EmptyImage[E][0]=./images/flexity-swift-croydon-red-rear.1.4
-EmptyImage[SE][0]=./images/flexity-swift-croydon-red-rear.1.5
-EmptyImage[S][0]=./images/flexity-swift-croydon-red-rear.1.6
-EmptyImage[SW][0]=./images/flexity-swift-croydon-red-rear.1.7
-EmptyImage[W][0]=./images/flexity-swift-croydon-red-rear.1.0
-EmptyImage[NW][0]=./images/flexity-swift-croydon-red-rear.1.1
-EmptyImage[N][0]=./images/flexity-swift-croydon-red-rear.1.2
-EmptyImage[NE][0]=./images/flexity-swift-croydon-red-rear.1.3
+EmptyImage[E][0]=./images/flexity-swift-croydon-red-rear.1.4,-4,-2
+EmptyImage[SE][0]=./images/flexity-swift-croydon-red-rear.1.5,0,-2
+EmptyImage[S][0]=./images/flexity-swift-croydon-red-rear.1.6,4,-2
+EmptyImage[SW][0]=./images/flexity-swift-croydon-red-rear.1.7,4,0
+EmptyImage[W][0]=./images/flexity-swift-croydon-red-rear.1.0,4,2
+EmptyImage[NW][0]=./images/flexity-swift-croydon-red-rear.1.1,0,2
+EmptyImage[N][0]=./images/flexity-swift-croydon-red-rear.1.2,-4,2
+EmptyImage[NE][0]=./images/flexity-swift-croydon-red-rear.1.3,-4,0
EmptyImage[E][1]=./images/flexity-swift-croydon-green-rear.1.4
EmptyImage[SE][1]=./images/flexity-swift-croydon-green-rear.1.5
Yes, something like that.
Imho it's fine that way.
https://github.com/vladki77/simutrans-pak128.britain/commit/c58043346175bec9404ee5a8131f6f8beb6e06d0
Now incorporated - thank you.