Elvas Tower: Include Question - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Include Question Rate Topic: -----

#1 User is offline   wellsburg 

  • Conductor
  • Group: Status: First Class
  • Posts: 329
  • Joined: 29-January 04
  • Gender:Male
  • Location:Lakewood, Ohio
  • Country:

Posted 08 November 2018 - 01:53 PM

Hi,

The "Include" feature to substitute a turntable track section in a route tsection.dat is not working for me.

The turntable in the sim is always the original one in the tsection.dat , not the alternate.

The alternate .s & .sd files exist in the route Global Shapes folder and route Shapes folder.
Only difference of alternate and original is texture.


The Include code is in test.dat inside OpenRails folder in the route folder.

OR Log File has no mention of the Include.

Here is test.dat that follows the OR Manual example on page 208.

Include ( "../../../Global/tsection.dat" )
_INFO ( B&SR turntable derived from N1t16mturntable.s )
TrackSections ( 40000
_SKIP ( No change here )
)
TrackShapes ( 40000
_INFO(Narrow Gauge)
_INFO(turntable)
_INFO(Track Shapes From Okrasa Ghia's XTracks Collection)
TrackShape ( 39941
FileName ( BSRturntable-2.s )
NumPaths ( 9 )
SectionIdx ( 1 .0000 -0.18 0.0000 0 39944 )
SectionIdx ( 1 -1.7101 -0.18 0.3015 20 39944 )
SectionIdx ( 1 -3.2139 -0.18 1.1698 40 39944 )
SectionIdx ( 1 -4.3301 -0.18 2.5000 60 39944 )
SectionIdx ( 1 -4.9240 -0.18 4.1318 80 39944 )
SectionIdx ( 1 -4.9240 -0.18 5.8682 100 39944 )
SectionIdx ( 1 -4.3301 -0.18 7.5000 120 39944 )
SectionIdx ( 1 -3.2139 -0.18 8.8302 140 39944 )
SectionIdx ( 1 -1.7101 -0.18 9.6985 160 39944 )
)
)

Any suggestions where I went wrong ?


Thanks,


Mike

#2 User is offline   vince 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,313
  • Joined: 18-June 14
  • Gender:Male
  • Location:West of the Contental Divide
  • Simulator:ORTS_Running MSTS_Editing
  • Country:

Posted 08 November 2018 - 03:26 PM

Hi Mike,
Here's some clips of my TT files for the PRR-East:

The main folder in the ROUTES folder is named PRR_EASTERN_REGION-2
( Please note the routes folder name is not the same as the routes PRR_EAST_REG-2.trk file. )
In this folder is a folder named OpenRails

In this OpenRails folder are TWO FILES:

1. PRR_EAST_REG-2.trk file containing the following data:

Quote

include ( "../PRR_EAST_REG-2.trk" )
ORTSDefaultTurntableSMS ( "turntable.sms" )


2. Turntables.dat file containing the following data:

Quote

2
Turntable(
WFile ( "w-011150+014348.w" )
UiD ( 62939 )
XOffset ( 0.0 )
YOffset ( 0.3 )
ZOffset ( 21 )
TrackShapeIndex ( 24864 )
Animation ( "TRACKPIECE" )
Diameter ( 42 )
)
Turntable(
WFile ( "w-011149+014348.w" )
UiD ( 62753 )
XOffset ( 0.0 )
YOffset ( 0.3 )
ZOffset ( 21 )
TrackShapeIndex ( 24864 )
Animation ( "TRACKPIECE" )
Diameter ( 42 )
)

Note that the first line of BOTH OF THESE FILES MUST BE BLANK.

The values in the .DAT file are for the 42m TT . . .Other TT's will have different values.

That's all of it. There are two turntables defined here in these files and they both work perfectly.
There are NO modifications to the routes TRK file.


There is no reference to the GLOBAL\Shapes file other than the TrackShapeIndex ( 24864 )
Hope this provides some answers.

regards,
vince

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users