Skip to main content
Topic: GNR 6 wheeled carriage constraints bug (Read 5178 times) previous topic - next topic

GNR 6 wheeled carriage constraints bug

there is something wrong with the constraints on the GNR 6 wheeled carriage.

you cannot connect any mail carriage after a p****enger 6 wheel carriage. The only things allowed after 6 wheel carriage is another 6 wheel, 4 wheel p****enger or brake carriages.


For MR and LNWR versions you can join them up in any combination.

Re: GNR 6 wheeled carriage constraints bug

Reply #1
Ahh, thank you for the report. The problem is here:

Code: [Select]
Constraint[Next][0]=GNR-6Wheel-First
Constraint[Next][1]=GNR-6Wheel-Guard
Constraint[Next][2]=GNR-4Wheel-Composite
Constraint[Next][3]=GNR-4Wheel-Brake
Constraint[Next][1]=GNR-6Wheel-Mail
Constraint[Next][2]=GNR-4Wheel-Mail

The constraint numbers are reset after 3 to 1 and 2 again. Changing the last two to 4 and 5 should fix the problem. Here is the correct .dat file in full:

Code: [Select]
obj=vehicle
name=GNR-6Wheel-First
speed=135
copyright=Kieron
intro_year=1888
intro_month=3
retire_year=1923
retire_month=10
waytype=track
freight=P****agiere
payload=32
length=7
weight=14
cost=314000
runningcost=16
sound=-1

can_lead_from_rear=0
bidirectional=1
loading_time=4000
comfort=70

Constraint[Next][0]=GNR-6Wheel-First
Constraint[Next][1]=GNR-6Wheel-Guard
Constraint[Next][2]=GNR-4Wheel-Composite
Constraint[Next][3]=GNR-4Wheel-Brake
Constraint[Next][4]=GNR-6Wheel-Mail
Constraint[Next][5]=GNR-4Wheel-Mail

EmptyImage[E]=./images/gnr-6wheel-first.0
EmptyImage[SE]=./images/gnr-6wheel-first.1
EmptyImage[S]=./images/gnr-6wheel-first.2
EmptyImage[SW]=./images/gnr-6wheel-first.3
EmptyImage[W]=./images/gnr-6wheel-first.4
EmptyImage[NW]=./images/gnr-6wheel-first.5
EmptyImage[N]=./images/gnr-6wheel-first.6
EmptyImage[NE]=./images/gnr-6wheel-first.7
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.