Post by Mr.Curious on Dec 18, 2018 10:09:24 GMT 10
Temporarily enable LFS Loading Script
by Mr.Curious 2018
This script essentially allows us to revert back to using the .LFS version of our room udas file and room .pack file if we are using Raz0r's recently released Companion DLL which has the feature of re-ordering the loading priority of .LFS files.
UNDERSTANDING .LFS FILE LOADING PRIORITY
When RE4 was being created the developers created a file loading hierarchy that prioritized hte loading of .LFS files.
For more information of how the .LFS extension works please see my tutorial on this HERE
Normally .LFS files would load first but if we are using using Raz0r's Companion DLL then our modded files will load first. This is a very handy feature because it allows our mods to load first, and with this script we can temporarily rename our modded files and let the .LFS files take over to take a quick look at the original files.
WHAT THIS SCRIPT DOES
What this script does is allows us to temporarily suspend any edit(s) we have made to a particular room.udas file and the
All this script does is temporarily renames files & directories so that the original .LFS versions of the files load instead of our newly modded files. The reason for this is because while editing various rooms I often needed to go back and look at the original room for reference. Manually renaming files over & over became tedious so I wrote this script to save time.
HOW TO USE THIS SCRIPT
Users will have to input their directories and file names manually in the .bat file so that the script will know where things are.
In the example below we are simply going to tell the script to:
1 - go to our ImagePackHD folder
2 - rename our modded 4400021d.pack file so that it will not load
3 - go to our St2 folder
4 - rename our modded r21d.udas file so that it will not load
5 - go to our room folder for the Companion DLL
6 - rename the Companion DLL room folder so that it will not load
So now this means that all the original .LFS files will now load instead of the modded versions we had placed in those directories.
The script window will remain open until users press enter which executes the renaming of these same folders as above back to their original state so that our modded files will now load. The script window will close after a few seconds. Friendly ASCII graphics let us know when each stage of the script has been completed.
So now that we know how this works users will have to do a few simple things. For each new room that is modded users will have to edit their .bat file in order to put their own files & directory information. The reason for this is that the directory paths in the script in the download be different from other user's paths.
More is explained in the ReadMe file included in the download.
More is explained in the ReadMe file included in the download.
If someone wishes to improve this script by creating relative paths be my guest. I do not know how to do such things =)
DOWNLOAD SCRIPT HERE
DOWNLOAD SCRIPT HERE
Happy Modding!
Mr.Curious
12-2018