LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 04-09-2004, 02:56 AM   #1
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Rep: Reputation: 30
Wine questions


Hi, I've got some questions about wine.

1. I've made a sh file for playing starcraft. It does some prefix and so. Can I make it mount my cdrom and change my resolution to?

2. Will the starcraft wine hack make it harder to play other games than starcraft?
 
Old 04-22-2004, 08:52 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
I don't really know starcraft... But yes you can do a script which mount your CD, and if like CS you can have resolution as an argument of your command line... yes.
 
Old 04-22-2004, 09:36 AM   #3
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Original Poster
Rep: Reputation: 30
"yes you can do a script which mount your CD"
But I more think what I need is a script to check if my CDROM drive is mounted or not. Else wont I get an error if I try to mount a mounted drive?

"if like CS you can have resolution as an argument of your command line"
Good!, how?
 
Old 04-22-2004, 12:42 PM   #4
ssba
Member
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 44

Rep: Reputation: 15
As for changing the resolution, why not edit your ~/.wine/config file (or wherever it may be) to make an exception for StarCraft.exe?

Something like:

[AppDefaults\\StarCraft.exe\\x11drv]
"Desktop" = "yourdimensions"

(I'm not sure if that is 100% correct..)
 
Old 04-22-2004, 01:01 PM   #5
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Original Poster
Rep: Reputation: 30
It wasn't exactly the right place to write it, but now it work very good!
I would just wish wine also could make it full screen.
 
Old 04-22-2004, 06:41 PM   #6
ssba
Member
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 44

Rep: Reputation: 15
That is possible too, if you are able to unset the "Desktop" variable. I don't know if something like this is valid?

[AppDefaults\\StarCraft.exe\\x11drv]
"Desktop" = ""
 
Old 04-23-2004, 08:00 AM   #7
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Quote:
Else wont I get an error if I try to mount a mounted drive?
Yes you will have a message like: "/cdrom already mounted" you can check that with /etc/mtab file which shows you which devices are already mounted
Quote:
if like CS you can have resolution as an argument of your command line
For CS I use the following option: wine hl.exe -w 1280 -h 1024 -game cstrike...
it forces screen width to 1280 and heigth to 1024

Oliv'
 
Old 04-23-2004, 09:56 AM   #8
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Original Poster
Rep: Reputation: 30
Quote:
you can check that with /etc/mtab
Good, so what to write? Something like
Code:
if  /etc/mtab cdrom == 0
   mount cdrom;
?

[quote]For CS I use the following option: wine hl.exe -w 1280 -h 1024 -game cstrike...
it forces screen width to 1280 and heigth to 1024[quote]
Nice! I'm quite a noob, but how can I get that in my "(wine /home/thomas/windows/Spil/Starcraft/StarCraft.exe &) ; sleep 120 ; killall wine" Comand?

Last edited by Lobais; 04-23-2004 at 09:57 AM.
 
Old 04-24-2004, 07:03 AM   #9
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
For cdrom it should be something like that:
i = grep cdrom /etc/mtab | wc -l
if [i -eq 1]
then
mount /cdrom
fi

About the second question I don't know Starcraft parameters to tell you more
Oliv'
 
Old 04-24-2004, 07:47 AM   #10
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
you can use just make a script like this:
cd /where/you/installed/starcraft
mount /mnt/cdrom
wine StarCraft.exe
umount /mnt/cdrom
if the cdrom is already mounted, itll say so, but it wont stop completely.
 
Old 04-24-2004, 09:11 AM   #11
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Original Poster
Rep: Reputation: 30
"it'll say so, but it wont stop completely."
because i'm nor running my script by the terminal, it doesn't say anything at all!
But it doesn't unmount it after closing. (?)
 
  


Reply



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
Two Questions About WINE... amackenzie Linux - Software 0 07-16-2004 10:56 AM
WINE questions nleco Linux - Software 0 07-07-2004 04:24 AM
Wine Questions lmanwarren Linux - Newbie 3 10-27-2003 10:43 AM
some questions about wine evaross1 Linux - Software 3 06-22-2003 11:19 AM
wine questions philfighter Linux - General 2 08-13-2001 08:19 PM

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

All times are GMT -5. The time now is 05:28 PM.

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