Star Wars: Jedi Knight: Jedi Academy

Informations

Creator Meddelanden
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 36536
Wine: 1.7.48

Feedbacks

Source code

#!/bin/bash

# CHANGELOG
# [Quentin PÂRIS] (2012-04-29 13-09)
#   Updated to PlayOnLinux v4
# [SuperPlumus] (2015-08-02 20-13)
#   Update wine version to 1.7.48
#   Fix bug (incorrect argumentas) in POL_Wine_InstallCDROMCustom
#   Update title variable
#   Partial clean code

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Star Wars: Jedi Knight: Jedi Academy"
PREFIX="JediKnightAcademy"
STEAM_ID="6020"

POL_GetSetupImages "" "$SITE/setups/jka/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE"

POL_SetupWindow_presentation "$TITLE" "LucasArts" "http://www.lucasarts.com" "Quentin PÂRIS" "$PREFIX"

POL_SetupWindow_InstallMethod "CD,STEAM"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.48"

POL_System_TmpCreate "JediKnightAcademy"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
    chmod -R 777 "$POL_System_TmpDir"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    POL_SetupWindow_message "$(eval_gettext 'Please insert the second game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/data3.cab"

    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
    chmod -R 777 "$POL_System_TmpDir"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    POL_Wine_WaitBefore "$TITLE"

    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
    POL_Wine_InstallCDROMCustom "p" "$POL_System_TmpDir"

    POL_Wine "$POL_System_TmpDir/GameData/Setup.exe"

    POL_Wine_reboot
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" || POL_Debug_Fatal "Unable to change directory : \$WINEPREFIX/drive_c/\$PROGRAMFILES/Steam"
    POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
    POL_Wine_WaitExit "$TITLE"
fi

POL_System_TmpDelete
POL_Shortcut "JediAcademy.exe" "Jedi Knight Academy"

POL_SetupWindow_message "Installation is finished\n\nYou need to patch the game to run it" "$TITLE"
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Meddelanden
SuperPlumus Sunday 2 August 2015 at 20:28
SuperPlumus Anonymous

Information

This update has been approved by the team.

Meddelanden

@whatwhat

Hello,

Please test the attached script with the latest wine version 1.7.48, and tell me if it works properly.

Thank you for report.

Differences

@@ -1,13 +1,18 @@
 #!/bin/bash
 
-# [Quentin PÂRIS] (2012-04-29 13:09)
+# CHANGELOG
+# [Quentin PÂRIS] (2012-04-29 13-09)
 #   Updated to PlayOnLinux v4
+# [SuperPlumus] (2015-08-02 20-13)
+#   Update wine version to 1.7.48
+#   Fix bug (incorrect argumentas) in POL_Wine_InstallCDROMCustom
+#   Update title variable
+#   Partial clean code
 
-# CHANGELOG
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-TITLE="Star Wars : Jedi Knight: Jedi Academy"
+TITLE="Star Wars: Jedi Knight: Jedi Academy"
 PREFIX="JediKnightAcademy"
 STEAM_ID="6020"
 
@@ -21,49 +26,48 @@
 POL_SetupWindow_InstallMethod "CD,STEAM"
 
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "1.2.3"
+POL_Wine_PrefixCreate "1.7.48"
 
 POL_System_TmpCreate "JediKnightAcademy"
 
 if [ "$INSTALL_METHOD" = "CD" ]; then
-	POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
-	POL_SetupWindow_cdrom 
-	POL_SetupWindow_check_cdrom "GameData/Setup.exe"
-	POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
-	chmod -R 777 "$POL_System_TmpDir"
-	POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
-	
-	POL_SetupWindow_message "$(eval_gettext 'Please insert the second game media into your disk drive')" "$TITLE"
-	POL_SetupWindow_cdrom
-	POL_SetupWindow_check_cdrom "GameData/data3.cab"
-
-	POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
-	chmod -R 777 "$POL_System_TmpDir"
-	POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
-	
-	POL_Wine_WaitBefore "$TITLE"
-
-	POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
-	POL_SetupWindow_cdrom 
-	POL_SetupWindow_check_cdrom "GameData/Setup.exe"
-	POL_Wine_InstallCDROMCustom "$POL_System_TmpDir"
-
-	POL_Wine "$POL_System_TmpDir/GameData/Setup.exe"
-
-	POL_Wine_reboot
+    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
+    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
+    chmod -R 777 "$POL_System_TmpDir"
+    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
+
+    POL_SetupWindow_message "$(eval_gettext 'Please insert the second game media into your disk drive')" "$TITLE"
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "GameData/data3.cab"
+
+    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
+    chmod -R 777 "$POL_System_TmpDir"
+    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"
+
+    POL_Wine_WaitBefore "$TITLE"
+
+    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
+    POL_Wine_InstallCDROMCustom "p" "$POL_System_TmpDir"
+
+    POL_Wine "$POL_System_TmpDir/GameData/Setup.exe"
+
+    POL_Wine_reboot
+elif [ "$INSTALL_METHOD" = "STEAM" ]; then
+    POL_Call POL_Install_steam
+    POL_Call POL_Install_steam_flags "$STEAM_ID"
+    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
+    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" || POL_Debug_Fatal "Unable to change directory : \$WINEPREFIX/drive_c/\$PROGRAMFILES/Steam"
+    POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
+    POL_Wine_WaitExit "$TITLE"
 fi
 
-if [ "$INSTALL_METHOD" = "STEAM" ]; then
-	POL_Call POL_Install_steam
-	POL_Call POL_Install_steam_flags "$STEAM_ID"
-	POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
-        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" || POL_Debug_Fatal "Unable to change directory : \$WINEPREFIX/drive_c/\$PROGRAMFILES/Steam"
-        POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
-        POL_Wine_WaitExit "$TITLE"
-fi
 POL_System_TmpDelete
 POL_Shortcut "JediAcademy.exe" "Jedi Knight Academy"
 
 POL_SetupWindow_message "Installation is finished\n\nYou need to patch the game to run it" "$TITLE"
 POL_SetupWindow_Close
-exit 0
\ No newline at end of file
+exit 0

New source code

#!/bin/bash

# CHANGELOG
# [Quentin PÂRIS] (2012-04-29 13-09)
#   Updated to PlayOnLinux v4
# [SuperPlumus] (2015-08-02 20-13)
#   Update wine version to 1.7.48
#   Fix bug (incorrect argumentas) in POL_Wine_InstallCDROMCustom
#   Update title variable
#   Partial clean code

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Star Wars: Jedi Knight: Jedi Academy"
PREFIX="JediKnightAcademy"
STEAM_ID="6020"

POL_GetSetupImages "" "$SITE/setups/jka/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
POL_RequiredVersion "4.0.18" || POL_Debug_Fatal "$APPLICATION_TITLE 4.0.18 is required to install $TITLE"

POL_SetupWindow_presentation "$TITLE" "LucasArts" "http://www.lucasarts.com" "Quentin PÂRIS" "$PREFIX"

POL_SetupWindow_InstallMethod "CD,STEAM"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.48"

POL_System_TmpCreate "JediKnightAcademy"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
    chmod -R 777 "$POL_System_TmpDir"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    POL_SetupWindow_message "$(eval_gettext 'Please insert the second game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/data3.cab"

    POL_System_CopyDirectory "$CDROM" "$POL_System_TmpDir" "2522356"
    chmod -R 777 "$POL_System_TmpDir"
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    POL_Wine_WaitBefore "$TITLE"

    POL_SetupWindow_message "$(eval_gettext 'Please insert the first game media into your disk drive')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "GameData/Setup.exe"
    POL_Wine_InstallCDROMCustom "p" "$POL_System_TmpDir"

    POL_Wine "$POL_System_TmpDir/GameData/Setup.exe"

    POL_Wine_reboot
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    POL_Call POL_Install_steam
    POL_Call POL_Install_steam_flags "$STEAM_ID"
    POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam" || POL_Debug_Fatal "Unable to change directory : \$WINEPREFIX/drive_c/\$PROGRAMFILES/Steam"
    POL_Wine start /unix "steam.exe" steam://install/$STEAM_ID
    POL_Wine_WaitExit "$TITLE"
fi

POL_System_TmpDelete
POL_Shortcut "JediAcademy.exe" "Jedi Knight Academy"

POL_SetupWindow_message "Installation is finished\n\nYou need to patch the game to run it" "$TITLE"
POL_SetupWindow_Close
exit 0

Svar

Anonymous
Monday 3 August 2015 at 8:49
Didnt work. The launcher has only install option after install. Trying to run the game from steam =crash. I didnt upgrade the game...
Anonymous
Tuesday 4 August 2015 at 22:41
I'm sorry, but I don't know are very limited with Steam.

I invite you to open a topic on the English forum, by following the instructions in the link below.

https://www.playonlinux.com/en/topic-12181-Please_read_before_posting.html

Other admins and developers who know better Steam may repair the script.

(Sorry for my bad English)
Anonymous
Wednesday 5 August 2015 at 3:16
Does it work with cdrom version?
Wednesday 27 November 2019 at 8:52
Script approved.
whatwhat Sunday 2 August 2015 at 4:22
whatwhat Anonymous

Meddelanden

Steam does not currently work, needs a newer version of wine to function.

Svar

Anonymous
Sunday 2 August 2015 at 20:30
Please test the atached script above (modify with wine 1.7.48)

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