Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
110 lines (83 sloc) 2.92 KB
#!/bin/bash
# Date : (2012-04-29 17-36)
# Last revision : (2012-09-23 19-04)
# Wine version used : 1.4-dos_support_0.5
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
GOGID="simcity_2000_special_edition"
PREFIX="Simcity2000SE_gog"
WORKING_WINE_VERSION="1.4-dos_support_0.5"
TITLE="Simcity 2000 Special Edition (GoG release)"
SHORTCUT_NAME1="Simcity 2000 SE"
SHORTCUT_NAME2="Simcity 2000 SE: Urban Renewal Kit"
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_SetupWindow_SetID 1151
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Maxis Software Inc. / Electronic Arts" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "1a282a9d885053255a0ef79cdfeb5eed"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
POL_Call POL_Function_SetNativeExtension "pdf"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
# "SVGA 256 colors"
POL_SetupWindow_VMS "2"
cat <<'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
sdl_autolock=false
cpu_core=dynamic
cpu_cycles=20000
mixer_prebuffer=240
_EOFCFG_
if [ "$POL_OS" = "Linux" ]; then
cat <<-'_EOFCFG_' >> "$WINEPREFIX/playonlinux_dos.cfg"
render_scaler=hq2x
_EOFCFG_
fi
# Internal SB16 sounds better than external MIDI... And that's one less dependency
cat <<'_EOFCFG_' > "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/SimCity 2000 Special Edition/SC2000.CFG"
[SimCity 2000 Configuration File]
[Video]
VIDEONAME=VESA Super VGA
VIDEOCARD=ve:31
[Music]
MUSICNAME=Sound Blaster 16
MUSICDRIVER=A32SP2FM.DLL
MUSICADDRESS=220
MUSICIRQ=7
MUSICDMA=1
MUSICDRQ=*
[Sound Effects]
SFXNAME=Sound Blaster 16
SFXDRIVER=A32SBPDG.DLL
SFXADDRESS=220
SFXIRQ=5
SFXDMA=1
SFXDRQ=*
[MIDI Bank]
MUSICFILES=SB
[WillTV Path]
WILLTV=D:\DOS
_EOFCFG_
# Game looks for its CDROM in D:
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount D "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/SimCity 2000 Special Edition/SC2000SE.DAT" -t iso -fs iso
_EOFAE_
echo "EXIT" >> "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/SimCity 2000 Special Edition/SC2000.BAT"
cat <<'_EOFBAT_' > "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/SimCity 2000 Special Edition/SCURK.BAT"
@ECHO OFF
SCURK.COM
exit
_EOFBAT_
POL_Shortcut "SC2000.BAT" "$SHORTCUT_NAME1" "$SHORTCUT_NAME1.png" ""
POL_Shortcut_Document "$SHORTCUT_NAME1" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/SimCity 2000 Special Edition/manual.pdf"
POL_Shortcut "SCURK.BAT" "$SHORTCUT_NAME2" "$SHORTCUT_NAME2.png" ""
POL_SetupWindow_Close
exit
Something went wrong with that request. Please try again.