|Screenie by: hepatic|
This code will syncronise an rfactor game directory between your player installation and a locally stored
server install. If you run a dedicated server on a different machine to which you play, this will clean
your HAT directory (most common reason for online mismatches after a mod update), copy all new files,
remove all no longer existant files (ie. crap mods you have ditched) and clean up your player's car setup
directories by removing any that are empty.
I run my dedi server on a seperate machine so my own performance isn't affected, while allowing friends to
control it while i'm not about (which you can't do when hosting ingame). As my directory is 15+GB, manually
copying all files everytime when only a small fraction have changed was pointless and took far too long. It
also didn't remove any mods that i'd ditched, so i made this simple script to do all that and tidy up a bit
for a fraction of the time.
If you have 2 installations of rFactor (say your PC and your son's) this will also copy the essential files between the 2 machines. It means you only have to install mods once, thus keeping your PCs the same without having to remember what you have and haven't installed.