Click to See Complete Forum and Search --> : Starcraft Problem..


RHLinuxNewbie
12-12-2002, 09:08 PM
TheBouleOfFools Posted...

-- BEGIN QUOTE --

I'm using this script to try and run SC on a different desktop. The script contains this:

code: #!/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="/c/Program Files/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/hda"
# 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/usr/X11R6/bin/xinit $SOUND /usr/local/bin/wine --display :1 "$SPAWNINST" -- :1
-xf86config $CONFIG
else
/usr/X11R6/bin/xinit /usr/local/bin/wine --display :1 "$NORMINST" -- :1 -xf86con
fig $CONFIG
fi



The parts about SPAWNINST can be ignored. Anyway, when I try to run this script as a user, the other server starts up, but nothing else happens, and it says:

AUDIT: Tue Sep 25 17:34:22 2001: 1333 X: client 1 rejected from local host
Xlib: connection to ":1.0" refused by server
Xlib: Client is not authorized to connect to Server

If I try to run it as root it says:

/usr/X11R6/bin/xinit: No such file or directory (errno 2): no server "X" in PATH

Use the -- option, or make sure that /usr/X11R6/bin is in your path and
that "X" is a program or a link to the right type of server
for your display. Possible server names include:

XFree86 XFree86 displays

Anyone know what could be causing this ailment?


-- END QUOTE --


I'm having this same problem, does anyone know of how I might go about correcting the problem? Thanks.

RHLinuxNewbie
12-13-2002, 05:34 PM
I should have said I'm running RedHat8 and gnome.

Does no one play starcraft anymore? :(

ALLYOURBASE
12-13-2002, 08:50 PM
I played Starcraft when I had Windows,
not now though, at least until i can understand what wine is.

Gaccm
12-13-2002, 09:13 PM
I really know little about scripting with X, but I thought that once the GUI starts up, nothing else within the same script will start up until the GUI is closed. Do you have any of these types of scripts working? if so, then i'm wrong, otherwise this might be the problem.