leezer3 wrote:Gimme

Any way to do this for already installed routes (Will just replacing the call xcopy with the fsutil replace all files with hardlinks?)
Any speed implications?
Thanks
Chris Lees
http://www.bvecornwall.tk
PLEASE note (everyone, not just Chris) that at the moment all of this is experimental - I don't know at present whether hardlinks would overwrite the actual files in existing routes, which is what you'd want. Or how RouteRiter would deal with them. Any changes to the batch files may produce unwanted and irreversible effects
so test on a duplicate MSTS install or route.
Just to clarify, there are two approaches being considered:
1) to alter shape files so that textures are called from a common folder. The problem with this is when changing to another season or to nighttime, when the new filepath written into the shape file gets appended to the path MSTS searches for the seasonal or night texture (see above). As Mike suggests, this is probably hardcoded into MSTS so is a bad idea for shapes with multi-textures (but OK for those that do not use extra texture variants - like Ian's "common.loads"??). These shapes will have the flag in the shape.sd file to indicate that MSTS must search in the seasonal or night subfolders for the correct texture.
2) more promising for those with a NTFS file system (recommended with WinXP, but not necessarily present on all XP machines) is to use Greg's suggestion and setup "hardlinks" which is a filesystem feature that points to the real location of a file, but uses almost no diskspace (like shortcuts or *.lnk files). Windows shows these links with the same icon and detail as the real file (not very clever!! it would be better to have a different icon to show these were hardlinks). From my reading, the files must be on the same, fixed, physical drive - so should be OK in another volume (eg. drive D: or E:). I didn't notice a performance hit in my brief experiment.
Using the command line to create hardlinks may put people off, unless the utility writers incorporate it into a batch file for use during route install. I'm looking into an opensource hardlink utility for the Windows shell that should create them more easily.