Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Date : (2013-04-21 12:44)
- # Last revision : (2013-05-04 10:13)
- # Wine version used : 1.5.28-1.5.29
- # Distribution used to test : Ubuntu 12.10 64-bit
- # Author : /u/teppec
- # Script licence : GPL v.2
- # Program licence : Retail
- [ "$PLAYONLINUX" = "" ] && exit 0
- source "$PLAYONLINUX/lib/sources"
- TITLE="Dungeons and Dragons: Neverwinter"
- PREFIX="DnDNW"
- POL_SetupWindow_Init
- POL_SetupWindow_presentation "$TITLE" "Cryptic Studios" "http://nw.perfectworld.com/" "/u/teppec" "$PREFIX"
- POL_Wine_SelectPrefix "$PREFIX"
- POL_Wine_PrefixCreate "1.5.29"
- # Some of this might not be needed.
- # http://www.devurandom.org/weblog/2010/aug/05/playing-champions-online-ubuntu/
- # http://www.youtube.com/watch?v=z0toK-Q5Yv4
- #POL_Call POL_Install_d3dx9_36
- #POL_Call POL_Install_gecko
- POL_Call POL_Install_directx9
- POL_Call POL_Install_ie8
- # Make sure we set the OS to Windows XP before starting the installer.
- Set_OS winxp
- # Download the game through torrent from: http://nw.perfectworld.com/download/torrent
- # Then select the setup.exe to run through wine.
- cd "$HOME"
- POL_SetupWindow_browse "$(eval_gettext 'Please select the setup.exe file.')" "$TITLE"
- GAME_EXE="$APP_ANSWER"
- # Install the game.
- POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
- POL_Wine "$GAME_EXE"
- cd "$WINEPREFIX/drive_c/Program Files/Cryptic Studios" || exit 1
- Set_OS winxp # Just to be sure
- POL_SetupWindow_VMS "512"
- Set_GLSL "Off" # Possibly slight performance improvement
- POL_Wine_OverrideDLL "builtin" "dnsapi" # This is somehow needed, else the game won't start.
- POL_Wine_reboot # Doesn't hurt
- POL_Shortcut "Neverwinter.exe" "$TITLE"
- POL_SetupWindow_Close
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement