Forums

Squad Leader

Script for Microprose Avalon Hill Squad Leader

Auteur Réponses
hangingman Dimanche 11 Aoüt 2013 à 19:11
hangingmanAnonymous

Microprose Avalon Hill Squad Leader from the CDROM

This scripts loads the game.  While the game runs perfectly there are environmental issues upon exiting.  The Desktop under Ubuntu 12.04 LTS running Gnome 2D classic does not reset properly.  A CNTL-ALT-DEL log out followed by a login restores the Desktop.

#!/bin/bash
# Date : (2013-08-10)
# Last revision : (2013-08-10)
# Wine version used : 1.6-rc4
# Distribution used to test : Ubuntu 12.04 LTS
# Author : James Denier
# Licence : GPLv3
 
# This script was tested using the CDROM version of `Avalon Hills Squad Leader'
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLECOMPLETE="Avalon Hills Squad Leader"
TITLE="SquadLeader"
AUTHOR="James Denier"
PREFIX="SquadLeader"
PREFIXDIR="$HOME/.PlayOnLinux/wineprefix/$PREFIX"
WORKINGWINEVERSION="1.6-rc4"
 
POL_SetupWindow_Init
 
POL_SetupWindow_presentation "$TITLE" "Hasbro Interactive" "http://www.nositefound.com/" "$AUTHOR" "$PREFIX"
select_prefix "$PREFIXDIR"
 
# Let the user select a CDROM
POL_SetupWindow_cdrom
 
# Check if this CDROM is the Civilization IV CDROM
POL_SetupWindow_check_cdrom "autorun.inf"
 
# Make sure the right wine version is used, otherwise
# the user will run into a problem regarding copyright protection.
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
 
Use_WineVersion "$WORKINGWINEVEScriptRSION"
 
# Create the prefix for Squad Leader, a directory called `SquadLeader'
POL_SetupWindow_prefixcreate
 
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
# Install DirectX9
POL_Call POL_Install_d3dx9
 
# Run installer
POL_SetupWindow_menu "Which installation medium do you want to use?" "Medium" "DVD~CDROM" "~"
wine start /unix "$CDROM/setup.exe"
 
POL_SetupWindow_message "Click Forward when the installation is finished" "$TITLECOMPLETE"
 
POL_SetupWindow_detect_exit
 
#Create shortcuts
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Microprose/Squad Leader" "SquadLeader.exe" "" "$TITLE"
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"
 
#Done!
POL_SetupWindow_message "$TITLECOMPLETE installed."
POL_SetupWindow_Close
exit


Vous êtes ici: Index > Your creations. > Squad Leader

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com