Running Warcraft on dedicated X server using Bash Script

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
jozef3d
Level 1
Level 1
Posts: 5
Joined: Sat Aug 30, 2008 3:21 pm

Running Warcraft on dedicated X server using Bash Script

Post by jozef3d »

I am using the following script that has been suggested by many guides on running World of Warcraft on Linux.

Code: Select all

#!/bin/sh

export WOW_PATH=~/".wine/drive_c/Program Files/World of Warcraft" # Installation path

X :3 -ac -terminate &   # Launch on a new X session on display 3
cd "${WOW_PATH}"        # Goto WoW dir 
sleep 2
DISPLAY=:3 `which wine` Wow.exe -opengl # Launches WoW
But it seems, doing this I loose sound. Running World of Warcraft regularly using wine "Wow.exe" -opengl I have sound, but as soon as I give it its own dedicated x server I loose the sound.

Has anyone run WoW using this script? Or have a better one that allows sound to work?

I have tried the following:
Adding and removing the Sound options in the WTF/Config.wtf file
Switched between OSS and ALSA

And yes, pulseaudio isn't installed.

Here is a log of what the terminal outputs:
http://fpaste.org/paste/5592

Line 18: states

Code: Select all

ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied
I am on Fedora 9, AMD64 bit. 1 gig ram, nvidia Graphics Card, on board Sound Realtech AC7.


PJ
jozef3d
Level 1
Level 1
Posts: 5
Joined: Sat Aug 30, 2008 3:21 pm

Post by jozef3d »

I got it working. It is ironic, but now it works. Here's what I did.

I reinstalled pulseaudio following the guidelines described here:
http://fedoraforum.org/forum/showthread.php?t=177587

I went into my winecfg and unchecked ALSA and OSS and checked the new eSOUND driver that has been added.

Used Full Software Emulation as well as ticked the Driver Emulation.

VOILA! Sound works in the new separate xserver.


PJ
Locked