Acceptable File Name Lengths

View previous topic View next topic Go down

Acceptable File Name Lengths

Post  dforrest on Thu 18 Feb 2016, 6:28 pm

Can someone please refresh my memory on what the MSTS acceptable length of file names (.wag, .eng etc.) is, and whiter this length in the main body of the name or includes the file extension.


David
avatar
dforrest

Posts : 398
Join date : 2013-01-21
Age : 71
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Acceptable File Name Lengths

Post  Markh5682 on Thu 18 Feb 2016, 6:32 pm

Hi David.

As far as I can remember it is 30 characters max, not sure if that includes the file extension or not. (probably not) best to keep filenames as short and simple as possible.

Mark.


Mark
avatar
Markh5682

Posts : 2544
Join date : 2013-01-21
Age : 62
Location : Lancashire

http://www.youtube.com/user/markh5682

Back to top Go down

Re: Acceptable File Name Lengths

Post  rufuskins on Thu 18 Feb 2016, 6:54 pm

I can confirm that the maximum length of a file name is 30 characters but does not include any extension. I should also point out that 30 characters is the maximum length of the name within an ENGine file; e.g.

EngineVariables( 720 800 1100 155 0.7 14000 5500 300 1 1 )
Sound ( "..\\..\\common.sound\\2cyl_generic\\2c-100a-cab01.sms" )
Name ( "lnwr_prince_of_wales" )
Description (


This is an extract from an ENGine file and the highlighted name between the inverted commas must not exceed 30!


ALEC - Supporter of MSTS and TSSH!

rufuskins

Posts : 3354
Join date : 2013-01-17
Age : 68
Location : Milnrow, Lancashire

Back to top Go down

Re: Acceptable File Name Lengths

Post  dforrest on Thu 18 Feb 2016, 7:31 pm

Thanks. Well Conbulder is not calculating this correctly.

For example:

[WAGON FILE Name too long, SYNTAX ERROR]
The wagon file YCV_Turbot_ConcreteSleepers.wag is too long, limit is 30 characters.
D:\MSTSmini\NSR Lines\Train Simulator\TRAINS\TRAINSET\NS_BR_YCV_Turbot
(CONSIST NS_#_Ivatt4MT eng train.con)This is an MSTS limitation, not a Windows limitation.


David
avatar
dforrest

Posts : 398
Join date : 2013-01-21
Age : 71
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Acceptable File Name Lengths

Post  dforrest on Thu 18 Feb 2016, 7:38 pm

Charles Stagg agrees that there is an error in Conbuilder:

ConBuilder still uses 30 characters excluding the extension for the test preformed when testing ENG files or WAG files. But EngMod discovered and I confirmed ( viewtopic.php?f=1&t=347 ) that when testing Consist files ConBuilder incorrectly includes the extension in the character count. Joe has been notified of this bug and will be correcting it. My personal opinion is that this test should be removed from the Consist tests as it is redundant. It will be Joe's decision as to exactly how he will fix this. But for the time being just ignore the "Too Long File Name" errors when testing Consists.

FYI the problem is that MSTS allows for 30 characters to store the name of an ENG or WAG file. So when one has an engine with the name of This_is_a_very_long_engine_Name_of_30+_Characters.eng and another named This_is_a_very_long_engine_Name_of_28+_Characters.eng both filenames are truncated to "This_is_a_very_long_engine_Nam" and thus become duplicate names and MSTS only creates one engine in its working (PC memory not hard disk) database instead of two engines. Actually it is the Engine line and Wagon line in ENG files that MSTS reads/uses not the filename.


David
avatar
dforrest

Posts : 398
Join date : 2013-01-21
Age : 71
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Acceptable File Name Lengths

Post  Bob Latimer on Thu 18 Feb 2016, 7:42 pm

Had this problem with what I thought was the latest version of Conbuilder a couple of days ago. It was telling me a filename of length 27 was over the 30 limit.

I posted on the Conbuilder forums and was advised to download and install the latest update file (CBupDate589B.ZIP). That fixed it.

Bob.

Bob Latimer

Posts : 139
Join date : 2013-01-18
Age : 68
Location : Auckland, New Zealand

Back to top Go down

Re: Acceptable File Name Lengths

Post  dforrest on Thu 18 Feb 2016, 7:50 pm

Bob Latimer wrote:Had this problem with what I thought was the latest version of Conbuilder a couple of days ago.  It was telling me a filename of length 27 was over the 30 limit.

I posted on the Conbuilder forums and was advised to download and install the latest update file (CBupDate589B.ZIP).  That fixed it.

Bob.

Bob, I have what by its version number is the latest version of Conbuilder and it still has the problem.

[WAGON FILE Name too long, SYNTAX ERROR]
The wagon file YCV_Turbot_ConcreteSleepers.wag is too long, limit is 30 characters.
D:\MSTSmini\NSR Lines\Train Simulator\TRAINS\TRAINSET\NS_BR_YCV_Turbot
(CONSIST NS_#_Ivatt4MT eng train.con)This is an MSTS limitation, not a Windows limitation.

Where do I find CBupDate589B.ZIP?


David
avatar
dforrest

Posts : 398
Join date : 2013-01-21
Age : 71
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Acceptable File Name Lengths

Post  Bob Latimer on Thu 18 Feb 2016, 8:11 pm

Go to the Conbuilder forums, "Announcements", "Current Version 2/5/2016" and then choose "Update version".

Bob Latimer

Posts : 139
Join date : 2013-01-18
Age : 68
Location : Auckland, New Zealand

Back to top Go down

Re: Acceptable File Name Lengths

Post  dforrest on Thu 18 Feb 2016, 8:32 pm

Bob Latimer wrote:Go to the Conbuilder forums, "Announcements", "Current Version 2/5/2016" and then choose "Update version".

Bob, that's what I have and it does not correct my problem.


David
avatar
dforrest

Posts : 398
Join date : 2013-01-21
Age : 71
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Acceptable File Name Lengths

Post  Bob Latimer on Thu 18 Feb 2016, 8:40 pm

Did you download and install a fresh copy?

Bob Latimer

Posts : 139
Join date : 2013-01-18
Age : 68
Location : Auckland, New Zealand

Back to top Go down

Re: Acceptable File Name Lengths

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum