LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   xvt: unknown option '-n' (https://www.linuxquestions.org/questions/linux-software-2/xvt-unknown-option-n-370934/)

nfreeman 10-08-2005 10:31 AM

xvt: unknown option '-n'
 
I'm trying to run Starcraft: Brood War with Wine, and I've actually managed to successfully launch it from within KDE by executing "$ wine starcraft.exe" inside the starcraft directory. The problem is that it seemed to be running at seconds per frame instead of frames per second since KDE was still running behind it. I tried logging out of KDE and using this scriopt from the command line:

/home/nfreeman/starcraft.sh:
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="/home/nfreeman/drive_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/nfreeman/drive_c/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="./XF86Config-4.starcraft"
# 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 wine --display :1 "$SPAWNINST" -- :1 -xf86config $CONFIG
else
 xinit $SOUND wine --display :1 "$NORMINST" -- :1 -xf86config $CONFIG
fi

killall wine

Also, here's a portion of /etc/X11/XF86ConfigXF86Config-4.starcraft: (the only parts that I changed from the original file, which I know works)
Code:

Section "Device"
    Identifier "device1"
    VendorName "nVidia Corporation"
    BoardName "RIVA TNT2"
    Driver "nv"
    Option "DPMS"
EndSection

Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 8
   
    Subsection "Display"
        Depth 8
        Modes "640x480"
    EndSubSection
EndSection

After launching the script from the command line, the screen goes black for a second and then I'm back at the command line, where it says "xvt: unknown option '-n'". I don't know much about x11, and couldn't find much info about this xvt error. All I really need to do is run Starcraft using its own x-server. Any help is appreciated, and don't assume that I've tried anything that isn't mentioned here, because I probably haven't.

***Issue Resolved, just a stupid mistake I made modifying the script***


All times are GMT -5. The time now is 04:44 AM.