The International Simutrans Forum

 

Author Topic: GNR 6 wheeled carriage constraints bug  (Read 2008 times)

0 Members and 1 Guest are viewing this topic.

Offline ӔO

  • Devotees (Inactive)
  • *
  • Posts: 2345
  • Hopefully helpful
  • Languages: en, jp
GNR 6 wheeled carriage constraints bug
« on: June 27, 2010, 06:34:44 AM »
there is something wrong with the constraints on the GNR 6 wheeled carriage.

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


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

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18502
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: GNR 6 wheeled carriage constraints bug
« Reply #1 on: June 27, 2010, 11:05:02 AM »
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=Passagiere
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