Re: Game doesn't work with DCOP
El Lunes, 2 de Mayo de 2005 01:05, Christian Stalp escribió:
> Hello Matthias,
> I don't know if you speak german so I write in english.
> My Problem is that I want to play with Neverwinter Nights, a superb
> Roleplaying Game from Bioware. Its supporting Linux directly ( not via wine
> or other emulation) .
>The Problem now is, since I use Debian Sarge and therefore KDE 3.3 I cannot
>play NWN while DCOP or aRTs is running.
Yesterday I switched to arts, now works better than the last time I tested it.
Akode looks a great piece of software. But enemy territory also refuses to
play sounds. So I did a script and prepended it to the game command
(/usr/local/bin/et witch is already a script). The code snippet is here:
#######################################################################
ERR="No error message set"
function arts_suspend () {
ps artsd &> /dev/null || return 0
RETRY=true
TRY=0
while true; do
MESSAGE=`artsshell suspend 2>&1`
if [ "$MESSAGE" = "sound server is busy" ]; then
TRY=$(($TRY + 1))
if [ $TRY -gt 2 ]; then
ERR="Arts is busy (is amarok or juk open?)"
return 1
fi
sleep 1
elif [ "$MESSAGE" = "unable to connect to sound server" ];
then
return 0
elif [ "$MESSAGE" = "sound server suspended" ]; then
return 0
else # We do not know what happened... What to do here?
ERR="Could not understand arts output."
ERR="${ERR}\nSuspend it with 'artsshell suspend'"
return 1
fi
done
}
function abort_this () {
kdialog --error "Could not suspend arts:\n$ERR"
exit 0
}
arts_suspend || abort_this
#####################################################################
Yeah, I had nothing to do this night, and better to share something with a
minimal quality, not the usual "killall artsd".
Reply to: