UFO : Enemy Unknown

Informations

Créateur Messages
benji64

Warning

This installer has not been approved yet by the team.

Informations

Plate-formes :
Téléchargements : 3007
Wine: System

Retours d'expérience

Description

From Steam:

"You are in control of X-COM: an organization formed by the world's governments to fight the ever-increasing alien menace. Features: Command deadly close-combat battles Shooting down UFOs is just the beginning: you must then lead a squad of heavily-armed soldiers across different terrains as they investigate the UFO crash site."

Code source

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

cfg_check

POL_SetupWindow_Init
POL_SetupWindow_presentation "UFO : Enemy Unknown" "Microprose" "http://www.xcomufo.com" "Benji64" "Ufo1"

select_prefixe "$REPERTOIRE/wineprefix/Ufo1"
POL_SetupWindow_prefixcreate

cd "$REPERTOIRE/wineprefix/Ufo1/drive_c/"
POL_SetupWindow_download "Downloading UFO : Enemy Unknown..." "Downloading UFO : Enemy Unknown..." "http://tele500.abandonware-france.org/jeux/jeu-216-ufo.zip"
POL_SetupWindow_wait_next_signal "Installation in progress..." "UFO : Enemy Unknown"
mkdir ufo
unzip jeu-216-ufo.zip -d ufo/
rm jeu-216-ufo.zip
cd ufo
wine UFO.exe
rm UFO.exe
POL_SetupWindow_detect_exit


LNG_GAME_DESKTOP_ICONE="Créer un racourcis sur le bureau?"
LNG_GAME_MENU_ICONE="Créer un racourcis dans le menu?"
creer_lanceur_dos "Ufo1" "ufo" "GO.BAT" "" "UFO : Enemy Unknown"

POL_SetupWindow_reboot
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
FuzzyToothpaste Samedi 1 Novembre 2014 à 4:46
FuzzyToothpaste Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Can we please have the name changed from UFO : Enemy Unknown to UFO: Enemy Unknown?

Differences

@@ -8,14 +8,14 @@
 cfg_check
 
 POL_SetupWindow_Init
-POL_SetupWindow_presentation "UFO : Enemy Unknown" "Microprose" "http://www.xcomufo.com" "Benji64" "Ufo1"
+POL_SetupWindow_presentation "UFO: Enemy Unknown" "Microprose" "http://www.xcomufo.com" "Benji64" "Ufo1"
 
 select_prefixe "$REPERTOIRE/wineprefix/Ufo1"
 POL_SetupWindow_prefixcreate
 
 cd "$REPERTOIRE/wineprefix/Ufo1/drive_c/"
-POL_SetupWindow_download "Downloading UFO : Enemy Unknown..." "Downloading UFO : Enemy Unknown..." "http://tele500.abandonware-france.org/jeux/jeu-216-ufo.zip"
-POL_SetupWindow_wait_next_signal "Installation in progress..." "UFO : Enemy Unknown"
+POL_SetupWindow_download "Downloading UFO: Enemy Unknown..." "Downloading UFO: Enemy Unknown..." "http://tele500.abandonware-france.org/jeux/jeu-216-ufo.zip"
+POL_SetupWindow_wait_next_signal "Installation in progress..." "UFO: Enemy Unknown"
 mkdir ufo
 unzip jeu-216-ufo.zip -d ufo/
 rm jeu-216-ufo.zip
@@ -27,7 +27,7 @@
 
 LNG_GAME_DESKTOP_ICONE="Créer un racourcis sur le bureau?"
 LNG_GAME_MENU_ICONE="Créer un racourcis dans le menu?"
-creer_lanceur_dos "Ufo1" "ufo" "GO.BAT" "" "UFO : Enemy Unknown"
+creer_lanceur_dos "Ufo1" "ufo" "GO.BAT" "" "UFO: Enemy Unknown"
 
 POL_SetupWindow_reboot
 POL_SetupWindow_Close

Nouveau code source

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

cfg_check

POL_SetupWindow_Init
POL_SetupWindow_presentation "UFO: Enemy Unknown" "Microprose" "http://www.xcomufo.com" "Benji64" "Ufo1"

select_prefixe "$REPERTOIRE/wineprefix/Ufo1"
POL_SetupWindow_prefixcreate

cd "$REPERTOIRE/wineprefix/Ufo1/drive_c/"
POL_SetupWindow_download "Downloading UFO: Enemy Unknown..." "Downloading UFO: Enemy Unknown..." "http://tele500.abandonware-france.org/jeux/jeu-216-ufo.zip"
POL_SetupWindow_wait_next_signal "Installation in progress..." "UFO: Enemy Unknown"
mkdir ufo
unzip jeu-216-ufo.zip -d ufo/
rm jeu-216-ufo.zip
cd ufo
wine UFO.exe
rm UFO.exe
POL_SetupWindow_detect_exit


LNG_GAME_DESKTOP_ICONE="Créer un racourcis sur le bureau?"
LNG_GAME_MENU_ICONE="Créer un racourcis dans le menu?"
creer_lanceur_dos "Ufo1" "ufo" "GO.BAT" "" "UFO: Enemy Unknown"

POL_SetupWindow_reboot
POL_SetupWindow_Close
exit

Réponses

Samedi 1 Novembre 2014 à 12:51
Why ?
Dimanche 2 Novembre 2014 à 16:52
It was a typeo. I fixed it, though.
Dimanche 2 Novembre 2014 à 19:25
(Just a reminder that if the script gets updated, the integrated debugger requires $TITLE to match exactly the name of the script in the repository)
Dimanche 2 Novembre 2014 à 19:45
I changed it back. Lol. This installer needs a major rework. I love this game, though, so I may just do it myself. :)
Dimanche 2 Novembre 2014 à 19:47
http://www.playonlinux.com/en/issue-4919.html
Dimanche 2 Novembre 2014 à 19:56
Apparently this game is not abandonware anymore, so this shouldn't be too hard to get working again, as they sell it on Steam, and it should pretty much run in a stock WinXP virtual drive.
Dimanche 2 Novembre 2014 à 21:29
Does anyone want to fix the script or should I delete it? Because this version won't work with current POL
Dimanche 2 Novembre 2014 à 21:34
You can go ahead and delete. I own it on Steam, and will write a new installer next week. :)

Edité par RoninDusette

Sckizo Mercredi 29 Octobre 2014 à 15:23
Sckizo

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Nouvelle version depuis un téléchargement http://www.abandonware-france.org/

En cours de dév

Differences

@@ -1,34 +1,185 @@
 #!/bin/bash
-if [ "$PLAYONLINUX" = "" ]
-then
-exit 0
-fi
+# Date : (2014-10-27 15-00)
+# Last revision : (2014-02-16 09-37)
+# Wine version used : 1.6.2-dos_support_0.6
+# Distribution used to test : Ubuntu 14.04
+# Author : Sckizo
+# Script licence : GPL v.2
+# Program licence : Retail
+# Only For : http://www.playonlinux.com
+
+[ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-cfg_check
+check_one "7za" "7za"
+POL_SetupWindow_missing
+
+# CONSTANTS
+DEVELOPER="MicroProse"
+TITLE="UFO : Enemy Unknown"
+PREFIX="UFO"
+WORKING_WINE_VERSION="1.6.2-dos_support_0.6"
+INSTALL_DIR="UFO-Enemy_Unknown"
+EXEC="UFO Defense.exe"
+
+# IMAGES SETUP
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE"
 
+# INSTALLATION
 POL_SetupWindow_Init
-POL_SetupWindow_presentation "UFO : Enemy Unknown" "Microprose" "http://www.xcomufo.com" "Benji64" "Ufo1"
+POL_Debug_Init
+POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "http://www.xcomufo.com" "Sckizo" "$PREFIX"
 
-select_prefixe "$REPERTOIRE/wineprefix/Ufo1"
-POL_SetupWindow_prefixcreate
+## POL_Call POL_GoG_setup "$GOGID" "$INSTALL_FILE_HASH"
 
-cd "$REPERTOIRE/wineprefix/Ufo1/drive_c/"
-POL_SetupWindow_download "Downloading UFO : Enemy Unknown..." "Downloading UFO : Enemy Unknown..." "http://tele500.abandonware-france.org/jeux/jeu-216-ufo.zip"
-POL_SetupWindow_wait_next_signal "Installation in progress..." "UFO : Enemy Unknown"
-mkdir ufo
-unzip jeu-216-ufo.zip -d ufo/
-rm jeu-216-ufo.zip
-cd ufo
-wine UFO.exe
-rm UFO.exe
-POL_SetupWindow_detect_exit
-
-
-LNG_GAME_DESKTOP_ICONE="Créer un racourcis sur le bureau?"
-LNG_GAME_MENU_ICONE="Créer un racourcis dans le menu?"
-creer_lanceur_dos "Ufo1" "ufo" "GO.BAT" "" "UFO : Enemy Unknown"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
-POL_SetupWindow_reboot
+GAME_FILE="ftp://ares:ares@tele500.abandonware-france.org/fichiers/jeux/1994-1995/jeu-00216-ufo_enemy_unknown-pcwin.7z"
+## MANUAL_FILE="ftp://ares:ares@tele500.abandonware-france.org/manuels/ufo_ennemy_unknow.ace"
+
+POL_System_TmpCreate $PREFIX
+cd "$POL_System_TmpDir"
+POL_SetupWindow_download "Downloading $TITLE" "$TITLE" "$GAME_FILE"
+# POL_SetupWindow_download "Downloading $TITLE" "$TITLE" "$MANUAL_FILE"
+POL_SetupWindow_wait_next_signal "Installation in progress..." "$WINEPREFIX/drive_c/Games/$INSTALL_DIR/$TITLE"
+7za x "jeu-00216-ufo_enemy_unknown-pcwin.7z" -o$POL_System_TmpDir
+mkdir "$WINEPREFIX/drive_c/Games"
+mv "$POL_System_TmpDir/UFO-W95" "$WINEPREFIX/drive_c/Games/$INSTALL_DIR"
+POL_System_TmpDelete
+
+# DOSBOX CONFIG
+cat <<_EOFCFG_ > "$WINEPREFIX/playonlinux_dos.cfg"
+# [sdl]
+sdl_fullscreen=false
+sdl_fulldouble=false
+sdl_fullresolution=original
+sdl_windowresolution=original
+sdl_output=surface
+sdl_autolock=true
+sdl_sensitivity=100
+sdl_waitonerror=true
+sdl_priority=higher,normal
+sdl_mapperfile=mapper-0.74.map
+sdl_usescancodes=true
+
+# [dosbox]
+dosbox_language=
+dosbox_machine=svga_s3
+dosbox_captures=capture
+dosbox_memsize=16
+
+# [render]
+render_frameskip=0
+render_aspect=true
+render_scaler=normal2x
+
+# [cpu]
+cpu_core=auto
+cpu_cputype=486_slow
+cpu_cycles=2000
+cpu_cycleup=100
+cpu_cycledown=100
+
+# [mixer]
+mixer_nosound=false
+mixer_rate=44100
+mixer_blocksize=1024
+mixer_prebuffer=20
+
+# [midi]
+midi_mpu401=intelligent
+midi_mididevice=default
+midi_midiconfig=
+
+# [sblaster]
+sblaster_sbtype=sb16
+sblaster_sbbase=220
+sblaster_irq=7
+sblaster_dma=1
+sblaster_hdma=5
+sblaster_sbmixer=true
+sblaster_oplmode=auto
+sblaster_oplemu=default
+sblaster_oplrate=44100
+
+# [gus]
+gus_gus=false
+gus_gusrate=44100
+gus_gusbase=240
+gus_gusirq=5
+gus_gusdma=3
+gus_ultradir=C:\ULTRASND
+
+# [speaker]
+speaker_pcspeaker=true
+speaker_pcrate=44100
+speaker_tandy=auto
+speaker_tandyrate=44100
+speaker_disney=true
+
+# [joystick]
+joystick_joysticktype=auto
+joystick_timed=true
+joystick_autofire=false
+joystick_swap34=false
+joystick_buttonwrap=false
+
+# [serial]
+serial_serial1=dummy
+serial_serial2=dummy
+serial_serial3=disabled
+serial_serial4=disabled
+
+# [dos]
+dos_xms=true
+dos_ems=true
+dos_umb=true
+dos_keyboardlayout=auto
+
+# [ipx]
+ipx_ipx=false
+_EOFCFG_
+
+cat <<_EOFAE_  >"$WINEPREFIX/drive_c/autoexec.bat"
+c:
+@echo off
+keyb fr
+mount C C
+c:
+cls
+echo.-----------------------------------------------
+echo               UFO - Enemy Unknown
+echo.          VERSION DISQUETTE FRANCAISE
+echo.-----------------------------------------------
+echo www.abandonware-france.org
+echo.-----------------------------------------------
+echo DOSBox v0.74
+echo.-----------------------------------------------
+echo Commandes de base pour Dosbox :
+echo ALT + ENTREE - MODE PLEIN ECRAN/FENETRE
+echo CTRL + F5 - CAPTURE D'ECRAN
+echo CTRL + F10 - CAPTURER/LIBERER LE CURSEUR
+echo CTRL + F12/11 - AUGMENTER/REDUIRE LA VITESSE
+echo CTRL + F9 - QUITTER DOSBOX
+echo.-----------------------------------------------
+echo.
+echo.
+pause
+c:
+cd UFO
+UFO.BAT
+cd..
+exit
+_EOFAE_
+
+Set_OS win95
+
+# SHORTCUTS
+POL_Shortcut "$EXEC" "$TITLE" "$TITLE.png" "" "Game;Strategic;"
+# POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Games/$INSTALL_DIR/$MANUAL"
+
+# THE END
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+
+exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-10-27 15-00)
# Last revision : (2014-02-16 09-37)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : Ubuntu 14.04
# Author : Sckizo
# Script licence : GPL v.2
# Program licence : Retail
# Only For : http://www.playonlinux.com

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

check_one "7za" "7za"
POL_SetupWindow_missing

# CONSTANTS
DEVELOPER="MicroProse"
TITLE="UFO : Enemy Unknown"
PREFIX="UFO"
WORKING_WINE_VERSION="1.6.2-dos_support_0.6"
INSTALL_DIR="UFO-Enemy_Unknown"
EXEC="UFO Defense.exe"

# IMAGES SETUP
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups/$PREFIX/left.png" "$TITLE"

# INSTALLATION
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "http://www.xcomufo.com" "Sckizo" "$PREFIX"

## POL_Call POL_GoG_setup "$GOGID" "$INSTALL_FILE_HASH"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

GAME_FILE="ftp://ares:ares@tele500.abandonware-france.org/fichiers/jeux/1994-1995/jeu-00216-ufo_enemy_unknown-pcwin.7z"
## MANUAL_FILE="ftp://ares:ares@tele500.abandonware-france.org/manuels/ufo_ennemy_unknow.ace"

POL_System_TmpCreate $PREFIX
cd "$POL_System_TmpDir"
POL_SetupWindow_download "Downloading $TITLE" "$TITLE" "$GAME_FILE"
# POL_SetupWindow_download "Downloading $TITLE" "$TITLE" "$MANUAL_FILE"
POL_SetupWindow_wait_next_signal "Installation in progress..." "$WINEPREFIX/drive_c/Games/$INSTALL_DIR/$TITLE"
7za x "jeu-00216-ufo_enemy_unknown-pcwin.7z" -o$POL_System_TmpDir
mkdir "$WINEPREFIX/drive_c/Games"
mv "$POL_System_TmpDir/UFO-W95" "$WINEPREFIX/drive_c/Games/$INSTALL_DIR"
POL_System_TmpDelete

# DOSBOX CONFIG
cat <<_EOFCFG_ > "$WINEPREFIX/playonlinux_dos.cfg"
# [sdl]
sdl_fullscreen=false
sdl_fulldouble=false
sdl_fullresolution=original
sdl_windowresolution=original
sdl_output=surface
sdl_autolock=true
sdl_sensitivity=100
sdl_waitonerror=true
sdl_priority=higher,normal
sdl_mapperfile=mapper-0.74.map
sdl_usescancodes=true

# [dosbox]
dosbox_language=
dosbox_machine=svga_s3
dosbox_captures=capture
dosbox_memsize=16

# [render]
render_frameskip=0
render_aspect=true
render_scaler=normal2x

# [cpu]
cpu_core=auto
cpu_cputype=486_slow
cpu_cycles=2000
cpu_cycleup=100
cpu_cycledown=100

# [mixer]
mixer_nosound=false
mixer_rate=44100
mixer_blocksize=1024
mixer_prebuffer=20

# [midi]
midi_mpu401=intelligent
midi_mididevice=default
midi_midiconfig=

# [sblaster]
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_sbmixer=true
sblaster_oplmode=auto
sblaster_oplemu=default
sblaster_oplrate=44100

# [gus]
gus_gus=false
gus_gusrate=44100
gus_gusbase=240
gus_gusirq=5
gus_gusdma=3
gus_ultradir=C:\ULTRASND

# [speaker]
speaker_pcspeaker=true
speaker_pcrate=44100
speaker_tandy=auto
speaker_tandyrate=44100
speaker_disney=true

# [joystick]
joystick_joysticktype=auto
joystick_timed=true
joystick_autofire=false
joystick_swap34=false
joystick_buttonwrap=false

# [serial]
serial_serial1=dummy
serial_serial2=dummy
serial_serial3=disabled
serial_serial4=disabled

# [dos]
dos_xms=true
dos_ems=true
dos_umb=true
dos_keyboardlayout=auto

# [ipx]
ipx_ipx=false
_EOFCFG_

cat <<_EOFAE_  >"$WINEPREFIX/drive_c/autoexec.bat"
c:
@echo off
keyb fr
mount C C
c:
cls
echo.-----------------------------------------------
echo               UFO - Enemy Unknown
echo.          VERSION DISQUETTE FRANCAISE
echo.-----------------------------------------------
echo www.abandonware-france.org
echo.-----------------------------------------------
echo DOSBox v0.74
echo.-----------------------------------------------
echo Commandes de base pour Dosbox :
echo ALT + ENTREE - MODE PLEIN ECRAN/FENETRE
echo CTRL + F5 - CAPTURE D'ECRAN
echo CTRL + F10 - CAPTURER/LIBERER LE CURSEUR
echo CTRL + F12/11 - AUGMENTER/REDUIRE LA VITESSE
echo CTRL + F9 - QUITTER DOSBOX
echo.-----------------------------------------------
echo.
echo.
pause
c:
cd UFO
UFO.BAT
cd..
exit
_EOFAE_

Set_OS win95

# SHORTCUTS
POL_Shortcut "$EXEC" "$TITLE" "$TITLE.png" "" "Game;Strategic;"
# POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Games/$INSTALL_DIR/$MANUAL"

# THE END
POL_SetupWindow_Close

exit 0

Réponses

Mercredi 29 Octobre 2014 à 15:41
not working (fullscreen error ?) => err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 320x200x8 @0! (XRandR 1.2)
Dimanche 2 Novembre 2014 à 16:39
Does not work for me.
Sckizo Mardi 28 Octobre 2014 à 23:46
Sckizo

Messages

Doesn't work anymore.

Réponses

Mercredi 29 Octobre 2014 à 1:43
That script is definitely not PlayOnLinux 4 compatible...