• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

Length of file names

Started by evarburg, April 06, 2016, 06:56:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

evarburg

Question to the wise(r) : some files have a helluvah long name (like, for instance, from my beloved Tag One : Plugins\RN Productions\Tag_one\JENX Re-lotted Vol1\Kleines Fachwerkhaus-0x6534284a-0x3227ba12-0xd416344f.SC4Desc.

Ourgh.

Sometimes the game chokes on those ("filename too long... change or shorten..." etc.) But I never dare and that causes some problems (sometimes a file is not copied/transferred and... oops.)

How safe is it to shorten those names and how to do it ? -- in the exemple above, could I cut everything but Kleines Fachwerkhaus-0x6534284a-0x3227ba12-0xd416344f.SC4Desc and would the program still recognize and execute the file ?

mgb204

Windows has a limit to the number of characters an entire file name and path can occupy.

The names of files for SC4 are completely unimportant to them working in the game, you could rename it anything you liked. However, the purpose of them is so you can identify files, too much change and you might find yourself stuck if problems arise.

In many cases the TGI (that's the numbers) is appended to the file name. Useful if you want to know the ID at a glance for modding, not so much otherwise. I'd start by removing that part. Afterwards, perhaps consider condensing the number of subfolders.

evarburg

Quote from: mgb204 on April 06, 2016, 08:14:09 PM
Windows has a limit to the number of characters an entire file name and path can occupy.

The names of files for SC4 are completely unimportant to them working in the game, you could rename it anything you liked. However, the purpose of them is so you can identify files, too much change and you might find yourself stuck if problems arise.

In many cases the TGI (that's the numbers) is appended to the file name. Useful if you want to know the ID at a glance for modding, not so much otherwise. I'd start by removing that part. Afterwards, perhaps consider condensing the number of subfolders.

Thanks, MGB ! Condensing number of subfolders : done and in the process of being done further.  Renaming : relief ! I can do that ! But I'll keep the TGIs, now that I am using Datanode more often !:-)

mgb204

Quote from: evarburg on April 07, 2016, 04:55:49 AM
But I'll keep the TGIs, now that I am using Datanode more often !:-)

Datanode doesn't read the TGI from the file name, it reads it from the data in the file itself. The only reason they would be useful, if you are making prop exemplars, MMPs or other things that referenced the TGIs, making the file names a handy reference point when working. Outside of that, I can't think of a single good reason to keep them for most users. This is just how SC4 files tend to be saved by default, hence you see it a lot.