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

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3
  • 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: Status: Elite Member
  • Posts: 5,491
  • 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: Status: 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: Status: Elite Member
  • Posts: 3,179
  • 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: Status: Elite Member
  • Posts: 3,179
  • 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
  • PipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 1,774
  • 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?

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