Acceptable File Name Lengths
+2
Markh5682
dforrest
6 posters
Page 1 of 1
Acceptable File Name Lengths
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
dforrest- Posts : 572
Join date : 2013-01-21
Age : 79
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)
Re: Acceptable File Name Lengths
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.
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
Re: Acceptable File Name Lengths
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!
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 : 3728
Join date : 2013-01-17
Age : 76
Location : Milnrow, Lancashire
Re: Acceptable File Name Lengths
Thanks. Well Conbulder is not calculating this correctly.
For example:
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
dforrest- Posts : 572
Join date : 2013-01-21
Age : 79
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)
Re: Acceptable File Name Lengths
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
dforrest- Posts : 572
Join date : 2013-01-21
Age : 79
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)
Re: Acceptable File Name Lengths
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.
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 : 215
Join date : 2013-01-18
Age : 75
Location : Auckland, New Zealand
Re: Acceptable File Name Lengths
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
dforrest- Posts : 572
Join date : 2013-01-21
Age : 79
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)
Re: Acceptable File Name Lengths
Go to the Conbuilder forums, "Announcements", "Current Version 2/5/2016" and then choose "Update version".
Bob Latimer- Posts : 215
Join date : 2013-01-18
Age : 75
Location : Auckland, New Zealand
Re: Acceptable File Name Lengths
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
dforrest- Posts : 572
Join date : 2013-01-21
Age : 79
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)
Re: Acceptable File Name Lengths
Did you download and install a fresh copy?
Bob Latimer- Posts : 215
Join date : 2013-01-18
Age : 75
Location : Auckland, New Zealand
Re: Acceptable File Name Lengths
It is understood that the character limit for *.eng and .*wag files is 30 characters, excluding extension.
Is there a similar limit for other files (*. con, *.ace, *.s and .*sd in particular)?
Is there a similar limit for other files (*. con, *.ace, *.s and .*sd in particular)?
David
dforrest- Posts : 572
Join date : 2013-01-21
Age : 79
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)
Re: Acceptable File Name Lengths
I have assumed that a CONSIST file name should not exceed 30 characters as that name is used in the TrainCfg line of the CON file, although I don't know whether this is a fact.
As I tend to use the WAG file name for the S and SD files I don't know whether this a problem, similarly with ACE files? Where possible I try to ensure that the 30 character limitation is applied to ALL file names.
As I tend to use the WAG file name for the S and SD files I don't know whether this a problem, similarly with ACE files? Where possible I try to ensure that the 30 character limitation is applied to ALL file names.
ALEC - Supporter of MSTS and TSSH!
rufuskins- Posts : 3728
Join date : 2013-01-17
Age : 76
Location : Milnrow, Lancashire
Re: Acceptable File Name Lengths
I have carried out tests on a wagon using the file name
_Five__Ten___15_Twent___25___30___35_7890
This is 40 characters.
I kept the .wag file at 30 char but I renamed .Ace, .S and .SD
It worked!!!
But when I tried writing an activity I found that the editor would only accept 38 characters in the activity display name input box.
.srv .pat .trf all accepted the 40 char name.
I conclude that there is only a limit of 30 characters for the .wag and .eng files and their folders. This seems be set by the space allowed in the consist file.
However using longer names makes it difficult to read them in the limited space on the displays.
This also applies to independent editors which may apply their own limits.
_Five__Ten___15_Twent___25___30___35_7890
This is 40 characters.
I kept the .wag file at 30 char but I renamed .Ace, .S and .SD
It worked!!!
But when I tried writing an activity I found that the editor would only accept 38 characters in the activity display name input box.
.srv .pat .trf all accepted the 40 char name.
I conclude that there is only a limit of 30 characters for the .wag and .eng files and their folders. This seems be set by the space allowed in the consist file.
However using longer names makes it difficult to read them in the limited space on the displays.
This also applies to independent editors which may apply their own limits.
ianmacmillan- Posts : 180
Join date : 2013-01-18
Re: Acceptable File Name Lengths
I found that over-long folder names for vehicles or groups of vehicles in the Trainset folder caused trouble. I am not sure how many characters are allowed, but I have some names which are 28 characterise long, which are all right. I did have to shorten one some time ago, so I suspect the 30 character rule applies here also.
Roderic
Roderic
RIGFindlay- Posts : 430
Join date : 2014-02-06
Age : 82
Location : Bridport
Similar topics
» Devons Road Quad Pack
» lost file
» Shape File Manager Issue
» Error Reading Train Database File
» W File Alignment Query
» lost file
» Shape File Manager Issue
» Error Reading Train Database File
» W File Alignment Query
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum