Enough of this....

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MP36PH3S
    1000 Post Veteran
    • May 2010
    • 1217
    • Ann Arbor, MI

    #1

    Enough of this....

    After about three weeks of on-and-off attempts to fix the problems with OR myself I just have had enough.
    I have reinstalled both OR and Microsoft XNA Framework 3.1.
    Here is the log:

    Open Rails is starting...
    Version = 0.7.0.905
    Build = 0.0.4362.22137 11/12/2011 12:17
    Logfile = C:\Users\JLiu.DCDS\Desktop\OpenRailsLog.txt
    ------------ ---------- ------------ ---------- ------------ ---------- --------
    Alerter = False
    BrakePipeChargingRate = (registry) 150
    DataLogger = False
    DynamicShadows = (registry) True
    FullScreen = (registry) True
    GraduatedRelease = (registry) True
    Logging = True
    LoggingFilename = OpenRailsLog.txt
    LoggingPath = C:\Users\JLiu.DCDS\Desktop
    MSTSBINSound = (registry) True
    Precipitation = (registry) True
    Profiling = False
    ProfilingFrameCount = 1000
    ScreenshotPath = C:\Users\JLiu.DCDS\Pictures\Open Rails
    ShaderModel = 0
    ShadowAllShapes = False
    ShadowMapBlur = True
    ShadowMapCount = 4
    ShadowMapDistance = 0
    ShadowMapResolution = 1024
    ShowErrorDialogs = True
    SoundDetailLevel = 5
    TrainLights = (registry) True
    UseAdvancedAdhesion = True
    VerticalSync = False
    ViewingDistance = 2000
    ViewingFOV = 45
    WindowGlass = (registry) True
    WindowPosition_Activity = 50, 50
    WindowPosition_Compass = (registry) 50, 0
    WindowPosition_DriverAid = (registry) 100, 100
    WindowPosition_Help = (registry) 50, 50
    WindowPosition_NextStation = (registry) 0, 100
    WindowPosition_Switch = (registry) 0, 50
    WindowPosition_TrackMonitor = (registry) 100, 0
    WindowPosition_TrainOperations = (registry) 50, 50
    WindowSize = (registry) 1920x1200
    Wire = (registry) True
    WorldObjectDensity = 10
    ------------ ---------- ------------ ---------- ------------ ---------- --------
    Mode = Explore
    Path = C:\Program Files (x86)\Microsoft Games\Train Simulator\ROUTES\SR_FBLine\PATHS\bp.pat
    Consist = C:\Program Files (x86)\Microsoft Games\Train Simulator\TRAINS\CONSISTS\KLW_MP401_loner.con
    Time = 12:0
    Season = 0
    Weather = 0
    ------------ ---------- ------------ ---------- ------------ ---------- --------
    Loading TRK TDB SIGCFG DAT ACT RDB CARSPAWN
    Information: Unknown ControlType DOORS_DISPLAY in C:\Program Files (x86)\Microsoft Games\Train Simulator\trains\trainset\METRA_401\CABVIEW\MP36.c vf:line 209
    Information: OpenAL using device DirectSound
    ENV SIGCFG TTYPE
    Error: System.BadImageFormatException: The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)
    at System.Runtime.InteropServices.Marshal.ThrowExcept ionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Management.ManagementScope.InitializeGuts(O bject o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObject.Initialize(Bool ean getObject)
    at System.Management.ManagementClass.GetInstances(Enu merationOptions options)
    at System.Management.ManagementClass.GetInstances()
    at ORTS.Viewer3D.UpdateAdapterInformation(GraphicsAda pter graphicsAdapter)
    at ORTS.Viewer3D.GDM_PreparingDeviceSettings(Object sender, PreparingDeviceSettingsEventArgs e)
    at Microsoft.Xna.Framework.GraphicsDeviceManager.OnPr eparingDeviceSettings(Object sender, PreparingDeviceSettingsEventArgs args)
    at Microsoft.Xna.Framework.GraphicsDeviceManager.Crea teDevice(GraphicsDeviceInformation newInfo)
    at Microsoft.Xna.Framework.GraphicsDeviceManager.Chan geDevice(Boolean forceCreate)
    at Microsoft.Xna.Framework.GraphicsDeviceManager.Micr osoft.Xna.Framework.IGraphicsDeviceManager.CreateD evice()
    at Microsoft.Xna.Framework.Game.Run()
    at ORTS.Viewer3D.Run()
    at ORTS.Program.<>c__DisplayClass8.<Start>b__7()
    at ORTS.Program.Start(UserSettings settings, String[] args)
    at ORTS.ORTraceListener.TraceEventInternal(TraceEvent Cache 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(TraceE ventType 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)
    Writer and Wolverine, among other things.
    Interested in railroad stories? Check out the Fiction vault:
    https://www.trainsim.com/vbts/showth...82#post1882582
  • OTTODAD
    1
    • Feb 2001
    • 32344
    • England
    • General

    #2
    Does this SR_FBline route run in MSTSBin ?

    O t t o

    Comment

    • twpol
      Senior Member
      • Oct 2009
      • 434
      • United Kingdom

      #3
      Originally posted by MP36PH3S
      Error: System.BadImageFormatException: The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)
      at System.Runtime.InteropServices.Marshal.ThrowExcept ionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      at System.Management.ManagementScope.InitializeGuts(O bject o)
      at System.Management.ManagementScope.Initialize()
      at System.Management.ManagementObject.Initialize(Bool ean getObject)
      at System.Management.ManagementClass.GetInstances(Enu merationOptions options)
      at System.Management.ManagementClass.GetInstances()
      at ORTS.Viewer3D.UpdateAdapterInformation(GraphicsAda pter graphicsAdapter)
      at ORTS.Viewer3D.GDM_PreparingDeviceSettings(Object sender, PreparingDeviceSettingsEventArgs e)
      at Microsoft.Xna.Framework.GraphicsDeviceManager.OnPr eparingDeviceSettings(Object sender, PreparingDeviceSettingsEventArgs args)
      at Microsoft.Xna.Framework.GraphicsDeviceManager.Crea teDevice(GraphicsDeviceInformation newInfo)
      at Microsoft.Xna.Framework.GraphicsDeviceManager.Chan geDevice(Boolean forceCreate)
      at Microsoft.Xna.Framework.GraphicsDeviceManager.Micr osoft.Xna.Framework.IGraphicsDeviceManager.CreateD evice()
      at Microsoft.Xna.Framework.Game.Run()
      at ORTS.Viewer3D.Run()
      at ORTS.Program.<>c__DisplayClass8.<Start>b__7()
      at ORTS.Program.Start(UserSettings settings, String[] args)
      at ORTS.ORTraceListener.TraceEventInternal(TraceEvent Cache 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(TraceE ventType 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)
      This is a problem specific to your computer that we cannot resolve in OR. It could be anti-virus or firewall software created, but it's not a problem with OR itself.
      James Ross
      Open Rails Management Team
      sigpic

      Comment

      • mestevet
        2000 Post Veteran
        • Feb 2007
        • 2225
        • Chadds Ford, PA

        #4
        Just out of curiosity, what does the error "Error: System.BadImageFormatException: The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)" mean?

        I'm wondering if there's a way to tell what "file or directory" it's talking about when it gives the error. It appears right after reading the "TTYPE", is that a clue? I'm just thinking that if he has a little more information, maybe that would help him figure out what that might be interfering with OR's proper operation.

        Jason, have you tried running with any anti-virus or firewall turned off?

        Steve

        Comment

        • twpol
          Senior Member
          • Oct 2009
          • 434
          • United Kingdom

          #5
          Originally posted by mestevet
          Just out of curiosity, what does the error "Error: System.BadImageFormatException: The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)" mean?

          I'm wondering if there's a way to tell what "file or directory" it's talking about when it gives the error. It appears right after reading the "TTYPE", is that a clue? I'm just thinking that if he has a little more information, maybe that would help him figure out what that might be interfering with OR's proper operation.
          The error message may well be bogus as-written, or at least partially incorrect (which would be about typical for anti-virus software blocking something, for example); according to the stack, the code is trying to fetch some information about the graphics card via WMI - this is a completely standard Windows interface, exposed in .NET via the System.Management namespace. It's either the provider of this data (probably the graphics driver) or something lurking in between the provider and OR that is producing the error.
          James Ross
          Open Rails Management Team
          sigpic

          Comment

          • sniper297
            9500 Post Veteran
            • Nov 1999
            • 9545
            • Union Grove, Wisconsin, USA.
            • General

            #6
            I haven't yet experienced the wonders and joy of Windows 7 / Vista UAC myself yet, but from what I've been reading;

            Path = C:\Program Files (x86)\Microsoft Games\Train Simulator\

            Most gamers using vista / win7 agree you should never ever ever install any modifiable game in the \Program Files (x86) folder or you'll constantly be fighting a losing battle with UAC trying to protect that folder from the user.
            sigpic

            Comment

            • longiron
              1000 Post Veteran and Moderator

              • Jan 2007
              • 1453
              • Just south of NYC

              #7
              Originally posted by sniper297
              I haven't yet experienced the wonders and joy of Windows 7 / Vista UAC myself yet, but from what I've been reading;

              Path = C:\Program Files (x86)\Microsoft Games\Train Simulator\

              Most gamers using vista / win7 agree you should never ever ever install any modifiable game in the \Program Files (x86) folder or you'll constantly be fighting a losing battle with UAC trying to protect that folder from the user.
              That's not true for Win7! Just follow the pinned topic https://www.trainsim.com/vbts/showth...-or-64-bits-OS.

              I have had ZERO problems with MSTS installed in \Program Files (x86) folder because I followed the procedures, to the letter.
              Chris
              "True rail fans have two favorite railroads. The B&O and one other."

              Comment

              • mipman25
                1500 Post Veteran
                • Apr 2011
                • 1604
                • Reichensberg

                #8
                Originally posted by sniper297
                I haven't yet experienced the wonders and joy of Windows 7 / Vista UAC myself yet, but from what I've been reading;

                Path = C:\Program Files (x86)\Microsoft Games\Train Simulator\

                Most gamers using vista / win7 agree you should never ever ever install any modifiable game in the \Program Files (x86) folder or you'll constantly be fighting a losing battle with UAC trying to protect that folder from the user.
                That isn't true for me. I've installed God-knows-how-many add-ons for MSTS in the Program Files (x86) and UAC hasn't even budged, unless you mean not being able to replace files unless you change the security options for that folder.
                sigpic

                Comment

                • kox
                  Senior Member
                  • May 2010
                  • 329

                  #9
                  Unreadable? Perhaps check the access right settings. But it's obvious that it's NOT an OR issue.
                  sigpic

                  Comment

                  • MP36PH3S
                    1000 Post Veteran
                    • May 2010
                    • 1217
                    • Ann Arbor, MI

                    #10
                    Otto the route does run in MSTSBin.
                    Steve I have no antivirus software running.
                    James are you suggesting something is wrong with the system BIOS?
                    Sniper I installed according to Steven's instructions. That takes care of UAC. And I always hate that feature so I turned it off anyways.
                    Longiron it is not MSTS with a problem. OR will not run but MSTS runs perfectly fine.
                    Writer and Wolverine, among other things.
                    Interested in railroad stories? Check out the Fiction vault:
                    https://www.trainsim.com/vbts/showth...82#post1882582

                    Comment

                    • twpol
                      Senior Member
                      • Oct 2009
                      • 434
                      • United Kingdom

                      #11
                      Originally posted by MP36PH3S
                      James are you suggesting something is wrong with the system BIOS?
                      Could be, the error is not specific enough to know what's actually wrong - except that a fundamental and key component of Windows is returning a strange error when a normal query is made to it. Something has either broken it in the past or is breaking it in the present, but I do not know what specifically that would be.
                      James Ross
                      Open Rails Management Team
                      sigpic

                      Comment

                      • OTTODAD
                        1
                        • Feb 2001
                        • 32344
                        • England
                        • General

                        #12
                        This is what the BIOS does which has nothing to do with the running of installed programs: http://en.wikipedia.org/wiki/BIOS

                        Programs running execute their code and if that has not been written 1000% accurate to not conflict with the O/S, other software used by it or drivers then problems will arise.

                        Why MSTS has no problems running this route and ORTS has should be identifiable but time consuming.

                        When I coded my accounting software executables and there was a problem running one then the compiler's debugging function let me run it in that mode and would stop, showing me exactly what was wrong and where in the code.

                        Syntax errors are being reported while writing the code.

                        Don't know how the compilers used by ORTS work to trap problems in running programs.

                        O t t o

                        Comment

                        • sniper297
                          9500 Post Veteran
                          • Nov 1999
                          • 9545
                          • Union Grove, Wisconsin, USA.
                          • General

                          #13
                          Well, the only thing I see that jumps out is the first error;

                          Unknown ControlType DOORS_DISPLAY in C:\Program Files (x86)\Microsoft Games\Train Simulator\trains\trainset\METRA_401\CABVIEW\MP36.c vf:line 209

                          Have you tried running a default trainset / consist on a default route? When something goes cattywampus with an addon, first thing to check is if it does it with default built in stuff on one of the six default routes. If it does, then you look to see what's wrong with the main program or your installation, if default works okay then you start looking at the addons.
                          sigpic

                          Comment

                          • mestevet
                            2000 Post Veteran
                            • Feb 2007
                            • 2225
                            • Chadds Ford, PA

                            #14
                            Since starting to run ORv0.7, I've noticed that a lot of "Warning" and "Information" statements come up in the log regarding .CVF and .SMS files, like that "MP36.cvf" item. But none seem to stop the simulation from loading (although I've noticed a number of things that don't work the same way they do in MSTS - I'm sure many of these things are either syntax errors in the original, or perhaps just a factor of OR being a work in progress and so some things aren't implemented yet)

                            For instance, here's a statement I get when I run my Silverliners, but the simulation still loads and the cars still run (albeit with a number of things "different" from MSTS):
                            Warning: Unknown ControlStyle PRESSED in C:\Program Files\Microsoft Games\Train Simulator\trains\trainset\SilverlinerII\CABVIEW\Si lverlinerIIPRR.cvf:line 122

                            Steve

                            Comment

                            • sniper297
                              9500 Post Veteran
                              • Nov 1999
                              • 9545
                              • Union Grove, Wisconsin, USA.
                              • General

                              #15
                              Well, I've been trying to make a route that doesn't require MSTS, and in the process of stripping all the default KUJU track shapes out of the global tsection.dat I got my main MSTS folder to the point where it won't launch at all. Pointed the 0.7 Open Rails to that folder, it complains about a couple of things but does launch the game with no problems. Dunno where it's getting the track shapes from since I deleted all the default .s and .sd files from the \GLOBAL\Shapes folder too, but however it's working it is working here.
                              sigpic

                              Comment

                              Working...