BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

"WithTrack section missing."

+2
Glory! koshikii
chrisrose1993
6 posters

Go down

"WithTrack section missing." Empty "WithTrack section missing."

Post by chrisrose1993 Sun Nov 20, 2016 1:49 pm

Hiya,

Trying to create a little test route to test stuff on. In routeviewer there is no errors but in the main program I get "The selected route is corrupt: 
 WithTrack section missing.".

I've tried modifying a existing route file and get the same, I've tried using Notepad and Notepad++ and still get the same - I just can't find anything that could be causing it.

Code:
Options.ObjectVisibility 1
With Route
.Gauge 1435
.Elevation 5

With Train
.Folder lt1995_openbve
.Run(0) 3

With Structure
.Rail(0) NorthernLine_Open\LUL_Rails\LUL_S_0R_OL.csv

.ground(0) NorthernLine_Open\ground00.csv

With Texture
.background(0) NorthernLine_Open\outside.png

With Track,
25,.railtype 0;0
50,.sta 1,
500,.stop 0,
1000,.curve 200,
1050,.curve -200,
1100,.curve 0,

Anyone able to spot anything or got an idea what is causing it?

Regards,
Chris
chrisrose1993
chrisrose1993

Posts : 37
Join date : 2012-03-18
Age : 31
Location : Romford, Essex

http://www.flickr.com/photos/chrisrose1/

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by Glory! koshikii Sun Nov 20, 2016 2:51 pm

I don't have a computer nearby right now but maybe try removing that comma? I've never seen it immediately after With Track before.

Glory! koshikii

Posts : 58
Join date : 2016-06-18
Location : At the desk

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by graymac Sun Nov 20, 2016 4:16 pm

I think GK's right, remove the comma after "With Track"
graymac
graymac

Posts : 2134
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by chrisrose1993 Sun Nov 20, 2016 6:15 pm

Tried that and still the same - Stumped on this one! 

Code:
Options.ObjectVisibility 1
With Route
.Gauge 1435
.Elevation 5

With Train
.Folder lt1995_openbve
.Run(0) 3

With Structure
.Rail(0) NorthernLine_Open\LUL_Rails\LUL_S_0R_OL.csv

.ground(0) NorthernLine_Open\ground00.csv

With Texture
.background(0) NorthernLine_Open\outside.png

With Track
25,.railtype 0;0,
50,.sta 1,
500,.stop 0,
1000,.curve 200,
1050,.curve -200,
1100,.curve 0,
chrisrose1993
chrisrose1993

Posts : 37
Join date : 2012-03-18
Age : 31
Location : Romford, Essex

http://www.flickr.com/photos/chrisrose1/

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by graymac Sun Nov 20, 2016 7:15 pm

Try this syntax:
Code:
With Track,
25
.railtype 0;0
50
.sta 1,
500
.stop 0,
1000
.curve 200,
1050
.curve -200,
1100
.curve 0,

Also, do you have at least two stations in the route? You should at least have a start and a finish station command, in this format.

Track.Sta Name; ArrivalTime; DepartureTime; PassAlarm; Doors; ForcedRedSignal; System; ArrivalSound; StopDuration; PassengerRatio; DepartureSound; TimetableIndex
Name: The name of the station. This is displayed in the timetable and in messages, so should not be omitted.
ArrivalTime: The time the player's train is expected to arrive at this station. Special values may also appear - see below.
DepartureTime: The time the player's train is expected to depart from this station. Special values may also appear - see below.
PassAlarm: Indicates whether the pass alarm device should remind the driver of stopping at this station. The default value is 0.
Doors: Indicates which doors should open at this station. The default value is 0.
ForcedRedSignal: Indicates whether the signal behind the last station stop should be red on a train approach. The default value is 0.
System: Indicates which built-in safety system should apply until the next station. The default value is 0.
ArrivalSound: The sound file to be played on arrival, relative to the Sound folder.
StopDuration: A positive floating-point number indicating the minimum stop duration in seconds, including door opening/closing times. The default value is 15.
PassengerRatio: A non-negative floating-point number indicating the relative amount of passengers in the train from this station on. As a reference, 100 represents a train with normal amount of passengers, while 250 represents an over-crowded train. Values in-between 0 and 250 should be used. The default value is 100.
DepartureSound: The sound file to be played before departure (departure time minus sound duration minus door closing time), relative to the Sound folder.
TimetableIndex: A non-negative integer representing the timetable to be shown from this station on as defined via Train.Timetable(TimetableIndex).
graymac
graymac

Posts : 2134
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by leezer3 Sun Nov 20, 2016 8:05 pm

The error (withTrack corrupt) you're seeing is one of mine.

Specifically, it's complaining that the route parser crashed when attempting to read your file.
Generally speaking, it means that the file you've clicked on isn't actually an openBVE route. I *think* negative track distances may also cause this, plus using silly high indicies.


However:


I've just tested the code you posted above, and this works correctly for me.
I can't see anything obviously wrong either.

Can you please zip up one of the files that's failing and post it here as an attachment?
That way I can test it in the debugger and see what's happening.

graymac wrote:Also, do you have at least two stations in the route?

https://github.com/leezer3/OpenBVE/issues/114

Have added a couple of logged errors as follows:

  • If the routefile is detected as having no stations (Main menu), then a specific error will be shown in the main menu.
  • If a routefile has only a single station, this will be recorded in the log.


Broken routefiles are always welcome, as the more stuff that can be handled automatically the better Smile

Cheers

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by chrisrose1993 Sun Nov 20, 2016 8:37 pm

Thanks for your help - Still no joy!

Here's the file;
https://drive.google.com/open?id=0B_JAqNMbOxudcVY1dHdLUjhYLVU
chrisrose1993
chrisrose1993

Posts : 37
Join date : 2012-03-18
Age : 31
Location : Romford, Essex

http://www.flickr.com/photos/chrisrose1/

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by leezer3 Sun Nov 20, 2016 9:07 pm

That works just fine for me Sad

Please try the current nightly:
http://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2016-11-20.tar.gz

If that doesn't work, please let me have your Windows (I presume!) version, and your regional settings; From Essex, I'd say that they're going to be English, GB, but I don't want to make assumptions.

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by chrisrose1993 Sun Nov 20, 2016 9:54 pm

Still no joy, Strange this! 

I'm using Windows 10 with the English, GB settings.
chrisrose1993
chrisrose1993

Posts : 37
Join date : 2012-03-18
Age : 31
Location : Romford, Essex

http://www.flickr.com/photos/chrisrose1/

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by leezer3 Sun Nov 20, 2016 11:09 pm

Have tested your uploaded file on a Windows 10 (pro) VM, plus Windows 7 (x64) and Windows 8.
Works correctly on all of these.

Some thoughts:

  • Are you using an overlong path for the file?
  • If you're running standalone antivirus, have you tried disabling it? (Seen one rather odd issue with Avast)
  • Is this the first thing you're clicking on, or have you clicked on something else first?

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by Quork Mon Nov 21, 2016 10:06 am

Could it be something preventing OpenBVE from accessing the file in the first place?

Slightly off topic: Dunno if blocking negative route distances is that good an idea. In my opinion, it is good practice to use actual route kilometration (or mileage) when building real routes. Since OpenBVE doesn't support running both ways on a route (here's to hope I can put a "yet" in here), putting a minus in front of the distances in case you're building the route in opposite orientation to the kilometration would be the easiest and most elegant way to do it.
Quork
Quork

Posts : 1438
Join date : 2012-05-05
Age : 33
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by chrisrose1993 Wed Nov 23, 2016 6:32 pm

It gets stranger...

I've not been on the computer since I last posted Sunday, Just thought I'd try it and it's working without changing anything! 

Shocked
chrisrose1993
chrisrose1993

Posts : 37
Join date : 2012-03-18
Age : 31
Location : Romford, Essex

http://www.flickr.com/photos/chrisrose1/

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by leezer3 Thu Nov 24, 2016 1:08 am

chrisrose1993 wrote:It gets stranger...

I've not been on the computer since I last posted Sunday, Just thought I'd try it and it's working without changing anything! 

Shocked

That has a very nasty antivirus smell about it.

What are you running AV wise?

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by chrisrose1993 Thu Nov 24, 2016 7:04 pm

Windows Defender at the moment - What's the best to use?

It's now gone back to the error preventing it from loading  silent
chrisrose1993
chrisrose1993

Posts : 37
Join date : 2012-03-18
Age : 31
Location : Romford, Essex

http://www.flickr.com/photos/chrisrose1/

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by MattD6R Fri Nov 25, 2016 12:39 pm

I tried the uploaded file using Windows 10 on the latest nightly build and I get the message of: "The selected route is corrupt: WithTrack section missing." upon selecting the route. When I add a second station to the route it is able to be loaded.

MattD6R

Posts : 264
Join date : 2013-06-16
Location : Brisbane, Australia

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by leezer3 Fri Nov 25, 2016 1:04 pm

Now that's interesting Question

Still working perfectly on my Windows 10 VM and everything else I've got here.

If it works for chrisrose1993 after he's added a second station, I'd almost be inclined to write it off as an oddity.....

leezer3

Posts : 1980
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by chrisrose1993 Fri Nov 25, 2016 7:23 pm

All working now at the moment by adding in another station - Could of sworn I had just one station on a test route before and it worked fine. 

Thanks for your help Smile
chrisrose1993
chrisrose1993

Posts : 37
Join date : 2012-03-18
Age : 31
Location : Romford, Essex

http://www.flickr.com/photos/chrisrose1/

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by MattD6R Sun Dec 04, 2016 11:53 am

I also tried this on Windows 7 and get that same problem message if there is only 1 station and works when I add a second station. However using the older 1.4.3 version of the program I don't get that message if there is only one station present.

MattD6R

Posts : 264
Join date : 2013-06-16
Location : Brisbane, Australia

Back to top Go down

"WithTrack section missing." Empty Re: "WithTrack section missing."

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum