Advertisement
Guest User

league of legends language unlocker/launcher 4 - Modified

a guest
Dec 21st, 2014
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 5.00 KB | None | 0 0
  1. :: ORiginal script & Credits: http://www.reddit.com/r/leagueoflegends/comments/2q0c5u/script_that_enables_all_languages_in_all/
  2. :: Modified the script to be more user-friendly.
  3. :: ADDED: Now it backups the regions.txt file before deleting it.
  4. :: No editing is required by the user. Just run the script.
  5. :: Modified by http://www.reddit.com/user/Nominance/
  6.  
  7. @ECHO OFF
  8. COLOR 1E
  9. TITLE League of Legends Language Unlocker
  10.  
  11. :: Change the below variable to the folder where League of Legends is installed.
  12. :: Do NOT add the trailing backslash.
  13. :: Default: C:\Riot Games\League of Legends
  14. SET target=C:\Riot Games\League of Legends
  15.  
  16. :Prompt
  17.  
  18. IF NOT EXIST "%target%\lol.launcher.exe" (
  19. echo Could not find League of Legends at %target%
  20. echo.
  21. echo Paste here your League of Legends folder location.
  22. echo Example: "C:\Riot Games\League of Legends"
  23. set /p target=
  24. cls
  25. )
  26.  
  27. IF NOT EXIST "%target%\lol.launcher.exe" GOTO Prompt
  28.  
  29. :: This string determines what languages you want to use.
  30. :: cs_CZ Czech          de_DE German
  31. :: el_GR Greek          en_AU English AU
  32. :: en_GB English UK     en_US English US
  33. :: es_AR Spanish AR     es_ES Spanish ES
  34. :: es_MX Spanish MX     fr_FR French
  35. :: hu_HU Hungarian      it_IT Italian
  36. :: ko_KR Korean         pl_PL Polish
  37. :: pt_BR Portuguese BR  ro_RO Romanian
  38. :: ru_RU Russian        tr_TR Turkish
  39.  
  40. :: The string must always end in , A
  41. :: Every pipe character that's used in this string must be escaped with three
  42. :: carats; the reason why we must use three carats is to escape the base carat
  43. :: character so that, when passed as a variable, there's still an escape character.
  44. SET lollanguages=cs_CZ^^^|de_DE^^^|el_GR^^^|en_AU^^^|en_GB^^^|en_US^^^|es_AR^^^|es_ES^^^|es_MX^^^|fr_FR^^^|hu_HU^^^|it_IT^^^|ko_KR^^^|pl_PL^^^|pt_BR^^^|ro_RO^^^|ru_RU^^^|tr_TR,                                                    A
  45.  
  46. :: We must set the regions.txt to not be read-only.
  47. :: We set the file to read-only so that, in the event you forget to run this when
  48. :: you update League of Legends, you should still be able to play in the language
  49. :: you want.
  50. ATTRIB -R "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  51. ECHO Backing up regions.txt...
  52. :: We backup the original regions.txt file and then we delete it to create the new one (Modified by Nominance)
  53. COPY "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt" "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions-backup.txt"
  54. ECHO Deleting old regions.txt file...
  55. DEL "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  56. ECHO Writing new regions.txt file with all languages enabled...
  57.  
  58. :: The following commands write a brand new regions.txt file with all languages
  59. :: enabled from all available regions.
  60. ECHO na,            na,            %lollanguages% > "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  61. ECHO br,            br,            %lollanguages% >> "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  62. ECHO tr,            tr,            %lollanguages% >> "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  63. ECHO euw,           euw,           %lollanguages% >> "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  64. ECHO eune,          eune,          %lollanguages% >> "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  65. ECHO ru,            ru,            %lollanguages% >> "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  66. ECHO la1,           la1,           %lollanguages% >> "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  67. ECHO la2,           la2,           %lollanguages% >> "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  68. ECHO oc1,           oc1,           %lollanguages% >> "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  69. ECHO Write complete!
  70.  
  71. :: We set the new regions.txt as read-only.
  72. ATTRIB +R "%target%\RADS\projects\lol_patcher\managedfiles\0.0.0.0\regions.txt"
  73.  
  74. :: The below shows you what languages are installed.
  75. :: Some of the languages just show like an "empty" row in the language/region
  76. :: selection. When you run this script, the following will tell you what those
  77. :: languages are. There's also multiple entries for English and Spanish, so you
  78. :: can also know which of the varieties of languages you're using.
  79. ECHO.
  80. ECHO ==============================================================================
  81. ECHO Languages in Order:
  82. ECHO Czech, German, Greek, English (AU), English (UK), English (NA), Spanish (AR),
  83. ECHO Spanish (ES), Spanish (MX), French, Hungarian, Italian, Korean, Polish,
  84. ECHO Portuguese (BR), Romanian, Russian, Turkish
  85. ECHO ==============================================================================
  86. ECHO.
  87.  
  88. :: The following starts League of Legends and pauses this screen so that you can
  89. :: view the list of languages, in case you need to.
  90. ECHO Starting League of Legends...
  91. START /D"%target%\" lol.launcher.exe
  92. ECHO.
  93. ECHO (You can press any key to close this window.)
  94. PAUSE > NUL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement