LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2005, 11:31 AM   #1
nfreeman
LQ Newbie
 
Registered: Sep 2004
Distribution: Mandrake 10.0
Posts: 6

Rep: Reputation: 0
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***

Last edited by nfreeman; 10-12-2005 at 08:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm -bb unknown option nlardizabal Linux - Software 4 10-27-2005 11:44 AM
kgpg/enigmail: unknown option charset badbunny Linux - Software 0 09-30-2005 06:57 AM
rpm --rebuild - unknown option? futz Linux - Newbie 8 08-03-2005 10:35 PM
rpm -ba => -b : unknown option nextone Linux From Scratch 3 12-22-2004 08:48 PM
rpm -bb : unknown option stevie_velvet Linux - Enterprise 4 09-08-2004 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration