Train Sim Safe House
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Acceptable File Name Lengths

+2
Markh5682
dforrest
6 posters

Go down

Acceptable File Name Lengths Empty Acceptable File Name Lengths

Post  dforrest 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
dforrest
dforrest

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

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  Markh5682 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
Markh5682
Markh5682

Posts : 2657
Join date : 2013-01-21
Age : 69
Location : Lancashire

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

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  rufuskins 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 : 3725
Join date : 2013-01-17
Age : 75
Location : Milnrow, Lancashire

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  dforrest 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
dforrest
dforrest

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

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  dforrest 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
dforrest
dforrest

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

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  Bob Latimer 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 : 215
Join date : 2013-01-18
Age : 75
Location : Auckland, New Zealand

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  dforrest 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
dforrest
dforrest

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

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  Bob Latimer 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 : 215
Join date : 2013-01-18
Age : 75
Location : Auckland, New Zealand

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  dforrest 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
dforrest
dforrest

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

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

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

Did you download and install a fresh copy?

Bob Latimer

Posts : 215
Join date : 2013-01-18
Age : 75
Location : Auckland, New Zealand

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  dforrest Mon 06 Nov 2017, 12:20 pm

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)?


David
dforrest
dforrest

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

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  rufuskins Mon 06 Nov 2017, 4:56 pm

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.


ALEC - Supporter of MSTS and TSSH!

rufuskins

Posts : 3725
Join date : 2013-01-17
Age : 75
Location : Milnrow, Lancashire

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  ianmacmillan Tue 07 Nov 2017, 1:09 pm

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.

ianmacmillan

Posts : 180
Join date : 2013-01-18

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  RIGFindlay Tue 07 Nov 2017, 4:57 pm

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

RIGFindlay

Posts : 420
Join date : 2014-02-06
Age : 82
Location : Bridport

Back to top Go down

Acceptable File Name Lengths Empty Re: Acceptable File Name Lengths

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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