King's Bounty: The Legend
Informations
Creator | Message |
---|---|
m039
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks1 1 DescriptionTactical role-playing video game. 2008. Source code#!/bin/bash # Date : (2018-02-08 23-31) # Last revision : (2019-06-13 18-02) # Wine version used : 4.0.1 # Distribution used to test : GNU/Linux # Author : LinuxScripter # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="King's Bounty - The Legend" EDITOR="Atari" AUTHOR="LinuxScripter" GAME_URL="http://www.kings-bounty.com" PREFIX="KBtL" WORKING_WINE_VERSION="4.0.1" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "support/AdbeRdr930_en_US.exe" POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$CDROM/setup.exe" POL_Shortcut "kb.exe" "King's Bounty - The Legend" "" "" POL_SetupWindow_Close exit |
Contributions
Filters:
ContributeMember | Message |
LinuxScripter | Thursday 13 June 2019 at 19:37 |
LinuxScripter
|
InformationThis update has been approved by the team. MessageThe issue with overlaping text no longer appears. Differences@@ -1,137 +1,38 @@ #!/bin/bash -# Date : (2010-02-02 18-22) -# Last revision : (2010-02-02 18-22) -# Wine version used : 1.1.37 +# Date : (2018-02-08 23-31) +# Last revision : (2019-06-13 18-02) +# Wine version used : 4.0.1 # Distribution used to test : GNU/Linux -# Author : m039 -# Licence : - -# Depend : - - +# Author : LinuxScripter +# Licence : Retail + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" -# -#Preliminary part -# - -MY_GAMENAME="King's Bounty: The Legend" -MY_URL=http://upload.wikimedia.org/wikipedia/en/3/38/King%27s_Bounty.jpg -MY_PROVIDER="m039" -MY_DIRNAME="KBtL" -MY_WINEVERSION="1.7.26" - -#return = local path to scaled image -get_image() { - URL=$1 - wget $URL --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg" - convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg" - echo "$REPERTOIRE/tmp/left.jpeg" -} - -#return = path to game.exe -get_gameexe() { - cd $WINEPREFIX/drive_c && find . -name kb.exe -} - -#return = path to autoupdater.exe -get_autoupdater() { - get_gameexe | sed -n 's/\(.*\)kb\.exe/\1autoupdater\.exe/p' -} - -#set properties and forget -install_configuration(){ - Set_GLSL On -} - -install_directx(){ - #Creator : Berillions - - cd "$REPERTOIRE/ressources" - #downloading directx9 - if [ ! -e "directx_aug2009_redist.exe" ]; - then - POL_SetupWindow_download "Downloading" "directx9" "http://download.microsoft.com/download/B/7/9/B79FC9D7-47B8-48B7-A75E-101DEBEB5AB4/directx_aug2009_redist.exe" - fi - - mkdir "Directx" - cd Directx - cabextract "../directx_aug2009_redist.exe" - - mkdir "d3dx9" - cabextract -d "d3dx9" *d3dx9*x86* - - cd "d3dx9" - mv *.dll "$WINEPREFIX/drive_c/windows/system32" - - #Réglage Directx9 - cd "$WINEPREFIX/drive_c/windows/temp" -cat << EOF > OGL.reg -[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides] -"d3dx9_24"="native" -"d3dx9_25"="native" -"d3dx9_26"="native" -"d3dx9_27"="native" -"d3dx9_28"="native" -"d3dx9_29"="native" -"d3dx9_30"="native" -"d3dx9_31"="native" -"d3dx9_32"="native" -"d3dx9_33"="native" -"d3dx9_34"="native" -"d3dx9_35"="native" -"d3dx9_36"="native" -"d3dx9_37"="native" -"d3dx9_38"="native" -"d3dx9_39"="native" -"d3dx9_40"="native" -"d3dx9_41"="native" -"d3dx9_42"="native" -EOF - regedit OGL.reg - - cd "$REPERTOIRE/ressources" - rm -rf Directx -} - -# -#Main part -# - -POL_SetupWindow_Init "" $(get_image "$MY_URL") -POL_SetupWindow_presentation "$MY_GAMENAME" "Atari" "http://www.kings-bounty.com" "$MY_PROVIDER" "$MY_DIRNAME" - -POL_SetupWindow_message "Please, don't choose checkbox for directx installation from cdrom.\n" - -POL_SetupWindow_install_wine "$MY_WINEVERSION" -Use_WineVersion "$MY_WINEVERSION" - -select_prefix "$REPERTOIRE/wineprefix/$MY_DIRNAME" -POL_SetupWindow_prefixcreate - +TITLE="King's Bounty - The Legend" +EDITOR="Atari" +AUTHOR="LinuxScripter" +GAME_URL="http://www.kings-bounty.com" +PREFIX="KBtL" +WORKING_WINE_VERSION="4.0.1" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" + +POL_SetupWindow_Init +POL_Debug_Init + +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + POL_SetupWindow_cdrom -POL_SetupWindow_check_cdrom "setup.exe" -MY_SETUP=$(find "$CDROM" -iname setup.exe) - -POL_SetupWindow_wait_next_signal "Installing $MY_GAMENAME" "$MY_GAMENAME installation" -cd "$(dirname $MY_SETUP)" && wine "$MY_SETUP" -POL_SetupWindow_detect_exit - -POL_SetupWindow_wait_next_signal "Setting configuration properties" "$MY_GAMENAME installation" -install_configuration -POL_SetupWindow_detect_exit - -install_directx - -#It is important to run autoupdater.. and in the game folder. (This update will include no-cd) -POL_SetupWindow_wait_next_signal "Installing updates..." "$MY_GAMENAME" -cd "$WINEPREFIX"/drive_c/"$(dirname "$(get_gameexe)")" && wine "$(basename "$(get_autoupdater)")" -POL_SetupWindow_detect_exit - -POL_SetupWindow_make_shortcut "$MY_DIRNAME" "$(dirname "$(get_gameexe)")" "kb.exe" "" "$MY_GAMENAME" -Set_WineVersion_Assign "$MY_WINEVERSION" "$MY_GAMENAME" - -POL_SetupWindow_reboot +POL_SetupWindow_check_cdrom "support/AdbeRdr930_en_US.exe" +POL_Wine start /unix "$CDROM/setup.exe" +POL_Wine_WaitExit "$CDROM/setup.exe" +POL_Shortcut "kb.exe" "King's Bounty - The Legend" "" "" + POL_SetupWindow_Close - exit \ No newline at end of file New source code#!/bin/bash # Date : (2018-02-08 23-31) # Last revision : (2019-06-13 18-02) # Wine version used : 4.0.1 # Distribution used to test : GNU/Linux # Author : LinuxScripter # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="King's Bounty - The Legend" EDITOR="Atari" AUTHOR="LinuxScripter" GAME_URL="http://www.kings-bounty.com" PREFIX="KBtL" WORKING_WINE_VERSION="4.0.1" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "support/AdbeRdr930_en_US.exe" POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$CDROM/setup.exe" POL_Shortcut "kb.exe" "King's Bounty - The Legend" "" "" POL_SetupWindow_Close exit RepliesThursday 13 June 2019 at 20:03
|
LinuxScripter | Friday 9 February 2018 at 15:38 |
LinuxScripter
|
WarningThis update has not been approved yet by the team. MessageThis script is very outdated. It fails to find the setup .exe file on the cd. I have wrote a new script. The game installs and starts up but for some reason the letters in menus are partly ovelaping eachother, making them diffilcut to read. Installing corefonts and d3dx9_36 did not help. Differences@@ -1,137 +1,38 @@ #!/bin/bash -# Date : (2010-02-02 18-22) -# Last revision : (2010-02-02 18-22) -# Wine version used : 1.1.37 +# Date : (2018-02-08 23-31) +# Last revision : (2018-02-08 23-31) +# Wine version used : 3.0 # Distribution used to test : GNU/Linux -# Author : m039 -# Licence : - -# Depend : - - +# Author : LinuxScripter +# Licence : Retail + [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" - -# -#Preliminary part -# - -MY_GAMENAME="King's Bounty: The Legend" -MY_URL=http://upload.wikimedia.org/wikipedia/en/3/38/King%27s_Bounty.jpg -MY_PROVIDER="m039" -MY_DIRNAME="KBtL" -MY_WINEVERSION="1.7.26" - -#return = local path to scaled image -get_image() { - URL=$1 - wget $URL --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg" - convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg" - echo "$REPERTOIRE/tmp/left.jpeg" -} - -#return = path to game.exe -get_gameexe() { - cd $WINEPREFIX/drive_c && find . -name kb.exe -} - -#return = path to autoupdater.exe -get_autoupdater() { - get_gameexe | sed -n 's/\(.*\)kb\.exe/\1autoupdater\.exe/p' -} - -#set properties and forget -install_configuration(){ - Set_GLSL On -} - -install_directx(){ - #Creator : Berillions - - cd "$REPERTOIRE/ressources" - #downloading directx9 - if [ ! -e "directx_aug2009_redist.exe" ]; - then - POL_SetupWindow_download "Downloading" "directx9" "http://download.microsoft.com/download/B/7/9/B79FC9D7-47B8-48B7-A75E-101DEBEB5AB4/directx_aug2009_redist.exe" - fi - - mkdir "Directx" - cd Directx - cabextract "../directx_aug2009_redist.exe" - - mkdir "d3dx9" - cabextract -d "d3dx9" *d3dx9*x86* - - cd "d3dx9" - mv *.dll "$WINEPREFIX/drive_c/windows/system32" - - #Réglage Directx9 - cd "$WINEPREFIX/drive_c/windows/temp" -cat << EOF > OGL.reg -[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides] -"d3dx9_24"="native" -"d3dx9_25"="native" -"d3dx9_26"="native" -"d3dx9_27"="native" -"d3dx9_28"="native" -"d3dx9_29"="native" -"d3dx9_30"="native" -"d3dx9_31"="native" -"d3dx9_32"="native" -"d3dx9_33"="native" -"d3dx9_34"="native" -"d3dx9_35"="native" -"d3dx9_36"="native" -"d3dx9_37"="native" -"d3dx9_38"="native" -"d3dx9_39"="native" -"d3dx9_40"="native" -"d3dx9_41"="native" -"d3dx9_42"="native" -EOF - regedit OGL.reg - - cd "$REPERTOIRE/ressources" - rm -rf Directx -} - -# -#Main part -# - -POL_SetupWindow_Init "" $(get_image "$MY_URL") -POL_SetupWindow_presentation "$MY_GAMENAME" "Atari" "http://www.kings-bounty.com" "$MY_PROVIDER" "$MY_DIRNAME" -POL_SetupWindow_message "Please, don't choose checkbox for directx installation from cdrom.\n" - -POL_SetupWindow_install_wine "$MY_WINEVERSION" -Use_WineVersion "$MY_WINEVERSION" - -select_prefix "$REPERTOIRE/wineprefix/$MY_DIRNAME" -POL_SetupWindow_prefixcreate - +TITLE="King's Bounty - The Legend" +EDITOR="Atari" +AUTHOR="LinuxScripter" +GAME_URL="http://www.kings-bounty.com" +PREFIX="KBtL" +WORKING_WINE_VERSION="3.0" + +POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" + +POL_SetupWindow_Init +POL_Debug_Init + +POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" + +POL_Wine_SelectPrefix "$PREFIX" +POL_System_SetArch "x86" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + POL_SetupWindow_cdrom -POL_SetupWindow_check_cdrom "setup.exe" -MY_SETUP=$(find "$CDROM" -iname setup.exe) - -POL_SetupWindow_wait_next_signal "Installing $MY_GAMENAME" "$MY_GAMENAME installation" -cd "$(dirname $MY_SETUP)" && wine "$MY_SETUP" -POL_SetupWindow_detect_exit - -POL_SetupWindow_wait_next_signal "Setting configuration properties" "$MY_GAMENAME installation" -install_configuration -POL_SetupWindow_detect_exit +POL_SetupWindow_check_cdrom "support/AdbeRdr930_en_US.exe" +POL_Wine start /unix "$CDROM/setup.exe" +POL_Wine_WaitExit "$CDROM/setup.exe" -install_directx - -#It is important to run autoupdater.. and in the game folder. (This update will include no-cd) -POL_SetupWindow_wait_next_signal "Installing updates..." "$MY_GAMENAME" -cd "$WINEPREFIX"/drive_c/"$(dirname "$(get_gameexe)")" && wine "$(basename "$(get_autoupdater)")" -POL_SetupWindow_detect_exit - -POL_SetupWindow_make_shortcut "$MY_DIRNAME" "$(dirname "$(get_gameexe)")" "kb.exe" "" "$MY_GAMENAME" -Set_WineVersion_Assign "$MY_WINEVERSION" "$MY_GAMENAME" - -POL_SetupWindow_reboot - +POL_Shortcut "kb.exe" "King's Bounty - The Legend" "" "" + POL_SetupWindow_Close - exit \ No newline at end of file New source code#!/bin/bash # Date : (2018-02-08 23-31) # Last revision : (2018-02-08 23-31) # Wine version used : 3.0 # Distribution used to test : GNU/Linux # Author : LinuxScripter # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="King's Bounty - The Legend" EDITOR="Atari" AUTHOR="LinuxScripter" GAME_URL="http://www.kings-bounty.com" PREFIX="KBtL" WORKING_WINE_VERSION="3.0" POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_System_SetArch "x86" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "support/AdbeRdr930_en_US.exe" POL_Wine start /unix "$CDROM/setup.exe" POL_Wine_WaitExit "$CDROM/setup.exe" POL_Shortcut "kb.exe" "King's Bounty - The Legend" "" "" POL_SetupWindow_Close exit Replies |
Ronin DUSETTE | Saturday 25 October 2014 at 22:00 |
Ronin DUSETTE
|
WarningThis update has not been approved yet by the team. MessageUpdated script to new Wine version, as the old one does not work anymore. Differences@@ -18,7 +18,7 @@ MY_URL=http://upload.wikimedia.org/wikipedia/en/3/38/King%27s_Bounty.jpg MY_PROVIDER="m039" MY_DIRNAME="KBtL" -MY_WINEVERSION="1.1.37" +MY_WINEVERSION="1.7.26" #return = local path to scaled image get_image() { New source code#!/bin/bash # Date : (2010-02-02 18-22) # Last revision : (2010-02-02 18-22) # Wine version used : 1.1.37 # Distribution used to test : GNU/Linux # Author : m039 # Licence : - # Depend : - [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" # #Preliminary part # MY_GAMENAME="King's Bounty: The Legend" MY_URL=http://upload.wikimedia.org/wikipedia/en/3/38/King%27s_Bounty.jpg MY_PROVIDER="m039" MY_DIRNAME="KBtL" MY_WINEVERSION="1.7.26" #return = local path to scaled image get_image() { URL=$1 wget $URL --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg" convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg" echo "$REPERTOIRE/tmp/left.jpeg" } #return = path to game.exe get_gameexe() { cd $WINEPREFIX/drive_c && find . -name kb.exe } #return = path to autoupdater.exe get_autoupdater() { get_gameexe | sed -n 's/\(.*\)kb\.exe/\1autoupdater\.exe/p' } #set properties and forget install_configuration(){ Set_GLSL On } install_directx(){ #Creator : Berillions cd "$REPERTOIRE/ressources" #downloading directx9 if [ ! -e "directx_aug2009_redist.exe" ]; then POL_SetupWindow_download "Downloading" "directx9" "http://download.microsoft.com/download/B/7/9/B79FC9D7-47B8-48B7-A75E-101DEBEB5AB4/directx_aug2009_redist.exe" fi mkdir "Directx" cd Directx cabextract "../directx_aug2009_redist.exe" mkdir "d3dx9" cabextract -d "d3dx9" *d3dx9*x86* cd "d3dx9" mv *.dll "$WINEPREFIX/drive_c/windows/system32" #Réglage Directx9 cd "$WINEPREFIX/drive_c/windows/temp" cat << EOF > OGL.reg [HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides] "d3dx9_24"="native" "d3dx9_25"="native" "d3dx9_26"="native" "d3dx9_27"="native" "d3dx9_28"="native" "d3dx9_29"="native" "d3dx9_30"="native" "d3dx9_31"="native" "d3dx9_32"="native" "d3dx9_33"="native" "d3dx9_34"="native" "d3dx9_35"="native" "d3dx9_36"="native" "d3dx9_37"="native" "d3dx9_38"="native" "d3dx9_39"="native" "d3dx9_40"="native" "d3dx9_41"="native" "d3dx9_42"="native" EOF regedit OGL.reg cd "$REPERTOIRE/ressources" rm -rf Directx } # #Main part # POL_SetupWindow_Init "" $(get_image "$MY_URL") POL_SetupWindow_presentation "$MY_GAMENAME" "Atari" "http://www.kings-bounty.com" "$MY_PROVIDER" "$MY_DIRNAME" POL_SetupWindow_message "Please, don't choose checkbox for directx installation from cdrom.\n" POL_SetupWindow_install_wine "$MY_WINEVERSION" Use_WineVersion "$MY_WINEVERSION" select_prefix "$REPERTOIRE/wineprefix/$MY_DIRNAME" POL_SetupWindow_prefixcreate POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" MY_SETUP=$(find "$CDROM" -iname setup.exe) POL_SetupWindow_wait_next_signal "Installing $MY_GAMENAME" "$MY_GAMENAME installation" cd "$(dirname $MY_SETUP)" && wine "$MY_SETUP" POL_SetupWindow_detect_exit POL_SetupWindow_wait_next_signal "Setting configuration properties" "$MY_GAMENAME installation" install_configuration POL_SetupWindow_detect_exit install_directx #It is important to run autoupdater.. and in the game folder. (This update will include no-cd) POL_SetupWindow_wait_next_signal "Installing updates..." "$MY_GAMENAME" cd "$WINEPREFIX"/drive_c/"$(dirname "$(get_gameexe)")" && wine "$(basename "$(get_autoupdater)")" POL_SetupWindow_detect_exit POL_SetupWindow_make_shortcut "$MY_DIRNAME" "$(dirname "$(get_gameexe)")" "kb.exe" "" "$MY_GAMENAME" Set_WineVersion_Assign "$MY_WINEVERSION" "$MY_GAMENAME" POL_SetupWindow_reboot POL_SetupWindow_Close exit Replies |
This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com