The International Simutrans Forum

 

Author Topic: Constraint errors in boat-horse.dat from SF-SVN  (Read 1896 times)

0 Members and 1 Guest are viewing this topic.

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Constraint errors in boat-horse.dat from SF-SVN
« on: April 23, 2016, 12:56:50 PM »
The Constraints of BoatHorsesDouble and BoatHorsesSingle seem to be a little confused.

example

boat-horse.dat
Quote
obj=vehicle
name=BoatHorsesSingle
....
Constraint[Prev][0]=none
Constraint[Next][0]=BoxBoatBulk
Constraint[Next][1]=BoxBoatLong
Constraint[Next][2]=BoxBoatPiece
Constraint[Next][3]=BoxBoatCool
Constraint[Next][4]=SteelHullDumbBargeBulk
Constraint[Next][5]=SteelHullDumbBargeLong
Constraint[Next][6]=SteelHullDumbBargePiece
Constraint[Next][7]=SteelHullDumbBargeCool
Constraint[Next][8]=SteelHullDumbBargeOil
Constraint[Next][9]=SteelHullDumbBargeLivestock
Constraint[Next][10]=WoodenHullDumbBargeBulk
Constraint[Next][11]=WoodenHullDumbBargeLong
Constraint[Next][12]=WoodenHullDumbBargePiece
Constraint[Next][13]=WoodenHullDumbBargeCool
Constraint[Next][14]=WoodenHullDumbBargeOil
Constraint[Next][15]=WoodenHullDumbBargeLivestock
Constraint[Next][16]=SteelHullUnpoweredNarrowboatBulk
Constraint[Next][17]=SteelHullUnpoweredNarrowboatLong
Constraint[Next][18]=SteelHullUnpoweredNarrowboatPiece
Constraint[Next][19]=SteelHullUnpoweredNarrowboatCool
Constraint[Next][20]=SteelHullUnpoweredNarrowboatMail
Constraint[Next][21]=SteelHullUnpoweredNarrowboatLivestock
Constraint[Next][22]=SteelHullUnpoweredNarrowboatOil
Constraint[Next][23]=CompositeHullUnpoweredNarrowboatBulk
Constraint[Next][24]=CompositeHullUnpoweredNarrowboatLong
Constraint[Next][25]=CompositeHullUnpoweredNarrowboatPiece
Constraint[Next][26]=CompositeHullUnpoweredNarrowboatCool
Constraint[Next][27]=CompositeHullUnpoweredNarrowboatMail
Constraint[Next][28]=CompositeHullUnpoweredNarrowboatLivestock
Constraint[Next][29]=CompositeHullUnpoweredNarrowboatOil
Constraint[Next][30]=WoodenHullUnpoweredNarrowboatBulk
Constraint[Next][31]=WoodenHullUnpoweredNarrowboatLong
Constraint[Next][32]=WoodenHullUnpoweredNarrowboatPiece
Constraint[Next][33]=WoodenHullUnpoweredNarrowboatCool
Constraint[Next][34]=WoodenHullUnpoweredNarrowboatMail
Constraint[Next][35]=WoodenHullUnpoweredNarrowboatLivestock
Constraint[Next][36]=WoodenHullUnpoweredNarrowboatOil
Constraint[Next][37]=TubBoatBulk
Constraint[Next][38]=TubBoatLong
Constraint[Next][39]=TubBoatPiece
Constraint[Next][40]=TubBoatCool
Constraint[Next][41]=MarketBarge
Constraint[Next][42]=MarketNarrowboat
Constraint[Next][43]=PacketBarge
Constraint[Next][44]=none

...
----
...

name=BoatHorsesDouble
...
Constraint[Prev][0]=none
Constraint[Next][0]=FlyboatPiece
Constraint[Next][1]=FlyboatCool
Constraint[Next][2]=FlyboatMail
Constraint[Next][3]=FlyboatPax
Constraint[Next][4]=SteelHullDumbBargeBulk
Constraint[Next][5]=none

undefined HorseBargeBulk, but HorseBargeBulk defines the horses

horse-barge.dat
Quote
obj=vehicle
name=HorseBargeBulk
...
Constraint[Prev][0]=BoatHorsesSingle
Constraint[Prev][1]=BoatHorsesDouble

Constraint[Prev][2]=SteamBargeBulk
Constraint[Prev][3]=SteamBargeLong
Constraint[Prev][4]=SteamBargePiece
Constraint[Prev][5]=SteamBargeCool
Constraint[Prev][6]=SteamBargeOil
Constraint[Prev][7]=DieselBargeBulk
Constraint[Prev][8]=DieselBargeLong
Constraint[Prev][9]=DieselBargePiece
Constraint[Prev][10]=DieselBargeCool
Constraint[Prev][11]=DieselBargeOil
Constraint[Prev][12]=SteamBargeLivestock
Constraint[Prev][13]=DieselBargeLivestock
Constraint[Next][0]=none


This also applies to other combinations.
All vehicles of horse-barge.dat are not defined with the horses.