Advertisement
Guest User

D&D Neverwinter POL

a guest
May 4th, 2013
4,600
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Date : (2013-04-21 12:44)
  3. # Last revision : (2013-05-04 10:13)
  4. # Wine version used : 1.5.28-1.5.29
  5. # Distribution used to test : Ubuntu 12.10 64-bit
  6. # Author : /u/teppec
  7. # Script licence : GPL v.2
  8. # Program licence : Retail
  9.  
  10. [ "$PLAYONLINUX" = "" ] && exit 0
  11. source "$PLAYONLINUX/lib/sources"
  12.  
  13. TITLE="Dungeons and Dragons: Neverwinter"
  14. PREFIX="DnDNW"
  15.  
  16. POL_SetupWindow_Init
  17. POL_SetupWindow_presentation "$TITLE" "Cryptic Studios" "http://nw.perfectworld.com/" "/u/teppec" "$PREFIX"
  18. POL_Wine_SelectPrefix "$PREFIX"
  19. POL_Wine_PrefixCreate "1.5.29"
  20.  
  21. # Some of this might not be needed.
  22. # http://www.devurandom.org/weblog/2010/aug/05/playing-champions-online-ubuntu/
  23. # http://www.youtube.com/watch?v=z0toK-Q5Yv4
  24. #POL_Call POL_Install_d3dx9_36
  25. #POL_Call POL_Install_gecko
  26. POL_Call POL_Install_directx9
  27. POL_Call POL_Install_ie8
  28.  
  29. # Make sure we set the OS to Windows XP before starting the installer.
  30. Set_OS winxp
  31.  
  32. # Download the game through torrent from: http://nw.perfectworld.com/download/torrent
  33. # Then select the setup.exe to run through wine.
  34. cd "$HOME"
  35. POL_SetupWindow_browse "$(eval_gettext 'Please select the setup.exe file.')" "$TITLE"
  36. GAME_EXE="$APP_ANSWER"
  37.  
  38. # Install the game.
  39. POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"  
  40. POL_Wine "$GAME_EXE"
  41. cd "$WINEPREFIX/drive_c/Program Files/Cryptic Studios" || exit 1
  42.  
  43. Set_OS winxp # Just to be sure
  44. POL_SetupWindow_VMS "512"
  45. Set_GLSL "Off" # Possibly slight performance improvement
  46. POL_Wine_OverrideDLL "builtin" "dnsapi" # This is somehow needed, else the game won't start.
  47. POL_Wine_reboot # Doesn't hurt
  48.  
  49. POL_Shortcut "Neverwinter.exe" "$TITLE"
  50.  
  51. POL_SetupWindow_Close
  52.  
  53. exit
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement