StarCraft mit WIne und Script ausführen brauche Hi

Post Reply
Message
Author
Fabian

StarCraft mit WIne und Script ausführen brauche Hi

#1 Post by Fabian »

Moin,


So ich habe nun SC mit WIne installiert, wenn ick aber unter KDE starte erscheint es nur in einem kleinen Fenster und nicht im Vollbild(jemand ne idee?). Also habe ich mir ein SCript runtergeladen was das beheben soll:


#!/bin/bash
# Author: Brian King
# Comments partially edited by Ilkka Forsblom
# TODO: Check if the cdrom in the drive is the starcraft cdrom.
#
TYPE=$1
NORMINST="/home/fabian/wine/StarCraft/starcraft.exe"
# If you have a separate spawn installation, running this script
# with the argument "spawn" will run the spawn installation
# (defined here) instead.
SPAWNINST="/home/dos/Program Files/starcraft/StarCraft.exe"
# This should be your cdrom device ... it should also be in your
# wine.conf somewhere...
DEVICE="/dev/cdrom"
# This file should be an XF86Config file with only the 640x480x8bit
# entry available. The file should be in the same directory as the
# default XF86Config file.
CONFIG="XF86.star"
# uncomment for esound support
#SOUND="/usr/bin/esddsp "

ISLINK=`/bin/ls -l $DEVICE|grep "\->"`
if [ "x${ISLINK}" != "x" ] ; then
DEVICE=`/bin/ls -l $DEVICE|sed -e 's/.*-> //'`
fi

DFOUT=`df|grep $DEVICE`

# I believe this should flush all buffers to disk and minimize damage
# if starcraft fails. I added this because I just lost my last 5 days of
# work from a starcraft crash.
sync;sync;sync

# if the cdrom isn't mounted and we're not playing a spawn game
if [ "x${DFOUT}" = "x" ] && [ "x${TYPE}" != "xspawn" ] ; then
# mount cdrom
eject
echo "enter cdrom then hit enter"
read enter
mount $DEVICE
fi
echo $TYPE
if [ "x${TYPE}" = "xspawn" ] ; then
xinit $SOUND /usr/local/bin/wine --display :1 "$SPAWNINST" -- :1 -xf86config
$CONFIG
else
xinit $SOUND /usr/local/bin/wine --display :1 "$NORMINST" -- :1 -xf86config
$CONFIG
fi

killall wine





wenn ick das Script ausführe kommt:


fabian@linux:~/wine/StarCraft > sc

Unrecognized option: -xf86config
use: X [:<display>] [option]-

und danach kommt ne liste mit aller optionen unter anderem steht da auch:
-xf86config file specify a configuration file, relative to the
XF86Config search path, only root can use absolute

nur warum kommt dann ein Fehler?
Hat jemand ne Idee? Würd mich über jede Hilfe freuen


MfG

Fabian

Sebastian Ude

Re: StarCraft mit WIne und Script ausführen brauch

#2 Post by Sebastian Ude »

Entferne in den entsprechenden Zeilen einfach das "-xf86config $CONFIG".

Das ganze müsste nämlich auch mit deiner normalen XF86Config gehen, wenn da die Modi wie 640x480 definiert sind.

Post Reply