Advertisement
Lart_Iste

R88_ESLify.bat Both SSEedit and auto launch SSE

Apr 18th, 2024
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.60 KB | Source Code | 0 0
  1. @echo off
  2. chcp 65001 > nul 2>&1
  3. setlocal EnableExtensions EnableDelayedExpansion
  4.  
  5. set hasSSEEdit=0
  6. set hasXEdit=0
  7. set hasAnyEdit=1
  8. set hasESLifyScript=0
  9. set hasMXPF==0
  10. set hasMTEFunctions==0
  11. set "pathSSEEdit404=%CD%\SSEEdit404.exe"
  12. set "pathSSEEdit=%CD%\SSEEdit.exe"
  13.  
  14. IF EXIST "SSEEdit404.exe" set hasSSEEdit=1
  15. IF NOT EXIST "SSEEdit404.exe" set hasAnyEdit=0
  16. IF EXIST "Edit Scripts\R88_ESLify.pas" set hasESLifyScript=1
  17. IF EXIST "Edit Scripts\lib\mxpf.pas" set hasMXPF=1
  18. IF EXIST "Edit Scripts\lib\mteFunctions.pas" set hasMTEFunctions=1
  19.  
  20. echo :
  21. echo :
  22. echo ::: "Ruddy88's ESLify Utility" :::
  23. echo ::: "Utilitaire ESLify de Ruddy88" :::
  24. echo :
  25. echo :
  26. echo ::: Checking for required files :::
  27. echo ::: Vérification des fichiers requis :::
  28. echo :
  29. echo :
  30.  
  31. for /f "delims=" %%v in ('powershell "(Get-Item '%pathSSEEdit404%' -ErrorAction SilentlyContinue).VersionInfo.ProductVersion"') do (
  32.     set "verSSEEdit404=%%v"
  33. )
  34. for /f "delims=" %%v in ('powershell "(Get-Item '%pathSSEEdit%' -ErrorAction SilentlyContinue).VersionInfo.ProductVersion"') do (
  35.     set "verSSEEdit=%%v"
  36. )
  37.  
  38. echo %verSSEEdit404%
  39. if not defined verSSEEdit404 (
  40.     echo :::  Unable to retrieve SSEEdit version, rename SSEedit.exe 4.0.4 to SSEedit404.exe and place it in %pathSSEEdit% with the other binaries.
  41.     echo :::  Impossible de récupérer la version de SSEEdit, renommer SSEedit.exe 4.0.4 en SSEedit404.exe et placez le dans %pathSSEEdit% avec les autres binaires.
  42.     pause
  43. ) else (
  44.     if "%verSSEEdit404%" neq "4.0.4.0" (
  45.         goto :launch
  46.     ) else (
  47.         echo :::  Wrong version of SSEEdit, rename SSEedit.exe 4.0.4 to SSEedit404.exe and place it in %pathSSEEdit% with the other binaries.
  48.         echo :::  Mauvaise version de SSEEdit, renommer SSEedit.exe 4.0.4 en SSEedit404.exe et placez le dans %pathSSEEdit% avec les autres binaires.
  49.         pause
  50.     )
  51. )
  52.  
  53. IF %hasSSEEdit%==1 (
  54.         echo ::: SSEEdit found
  55.         echo ::: SSEEdit trouvé
  56. )
  57. IF %hasAnyEdit%==0 (
  58.         echo ::: WARNING: XEdit/SSEEdit404.exe not found
  59.         echo ::: Avertissement: XEdit/SSEEdit404.exe introuvable
  60. )
  61.  
  62. IF %hasESLifyScript%==1 (
  63.     echo ::: R88_ESLify.pas found
  64. ) ELSE (
  65.     echo ::: WARNING: R88_ESLify.pas not found
  66.     echo ::: Avertissement: R88_ESLify.pas introuvable
  67. )
  68.  
  69. IF %hasMXPF%==1 (
  70.     echo ::: mxpf.pas found
  71. ) ELSE (
  72.     echo ::: WARNING: mxpf.pas not found
  73.     echo ::: Avertissement: mxpf.pas introuvable
  74. )
  75.  
  76. IF %hasMTEFunctions%==1 (
  77.     echo ::: mteFunctions.pas found
  78. ) ELSE (
  79.     echo ::: WARNING: mteFunctions.pas not found
  80.     echo ::: Avertissement: mteFunctions.pas introuvable
  81. )
  82.  
  83. IF %hasAnyEdit%==1 IF %hasESLifyScript%==1 IF %hasMXPF%==1 IF %hasMTEFunctions%==1 set hasRequiredFiles=1
  84. IF %hasRequiredFiles%==1 (
  85.     echo :
  86.     echo :
  87.     echo ::: All required files installed.
  88.     echo ::: Tous les fichiers requis installés.
  89.         echo :
  90.         echo :
  91.         %game%
  92. ) ELSE (
  93.     echo :
  94.     echo :
  95.     echo ::: Required files not found. Terminating process.echo
  96.     echo ::: Fichiers requis introuvables. Terminer le processus.
  97.     echo :
  98.     echo :
  99.     pause
  100.     exit
  101. )
  102.  
  103. :runPatchSSE
  104. echo :
  105. echo :
  106. echo ::: Skyrim SE auto selected...
  107. echo ::: Skyrim SE auto seléctionné...
  108. echo :
  109. echo :
  110. echo ::: Launching ESLify script...
  111. echo ::: Lancement du script ESLify ...
  112. echo :
  113. echo :
  114. IF %hasSSEEdit%==1 (
  115. start SSEEdit404.exe -nobuildrefs -autoload -pseudoESL -script:"R88_ESLify.pas"
  116. ) ELSE (
  117.     echo :
  118.     echo :
  119.     echo ::: Unexpected Error. Terminating process.
  120.     echo ::: Erreur inattendue. Terminer le processus.
  121.     echo :
  122.     echo :
  123.     pause
  124.     exit
  125. )
  126. goto :exitPatch
  127.  
  128. :exitPatch
  129. endlocal
  130. exit
Tags: batch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement