|
Route-Riter -
Setting up Common Shapes/Textures for MSTS
(ONLY for XP
users with NTFS file system and RR v6.2.59 or
higher)
The
'Holy-Grail' of MSTS users has always been to
have a 'Global Folder' for Shapes and
Textures. Up to now, this has always been
considered virtually impossible to achieve.
However,
following some work done by 'Mdanie' on
uktrainsim.com and suggestions from other
users, it has been discovered that, at least
for users who use Windows XP with the NTFS
file system, it is possible.
XP includes
a command 'Fsutil Hardlink Create file-A
file-B' - this in effect places a
directory link for file-A pointing to the
position of file-B on the hard drive. Deleting
either A or B has no effect on the other; the
file is only removed from the drive when both
A and B are deleted. These files appear in
Windows Explorer with exactly the same entries
as before, so folder size, etc., remains the
same. The difference is in the free space on
the drive.
In my case,
I had two versions of the London South-East
route on my E: drive - one in my main MSTS
installation, one as a mini-route. The saving
by using a common folder was 740Mb for a
single route.
In RR
v6.2.63, I have implemented this to some
extent using a new tab 'Link Shapes/Textures'.
The procedure is as follows:-
1. Set up a
Common Folder (use the button 'Set up Common
Files' under Misc Options) - You may if you
wish then click the 'Copy Default Files to
Common' so that all the default files are now
in the common folder. Note: The Common folder
MUST be on the same hard-drive as your MSTS
folder, usually in your Routes folder. The
hard-drive MUST run under XP with the NFTS
file system.
2. Select
the Common Folder from the Files menu (once
you do this once, it is saved for future use
and should not need to be selected again).
3. For any
route you wish to use this option with, you
should now copy the Shapes/Textures/Terrtex/Envfiles/Sound
folders into the Common Folder (use the 'Copy
Route Files to Common Folder' button).
4. Select
the Route as usual by clicking the Confirm
Route button .
5. Click the
'Link all Files to Common Files' button and
the hard links are set up.
6. Check
your hard-drive free space before/after.
Note: In
some cases, files in the Common Folder might
have the same name but be different to the one
used by a particular route. A crc check is
made, and if different, then the file is not
replaced by a hard link.
The above is
somewhat experimental, so I would suggest
experimenting only with routes which you have
backups for, in the early stages of the
development of this capability.
In v6.2.63,
I have added two further buttons:-
1. 'List Hard Links in Common Files' shows you
a list of all the files in the Common files
folder and how many links each file has. A
reading of '1' link means that the file is not
linked to any route, so it may be removed to
reduce space. There is a button on this screen
which will delete all unlinked files.
2. 'List
Linked Files in Selected Route' shows which
files in the route are linked (once again,
those showing 1 link are unlinked - the single
link is the link from the file name to the
file on the hard-drive). |