News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

GNR 6 wheeled carriage constraints bug

Started by ӔO, June 27, 2010, 06:34:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ӔO

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.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

jamespetts

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


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:


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
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.