Star Wars: Empire at War

Informations

Creator Message
kukulo Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 1972
Wine: 2.22

Feedbacks

Description

RTS, 2006. Wikipedia.

PCGamingWiki, Appdb.winehq.org

Script wrote in 2017 for 'Star Wars Empire at War Gold Pack - gog.com', but it can also install from local file.

Source code

#!/usr/bin/env bash
# Date conv:yy-mm-dd
# Date : (2017-06-17)
# Last revision : see changelog
# Wine version used : -
# Distribution used to test : -
# Author : Kukulo, ImperatorS79, Dadu042
# Licence : Retail
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [Kukulo] (2017-06-17)
#   First script.
# [ImperatorS79] (2017-06-19)
#   ?
# [Dadu042] (2019-11-30)
#   Wine 2.10-staging -> 2.22
#   Add shortcut category.
#   Add POL_RequiredVersion 4.0.0
#   Can install patch.
   
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
WINE_VERSION="2.22"
TITLE="Star Wars Empire at War Gold Pack - gog.com"
AUTOR="Kukulo"
GAME_URL="https://en.wikipedia.org/wiki/Star_Wars:_Empire_at_War"
EDITOR="LucasArts"
GAME_VMS="64"
 
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "SWEAWGP"

POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Wine_SelectPrefix "SWEAWGP"
 
POL_Wine_PrefixCreate "$WINE_VERSION"
 
POL_Call POL_Install_corefonts
POL_Call POL_Install_d3dx9 

# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver

POL_SetupWindow_VMS "$GAME_VMS"
 
POL_SetupWindow_InstallMethod "LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
    SETUP_PATH="$APP_ANSWER"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$SETUP_PATH"
fi

POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "sweaw.exe" "Star Wars Empire at War" "" "" "Game;"
POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption" "" "" "Game;"

################
# Patch update #
################
   
POL_SetupWindow_menu "$(eval_gettext 'Do you want to install a official patch-update ?\n (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
     
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the file to run')" "$TITLE"
        PATCH_EXE="$APP_ANSWER"
        POL_Wine start /unix "$PATCH_EXE"
        POL_Wine_WaitExit "$PATCH_EXE"
fi

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Tuesday 31 December 2019 at 10:41
Dadu042
Moderator

Information

This update has been approved by the team.

Differences

@@ -17,6 +17,7 @@
 #   Wine 2.10-staging -> 2.22
 #   Add shortcut category.
 #   Add POL_RequiredVersion 4.0.0
+#   Can install patch.
    
 [ "$PLAYONLINUX" = "" ] && exit
 source "$PLAYONLINUX/lib/sources"
@@ -63,6 +64,19 @@
  
 POL_Shortcut "sweaw.exe" "Star Wars Empire at War" "" "" "Game;"
 POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption" "" "" "Game;"
- 
+
+################
+# Patch update #
+################
+   
+POL_SetupWindow_menu "$(eval_gettext 'Do you want to install a official patch-update ?\n (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
+     
+if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the file to run')" "$TITLE"
+        PATCH_EXE="$APP_ANSWER"
+        POL_Wine start /unix "$PATCH_EXE"
+        POL_Wine_WaitExit "$PATCH_EXE"
+fi
+
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env bash
# Date conv:yy-mm-dd
# Date : (2017-06-17)
# Last revision : see changelog
# Wine version used : -
# Distribution used to test : -
# Author : Kukulo, ImperatorS79, Dadu042
# Licence : Retail
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [Kukulo] (2017-06-17)
#   First script.
# [ImperatorS79] (2017-06-19)
#   ?
# [Dadu042] (2019-11-30)
#   Wine 2.10-staging -> 2.22
#   Add shortcut category.
#   Add POL_RequiredVersion 4.0.0
#   Can install patch.
   
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
WINE_VERSION="2.22"
TITLE="Star Wars Empire at War Gold Pack - gog.com"
AUTOR="Kukulo"
GAME_URL="https://en.wikipedia.org/wiki/Star_Wars:_Empire_at_War"
EDITOR="LucasArts"
GAME_VMS="64"
 
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "SWEAWGP"

POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Wine_SelectPrefix "SWEAWGP"
 
POL_Wine_PrefixCreate "$WINE_VERSION"
 
POL_Call POL_Install_corefonts
POL_Call POL_Install_d3dx9 

# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver

POL_SetupWindow_VMS "$GAME_VMS"
 
POL_SetupWindow_InstallMethod "LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
    SETUP_PATH="$APP_ANSWER"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$SETUP_PATH"
fi

POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "sweaw.exe" "Star Wars Empire at War" "" "" "Game;"
POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption" "" "" "Game;"

################
# Patch update #
################
   
POL_SetupWindow_menu "$(eval_gettext 'Do you want to install a official patch-update ?\n (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
     
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the file to run')" "$TITLE"
        PATCH_EXE="$APP_ANSWER"
        POL_Wine start /unix "$PATCH_EXE"
        POL_Wine_WaitExit "$PATCH_EXE"
fi

POL_SetupWindow_Close
exit 0

Replies

Dadu042 Tuesday 31 December 2019 at 10:39
Dadu042
Moderator

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,20 +1,30 @@
 #!/usr/bin/env bash
 # Date conv:yy-mm-dd
 # Date : (2017-06-17)
-# Last revision : (2017-06-19)
+# Last revision : see changelog
 # Wine version used : -
 # Distribution used to test : -
-# Author : Kukulo, ImperatorS79
+# Author : Kukulo, ImperatorS79, Dadu042
 # Licence : Retail
 # Only For : http://www.playonlinux.com
+#
+# CHANGELOG
+# [Kukulo] (2017-06-17)
+#   First script.
+# [ImperatorS79] (2017-06-19)
+#   ?
+# [Dadu042] (2019-11-30)
+#   Wine 2.10-staging -> 2.22
+#   Add shortcut category.
+#   Add POL_RequiredVersion 4.0.0
    
 [ "$PLAYONLINUX" = "" ] && exit
 source "$PLAYONLINUX/lib/sources"
  
-WINE_VERSION="2.10-staging"
+WINE_VERSION="2.22"
 TITLE="Star Wars Empire at War Gold Pack - gog.com"
 AUTOR="Kukulo"
-GAME_URL="https://www.gog.com/"
+GAME_URL="https://en.wikipedia.org/wiki/Star_Wars:_Empire_at_War"
 EDITOR="LucasArts"
 GAME_VMS="64"
  
@@ -25,33 +35,34 @@
 POL_Debug_Init
  
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "SWEAWGP"
- 
+
+POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
 POL_Wine_SelectPrefix "SWEAWGP"
  
 POL_Wine_PrefixCreate "$WINE_VERSION"
  
 POL_Call POL_Install_corefonts
 POL_Call POL_Install_d3dx9 
- 
-POL_SetupWindow_VMS "$GAME_VMS"
- 
+
 # Set Graphic Card informations keys for wine
 POL_Wine_SetVideoDriver
+
+POL_SetupWindow_VMS "$GAME_VMS"
  
 POL_SetupWindow_InstallMethod "LOCAL"
 if [ "$INSTALL_METHOD" = "LOCAL" ]
 then
-          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
-        SETUP_PATH="$APP_ANSWER"
-         POL_Wine_WaitBefore "$TITLE"
-        POL_Wine "$SETUP_PATH"
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
+    SETUP_PATH="$APP_ANSWER"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine "$SETUP_PATH"
 fi
-   
+
 POL_Wine_WaitExit "$TITLE"
  
-POL_Shortcut "sweaw.exe" "Star Wars Empire at War"
-POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption"
+POL_Shortcut "sweaw.exe" "Star Wars Empire at War" "" "" "Game;"
+POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption" "" "" "Game;"
  
 POL_SetupWindow_Close
- 
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env bash
# Date conv:yy-mm-dd
# Date : (2017-06-17)
# Last revision : see changelog
# Wine version used : -
# Distribution used to test : -
# Author : Kukulo, ImperatorS79, Dadu042
# Licence : Retail
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [Kukulo] (2017-06-17)
#   First script.
# [ImperatorS79] (2017-06-19)
#   ?
# [Dadu042] (2019-11-30)
#   Wine 2.10-staging -> 2.22
#   Add shortcut category.
#   Add POL_RequiredVersion 4.0.0
   
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
WINE_VERSION="2.22"
TITLE="Star Wars Empire at War Gold Pack - gog.com"
AUTOR="Kukulo"
GAME_URL="https://en.wikipedia.org/wiki/Star_Wars:_Empire_at_War"
EDITOR="LucasArts"
GAME_VMS="64"
 
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "SWEAWGP"

POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_Wine_SelectPrefix "SWEAWGP"
 
POL_Wine_PrefixCreate "$WINE_VERSION"
 
POL_Call POL_Install_corefonts
POL_Call POL_Install_d3dx9 

# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver

POL_SetupWindow_VMS "$GAME_VMS"
 
POL_SetupWindow_InstallMethod "LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
    SETUP_PATH="$APP_ANSWER"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$SETUP_PATH"
fi

POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "sweaw.exe" "Star Wars Empire at War" "" "" "Game;"
POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption" "" "" "Game;"
 
POL_SetupWindow_Close
exit 0

Replies

ImperatorS79 Friday 23 June 2017 at 23:55
ImperatorS79 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Since this game need fx_2_0 compilation target to work with more recent wine, I added POL_Call POL_Install_d3dx9  as a workaround

Please provide test for us to know if it's working now.

Differences

@@ -0,0 +1,57 @@
+#!/usr/bin/env bash
+# Date conv:yy-mm-dd
+# Date : (2017-06-17)
+# Last revision : (2017-06-19)
+# Wine version used : -
+# Distribution used to test : -
+# Author : Kukulo, ImperatorS79
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+   
+[ "$PLAYONLINUX" = "" ] && exit
+source "$PLAYONLINUX/lib/sources"
+ 
+WINE_VERSION="2.10-staging"
+TITLE="Star Wars Empire at War Gold Pack - gog.com"
+AUTOR="Kukulo"
+GAME_URL="https://www.gog.com/"
+EDITOR="LucasArts"
+GAME_VMS="64"
+ 
+#POL_GetSetupImages "undefined" "undefine" "$TITLE"
+POL_SetupWindow_Init
+ 
+# Starting debugging API
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "SWEAWGP"
+ 
+POL_Wine_SelectPrefix "SWEAWGP"
+ 
+POL_Wine_PrefixCreate "$WINE_VERSION"
+ 
+POL_Call POL_Install_corefonts
+POL_Call POL_Install_d3dx9 
+ 
+POL_SetupWindow_VMS "$GAME_VMS"
+ 
+# Set Graphic Card informations keys for wine
+POL_Wine_SetVideoDriver
+ 
+POL_SetupWindow_InstallMethod "LOCAL"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
+        SETUP_PATH="$APP_ANSWER"
+         POL_Wine_WaitBefore "$TITLE"
+        POL_Wine "$SETUP_PATH"
+fi
+   
+POL_Wine_WaitExit "$TITLE"
+ 
+POL_Shortcut "sweaw.exe" "Star Wars Empire at War"
+POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption"
+ 
+POL_SetupWindow_Close
+ 
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env bash
# Date conv:yy-mm-dd
# Date : (2017-06-17)
# Last revision : (2017-06-19)
# Wine version used : -
# Distribution used to test : -
# Author : Kukulo, ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
   
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
WINE_VERSION="2.10-staging"
TITLE="Star Wars Empire at War Gold Pack - gog.com"
AUTOR="Kukulo"
GAME_URL="https://www.gog.com/"
EDITOR="LucasArts"
GAME_VMS="64"
 
#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "SWEAWGP"
 
POL_Wine_SelectPrefix "SWEAWGP"
 
POL_Wine_PrefixCreate "$WINE_VERSION"
 
POL_Call POL_Install_corefonts
POL_Call POL_Install_d3dx9 
 
POL_SetupWindow_VMS "$GAME_VMS"
 
# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver
 
POL_SetupWindow_InstallMethod "LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
        SETUP_PATH="$APP_ANSWER"
         POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$SETUP_PATH"
fi
   
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "sweaw.exe" "Star Wars Empire at War"
POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption"
 
POL_SetupWindow_Close
 
exit 0

Replies

Anonymous
Saturday 24 June 2017 at 9:24
Tested: installation works, when launching game I get a linux system message that the game is unresponsive with two buttons - wait or close. When I switch the wine version to 1.5.31 everything works without the system message.
Anonymous
Sunday 25 June 2017 at 21:23
It's interressant, since it works flawlessly for me but not for you with 2.x wine
Anonymous
Tuesday 27 June 2017 at 18:13
The game works, but there is a system message about wait and close. It is a bit annoying.
ImperatorS79 Monday 19 June 2017 at 14:27
ImperatorS79 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

I think it's a little more standardized like this

I add POL_Set_VMS and POL Wine Set Video driver

I also changed wine version, cause i know it's working with 2.x series

I think it needs corefont but i'm not sure

Differences

@@ -0,0 +1,56 @@
+#!/usr/bin/env bash
+# Date conv:yy-mm-dd
+# Date : (2017-06-17)
+# Last revision : (2017-06-19)
+# Wine version used : -
+# Distribution used to test : -
+# Author : Kukulo, ImperatorS79
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+  
+[ "$PLAYONLINUX" = "" ] && exit
+source "$PLAYONLINUX/lib/sources"
+
+WINE_VERSION="2.10-staging"
+TITLE="Star Wars Empire at War Gold Pack - gog.com"
+AUTOR="Kukulo"
+GAME_URL="https://www.gog.com/"
+EDITOR="LucasArts"
+GAME_VMS="64"
+
+#POL_GetSetupImages "undefined" "undefine" "$TITLE"
+POL_SetupWindow_Init
+
+# Starting debugging API
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "SWEAWGP"
+
+POL_Wine_SelectPrefix "SWEAWGP"
+
+POL_Wine_PrefixCreate "$WINE_VERSION"
+
+POL_Call POL_Install_corefonts
+
+POL_SetupWindow_VMS "$GAME_VMS"
+
+# Set Graphic Card informations keys for wine
+POL_Wine_SetVideoDriver
+
+POL_SetupWindow_InstallMethod "LOCAL"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
+        SETUP_PATH="$APP_ANSWER"
+         POL_Wine_WaitBefore "$TITLE"
+        POL_Wine "$SETUP_PATH"
+fi
+  
+POL_Wine_WaitExit "$TITLE"
+
+POL_Shortcut "sweaw.exe" "Star Wars Empire at War"
+POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption"
+
+POL_SetupWindow_Close
+
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env bash
# Date conv:yy-mm-dd
# Date : (2017-06-17)
# Last revision : (2017-06-19)
# Wine version used : -
# Distribution used to test : -
# Author : Kukulo, ImperatorS79
# Licence : Retail
# Only For : http://www.playonlinux.com
  
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"

WINE_VERSION="2.10-staging"
TITLE="Star Wars Empire at War Gold Pack - gog.com"
AUTOR="Kukulo"
GAME_URL="https://www.gog.com/"
EDITOR="LucasArts"
GAME_VMS="64"

#POL_GetSetupImages "undefined" "undefine" "$TITLE"
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTOR" "SWEAWGP"

POL_Wine_SelectPrefix "SWEAWGP"

POL_Wine_PrefixCreate "$WINE_VERSION"

POL_Call POL_Install_corefonts

POL_SetupWindow_VMS "$GAME_VMS"

# Set Graphic Card informations keys for wine
POL_Wine_SetVideoDriver

POL_SetupWindow_InstallMethod "LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
        SETUP_PATH="$APP_ANSWER"
         POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$SETUP_PATH"
fi
  
POL_Wine_WaitExit "$TITLE"

POL_Shortcut "sweaw.exe" "Star Wars Empire at War"
POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption"

POL_SetupWindow_Close

exit 0

Replies

Anonymous
Thursday 22 June 2017 at 18:35
I tested it with wine 2.10-staging - the game does not even start. With the wine 1.5.31 it is fine.
Anonymous
Thursday 22 June 2017 at 19:52
that's unexpected -> https://appdb.winehq.org/objectManager.php?sClass=version&iId=32967

I will try to retest it as soon as possible
Anonymous
Thursday 22 June 2017 at 19:56
Would you mind try with different version of wine (from wine 2.0 to 2.10 ?)
Anonymous
Friday 23 June 2017 at 18:06
Yes I tried, only the 1.5.31 works.
kukulo Saturday 17 June 2017 at 8:20
kukulo Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Source code of the install script:

Differences

@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+ 
+[ "$PLAYONLINUX" = "" ] && exit
+source "$PLAYONLINUX/lib/sources"
+WINE_VERSION="1.5.31"
+TITLE="Star Wars Empire at War Gold Pack - gog.com"
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_presentation "Star Wars Empire at War Gold Pack" "gog.com" "https://www.gog.com/" "Kukulo" "SWEAWGP"
+POL_Wine_SelectPrefix "SWEAWGP"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+POL_Call POL_Install_d3dx9_36
+POL_SetupWindow_InstallMethod "LOCAL"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
+        SETUP_PATH="$APP_ANSWER"
+         POL_Wine_WaitBefore "$TITLE"
+        POL_Wine "$SETUP_PATH"
+fi
+ 
+POL_Wine_WaitExit "$TITLE"
+POL_Shortcut "sweaw.exe" "Star Wars Empire at War"
+POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption"
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env bash
 
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
WINE_VERSION="1.5.31"
TITLE="Star Wars Empire at War Gold Pack - gog.com"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "Star Wars Empire at War Gold Pack" "gog.com" "https://www.gog.com/" "Kukulo" "SWEAWGP"
POL_Wine_SelectPrefix "SWEAWGP"
POL_Wine_PrefixCreate "$WINE_VERSION"
POL_Call POL_Install_d3dx9_36
POL_SetupWindow_InstallMethod "LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
        SETUP_PATH="$APP_ANSWER"
         POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$SETUP_PATH"
fi
 
POL_Wine_WaitExit "$TITLE"
POL_Shortcut "sweaw.exe" "Star Wars Empire at War"
POL_Shortcut "swfoc.exe" "Star Wars Empire at War Forces of Corruption"
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Saturday 17 June 2017 at 14:25
Source code here