CivNet

Informations

Creator Message
BeberKing

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 10996
Wine:

Feedbacks

Description

Sid Meier's Civilization is a turn-based strategy computer game created by Sid Meier for MicroProse in 1991. The game's objective is to "...build an empire to stand the test of time". The game begins in 4000 BC, and the players attempt to expand and develop their empires through the ages until modern and near-future times.

Sid Meier's CivNet was released in 1995 and was a remake of the original game with added multiplayer, improved graphics and sound, and Windows 3.1/95 support.

Source code

#!/bin/bash
# Date : 2009-05-24 16-37
# Last revision : 2016-03-23
# Wine version used : 1.5.6
# Distribution used to test : Linux Mint 17.3 Rosa
# Licence : GPLv3
# PlayOnLinux : 4.2.2
# Author : BBK
# Contributor : GNU32
# Depend : 7zip
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Civnet"
PREFIX="Civnet"
WINEVERSION="1.5.6"
AUTHOR="BBK + GNU32(mainteneur)"
GAME_VMS="8"
GAME_URL="http://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=8"
GAME_EDITOR="Microprose"

if [ "$POL_LANG" == "fr" ]; then
LNG_ZIP_DL="Téléchargement du jeu..."
LNG_INSTALL_WARNING="Il est préférable de cliquer sur 'Skip' lors de la création d'icônes"
LNG_INSTALL="Installation en cours..."
LNG_INSTALL_DONE="L'installation est terminée."
else
LNG_ZIP_DL="Downloading the game..."
LNG_INSTALL_WARNING="It is advised to choose 'Skip' during the icons creation"
LNG_INSTALL="Installation in progress..."
LNG_INSTALL_DONE="The installation is finished."
fi
  
POL_SetupWindow_Init
POL_SetupWindow_SetID 2132
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation \
    "${TITLE}" \
    "${GAME_EDITOR}" \
    "${GAME_URL}" \
    "${AUTHOR}" \
    "${PREFIX}"

# Create Prefix
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "${PREFIX}"
POL_Wine_PrefixCreate "${WINEVERSION}"

# Asking about memory size of graphic card
POL_SetupWindow_VMS ${GAME_VMS}

# Téléchargement
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://www.abandonware-utopia.com/pages/telechargement/jeux/Sid%20Meiers%20CivNet.7z" "0c455727f06f0b7c7b5ec57bed1d40db"

# Configuration du système d'exploitation
Set_OS "Win95"

POL_SetupWindow_message "$LNG_INSTALL_WARNING" "$TITLE"
POL_SetupWindow_wait_next_signal "$LNG_INSTALL" "$TITLE"

#Installation
7z x "Sid%20Meiers%20CivNet.7z"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/Sid Meiers CivNet/INSTALL.EXE"
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "$PREFIX" "MPS/CIVNET" "CIVNET.EXE" "" "$TITLE"
POL_SetupWindow_message "$LNG_INSTALL_DONE" "$TITLE"

POL_System_TmpDelete
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
gnu32 Wednesday 23 March 2016 at 11:09
gnu32 Anonymous

Information

This update has been approved by the team.

Message

Correction du liens de téléchargement + quelques améliorations

Differences

@@ -1,17 +1,25 @@
 #!/bin/bash
 # Date : 2009-05-24 16-37
-# Last revision : 2009-12-02
-# Wine version used : 1.0.1
-# Distribution used to test : Debian Sid
+# Last revision : 2016-03-23
+# Wine version used : 1.5.6
+# Distribution used to test : Linux Mint 17.3 Rosa
+# Licence : GPLv3
+# PlayOnLinux : 4.2.2
 # Author : BBK
-# Depend : unzip
- 
+# Contributor : GNU32
+# Depend : 7zip
+  
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+  
 TITLE="Civnet"
 PREFIX="Civnet"
- 
+WINEVERSION="1.5.6"
+AUTHOR="BBK + GNU32(mainteneur)"
+GAME_VMS="8"
+GAME_URL="http://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=8"
+GAME_EDITOR="Microprose"
+
 if [ "$POL_LANG" == "fr" ]; then
 LNG_ZIP_DL="Téléchargement du jeu..."
 LNG_INSTALL_WARNING="Il est préférable de cliquer sur 'Skip' lors de la création d'icônes"
@@ -23,28 +31,47 @@
 LNG_INSTALL="Installation in progress..."
 LNG_INSTALL_DONE="The installation is finished."
 fi
- 
+  
 POL_SetupWindow_Init
-POL_SetupWindow_presentation "$TITLE" "Microprose" "" "BBK" "$PREFIX"
- 
-select_prefixe "$REPERTOIRE/wineprefix/$PREFIX"
-POL_SetupWindow_prefixcreate
-cd $REPERTOIRE/tmp
- 
-POL_SetupWindow_download "$LNG_ZIP_DL" "$TITLE" "http://www.abandonware-utopia.com/pages/telechargement/jeux/Civnet.zip"
-unzip Civnet.zip -x *.txt
-cd CivNet
- 
+POL_SetupWindow_SetID 2132
+POL_Debug_Init
+
+# Presentation
+POL_SetupWindow_presentation \
+    "${TITLE}" \
+    "${GAME_EDITOR}" \
+    "${GAME_URL}" \
+    "${AUTHOR}" \
+    "${PREFIX}"
+
+# Create Prefix
+POL_System_SetArch "x86"
+POL_Wine_SelectPrefix "${PREFIX}"
+POL_Wine_PrefixCreate "${WINEVERSION}"
+
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS ${GAME_VMS}
+
+# Téléchargement
+POL_System_TmpCreate "$PREFIX"
+cd "$POL_System_TmpDir"
+POL_Download "http://www.abandonware-utopia.com/pages/telechargement/jeux/Sid%20Meiers%20CivNet.7z" "0c455727f06f0b7c7b5ec57bed1d40db"
+
+# Configuration du système d'exploitation
+Set_OS "Win95"
+
 POL_SetupWindow_message "$LNG_INSTALL_WARNING" "$TITLE"
 POL_SetupWindow_wait_next_signal "$LNG_INSTALL" "$TITLE"
-wine INSTALL.EXE
+
+#Installation
+7z x "Sid%20Meiers%20CivNet.7z"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "$POL_System_TmpDir/Sid Meiers CivNet/INSTALL.EXE"
 POL_SetupWindow_detect_exit
- 
-cd $REPERTOIRE/tmp
-rm Civnet.zip
-rm -r CivNet
- 
+
 POL_SetupWindow_make_shortcut "$PREFIX" "MPS/CIVNET" "CIVNET.EXE" "" "$TITLE"
 POL_SetupWindow_message "$LNG_INSTALL_DONE" "$TITLE"
+
+POL_System_TmpDelete
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : 2009-05-24 16-37
# Last revision : 2016-03-23
# Wine version used : 1.5.6
# Distribution used to test : Linux Mint 17.3 Rosa
# Licence : GPLv3
# PlayOnLinux : 4.2.2
# Author : BBK
# Contributor : GNU32
# Depend : 7zip
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Civnet"
PREFIX="Civnet"
WINEVERSION="1.5.6"
AUTHOR="BBK + GNU32(mainteneur)"
GAME_VMS="8"
GAME_URL="http://www.abandonware-france.org/ltf_abandon/ltf_jeu.php?id=8"
GAME_EDITOR="Microprose"

if [ "$POL_LANG" == "fr" ]; then
LNG_ZIP_DL="Téléchargement du jeu..."
LNG_INSTALL_WARNING="Il est préférable de cliquer sur 'Skip' lors de la création d'icônes"
LNG_INSTALL="Installation en cours..."
LNG_INSTALL_DONE="L'installation est terminée."
else
LNG_ZIP_DL="Downloading the game..."
LNG_INSTALL_WARNING="It is advised to choose 'Skip' during the icons creation"
LNG_INSTALL="Installation in progress..."
LNG_INSTALL_DONE="The installation is finished."
fi
  
POL_SetupWindow_Init
POL_SetupWindow_SetID 2132
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation \
    "${TITLE}" \
    "${GAME_EDITOR}" \
    "${GAME_URL}" \
    "${AUTHOR}" \
    "${PREFIX}"

# Create Prefix
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "${PREFIX}"
POL_Wine_PrefixCreate "${WINEVERSION}"

# Asking about memory size of graphic card
POL_SetupWindow_VMS ${GAME_VMS}

# Téléchargement
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://www.abandonware-utopia.com/pages/telechargement/jeux/Sid%20Meiers%20CivNet.7z" "0c455727f06f0b7c7b5ec57bed1d40db"

# Configuration du système d'exploitation
Set_OS "Win95"

POL_SetupWindow_message "$LNG_INSTALL_WARNING" "$TITLE"
POL_SetupWindow_wait_next_signal "$LNG_INSTALL" "$TITLE"

#Installation
7z x "Sid%20Meiers%20CivNet.7z"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/Sid Meiers CivNet/INSTALL.EXE"
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "$PREFIX" "MPS/CIVNET" "CIVNET.EXE" "" "$TITLE"
POL_SetupWindow_message "$LNG_INSTALL_DONE" "$TITLE"

POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies