Elvas Tower: Load Error tests ok - Elvas Tower

Jump to content

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

Load Error tests ok Version 3220 Rate Topic: -----

#1 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,655
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 18 August 2015 - 04:54 PM

I've been editing an .eng file and then testing -- many times over -- and am now seeing a Load Error message in the main menu, along with <missing unknown> in all of the fields positioned right below Activity. Fair enough... but when I go over to the testing window and specify that activity for testing it loads properly and the test summary says everything is fine. I have not edited any of the activity or consist files.

I've closed and restarted the main window and yet the same odd conditions apply.

Is there anything I can do to clear this anomaly on my own?

#2 User is offline   ATW 

  • Engineer
  • Group: Posts: Contributing Member
  • Posts: 679
  • Joined: 07-January 13
  • Gender:Male
  • Simulator:MSTS Open Rails
  • Country:

Posted 18 August 2015 - 09:47 PM

Have you added new ORTS parameters where it can be a character related thing such as extra brackets "( or )" at the end?

#3 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,655
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 19 August 2015 - 08:54 AM

View PostATW, on 18 August 2015 - 09:47 PM, said:

Have you added new ORTS parameters where it can be a character related thing such as extra brackets "( or )" at the end?


No, but the edits have been extensive and such an error did occur -- and was corrected. The problem is the Test function has no problem running the activity but the game itself won't.

I've also found the same problem in a different directory tree, different route, different locomotive. In the later case it was a type... an include referenced a filename using a 1 instead of a 4. The typo was corrected, the file is there, but the game continues to report a problem as cannot locate a filename with a 1 in it.

#4 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,655
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 22 August 2015 - 05:55 PM

The error message: Could not find file 'E:\Bin\Open Rails - US West 1930-1952\trains\trainset\Common_Model_StdsALCO_S2_Stds_Allen_Norton_ModelS2_Locomotive_Specs.inc'.

The .eng file: Include ( "..\\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Locomotive_Specs.inc" )

I don't see anything wrong as the file exists as named and located. Is the full path longer than OR expects?

#5 User is offline   cr-stagg 

  • Foreman Of Engines
  • Group: Posts: Contributing Member
  • Posts: 915
  • Joined: 16-May 05
  • Gender:Male
  • Simulator:OR
  • Country:

Posted 22 August 2015 - 06:23 PM

View PostGenma Saotome, on 22 August 2015 - 05:55 PM, said:

The error message: Could not find file 'E:\Bin\Open Rails - US West 1930-1952\trains\trainset\Common_Model_StdsALCO_S2_Stds_Allen_Norton_ModelS2_Locomotive_Specs.inc'.

The .eng file: Include ( "..\\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Locomotive_Specs.inc" )

I don't see anything wrong as the file exists as named and located. Is the full path longer than OR expects?


MSTS chokes on more than 30 characters. ALCO_S2_Stds_Allen_Norton_Model is 31 characters.

Actually MSTS truncates so ALCO_S2_Stds_Allen_Norton_Model becomes ALCO_S2_Stds_Allen_Norton_Mode in MSTS.

#6 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,655
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 22 August 2015 - 08:20 PM

View Postcr-stagg, on 22 August 2015 - 06:23 PM, said:

MSTS chokes on more than 30 characters. ALCO_S2_Stds_Allen_Norton_Model is 31 characters.


Ok. But this is for Open Rails only. Has it got a similar limit? Also, the problem seems to be with dropping the \ between directories.

#7 User is offline   sim-al2 

  • Hostler
  • Group: Posts: Active Member
  • Posts: 80
  • Joined: 23-February 12
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 22 August 2015 - 08:27 PM

I see a problem:

"..\\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Locomotive_Specs.inc"


Notice how there's two backslashes at the beginning but only one for all the others? I just fixed a sound config today that I made a similar error in some years ago. Your line should read either:

"..\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Locomotive_Specs.inc"


or

"..\\Common_Model_Stds\\ALCO_S2_Stds_Allen_Norton_Model\\S2_Locomotive_Specs.inc"


#8 User is offline   James Ross 

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

Posted 23 August 2015 - 06:02 AM

View PostGenma Saotome, on 22 August 2015 - 05:55 PM, said:

The .eng file: Include ( "..\\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Locomotive_Specs.inc" )

You've only doubled-up one of the three backslashes; if you double up the other two, it should work.

#9 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,655
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 23 August 2015 - 09:47 AM

View PostJames Ross, on 23 August 2015 - 06:02 AM, said:

You've only doubled-up one of the three backslashes; if you double up the other two, it should work.


I tried that and nothing changed. I also tried single \ everywhere as well as removing the leading and trailing quotes. In all cases the constructed path as shown in the error data had the leading pair of .. characters present and after that no \ anywhere.

I expect it is a simple error to correct... I'm just not seeing what it is. Oh, wait... this is the first time I'm using an include statement that describes two directories within the statement. Could that be what's causing this?

Do you want a copy of the files?

#10 User is offline   James Ross 

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

Posted 23 August 2015 - 02:07 PM

View PostGenma Saotome, on 23 August 2015 - 09:47 AM, said:

I tried that and nothing changed. I also tried single \ everywhere as well as removing the leading and trailing quotes. In all cases the constructed path as shown in the error data had the leading pair of .. characters present and after that no \ anywhere.

I expect it is a simple error to correct... I'm just not seeing what it is. Oh, wait... this is the first time I'm using an include statement that describes two directories within the statement. Could that be what's causing this?

Do you want a copy of the files?

It should definitely be double backslashes, and the error exactly matches up to the version you quoted. Certain the file you're editing is the one OR is reading? Nothing else matches up with the error given and the alternate forms you mention should not be producing the same thing. It's very unlikely to be anything to do with the number of directories in the include (if it is, it's probably a general parsing problem and not specific to include).

#11 User is offline   copperpen 

  • Executive Vice President
  • Group: Posts: Elite Member
  • Posts: 3,192
  • Joined: 08-August 05
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 24 August 2015 - 11:01 AM

View PostGenma Saotome, on 22 August 2015 - 05:55 PM, said:

The error message: Could not find file 'E:\Bin\Open Rails - US West 1930-1952\trains\trainset\Common_Model_StdsALCO_S2_Stds_Allen_Norton_ModelS2_Locomotive_Specs.inc'.

The .eng file: Include ( "..\\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Locomotive_Specs.inc" )

I don't see anything wrong as the file exists as named and located. Is the full path longer than OR expects?
The error message has Common_Model_StdsALCO_S2_Stds_Allen_Norton_ModelS2_Locomotive_Specs.inc' which has no breaks as are shown in the actual eng file data line.

I would expect an error message to include the slash marks as specified by the path.

#12 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,655
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 24 August 2015 - 11:55 AM

View Postcopperpen, on 24 August 2015 - 11:01 AM, said:

The error message has Common_Model_StdsALCO_S2_Stds_Allen_Norton_ModelS2_Locomotive_Specs.inc' which has no breaks as are shown in the actual eng file data line.

I would expect an error message to include the slash marks as specified by the path.


Exactly. Their absence suggests to me a parsing error; perhaps the code is written to accept one and only one \ character as the means to avoid problems when given "..\\". That would be fine in all situations where the relative directory does not contain any sub directories but would fail whenever there was.

FWIW the error occurs w/o regard to how many \ characters are present -- one in all positions, two in all positions, two at the start followed by one further down the path.

Something else I've noticed is the include statements in the Wagon() section appear to work as expected (no error messages are thrown). It is only those in the Engine() section that fail.


Here is the full .eng:
SIMISA@@@@@@@@@@JINX0D0t______

Wagon ( S-2_SP_1300db
	Type ( Engine )

	WagonShape ( S-2_SP_1300db.s )

	Include ( "..\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Mesh.inc"  )
	Include ( "..\Common_Fleet_Stds\Std_Late_Steam_Era_Diesel_Switcher_Coupler.inc"  )
	Include ( "..\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Weight.inc"  )
	Include ( "..\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Locomotive_Brake.inc"  )
	Include ( "..\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Lights.inc"  )

	AntiSlip ()

	Sound ( ALS4eng.sms )
)

Engine ( S-2_SP_1300db
	Effects (
		DieselSpecialEffects
		(
			Exhaust1
			(
				-0.33 4.58 -0.89
				0 1 0
				.1
			)
		)
	)

	Wagon ( S-2_SP_1300db )

 	Include ( "..\\Common_Model_Stds\\ALCO_S2_Stds_Allen_Norton_Model\\S2_Locomotive_Specs.inc"  )
 	Include ( "..\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Locomotive_Controllers.inc"  )
	Include ( "..\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Monitors.inc"  )
	Include ( "..\Common_Model_Stds\ALCO_S2_Stds_Allen_Norton_Model\S2_Air_Compressor.inc"  )

	CabView ( GenSx-rear.cvf )
	Headout ( 1.6 3.4 -4.9 )

	DieselSmokeEffectInitialMagnitude( 1 )
	DieselSmokeEffectMaxMagnitude( 2 )
	DieselSmokeEffectInitialSmokeRate( 1 )
	DieselSmokeEffectMaxSmokeRate( 4 )

 
	BrakesEngineBrakeType( "Air_single_pipe"  )
	BrakesTrainBrakeType( "Air_single_pipe" )
	BrakesEngineControllers( "Independent, Train" )

	Brake_Engine ( 0 1 0.05 0
		NumNotches ( 2
 			Notch ( 0      0 EngineBrakesControllerReleaseStart )  
			Notch (0.1     1 EngineBrakesControllerApplyStart )
			)
		)
		Brake_Train ( 0 1 0.0125 0.4 
			NumNotches ( 5
				Notch ( 0    0 TrainBrakesControllerReleaseStart )
				Notch ( 0.3  1 TrainBrakesControllerGraduatedSelfLapLimitedStart )
				Notch ( 0.85 0 TrainBrakesControllerSuppressionStart )
				Notch ( 0.9  0 TrainBrakesControllerContinuousServiceStart )
				Notch ( 0.95 0 TrainBrakesControllerEmergencyStart )
			)
		)
	
	comment( fuel_level )
	EngineVariables ( 600 )
	Sound ( ALS4cab.sms )
	Name ( "SP #1300 S-2 basic black" )
)


I'll be moving the brake parameters into a brakestand include file once this problem is resolved which should leave this .eng at 51 or 52 lines.

#13 User is offline   James Ross 

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

Posted 26 August 2015 - 09:28 AM

View PostGenma Saotome, on 24 August 2015 - 11:55 AM, said:

FWIW the error occurs w/o regard to how many \ characters are present -- one in all positions, two in all positions, two at the start followed by one further down the path.

Everything works fine for me in X3227 if I use double backslashes. If I use any single backslashes, it fails to load that particular item. I really don't know how your having the problems you describe, given my expectations and, now, experience. :(

This is the file I have which works perfectly in my tests: Attached File  test1.eng (2.85K)
Number of downloads: 264

The only changes are:

  • Every include uses only double backslashes
  • I added a "Type" section in "Engine" to satisfy OR's code without having to write any of the include files (mine are all 0 bytes)

And that loads and the game runs.

View PostGenma Saotome, on 24 August 2015 - 11:55 AM, said:

Something else I've noticed is the include statements in the Wagon() section appear to work as expected (no error messages are thrown). It is only those in the Engine() section that fail.

This is because the loading code parses only the "Engine" section initially, to figure out if the file is a wagon or engine and what type of engine it is. After that succeeds, it parses the whole file. So if it chokes on an include in "Engine", it'll never check the "Wagon" includes. I've tested with my working engine file and errors in the "Wagon" includes do get caught, just later than you would imagine.

#14 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,655
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 26 August 2015 - 11:23 AM

Ok... changed all from single to double, fired up OR and observed the main menu indicating something was still wrong.
Attached Image: le02.jpg

I went ahead anyway and hit start. The locomotive did load and the game was ready to run. The only info in the log was "Found a suffix 'in2' which could not be parsed as a Distance unit" which I will track down and fix.

Let me know if you think the discrepancy between the menu and what actually happened is worthy of reporting as a bug.

:sign_thanks: for your help with the \ character.

#15 User is offline   James Ross 

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

Posted 26 August 2015 - 11:32 AM

View PostGenma Saotome, on 26 August 2015 - 11:23 AM, said:

Let me know if you think the discrepancy between the menu and what actually happened is worthy of reporting as a bug.

That is interesting, although there are certainly differences in the precise nature of menu vs game loading (mostly down to the key point that the menu needs very little info compared to the game). I would file a bug anyway, especially because I get a load error too, so it should be easy for anyone to track down now.

  • 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