Results 1 to 6 of 6

Thread: Problem with NEC 4.0: solved after 17 years!

  1. #1
    Join Date
    Oct 2008
    Location
    Wellesley Hills, Massachusetts, USA
    Posts
    788

    Default Problem with NEC 4.0: solved after 17 years!

    Way back in June of 2003 this thread appeared asking for help concerning the CSX Setouts and Pickups activity that came supplied with the NEC v.4 route. Specifically, the OP reported that on his installation MSTS couldn't find an SMS file after he dropped off the tankers at the Mobil Oil siding - the last drop-off before heading into Bayview yard. Since the route used nothing but default stock he was surprised that the .sms file couldn't be found.

    Unfortunately the OP used no punctuation in his post and the thread went off the rails criticizing his grammar ... or lack of same. So the error got lost in the ensuing foaming at the mouth....

    I'm not certain what caused his .sms problem because I've never used the default stock, but there is indeed a problem with the supplied activity and I'm surprised nobody else has noticed this in the past 17 years. That is, you will never get credit for dropping off those tank cars at the Mobil Oil siding because the Activation Level of the activity is bogus. This is what the offending area looks like in the CSXOPU.act file:

    EventCategoryAction (
    EventTypeDropOffWagonsAtLocation ( )
    ID ( 5 )
    Activation_Level ( -438829055 )
    Outcomes ( )
    TextToDisplayOnCompletionIfTriggered ( "Mobil Oil Setout Completed" )
    TextToDisplayOnCompletionIfNotTriggered ( "Failed Mobil Oil Setout" )
    Name ( "Mobil Oil Setout" )

    The Activation_Level should read simply "1" ... not "-438829055." This can be changed in Notepad or ConText or similar and you should end up with the Activation_Level line looking like this:

    Activation_Level ( 1 )

    Save the file and happily finish the activity with full credit.

    I've had NEC v.4 on my hard disk since I discovered trainsim.com back in 2008 (it's my all-time favorite route), but to verify this error I downloaded the route again this morning and confirmed that this bug is present in the current download available in the trainsim f/l.

    Cheers,

    Dave

  2. #2

    Exclamation NECv4 Activity Error

    Dave,

    I looked at my install AND my source files for the activity in question. Here's what I found:
    Code:
    		EventCategoryAction (
    				EventTypeDropOffWagonsAtLocation ( )
    				ID ( 5 )
    				Activation_Level ( 1 )
    				Outcomes ( )
    				TextToDisplayOnCompletionIfTriggered ( "Mobil Oil Setout Completed" )
    				TextToDisplayOnCompletionIfNotTriggered ( "Failed Mobil Oil Setout" )
    				Name ( "Mobil Oil Setout" )
    				Wagon_List (
    					UiD ( 2147483648 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483649 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483650 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483651 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483652 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483653 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483654 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483655 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483656 )
    					SidingItem ( 4294967295 )
    					UiD ( 2147483657 )
    					SidingItem ( 4294967295 )
    				)
    				SidingItem ( 3640 )
    			)
    The activity is correct in my source files AND my installed nec4 but is incorrect in the current download I just got from the file library. Wonder how that happened?
    I don't recall ever seeing this.

    regards,

    regards,
    ............Vince ..............
    ...... Author NECv4 .......
    .... LIRR BUILD PHOTOS ....
    .............LIRR VIDEO.............
    ...... Eschew Obsfucation ......

    On the The Statue of Liberty in New York Harbor there is a Tablet. On it is written:
    "Give me your tired, your poor, your huddled masses yearning to breathe free,
    the wretched refuse of your teeming shore, send these, the homeless, tempest-tossed to me,
    I lift my lamp beside the golden door!"

  3. #3
    Join Date
    Oct 2008
    Location
    Wellesley Hills, Massachusetts, USA
    Posts
    788

    Default

    Quote Originally Posted by Vince View Post
    Dave,

    The activity is correct in my source files AND my installed nec4 but is incorrect in the current download I just got from the file library. Wonder how that happened?
    I don't recall ever seeing this.

    regards,
    Hi Vince,

    Given that the number in question is so far off of what you'd ever find in that field, my best hunch is that a glitch happened when the file was packed into the executable and the compiling software copied a number from somewhere else and placed it in between those two parens. I've seen other pieces of software do this often enough - Route_Riter, for one - that it wouldn't surprise me.

    That said, changing "-438829055" into "1" has to be the easiest bug fix ever :-)

    Cheers,

    Dave

  4. #4
    Join Date
    May 2010
    Location
    Corunna ON
    Posts
    48

    Default

    For what it's worth..the error was in both my download and my installation. Thanks for the heads up!

    Regards

    Don

  5. #5

    Default

    Well done!

  6. #6
    Join Date
    Apr 2011
    Location
    New England
    Posts
    865

    Default

    That's great! Many thanks.


    MSTS-Roundhouse

    On hiatus and moving to a new host -- Probably in 2021
    (Because 2020 has turned out to be b0rked beyond belief...
    )

Posting Permissions

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