You are not logged in.

#1 2008-07-19 04:14:43

progrock
Member
Registered: 2008-07-19
Posts: 33

No Sound UT2004

Hi all,
I installed UT2004 this morning using the guide from here: http://forums.epicgames.com/showthread.php?t=558146.  I got everything working, with links to libopenal.so and libsdl.so in the System directory.  I even added the startup script (since I installed from the Editor's Choice DVD, not the Anthology) that I found in the Ubuntu Forums that lets me launch it from anywhere, instead of just from the System directory. 

The only catch is that I have no sound ingame.  I have sound from Exaile, I have sound from Neverwinter Nights.  When I run it from the command line, there's no errors, no complaints of any kind from the wrapper script or from the binary itself.  In the Audio Settings menu, it says that it's using OpenAL, but since I don't know anything about OpenAL (and I can't find any info that seems pertinent) I asking you guys for some thoughts.

Thanks
progrock

Offline

#2 2008-07-19 09:03:30

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: No Sound UT2004

Why didn't you immediately google for the 2 magic words ut2004 and openal?

Anyway, create ~/.openalrc and populate it with:

; http://gentoo-wiki.com/HOWTO_Surround_Sound
; http://www.halfgaar.net/surround-sound-in-linux
; http://supertux.lethargik.org/wiki/OpenAL_Configuration

; Valid options: alsa, native, sdl, null.
; "native" is OSS:
; http://opensource.creative.com/pipermail/openal/2005-April/008145.html
; Seems to need oss, even if alsa is requested!
(define devices '(alsa))

; Four-speaker surround - generic and works. But 5.1 is better.
;(define speaker-num 4)

; 5.1 surround with ALSA - works.
; Works in UT2004 as long as libSDL-1.2.so.0 and openal.so in /opt/ut2004/System are symlinked to /usr/lib (also works with x86_64).
(define speaker-num 6)

; Some dmix soundcards need:
; From http://forums.gentoo.org/viewtopic.php?p=4483742#4483742
; ut2004 proves that ice1724 prefers 44100, otherwise get metallic sound.
;(define sampling-rate 44100)
; Don't set 48000 with ut2004, otherwise get no sound!
;(define sampling-rate 48000)

And skip the ut2004 crash-inducing intro.

Offline

#3 2008-07-19 13:56:35

progrock
Member
Registered: 2008-07-19
Posts: 33

Re: No Sound UT2004

I had indeed immediately google for those words.  I even had the ~/.openalrc that you posted, still no joy.

Any other ideas?

Offline

#4 2008-07-19 14:43:20

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: No Sound UT2004

Take a look at the log file:  ~/.ut2004/System/UT2004.log

Offline

#5 2008-07-19 15:07:02

progrock
Member
Registered: 2008-07-19
Posts: 33

Re: No Sound UT2004

Aha!

Log: Log file open, Sat Jul 19 09:15:45 2008
Init: Name subsystem initialized
Init: Version: 3369 (128.29)
Init: Compiled: Dec  2 2005 19:36:10
Init: Command line: 
Init: (This is Linux patch version 3369.0)
Init: Character set: Unicode
Init: Base directory: /home/zephyr/ut2004/System/
Init: Ini:UT2004.ini   UserIni:User.ini
Init: Build label: UT2004 Build UT2004_Build_[2005-11-23_16.22]
Init: Object subsystem initialized
Log: Initializing OpenGLDrv...
Log: binding libGL.so.1
Log: Game class is 'GameInfo'
Log: Bringing Level Entry.myLevel up for play (0) appSeconds: 1.131236...
ScriptLog: GameInfo::InitGame : bEnableStatLogging False
Log: Browse: NvidiaLogo.ut2?Name=Zephyr?Class=Engine.Pawn?Character=Jakob?team=255
Log: Collecting garbage
Log: Purging garbage
Log: Garbage: objects: 33835->33832; refs: 350040
Log: Game class is 'CinematicGame'
Log: Bringing Level NvidiaLogo.myLevel up for play (0) appSeconds: 1.501050...
ScriptLog: GameInfo::InitGame : bEnableStatLogging False
Log: Created and initialized a new SDL viewport.
Error: Audio initialization failed.
ScriptLog: New Player Zephyr id=6da4b44fb265300746b8af981f5ab4ce
Log: TTS: No output filename specified.
Log: Enter SetRes: 1280x1024 Fullscreen 1
Log: OpenGL
Log: GL_VENDOR     : NVIDIA Corporation
Log: GL_RENDERER   : GeForce 7900 GTX/PCI/SSE2/3DNOW!
Log: GL_VERSION    : 2.1.2 NVIDIA 173.14.09
Log: OpenGL: Device supports: GL
Log: OpenGL: Device supports: GL_EXT_bgra
Log: OpenGL: Device supports: GL_ARB_texture_compression
Log: OpenGL: Device supports: GL_EXT_texture_compression_s3tc
Log: OpenGL: Device supports: GL_ARB_texture_cube_map
Log: OpenGL: Device supports: GL_ARB_texture_env_combine
Log: OpenGL: Device supports: GL_NV_texture_env_combine4
Log: OpenGL: Device supports: GL_EXT_texture_lod_bias
Log: OpenGL: Device supports: GL_ARB_multitexture
Log: OpenGL: Device supports: GL_NV_vertex_array_range
Log: OpenGL: Device supports: GL_NV_vertex_array_range2
Log: OpenGL: Device supports: GL_ARB_multisample
Log: OpenGL: Device supports: GL_NV_multisample_filter_hint
Log: OpenGL: Device supports: GL_EXT_texture_filter_anisotropic
Log: OpenGL: Device supports: GL_ARB_vertex_buffer_object
Log: OpenGL: Device supports: GL_ARB_fragment_program
Log: OpenGL: Device supports: GL_ARB_vertex_program
Log: OpenGL: Device supports: GL_EXT_framebuffer_object
Log: OpenGL: Device supports: GL_ARB_texture_non_power_of_two
Log: OpenGL: C32 RGB888 Z24 S0
Log: OpenGL: Level of anisotropy is 1.000000 (max 16.000000).
Log: OpenGL: Have 0 multisamples buffers, 0 samples.
Log: OpenGL: Failed to get a multisample GL context
Log: OpenGL: Forcibly disabled pixel shaders.
Log: OpenGL: Forcibly disabled render-to-texture.
Log: WARNING: Couldn't allocate AGP memory - turning off support for GL_NV_vertex_array_range
Log: WARNING: This has a serious impact on performance.
Log: Startup time: 2.014167 seconds
Log: Precaching: NvidiaLogo.LevelInfo0
Log: Static mesh batches: 508608 vertex bytes, 110460 index bytes
Log: Allocating 32768 byte dynamic index buffer.
Log: Allocating 65536 byte dynamic vertex buffer.
Log: Finished precaching geometry in 0.050 seconds
Log: Finished precaching textures in 0.027 seconds
Debug: UT2k4MainMenu.Opened()   Sender:Package.UT2k4MainMenu
Log: URL: Adding default option Name=Zephyr
Log: URL: Adding default option Class=Engine.Pawn
Log: URL: Adding default option Character=Jakob
Log: URL: Adding default option team=255
Log: Browse: Index.ut2?disconnect?Name=Zephyr?Class=Engine.Pawn?Character=Jakob?team=255
Log: Failed; returning to Entry
ScriptLog: UT2k4MainMenu NotifyLevelChange  PendingConnection:False
Log: GP=FALSE
Log: Spawning new actor for Viewport SDLViewport
ScriptLog: New Player Zephyr id=6da4b44fb265300746b8af981f5ab4ce
Log: Static mesh batches: 0 vertex bytes, 0 index bytes
Warning: Failed to load 'NULL': Can't resolve package name
Warning: Failed to load 'Mesh None.': Can't resolve package name
ScriptLog: Could not load mesh:  For player: 
Debug: UT2k4MainMenu.Opened()   Sender:None
Log: Time=607.819984 ms
Log: appRequestExit(0)
Exit: Preparing to exit.
Log: Purging garbage
Exit: Game engine shut down
Exit: SDL client shut down
Log: (Karma): Level Karma Terminated.
Log: Garbage: objects: 37688->0; refs: 350040
Exit: Object subsystem successfully closed.
Exit: Exiting.
Log: FileManager: Reading 0 GByte 0 MByte 0 KByte 0 Bytes from HD took 0.000000 seconds (0.000000 reading, 0.000000 seeking).
Log: FileManager: 0.000000 seconds spent with misc. duties
Uninitialized: Name subsystem shut down
Uninitialized: Allocation checking disabled
Uninitialized: Log file closed, Sat Jul 19 09:16:16 2008

Okay, I see two issues: Audio initialization failed, and also that line about 'couldn't allocate AGP memory - serious impact on performance'.
So, where to next?

Offline

#6 2008-07-20 18:00:05

progrock
Member
Registered: 2008-07-19
Posts: 33

Re: No Sound UT2004

Ok, I did discover that the most likely reason that UT can't access AGP graphics memory is because I have a PCI Express video card.  But aside from that, this is a shameless bump since it runs so smooth on this computer, I just want to have sound.

Offline

#7 2008-07-21 03:07:03

progrock
Member
Registered: 2008-07-19
Posts: 33

Re: No Sound UT2004

This is shameful, but I figured out the problem:

The libopenal.so.whatever has to be named openal.so. 

Ta-da!

Offline

Board footer

Powered by FluxBB