:: also check if we already patched this mod ^ IF NOT EXIST " %%~nd " IF NOT EXIST " %%~nd.tp2 " IF NOT EXIST "setup- %%~nd.tp2 " SET DO_STUFF =true IF EXIST "setup- %%~nd.tp2 " SET DO_STUFF =true IF EXIST " %%~nd.tp2 " SET DO_STUFF =true :: (we need a helper variable because it's not possible combine IFs with OR) :: also search for modname.tp2 and setup-modname.tp2 ^ :: check if the mod does (not) exist in the game dir ^ :: also try to workaround the ampersand in dirname problem :: set current directory for recursive processing Type " %MESSAGES%\header.txt " | %TEE_CMD%Ĭall : show_message " %MESSAGES%\start.txt " :: counter for detecting the last run through this batchĮcho Can't locate the directory " %MAIN_DIR% ".Įcho Make sure it resides in the current directory!Įcho Das Verzeichnis " %MAIN_DIR% " konnnte nicht gefunden werden.Įcho Es ist fr die Installation zwingend erforderlichĮcho und muss im aktuellen Verzeichnis vorhanden sein.Įcho Ne trouve pas le repertoire " %MAIN_DIR% ".Įcho Assurez-vous qu'il se trouve dans le repertoire actuel !Įcho No se puede localizar el directorio " %MAIN_DIR% ".Įcho Es necesario para la instalaci¢n y debe estar en elĬall : show_message " %MESSAGES%\missing_weidu.txt " :: (but introduces a bug related to filenames with exclamation marks) :: fixes the variable expansion in for loops (using !VAR!) SET INSTALL_MARKER = %~dp0\ %INSTALL_MARKER% :: set absolute path for install marker file SET INSTALL_MARKER =BWP_Fixpack.installed SET TEE_CMD = " %UTILS%\tee " -a "BWS-Debug-Fixpack.txt " SET PATCH_CMD = " %UTILS%\patch " -p0 -no-backup-if-mismatch -ignore-whitespace :: %2 - further instructions on how to handle the subdirectories (NOT / OPT) :: arguments (all internal, do not use from command line): :: adds missing setup-xxx.exe files (if ADD_MISSING_SETUP is true). :: Also performs a creature fix if WeiDU.exe is in the game directory and :: (Not necessary for patches, since the information is in the patch itself.) :: use a _target file in the mod directory to specify the target directory. :: If the target directory of a _copy is not the same as the mod name :: _optional => process subdir if it contains a description :: _depends_not => process subdir if the mod is not present :: _depends => process subdir if the mod is present :: _copy => copy the tree to target directory :: _rename => like _delete but a line in this file should :: (paths are relative to the mod directory) :: _delete => delete all files listed in this file :: of the following files/directories exist in the mod directory: :: Process a directory tree and call different commands when some :: ALL CODE BELOW IS DISABLED BECAUSE THE ABOVE LINE JUMPS TO THE END OF THE FILE AND SKIPS THE CODE BELOW Please copy that script (_ApplyPatches.tp2 and _ApplyPatches.bat) into your game folder and run it instead (after unpacking all of the mods you plan to install, so it can determine if additional compatibility patches are needed). IF NOT EXIST "_ApplyPatches.tp2 " echo "This script is legacy code and has been replaced by the newer _ApplyPatches script. IF NOT EXIST "_ApplyPatches.bat " echo "This script is legacy code and has been replaced by the newer _ApplyPatches script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |