Elvas Tower: Open Rails loading error Error: System.ArgumentException: - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Open Rails loading error Error: System.ArgumentException: Rate Topic: -----

#1 Inactive_helping son_*

  • Group: Status: Passengers (Obsolete)

Posted 20 May 2012 - 01:59 AM

Hello I was directed here from web site of Open Rails to discuss issues about the game. I hope it's ok.

I have a problem running Open Rails. But I'm not completely sure if it's the program or the data. I would appreciate any hint where should I look closely.

I run Open Rails choose a route (not the default ones I have some Czech ones), set it up and hit the start button. Then after couple of warnings in the new window the game crashes on "Error: System.ArgumentException: Položka s tímto klíčem již byla přidána." (If my translation is correct it means Error: System.ArgumentException: Item with this index was already added). Is it me or is it Open Rails?

shortened
.
.
.
Warning: Duplicate SectionIndex of 179 in F:\Train Simulator\GLOBAL\TSECTION.DAT
:line 976

Warning: Some of this STF file was not parsed. in F:\Train Simulator\GLOBAL\TSEC
TION.DAT:line 46932

Error: System.ArgumentException: Položka s tímto klíčem již byla přidána.
   v System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   v System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Bool
ean add)
   v System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   v MSTS.TrackShapes.Add(TrackShape trackShape)
   v MSTS.TrackShapes.<>c__DisplayClass2.<.ctor>b__0()
   v MSTS.STFReader.ParseBlock(TokenProcessor[] processors)
   v MSTS.TrackShapes..ctor(STFReader stf)
   v MSTS.TSectionDatFile.<>c__DisplayClassa.<.ctor>b__7()
   v MSTS.STFReader.ParseFile(TokenProcessor[] processors)
   v MSTS.TSectionDatFile..ctor(String filePath)
   v ORTS.Simulator..ctor(UserSettings settings, String activityPath)
   v ORTS.Program.InitSimulator(UserSettings settings, String[] args, String mod
e)
   v ORTS.Program.InitSimulator(UserSettings settings, String[] args)
   v ORTS.Program.<>c__DisplayClass8.<Start>b__7()
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.ORTraceListener.TraceEventInternal(TraceEventCache eventCache, String
source, TraceEventType eventType, Int32 id, String format, Object[] args)
   v ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source,
TraceEventType eventType, Int32 id, String format, Object[] args)
   v System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32
 id, String format, Object[] args)
   v System.Diagnostics.Trace.TraceError(String format, Object[] args)
   v ORTS.ORTraceListener.WriteLine(Object o)
   v System.Diagnostics.TraceInternal.WriteLine(Object value)
   v System.Diagnostics.Trace.WriteLine(Object value)
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.Program.Main(String[] args)



I'm aware it's not the final version and I post this in hope to fix this and help others with same issue.
2 computers - same problem
I have to still test the default routes (currently not installed)

#2 User is offline   James Ross 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 5,514
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 20 May 2012 - 02:50 AM

This looks like a problem with your "tsection.dat" file, with it having duplicated data in it. Perhaps try downloading the latest version (from trainsim.com or wherever, I expect it's got around a bit) and see if that fixes it.

#3 Inactive_helping son_*

  • Group: Status: Passengers (Obsolete)

Posted 20 May 2012 - 07:34 AM

Big thanks that helped.

I have still troubles to run it from some points. But at least some parts now works. The rest will be I guess caused by the route itself. I will still post the other errors maybe there can be found something interesting and usefull.

.
.
.
Error: System.IndexOutOfRangeException: Index je mimo hranice pole. (translation - Index out of bounds (array bounds)
   v ORTS.Activity..ctor(ACTFile actFile, Simulator simulator)
   v ORTS.Simulator.SetActivity(String activityPath)
   v ORTS.Program.InitSimulator(UserSettings settings, String[] args, String mod
e)
   v ORTS.Program.InitSimulator(UserSettings settings, String[] args)
   v ORTS.Program.<>c__DisplayClass8.<Start>b__7()
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.ORTraceListener.TraceEventInternal(TraceEventCache eventCache, String
source, TraceEventType eventType, Int32 id, String format, Object[] args)
   v ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source,
TraceEventType eventType, Int32 id, String format, Object[] args)
   v System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32
 id, String format, Object[] args)
   v System.Diagnostics.Trace.TraceError(String format, Object[] args)
   v ORTS.ORTraceListener.WriteLine(Object o)
   v System.Diagnostics.TraceInternal.WriteLine(Object value)
   v System.Diagnostics.Trace.WriteLine(Object value)
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.Program.Main(String[] args)


.
.
.
Warning: TDB references track section not listed in global or dynamic TSECTION.D
AT: 373

Error: System.IO.InvalidDataException: The car is on a track section that could
not be found in the TDB file.
   v ORTS.TDBTraveller..ctor(Int32 tileX, Int32 tileZ, Single wx, Single wz, Int
32 direction, TDBFile tdb, TSectionDatFile tsectiondat)
   v ORTS.Simulator.InitializePlayerTrain()
   v ORTS.Simulator.InitializeTrains()
   v ORTS.Simulator.Start()
   v ORTS.Program.<>c__DisplayClass8.<Start>b__7()
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.ORTraceListener.TraceEventInternal(TraceEventCache eventCache, String
source, TraceEventType eventType, Int32 id, String format, Object[] args)
   v ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source,
TraceEventType eventType, Int32 id, String format, Object[] args)
   v System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32
 id, String format, Object[] args)
   v System.Diagnostics.Trace.TraceError(String format, Object[] args)
   v ORTS.ORTraceListener.WriteLine(Object o)
   v System.Diagnostics.TraceInternal.WriteLine(Object value)
   v System.Diagnostics.Trace.WriteLine(Object value)
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.Program.Main(String[] args)


Some extra info - the set up route is about 700 km long. Total lenght of this route should be 1850 km - (not sure if it's usuall or not)

#4 User is offline   Lindsayts 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,849
  • Joined: 25-November 11
  • Gender:Male
  • Country:

Posted 20 May 2012 - 09:11 AM

As a matter of interest what is the route?

Long routes are quite unusual due to the time it takes to build them but there are others, Adelaide hills and SE route (Australia) being one. This has 600 miles (1000 km) of main line. The longest single line being the main east west line to Victoria, the route ending at Kaniva, with the MT Gambier branch line coming off from Wolesley, total distance 305 miles (around 500 km). This route on the whole runs OK in OR.

Bye the way the author of the route said it took him 6000 hours to complete it. It has a good level of detail and is remarkably accurate, getting plenty of praise from old South Australian railwaymen.

#5 Inactive_helping son_*

  • Group: Status: Passengers (Obsolete)

Posted 22 May 2012 - 03:18 AM

This one is called 321. It's from Prague to Košice (ČR-SR) and some other routes connected to that. More info here: http://trat321.cz/en/index.php

The details are quite amazing, but they have their cost. In MSTS you can't go through Prague without problems - low fps and missing buildings or even rails (like driving over grass). But for that there extra lighter version for Prague so anyone can choose. I really hope I'll see that "running" some day and I hope Open Rails will be the answer. At least father will be very happy.

#6 User is offline   longiron 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 3,236
  • Joined: 25-July 08
  • Gender:Male
  • Location:Manasquan, NJ
  • Simulator:Open Rails, MSTS editors
  • Country:

Posted 22 May 2012 - 04:41 AM

View Posthelping son, on 20 May 2012 - 07:34 AM, said:

Big thanks that helped.

I have still troubles to run it from some points. But at least some parts now works. The rest will be I guess caused by the route itself. I will still post the other errors maybe there can be found something interesting and usefull.

Warning: TDB references track section not listed in global or dynamic TSECTION.D
AT: 373

Error: System.IO.InvalidDataException: The car is on a track section that could
not be found in the TDB file.
   v ORTS.TDBTraveller..ctor(Int32 tileX, Int32 tileZ, Single wx, Single wz, Int
32 direction, TDBFile tdb, TSectionDatFile tsectiondat)
   v ORTS.Simulator.InitializePlayerTrain()
   v ORTS.Simulator.InitializeTrains()
   v ORTS.Simulator.Start()
   v ORTS.Program.<>c__DisplayClass8.<Start>b__7()
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.ORTraceListener.TraceEventInternal(TraceEventCache eventCache, String
source, TraceEventType eventType, Int32 id, String format, Object[] args)
   v ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source,
TraceEventType eventType, Int32 id, String format, Object[] args)
   v System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32
id, String format, Object[] args)
   v System.Diagnostics.Trace.TraceError(String format, Object[] args)
   v ORTS.ORTraceListener.WriteLine(Object o)
   v System.Diagnostics.TraceInternal.WriteLine(Object value)
   v System.Diagnostics.Trace.WriteLine(Object value)
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.Program.Main(String[] args)


Some extra info - the set up route is about 700 km long. Total lenght of this route should be 1850 km - (not sure if it's usuall or not)


The length or size of the route is not your problem. OpenRails cannot find the track section used in the route (line 373 of your TDB) referenced in the TSECTION for the route. OpenRails aborts when trying to place a train on a track section that does not exist - according to OpenRails.

#7 Inactive_helping son_*

  • Group: Status: Passengers (Obsolete)

Posted 22 May 2012 - 06:22 AM

Thanks a lot for your answer. Is there anything I can do about it (from a user point of view)? It works in MSTS...

#8 User is offline   longiron 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 3,236
  • Joined: 25-July 08
  • Gender:Male
  • Location:Manasquan, NJ
  • Simulator:Open Rails, MSTS editors
  • Country:

Posted 22 May 2012 - 06:53 AM

What TSECTION version are you using in your route? Please make sure you are using the most recent one.

#9 Inactive_helping son_*

  • Group: Status: Passengers (Obsolete)

Posted 22 May 2012 - 08:49 AM

Good to mention it second time in my case (shame on me). I guess I found older one after advice from James. Now I updated to build 44 from trainsim.com directly as should do immediately at that time.

Unfortunately another issue appears:

 DAT ACT RDB CARSPAWN

Error: System.IO.InvalidDataException: ShapeIndex not found
   v MSTS.TrackShapes.Get(UInt32 targetShapeIndex)
   v ORTS.Simulator.AlignSwitchesToDefault()
   v ORTS.Simulator.Start()
   v ORTS.Program.<>c__DisplayClass8.<Start>b__7()
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.ORTraceListener.TraceEventInternal(TraceEventCache eventCache, String
source, TraceEventType eventType, Int32 id, String format, Object[] args)
   v ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source,
TraceEventType eventType, Int32 id, String format, Object[] args)
   v System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32
 id, String format, Object[] args)
   v System.Diagnostics.Trace.TraceError(String format, Object[] args)
   v ORTS.ORTraceListener.WriteLine(Object o)
   v System.Diagnostics.TraceInternal.WriteLine(Object value)
   v System.Diagnostics.Trace.WriteLine(Object value)
   v ORTS.Program.Start(UserSettings settings, String[] args)
   v ORTS.Program.Main(String[] args)


And what more MSTS stopped running. During loading MSTS I get address on 0x0000.. cannot be read error. Reinstall didn't help.

Seems like I'm missing something.

#10 User is offline   engmod 

  • Open Rails Developer
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 2,161
  • Joined: 26-February 08
  • Gender:Male
  • Location:Eltham, Victoria, Australia
  • Simulator:ORNYMG
  • Country:

Posted 24 May 2012 - 01:52 PM

What happens when you run one of the default routes?

#11 Inactive_helping son_*

  • Group: Status: Passengers (Obsolete)

Posted 25 May 2012 - 02:16 AM

Thanks. I usually have ideas like this to try as many things as possible and then post the results. This time it seems I don't so sorry about that.

Loading the default routes in OR works! (Even with the trains from the Czech route) In MSTS I can't even try - the error is in the first loading during startup.

#12 User is offline   Matej Pacha 

  • Engineer
  • Group: Posts: Contributing Member
  • Posts: 571
  • Joined: 08-December 10
  • Gender:Male
  • Location:Slovakia
  • Country:

Posted 04 June 2012 - 01:49 PM

I can say that many 3rd party routes are built in very odd way, using many "dark sides" of the MSTS. I usually run the Bratislava-Prague route (www.semora.cz/msts) without problems (up to rev.1004). Other czech or slovak routes are out, probably because of these "dark sides" which MSTS tolerates. The patience is the best solution - the team is working hard on many 3rd-party products' issues...

If you have access to the newest version of the ORTS, you should see this messsage (or similar). Before rev. 1004 this message doesn't appear (I will report the issue soon, James :D )
Error: System.IO.InvalidDataException: {TileX:-5483 TileZ:14794 X:584,074 Y:0 Z:-649,124} failed to initialize Traveller at track node 1.
   at ORTS.Traveller..ctor(TSectionDatFile tSectionDat, TrackNode[] trackNodes, TrackNode startTrackNode, Int32 tileX, Int32 tileZ, Single x, Single z)
   at ORTS.Traveller..ctor(TSectionDatFile tSectionDat, TrackNode[] trackNodes, TrackNode startTrackNode, Int32 tileX, Int32 tileZ, Single x, Single z, TravellerDirection direction)
   at ORTS.Signals.AddSignal(Int32 trackNode, Int32 nodeIndx, SignalItem sigItem, Int32 prevSignal, TrItem[] TrItems, TrackNode[] trackNodes, Int32 TDBRef, TSectionDatFile tsectiondat, TDBFile tdbfile)
   at ORTS.Signals.ScanSection(TrItem[] TrItems, TrackNode[] trackNodes, Int32 index, TSectionDatFile tsectiondat, TDBFile tdbfile)
   at ORTS.Signals.BuildSignalList(TrItem[] TrItems, TrackNode[] trackNodes, TSectionDatFile tsectiondat, TDBFile tdbfile)
   at ORTS.Signals..ctor(Simulator simulator, SIGCFGFile sigcfg)
   at ORTS.Simulator.Start()
   at ORTS.Program.<>c__DisplayClass8.<Start>b__7()
   at ORTS.Program.Start(UserSettings settings, String[] args)
   at ORTS.ORTraceListener.TraceEventInternal(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
   at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
   at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
   at System.Diagnostics.Trace.TraceError(String format, Object[] args)
   at ORTS.ORTraceListener.WriteLine(Object o)
   at System.Diagnostics.TraceInternal.WriteLine(Object value)
   at System.Diagnostics.Trace.WriteLine(Object value)
   at ORTS.Program.Start(UserSettings settings, String[] args)
   at ORTS.Program.Main(String[] args)



#13 User is offline   James Ross 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 5,514
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 05 June 2012 - 01:27 AM

It's a shame the routes are so much work to purchase from the UK. :D

Matej, you may be able to get the route to load by increasing 'const float InitErrorMargin' in the Traveller a bit, though if it needs increasing too much we might need a different strategy.

#14 User is offline   Matej Pacha 

  • Engineer
  • Group: Posts: Contributing Member
  • Posts: 571
  • Joined: 08-December 10
  • Gender:Male
  • Location:Slovakia
  • Country:

Posted 05 June 2012 - 11:41 AM

I didn't experiment with it too much but the value 1.0f works fine (instead of 0.01f). Maybe it would help to have an option to change this value somewhere in the configuration.

#15 User is offline   longiron 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 3,236
  • Joined: 25-July 08
  • Gender:Male
  • Location:Manasquan, NJ
  • Simulator:Open Rails, MSTS editors
  • Country:

Posted 05 June 2012 - 11:44 AM

What does changing this value effectively accomplish?

  • 2 Pages +
  • 1
  • 2
  • 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