Page 1 of 1

Dynamic Track Problem

Posted: Tue Nov 11, 2008 4:37 pm
by LeeEAS
Hi,

Some time ago I thought I would have a go at ripping up the the Settle & Carlisle route's default track and relay it using the UKFS track, however I got to a point around Scotby where the RE just crash on me everytime I tried to go any further towards Carlisle, so I gave up.

Gaining some motivation more recently I set about do the same thing with a different route, but this time I didn't add the UKFS track as soon as I removed the default, I instead tried remove the default track plus all interactives completely before I started relaying.

I was doing rather well until I got the "Adjacent track piece not loaded..." error, when I thought I had failed again. However I tried a few things and eventually managed to fix it by overwriting the world file with a backed up version, and so I continued to remove the track, but then on the last two pieces of track (both Dynamic) everytime I try to delete or edit them in any way the RE crashes. I can select them but as soon as I press "Del" it gives me the "MSTS needs to close...".

Does anyone know how I could remove these last two pieces of track?

Until they are removed there isn't really any point in starting to relay the track using UKFS as they could come back and haunt me later...

EDIT: Oh, and I did try rebuilding the track database, but no luck.

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 5:39 pm
by alanhowat
Hi there,

Below is a response from dkightley for what seems to be the same problem.

"Why not open the world files in a text editor and simply edit the objects out? It'll be quicker than deleting via RR one at a time.

You'll be able to clean up the shape and texture files using RR when you finish the route".

Cheers,

Alan.

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 5:45 pm
by LeeEAS
Hi Alan, thanks for your reply, I thought it would be a case of editing them out manually, however do you know which lines I need to remove?

I found a statement which reads:
Dyntrack (
UiD ( 169 )
TrackSections (...<snip>....
So I'm going to remove this, I'll report back in a minute whether this worked...

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 5:56 pm
by LeeEAS
It worked, cheers Alan, I wasn't sure whether it was the .tdb or the .w files that needed editing, but I removed the pieces of track manually via the world files and then loaded up the RE, I also made sure that I rebuilt the database just in case. :D

Time to make another backup me thinks!

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 6:04 pm
by leveritt
LeeEAS wrote:Does anyone know how I could remove these last two pieces of track?
Adding to alanhowat's suggestion to delete entries in the world files. Since we know we can have a live TDB/TIT system without any vestige of RDB/RIT structure, you might try the reverse.

Since your object is to have nothing left of the trackage, delete the TDB and TIT files and their associated BK files. By the way, for either TDB or RDB files, MSTS will barf anyway if you ever use the RE to delete everything in either and leave an essentially empty file with just the SIMISAJINX header.

Then do as Alan suggests with the world files. Since we're talking about some dynamic track left-overs, then delete the local tsection.dat in the route folder.

While you're at it, delete any files that might be left in the Activities, Paths, Services, and Traffic folders.

If that does it, it might be interesting to see what would happen with a rebuild if a RDB/RIT system happens to exist in your situation. I've never been in a position to try that. :)

EDIT: Oops, took too long typing. For no trackage, you should delete the other files I mentioned though.

regards,
charlie

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 6:21 pm
by LeeEAS
Thanks anyway for the reply Charlie, even if you were too late. :wink:

For future reference one of the 'statements' I removed was:

Code: Select all

	Dyntrack (
		UiD ( 169 )
		TrackSections (
			TrackSection (
				SectionCurve ( 0 ) 40370 13 0
			)
			TrackSection (
				SectionCurve ( 1 ) 40372 -0.044 25
			)
			TrackSection (
				SectionCurve ( 0 ) 40374 6 0
			)
			TrackSection (
				SectionCurve ( 1 ) 40376 -0.04 25
			)
			TrackSection (
				SectionCurve ( 0 ) 40378 77.6301 0
			)
		)
		SectionIdx ( 40107 )
		Elevation ( -0.00261799 )
		CollideFlags ( 527 )
		StaticFlags ( 00100000 )
		Position ( -1022.36 13.4925 391.786 )
		QDirection ( -0.00125627 0.280966 -0.000367787 0.959717 )
		VDbId ( 4294967294 )
		StaticDetailLevel ( 0 )
	)

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 7:48 pm
by dkightley
I'm glad my suggestion, passed on by Alan, proved successful....although I'd give credit to Alan if I were you.

And you did what I would have said you would need to have done after deleting a track section, that is rebuild the track database....which is probably why it ended up as being successful!

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 8:12 pm
by LeeEAS
I just descovered something rather odd, when I load the Activity Editor the last two track pieces I removed are still there, yet if I go into the Route Editor there is nothing visually there, so obviously they haven't been removed correctly...

Any ideas? I'm guessing I need to remove something from the .tdb file?

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 8:37 pm
by leveritt
LeeEAS wrote:Any ideas? I'm guessing I need to remove something from the .tdb file?
Scroll up to see recommendations for the other stuff to delete. In the AE, you're almost surely seeing the dynamic track info in the local tsection.dat in the route folder. You now have no use for it, and it will cause no end of grief shortly if left in place...

regards,
charlie

Re: Dynamic Track Problem

Posted: Tue Nov 11, 2008 8:58 pm
by LeeEAS
leveritt wrote:Since your object is to have nothing left of the trackage, delete the TDB and TIT files and their associated BK files.
I did try that, but as I was expecting it gave me "Failed to load track database" error on loading RE.
leveritt wrote:While you're at it, delete any files that might be left in the Activities, Paths, Services, and Traffic folders.
Did that before I even started. :wink:
leveritt wrote:If that does it, it might be interesting to see what would happen with a rebuild if a RDB/RIT system happens to exist in your situation. I've never been in a position to try that. :)
You've lost me here.

Anyway, what I tried was adding two pieces of UKFS track into the route, then saving and exiting. I then loaded the .tdb file and removed the first 6 TrackNodes in the tdb file (Why 6? Well these where the only ones present when I loaded the tdb file before I added the two UKFS track pieces). I then loaded up the Activity Editor, it now only shows the first couple of pieces of UKFS track I have layed, which I assume means I've removed the correct nodes. :D :D