Advertisement
hyperfang8

PyLotro Lotro Patch script v5

Jan 10th, 2013
1,010
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #Date : (27-11-2012)
  3. # Last revision : (27-11-2012)
  4. # Wine version used : 1.5.18
  5. # Distribution used to test : Lubuntu 12.10 32bit
  6. # Author : Hyperfang8
  7. # Script licence : Public Domain
  8. # Program licence : Freeware/Shareware
  9. # Depend : Play On Linux
  10.  
  11. [ "$PLAYONLINUX" = "" ] && exit 0
  12. source "$PLAYONLINUX/lib/sources"
  13.  
  14. #System variables
  15. #$(eval_gettext '')
  16. TITLE="Lord Of The Rings Online PyLotRO patch"
  17. PREFIX="lotro"
  18. WINEVER="1.5.18"
  19. DOWNLOADURL="http://media.codeweavers.com/pub/other/pylotro/pylotro-setup-0.1.15a.exe"
  20. MDSUM="845d1004594c5f158c0ff400853cd809"
  21. SETUPNAME="pylotro-setup-0.1.15a.exe"
  22.  
  23. POL_SetupWindow_Init
  24.  
  25. POL_SetupWindow_presentation "$TITLE" "Turbine" "http://lorebook.lotro.com/wiki/LOTRO_under_Linux_and_Mac_OS/X" "HyperFang8" "$PREFIX"
  26. POL_Wine_SelectPrefix "$PREFIX"
  27. POL_System_SetArch "x86"
  28. POL_System_TmpCreate "$PREFIX"
  29.  
  30.  
  31. POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
  32.  
  33. if [ "$INSTALL_METHOD" = "LOCAL" ]
  34. then
  35.         POL_SetupWindow_message "$(eval_gettext 'You can download it from here: http://crossover.codeweavers.com/redirect/pylotro')" "$TITLE"
  36.     POL_SetupWindow_browse "$(eval_gettext 'Choose $TITLE setup offline setup file!')" "$TITLE"
  37.     POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
  38.     POL_Wine start /unix "$APP_ANSWER"
  39. elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  40. then
  41.     cd "$POL_System_TmpDir"
  42.     POL_Download "$DOWNLOADURL" "$MDSUM"
  43.     POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
  44.     POL_Wine start /unix "$POL_System_TmpDir/$SETUPNAME"
  45. fi
  46.  
  47.  
  48. POL_SetupWindow_message "$(eval_gettext 'Please make sure instalation is finished before pressing next!')" "$TITLE"
  49. POL_System_TmpDelete
  50. mkdir "$WINEPREFIX/drive_c/users/$USER/Application Data/PyLotRO"
  51. cat << EOF > "$WINEPREFIX/drive_c/users/$USER/Application Data/PyLotRO/LotROLinux.config"
  52. <?xml version="1.0" ?><Settings><Default.Game>LOTRO</Default.Game><LOTRO><Wine.Application>Native</Wine.Application><Wine.Program>wine</Wine.Program><Wine.Debug>fixme-all</Wine.Debug><Wine.Prefix>$WINEPREFIX</Wine.Prefix><HiRes>False</HiRes><Game.Directory>C:/Program Files/Turbine/The Lord of the Rings Online</Game.Directory><PatchClient>patchclient.dll</PatchClient><Hide.Main.Window>False</Hide.Main.Window><Realm>Gilrain</Realm><Language>English</Language><Account>hyperfang8</Account></LOTRO></Settings>
  53. EOF
  54. POL_Shortcut "pylotro.exe" "$TITLE"
  55.  
  56. POL_SetupWindow_Close
  57. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement