3c3 < AUTHOR ~Charles Bisson, Horred The Plague (WeiDU), King Diamond (WeiDU revision) - Unix version by Turambar~ NO_IF_EVAL_BUG --- > AUTHOR ~Charles Bisson, Horred The Plague (WeiDU), King Diamond (WeiDU revision)~ NO_IF_EVAL_BUG 5c5 < VERSION ~1.13_unix~ --- > VERSION ~1.13~ 9,10d8 < README ~SOS/Readme-SOS-WeiDU.txt~ < 32a31 > 62,66c61 < ACTION_IF ("%WEIDU_OS%" STRING_EQUAL_CASE "WIN32") BEGIN < AT_EXIT ~Setup-GUI.exe --uninstall~ < END ELSE BEGIN < AT_EXIT ~./Setup-GUI --uninstall~ < END --- > AT_EXIT ~Setup-GUI.exe --uninstall~ 83,87c78 < ACTION_IF ("%WEIDU_OS%" STRING_EQUAL_CASE "WIN32") BEGIN < COPY ~Setup-SoS.exe~ ~Setup-GUI.exe~ < END ELSE BEGIN //unix versions don't have .exe extension < COPY ~Setup-SoS~ ~Setup-GUI~ < END --- > COPY ~Setup-SoS.exe~ ~Setup-GUI.exe~ 113a105,109 > > COPY + ~Setup-SoS.exe~ ~WeiDU.exe~ > > COPY + ~chitin.key~ ~SOS/chitin.sos~ > COPY_LARGE + ~dialog.tlk~ ~SOS/dialog.sos~ 128a125 > MKDIR ~SOS-MVE~ 131,145d127 < //remove temporary folders and files at the end, regardless of success or failure < ACTION_IF ("%WEIDU_OS%" STRING_EQUAL_CASE "win32") THEN BEGIN < AT_EXIT ~SOS/endinstall.bat~ < END ELSE BEGIN < AT_EXIT ~rmdir SOS-* SOSDLG~ < AT_EXIT ~rm SOS-*/* SOSDLG/* SOS/OGG1/*.wav~ //last removes any wav who's been copied to SOS-WAV due to weird behaviour of MOVE*/ < END < //uninstall AT_commands and manual back-ups; remove temporary files < ACTION_IF ("%WEIDU_OS%" STRING_EQUAL_CASE "win32") THEN BEGIN < AT_UNINSTALL ~SOS/uninstall.bat~ < END ELSE BEGIN < AT_UNINSTALL ~mv -f SOS/over.bak/* override/~ //restore override!*/ < AT_UNINSTALL ~rmdir SOS/over.bak~ //remove temporary dirs < END < 545d526 < 968d948 < 1970,1972d1949 < < < 2305d2281 < 2313d2288 < 2589d2563 < 4308,4309d4281 < < 4698,4702d4669 < OUTER_INNER_PATCH ~0~ BEGIN < SPRINT fence @20801 < TO_LOWER fence < END < 4717,4718c4684,4685 < SAY ~%fence%~ // fence < SAY @20801 // Fence --- > SAY ~Fence~ > SAY ~Fence~ 4755,4827d4721 < //tis unpacking < PRINT @100000 // ~Unpacking tilesets: this may take some minutes to complete...~ < ACTION_IF ("%WEIDU_OS%" STRING_EQUAL_CASE "win32") THEN BEGIN < AT_NOW ~SOS\tizunpack.bat~ < END ELSE BEGIN //unix (and probably osx) commands < ACTION_BASH_FOR ~sos/tiz~ ~ar4[0-9]+\.tiz~ BEGIN < AT_NOW ~./SOS/%WEIDU_OS%/tisunpack -s -s -h -o SOS/TIZ/%BASH_FOR_RES%.tis %BASH_FOR_FILESPEC%~ < OUTER_INNER_PATCH ~%BASH_FOR_RES%~ BEGIN //where shall this tis go? < tu_tis=2 < READ_ASCII 3 test (1) < PATCH_IF "%test%" STRING_EQUAL "2" BEGIN < READ_ASCII 4 test (1) < PATCH_IF "%test%" STRING_MATCHES_REGEXP "[7-9]" BEGIN < tu_tis=1 < END < END < END < MOVE + ~sos/tiz/%BASH_FOR_RES%.tis~ ~SOS-TIS%tu_tis%/%BASH_FOR_RES%.tis~ < END < END < < //audio < ACTION_BASH_FOR ~override~ ~^.*\.wav~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-WAV1~ //still unbiffed wav files < END < // ogg conversion; depends from OS < ACTION_MATCH ~%WEIDU_OS%~ WITH < ~win32~ BEGIN < ACTION_BASH_FOR ~override~ ~.*\.ogg~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~sosdlg~ < END < AT_NOW ~SOS\oggdec.bat~ < ACTION_BASH_FOR ~sosdlg~ ~.*\.wav~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-WAV1~ < END < ACTION_BASH_FOR ~sos/ogg1~ ~.*\.wav~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-WAV1~ //overwrites any from previous command; could leave some wavs in folder!! < END < ACTION_BASH_FOR ~sos/ogg2~ ~.*\.wav~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-WAV2~ < END < END < ~osx~ BEGIN < ACTION_BASH_FOR ~override~ ~.*\.ogg~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOSDLG~ < AT_NOW ~./SOS/osx/sox SOSDLG/%BASH_FOR_FILE% SOS-WAV1/%BASH_FOR_RES%.wav~ < END < ACTION_BASH_FOR ~SOS/OGG1~ ~.*\.ogg$~ BEGIN < AT_NOW ~./SOS/osx/sox %BASH_FOR_FILESPEC% SOS/OGG1/%BASH_FOR_RES%.wav~ < MOVE + ~SOS/OGG1/%BASH_FOR_RES%.wav~ ~SOS-WAV1~ // overwrites completely those from previous command < END < ACTION_BASH_FOR ~SOS/OGG2~ ~.*\.ogg$~ BEGIN < AT_NOW ~./SOS/osx/sox %BASH_FOR_FILESPEC% SOS/OGG2/%BASH_FOR_RES%.wav~ < MOVE + ~SOS/OGG2/%BASH_FOR_RES%.wav~ ~SOS-WAV2~ < END < END < ~unix~ BEGIN < ACTION_BASH_FOR ~override~ ~.*\.ogg~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~sosdlg~ < AT_NOW ~./SOS/%WEIDU_OS%/oggdec -o sos-wav1/%BASH_FOR_RES%.wav sosdlg/%BASH_FOR_FILE%~ < END < AT_NOW ~./SOS/%WEIDU_OS%/oggdec SOS/OGG1/*.ogg~ //*/ < AT_NOW ~./SOS/%WEIDU_OS%/oggdec SOS/OGG2/*.ogg~ //*/ < ACTION_BASH_FOR ~sos/ogg1~ ~.*\.wav~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-WAV1~ //overwrites any from previous command; could leave some wavs in folder!! < END < ACTION_BASH_FOR ~sos/ogg2~ ~.*\.wav~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-WAV2~ < END < END < DEFAULT //should not trigger < FAIL @100002 //failed to detect OS < END 4829,4847d4722 < //biffs < //first: merge some folders < ACTION_BASH_FOR ~override~ ~.*\.WED~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-ARE~ < END < ACTION_BASH_FOR ~override~ ~.*\.BMP~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-MOS~ < END < ACTION_BASH_FOR ~override~ ~.*\.PLT~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-MOS~ < END < //then, those which need some files to be copied < ACTION_FOR_EACH biff IN ~BAM~ ~MOS~ BEGIN < ACTION_BASH_FOR ~override~ ~^.*\.%biff%$~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-%biff%~ < END < MAKE_BIFF ~SOS-%biff%~ BEGIN ~SOS-%biff%~ ~^.*\..*~ END < END < MAKE_BIFF ~SOS-MVE~ BEGIN ~SOS/MVE~ ~^.*\..*~ END 4849,4864c4724,4725 < SILENT //prevents infinite "copying 1 file" from being displayed < ACTION_FOR_EACH biff IN ~ARE~ ~BCS~ ~CRE~ ~DLG~ ~ITM~ ~SPL~ BEGIN < ACTION_BASH_FOR ~SOS-%biff%~ ~^.*\.\(2da\|sto\|wmp\|are\|bcs\|cre\|DLG\|ITM\|SPL\)$~ BEGIN //some extensions from RULE + other kinds < COPY ~%BASH_FOR_FILESPEC%~ ~override~ //backed up: must be removed from override at uninstall < END < END < VERBOSE < // finally, biff files which shouldn't be modified anymore < ACTION_BASH_FOR ~override~ ~.*\.\(ch\|pro\|eff\|vvc\).?$~ BEGIN < MOVE + ~%BASH_FOR_FILESPEC%~ ~SOS-RULE~ < END < //biff already full directories < ACTION_FOR_EACH biff IN ~RULE~ ~TIS1~ ~TIS2~ ~WAV1~ ~WAV2~ BEGIN < MAKE_BIFF ~SOS-%biff%~ BEGIN ~SOS-%biff%~ ~^.*\..*~ END < END < MAKE_BIFF ~SOS-ARE~ BEGIN ~SOS-ARE~ ~^.*\.wed~ END // biff WEDs only! AREs could be modified by other mods --- > AT_INTERACTIVE_EXIT ~SOS/SOS-TISOGGBIFF.bat~ > AT_INTERACTIVE_UNINSTALL ~SOS/SOS-UNINSTALL.bat~ 4867,4869c4728,4729 < //***********************************************************************************// < // OPTIONAL FIX - Remorhaz walking speed // < //***********************************************************************************// --- > //*********************************************************************************** > //*********************************************************************************** 4872c4732 < REQUIRE_COMPONENT "Setup-SoS.tp2" "0" @100004 // ~You must have SoS mod installed~ --- > REQUIRE_COMPONENT "Setup-SoS.tp2" "0" ~You must have SoS mod installed~ 4886a4747,4749 > > > 4887a4751 >