Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: OR won't run the KMJ route here in the FL

  1. #1
    Join Date
    Oct 2006
    Location
    Lancaster, Pennsylvania
    Posts
    2,201

    Default OR won't run the KMJ route here in the FL

    Throws an error upon trying to load, log file error as follows:

    Loading TRK TDB SIGCFG

    Warning: Skipped extra SignalAspect in D:\Program Files\Microsoft Games\Train Simulator\ROUTES\KMJ-route-v3\sigcfg.dat:line 1160

    DAT ACT RDB CARSPAWN SIGSCR
    W

    Warning: System.IO.FileLoadException: D:\Program Files\Microsoft Games\Train Simulator\ROUTES\KMJ-route-v3\WORLD\w-006108+015067.w ---> System.ArgumentOutOfRangeException: Non-negative number required.
    Parameter name: count
    at System.IO.BinaryReader.ReadBytes(Int32 count)
    at MSTS.BinaryBlockReader.Skip()
    at MSTS.Tr_Worldfile..ctor(SBR block, String filename, List`1 reqToken)
    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.TraceWarning(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 MSTS.Tr_Worldfile..ctor(SBR block, String filename, List`1 reqToken)
    at MSTS.WFile..ctor(String filename, List`1 reqTokens)
    at ORTS.Signals.BuildSignalWorld(Simulator simulator, SIGCFGFile sigcfg)
    at ORTS.Signals..ctor(Simulator simulator, SIGCFGFile sigcfg)
    at ORTS.Simulator.Start()
    at ORTS.Program.Start(UserSettings settings, String[] args)
    at ORTS.Program.<>c__DisplayClass6.<Main>b__3()
    at ORTS.Program.Main(String[] args)


    Error in D:\Program Files\Microsoft Games\Train Simulator\ROUTES\KMJ-route-v3\WORLD\w-006108+015067.w

    Extra tokens found at end of block 300
    Error in D:\Program Files\Microsoft Games\Train Simulator\ROUTES\KMJ-route-v3\WORLD\w-006108+015067.w

    Extra tokens found at end of block Tr_Worldfile
    Error: System.ArgumentOutOfRangeException: Non-negative number required.
    Parameter name: count
    at System.IO.BinaryReader.ReadBytes(Int32 count)
    at MSTS.BinaryBlockReader.Skip()
    at MSTS.BinaryBlockReader.VerifyEndOfBlock()
    at MSTS.SBR.Dispose()
    at MSTS.Tr_Worldfile..ctor(SBR block, String filename, List`1 reqToken)
    at MSTS.WFile..ctor(String filename, List`1 reqTokens)
    at ORTS.Signals.BuildSignalWorld(Simulator simulator, SIGCFGFile sigcfg)
    at ORTS.Signals..ctor(Simulator simulator, SIGCFGFile sigcfg)
    at ORTS.Simulator.Start()
    at ORTS.Program.Start(UserSettings settings, String[] args)
    at ORTS.Program.<>c__DisplayClass6.<Main>b__3()
    at ORTS.Program.Main(String[] args)




    How is this fixable?

  2. #2

    Default

    Can you zip up the world file it is choking on?

    I'd rather not download 152Mb just to see what's probably wrong with one file.

  3. #3
    Join Date
    Oct 2006
    Location
    Lancaster, Pennsylvania
    Posts
    2,201

    Default

    No prob, here ya are.
    Attached Files Attached Files

  4. #4

    Default

    Somewhat simple fix... there's an imbalance between the VdbId count that's declared, and what's actually in the file...

    It says there is ( 1 ), but I don't see where one exists...

    The complication is that your .W files are compressed. If you know how to uncompress the .W file, do so, and remove the VdbId line.

  5. #5
    Join Date
    Oct 2006
    Location
    Lancaster, Pennsylvania
    Posts
    2,201

    Default

    I can't get the zipper util or even Routeriter to uncompress the dang file... Guess I'm S-O-L...

  6. #6

    Default

    You can invoke FFEditC_Unicode.exe directly as I did...

    1) create a subdirectory in your WORLD file called OUT
    2) replacing my MSTS path with your particular installation and the path where your FFEdit directory are located, do the following command:

    Code:
    e:\MSTS\Utils\FFEdit\ffeditc_unicode.exe "w-006108+015067.w" /o:OUT\.w
    You may need to run that for multiple files with the same problem continues to manifest itself.

  7. #7
    Join Date
    Oct 2006
    Location
    Lancaster, Pennsylvania
    Posts
    2,201

    Default

    I'll try that, thanks. Also sorry it took so long to get back to ya Eolesen, stupid forum never showed the 'New posts!" color for the OR forum. Been having issues like that lately. Ah well.

  8. #8
    Join Date
    Oct 2006
    Location
    Lancaster, Pennsylvania
    Posts
    2,201

    Default

    I can't seem to get it to work.. Can you give a better step by step on that? It says the command isn't valid in the DOS window, and if I try entering the line into my Target location in the right click+properties, it just errors there too.

    Edit: I went the logn way around and used the tempdp.s and renamed the format and stuff to that, then changed the format and stuff back. However, then it just reads:

    [email protected]@@@@@@@@@JINX0w0t______

    Tr_Worldfile (
    VDbIdCount ( 1 )
    )


    So basically...we got a useless world file, but if I am not mistaken, if I remove the VDbIdCount line, then, the whole route still won't work..right?
    Last edited by Komachi; 05-30-2013 at 02:39 PM.

  9. #9

    Default

    The VdbId line in an empty W file is *why* the route won't work in ORTS. It's an illogical situation... there shouldn't be a count of (1) if there isn't a corresponding Vdb somewhere in the file...

    Just delete the line. Having a file with just "Tr_Worldfile ( )" in it is perfectly acceptable. You could also probably get away with deleting the file entirely, since there's nothing there...

    Also, unless you're planning to redistribute, leaving the .W files in their uncompressed format is perfectly acceptable.
    Last edited by eolesen; 05-30-2013 at 02:48 PM.

  10. #10
    Join Date
    Oct 2006
    Location
    Lancaster, Pennsylvania
    Posts
    2,201

    Default

    Getting rid of the first two world files (Which had the same problem in both of them) fixed it. THANKS Eolesen!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •