Counter-Strike: Condition Zero

Informations

Creator Message
isaacangello

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

First-person shooter, 2004.
Note: this game received a Linux native version in 2013.

Source code

                

Contributions

Filters:

Contribute
Member Message
isaacangello Thursday 30 May 2019 at 5:43
isaacangello

Warning

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

Message

The script is working fine. if you are opening the half life in place of the counter strike, change the argument and put the correct folder name example: cstrike

Differences

@@ -0,0 +1,121 @@
+# 
+# [Isaac Angelo] (2019-05-29 00:34)
+# Aluno de Ciência da Computação da Universidade Federal de Pelotas
+# Script Para instalação do Counter Strike Condition Zero via PLAYONLINUX
+#
+#
+version=1.2.4
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+PREFIX="cscz"
+WINEVERSION="3.17"
+TITLE="Counter Strike Condition Zero"
+ 
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/css/top.jpg" "http://files.playonlinux.com/resources/setups/css/left.png" "$TITLE"
+ 
+POL_SetupWindow_Init
+#POL_SetupWindow_SetID 2665
+ 
+POL_SetupWindow_presentation "\n $TITLE" "Isaac Angelo \n  isaacangello@inf.ufpel.edu.br" "versão = $version" "Valve"
+
+
+ 
+POL_RequiredVersion 4.0.18 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update"
+ 
+if [ "$POL_OS" = "Linux" ]; then
+        wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
+fi
+POL_Debug_Init
+POL_System_SetArch "x86"
+ 
+#POL_SetupWindow_message "Esse script foi  " "MUITO IMPORTANTE!!!!" 
+POL_SetupWindow_InstallMethod "LOCAL"
+ 
+if [ "$INSTALL_METHOD" = "DVD" ]; then
+#        POL_SetupWindow_cdrom
+#        POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
+#        SetupIs="$CDROM_SETUP"
+#        cd "$CDROM"
+        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Counter Strike Condition Zero')" "$TITLE"
+        SetupIs="$APP_ANSWER"
+
+else
+        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Counter Strike Condition Zero')" "$TITLE"
+        SetupIs="$APP_ANSWER"
+fi
+ 
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+
+Set_OS "win7" 
+
+if [ "$POL_OS" = "Mac" ]; then
+    # Samba support
+    POL_Call POL_GetTool_samba3
+    source "$POL_USER_ROOT/tools/samba3/init"
+fi
+ 
+ 
+POL_Wine_WaitBefore "$TITLE"
+[ "$CDROM" ] && cd "$CDROM"
+ 
+if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
+    POL_Debug_Fatal "$(eval_gettext "A Versão de  64bits não é compatível ! ")";
+fi
+#instalando Dependencias
+# exemplo: POL_Call POL_Install_msxml6
+POL_SetupWindow_pulsebar "Instalando componentes" "$TITLE"
+  
+POL_SetupWindow_set_text "Installation Corefonts"
+ POL_Call POL_Install_corefonts 
+POL_SetupWindow_pulse "11" # meaning 20%
+  
+POL_SetupWindow_set_text "Installation Tahoma font"
+POL_Call POL_Install_tahoma
+POL_SetupWindow_pulse "23"
+  
+POL_SetupWindow_set_text "Installation Tahoma2 font"
+POL_Call POL_Install_tahoma2
+POL_SetupWindow_pulse "31"
+  
+POL_SetupWindow_set_text "Installation Internal_InstallFonts"
+POL_Call POL_Internal_InstallFonts
+POL_SetupWindow_pulse "44"
+  
+POL_SetupWindow_set_text "Installation DirectPlay"
+POL_Call POL_Install_directplay
+POL_SetupWindow_pulse "52"
+
+
+POL_SetupWindow_set_text "Installation DirectX 10"
+POL_Call POL_Install_dxfullsetup
+POL_SetupWindow_pulse "67"
+ 
+ 
+ 
+ #POL_Install_msxml6
+ 
+ 
+
+POL_SetupWindow_set_text "Installation $TITLE"
+POL_Wine "$SetupIs"
+POL_Wine_WaitExit "$TITLE"
+
+ POL_SetupWindow_pulse "99"
+ 	
+
+ POL_SetupWindow_set_text "Create icon for $TITLE"
+ 
+ 
+POL_Shortcut "hl.exe" "$TITLE" "Counter-Srtike : Source.png" "-game czero" "Games;PFS;"
+POL_Shortcut "hl.exe" "Counter Strike 1.6" "Counter-Srtike : Source.png" "-game cstrike" "Games;PFS;"
+POL_SetupWindow_pulse "100"
+
+ 
+sPOL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully\n\nIf an installation Windows prevent your programs from running, you must remove and reinstall $TITLE')" "$TITLE"
+POL_SetupWindow_Close
+exit
+
+

New source code

# 
# [Isaac Angelo] (2019-05-29 00:34)
# Aluno de Ciência da Computação da Universidade Federal de Pelotas
# Script Para instalação do Counter Strike Condition Zero via PLAYONLINUX
#
#
version=1.2.4

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="cscz"
WINEVERSION="3.17"
TITLE="Counter Strike Condition Zero"
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/css/top.jpg" "http://files.playonlinux.com/resources/setups/css/left.png" "$TITLE"
 
POL_SetupWindow_Init
#POL_SetupWindow_SetID 2665
 
POL_SetupWindow_presentation "\n $TITLE" "Isaac Angelo \n  isaacangello@inf.ufpel.edu.br" "versão = $version" "Valve"


 
POL_RequiredVersion 4.0.18 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update"
 
if [ "$POL_OS" = "Linux" ]; then
        wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
fi
POL_Debug_Init
POL_System_SetArch "x86"
 
#POL_SetupWindow_message "Esse script foi  " "MUITO IMPORTANTE!!!!" 
POL_SetupWindow_InstallMethod "LOCAL"
 
if [ "$INSTALL_METHOD" = "DVD" ]; then
#        POL_SetupWindow_cdrom
#        POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
#        SetupIs="$CDROM_SETUP"
#        cd "$CDROM"
        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Counter Strike Condition Zero')" "$TITLE"
        SetupIs="$APP_ANSWER"

else
        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Counter Strike Condition Zero')" "$TITLE"
        SetupIs="$APP_ANSWER"
fi
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7" 

if [ "$POL_OS" = "Mac" ]; then
    # Samba support
    POL_Call POL_GetTool_samba3
    source "$POL_USER_ROOT/tools/samba3/init"
fi
 
 
POL_Wine_WaitBefore "$TITLE"
[ "$CDROM" ] && cd "$CDROM"
 
if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
    POL_Debug_Fatal "$(eval_gettext "A Versão de  64bits não é compatível ! ")";
fi
#instalando Dependencias
# exemplo: POL_Call POL_Install_msxml6
POL_SetupWindow_pulsebar "Instalando componentes" "$TITLE"
  
POL_SetupWindow_set_text "Installation Corefonts"
 POL_Call POL_Install_corefonts 
POL_SetupWindow_pulse "11" # meaning 20%
  
POL_SetupWindow_set_text "Installation Tahoma font"
POL_Call POL_Install_tahoma
POL_SetupWindow_pulse "23"
  
POL_SetupWindow_set_text "Installation Tahoma2 font"
POL_Call POL_Install_tahoma2
POL_SetupWindow_pulse "31"
  
POL_SetupWindow_set_text "Installation Internal_InstallFonts"
POL_Call POL_Internal_InstallFonts
POL_SetupWindow_pulse "44"
  
POL_SetupWindow_set_text "Installation DirectPlay"
POL_Call POL_Install_directplay
POL_SetupWindow_pulse "52"


POL_SetupWindow_set_text "Installation DirectX 10"
POL_Call POL_Install_dxfullsetup
POL_SetupWindow_pulse "67"
 
 
 
 #POL_Install_msxml6
 
 

POL_SetupWindow_set_text "Installation $TITLE"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

 POL_SetupWindow_pulse "99"
         

 POL_SetupWindow_set_text "Create icon for $TITLE"
 
 
POL_Shortcut "hl.exe" "$TITLE" "Counter-Srtike : Source.png" "-game czero" "Games;PFS;"
POL_Shortcut "hl.exe" "Counter Strike 1.6" "Counter-Srtike : Source.png" "-game cstrike" "Games;PFS;"
POL_SetupWindow_pulse "100"

 
sPOL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully\n\nIf an installation Windows prevent your programs from running, you must remove and reinstall $TITLE')" "$TITLE"
POL_SetupWindow_Close
exit


Replies

Thursday 30 May 2019 at 10:36
Please prefer writing messages in English.
Improvements suggested : http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_9:_Standardization
Thursday 30 May 2019 at 20:05
Google translator exists !!
I am a computer scientist not a linguist.
Thursday 30 May 2019 at 22:32
Sure, however english make the scripts understandable by more people on the planet. Thanks for contributing scripts.
Friday 31 May 2019 at 2:58

yes but this script was just created, premature and pretentious to override the world small premises without conclusion, some friends use it and give some feedback, I can edit it for translation
Friday 31 May 2019 at 7:26
Note: For scripts not destinated to all POL users, this area is better: https://www.playonlinux.com/en/forum-25-Your_creations.html