SOLVED!! [LINUX] U227f and UT2004 3369 - no sound - no /dev/dsp - WTF
Posted: Thu Oct 21, 2010 3:22 pm
Congrats OldUnreal! This is your 1000st topic!!
Long story:
First I made a test-install of Ubuntu 10.10 x86 on my laptop Acer Aspire 7520G. When everything was fine (graphics accelration works ok), I installed Unreal there and patched it with 227f with Linux-binaries.
I did a quick test if U227f is really working on my laptop. Linux binaries works great but there is no sound. I checked DefaultLinux.ini, and in FMod-settings there is /dev/dsp selected. I though "whatever" and installed wine and started to use Unreal thru wine. Everything works fine. Ok.
Next day I tested UT 436 on the laptop, installed OldUnreal multimedia patch. I just directly choosed to use wine and it works great.
Then next day I installed UT2004, patched it with 3369 Windows patch. Tested it with wine. It works awesome, expect there is wierd mouse problem. Mouse cursor will not be locked in the game screen, it may go over window's edge to the desktop and then I cannot move my character until I move the cursor back to the window. This happens in fullscreen too.
There was no solution to it so I though "is there UT2004 Linux-binaries?". I found there really is official Linux-binaries for UT2004.
So I installed 3369-Linux patch to UT2004. There was a problem; game didn't start. It said:
Okay, let's find a solution for that.
I typed:
Okay, that copied the file what made UT2004 crash on startup to UT2004/System-folder.
Then I copied a launcher sh-script from some forum. I just made an empty file to UT2004-folder and copy&pasted this there:
I set UT2004_DATA_PATH="/path/to/ut2004/system" (just typed it before "# Set the home if not already set."-line).
Then I started the game with command "sh ". This time it complained:
I typed:
And same time I set some settings in UT2004-linux's Default.ini:
Then I started the game. Voila!! It worked flawlessly. But big disappointment: NO SOUND. Exactly same problem like in U227f-linux.
Okay, I started to find a solution for that. First I checked if something was muted or set wrong. I listened my music and watched some YouTube-videos. Sound was fine there.
Then I typed:
That command removed my libsdl1.2debian-pulseaudio and installed libsdl1.2debian-alsa.
Tested UT2004-linux again. No sound. Rebooted. Tested. Still no sound.
Then I went crazy and gave this command:
I got worried and tested eveything again; music, YouTube, if there is anything muted or anything. They were fine. I also tested if UT-wine or Unreal-wine still sounds fine. Something went totally wrong. Unreal-wine and UT-wine sounded totally mess.
I rebooted and tested Unreal-wine and UT-wine again; they were fine. Phew.
Tested UT2004-linux. No sound.
Then I typed:
Then:
Rebooted. Tested everything. Everything else fine, expect no sound from UT2004-linux and U227f-linux.
I found there is alsamixer, so I gave "alsamixer"-command to Linux. It started a sound mixer. I checked if there's anything wrong. Nothing wrong. I tried to kill other sound systems if they steal sound, but it's impossible; they are not installed. Only sound system, which is installed, is ALSA. I checked if there is "/dev/dsp" like FMod-settings in DefaultLinux.ini in U227f says.
There is no such a file or a folder or symlink or anything similar.
It seems alot people don't have sound in their UT2004-linux, because "/dev/dsp" is missing. This also kills sound from U227f-linux. I have checked, double-checked and triple-checked settings and tested zillion different variation of settings in U227f-linux and UT2004-linux.
Anyone here have a solution? Anyone here have same problem?
Long story:
First I made a test-install of Ubuntu 10.10 x86 on my laptop Acer Aspire 7520G. When everything was fine (graphics accelration works ok), I installed Unreal there and patched it with 227f with Linux-binaries.
I did a quick test if U227f is really working on my laptop. Linux binaries works great but there is no sound. I checked DefaultLinux.ini, and in FMod-settings there is /dev/dsp selected. I though "whatever" and installed wine and started to use Unreal thru wine. Everything works fine. Ok.
Next day I tested UT 436 on the laptop, installed OldUnreal multimedia patch. I just directly choosed to use wine and it works great.
Then next day I installed UT2004, patched it with 3369 Windows patch. Tested it with wine. It works awesome, expect there is wierd mouse problem. Mouse cursor will not be locked in the game screen, it may go over window's edge to the desktop and then I cannot move my character until I move the cursor back to the window. This happens in fullscreen too.
There was no solution to it so I though "is there UT2004 Linux-binaries?". I found there really is official Linux-binaries for UT2004.
So I installed 3369-Linux patch to UT2004. There was a problem; game didn't start. It said:
Code: Select all
ut2004-bin: error while loading shared libraries: ./libSDL-1.2.so.0: cannot open shared object file: No such file or directoryI typed:
Code: Select all
sudo cp /usr/lib/libSDL-1.2.so.0 /path/to/ut2004/systemThen I copied a launcher sh-script from some forum. I just made an empty file to UT2004-folder and copy&pasted this there:
Code: Select all
#!/bin/sh
#
# ut2004 startup script
#
# Function to find the real directory a program resides in.
# Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
FindPath()
{
fullpath="`echo $1 | grep /`"
if [ "$fullpath" = "" ]; then
oIFS="$IFS"
IFS=:
for path in $PATH
do if [ -x "$path/$1" ]; then
if [ "$path" = "" ]; then
path="."
fi
fullpath="$path/$1"
break
fi
done
IFS="$oIFS"
fi
if [ "$fullpath" = "" ]; then
fullpath="$1"
fi
# Is the sed/ls magic portable?
if [ -L "$fullpath" ]; then
#fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
fi
dirname $fullpath
}
# Set the home if not already set.
if [ "${UT2004_DATA_PATH}" = "" ]; then
UT2004_DATA_PATH="`FindPath $0`/System"
fi
LD_LIBRARY_PATH=.:${UT2004_DATA_PATH}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
# Let's boogie!
if [ -x "${UT2004_DATA_PATH}/ut2004-bin" ]
then
cd "${UT2004_DATA_PATH}/"
exec "./ut2004-bin" $*
fi
echo "Couldn't run UT2004 (ut2004-bin). Is UT2004_DATA_PATH set?"
exit 1
# end of ut2004 ...Then I started the game with command "sh ". This time it complained:
Code: Select all
ut2004-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directoryCode: Select all
sudo apt-get install libstdc++5Code: Select all
FirstRun=3369
RenderDevice=OpenGLDrv.OpenGLRenderDevice
ViewportManager=SDLDrv.SDLClient
PurgeCacheDays=0
StartupFullscreen=False
and resolutionOkay, I started to find a solution for that. First I checked if something was muted or set wrong. I listened my music and watched some YouTube-videos. Sound was fine there.
Then I typed:
Code: Select all
sudo apt-get install libsdl1.2debian-alsaTested UT2004-linux again. No sound. Rebooted. Tested. Still no sound.
Then I went crazy and gave this command:
Code: Select all
sudo apt-get install libsdl1.2debian-allI rebooted and tested Unreal-wine and UT-wine again; they were fine. Phew.
Tested UT2004-linux. No sound.
Then I typed:
Code: Select all
sudo apt-get autoremove libsdl1.2debian-allCode: Select all
sudo apt-get install libsdl1.2debian-alsaI found there is alsamixer, so I gave "alsamixer"-command to Linux. It started a sound mixer. I checked if there's anything wrong. Nothing wrong. I tried to kill other sound systems if they steal sound, but it's impossible; they are not installed. Only sound system, which is installed, is ALSA. I checked if there is "/dev/dsp" like FMod-settings in DefaultLinux.ini in U227f says.
There is no such a file or a folder or symlink or anything similar.
It seems alot people don't have sound in their UT2004-linux, because "/dev/dsp" is missing. This also kills sound from U227f-linux. I have checked, double-checked and triple-checked settings and tested zillion different variation of settings in U227f-linux and UT2004-linux.
Anyone here have a solution? Anyone here have same problem?