"WithTrack section missing."
+2
Glory! koshikii
chrisrose1993
6 posters
Page 1 of 1
"WithTrack section missing."
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.
Anyone able to spot anything or got an idea what is causing it?
Regards,
Chris
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
Re: "WithTrack section missing."
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
Re: "WithTrack section missing."
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,
Re: "WithTrack section missing."
Try this syntax:
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.
- 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).
Re: "WithTrack section missing."
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.
https://github.com/leezer3/OpenBVE/issues/114
Have added a couple of logged errors as follows:
Broken routefiles are always welcome, as the more stuff that can be handled automatically the better
Cheers
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
Cheers
Re: "WithTrack section missing."
Thanks for your help - Still no joy!
Here's the file;
https://drive.google.com/open?id=0B_JAqNMbOxudcVY1dHdLUjhYLVU
Here's the file;
https://drive.google.com/open?id=0B_JAqNMbOxudcVY1dHdLUjhYLVU
Re: "WithTrack section missing."
That works just fine for me
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.
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.
Re: "WithTrack section missing."
Still no joy, Strange this!
I'm using Windows 10 with the English, GB settings.
I'm using Windows 10 with the English, GB settings.
Re: "WithTrack section missing."
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:
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?
Re: "WithTrack section missing."
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.
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- Posts : 1438
Join date : 2012-05-05
Age : 33
Location : Hofheim a.T., Hessen (Hesse), European Union
Re: "WithTrack section missing."
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!
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!
Re: "WithTrack section missing."
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!
That has a very nasty antivirus smell about it.
What are you running AV wise?
Re: "WithTrack section missing."
Windows Defender at the moment - What's the best to use?
It's now gone back to the error preventing it from loading
It's now gone back to the error preventing it from loading
Re: "WithTrack section missing."
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
Re: "WithTrack section missing."
Now that's interesting
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.....
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.....
Re: "WithTrack section missing."
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
Thanks for your help
Re: "WithTrack section missing."
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
Similar topics
» Missing File Function?
» Missing Ramsbury objects
» Train.MsTS.dll missing(?)
» FBT cannot start routes - missing objects
» Logittech Extreme 3D Pro missing throttle axis
» Missing Ramsbury objects
» Train.MsTS.dll missing(?)
» FBT cannot start routes - missing objects
» Logittech Extreme 3D Pro missing throttle axis
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum