NOTE: I would try just utilizing BUG Mod in the CustomAssets directory, and Revolutions as a MOD, and see if that works first.
This is what I currently do with Varietas Delecat and a few other things.
Thus BUG is not loaded as a mod, it is utilzed as a direct replacement of BTS's Assets, and is functional (thus far) no matter what other MODS or gameTypes that I play.
If that doesn't work...then
The first thing you need to do, get clean copies from the program files directory, of all the files included in BUG Mod. Duplicate the directory structure into a new RootFolder and place the clean 3.17 files there.
Then you will make another RootDirectory, and add clean files for all the things that Revolutions modifies.
Utilize a file comparison program, GNU UnxUtils includes Diff and Diff3, there are other Windows Specific ones - I'm sure others have mentioned in other threads.
Personally I use the internal FileCompare in TotalCommander.
That will show you where the basic insertion points are for BUG changes are.
As well totalCommander includes a Directory Synchronization tool and a directory structure compare. You will need to use something of that sort (else you will have to eyeball it manually).
You will compare the files of the two new folders you created (not their contents), thats where totalCommanders subDir View & Directory Compare, or Synchronization tool comes in handy. Since you will need a list of files that the mods have in common (ones that they both modify).
If no files are in common (which is possible, but not likely), then its just a matter of copy files together/merge into one directory structure - But be prepared for there to be files in common: Now do file comparisons of the BUG files and the clean 3.17 version and Revolutions and the clean 3.17 version. This is where the actual work is.
And the final step is where people fail and quit, as they are unable to recognize the code insertion points and the order things should be placed in and/or code that may need slight tweaks to combine properly without exceptions.