ET SDL Sound Setup


  • admin

    • Install SDL 1.2 dev package
      sudo apt install libsdl1.2-dev:i386
      
    • Download et-sdl-sound.so
      wget "https://drive.google.com/uc?export=download&id=0B9j5svRObPS9TnQ4ZjlfTTAxbWM" -O ~/Documents/et-sdl-sound.so
      
    • Find the correct libSDL.so
      find /usr -name "libSDL.so"
      
    • Setup environment variables
      export ETSDL_SDL_LIB="/usr/lib/i386-linux-gnu/libSDL.so"
      export SDL_AUDIODRIVER="pulse"
      


  • @Annihil I am facing some sound issue in Ubuntu 64 bit OS. I have done the steps mentioned in this topic but no luck. Here are the console output for ET -

    deb@deb:~$ padsp et
    ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
    ET 2.60b linux-i386 May  8 2006
    ----- FS_Startup -----
    Current search path:
    /home/deb/.etwolf/etmain/UJE_italy_b2.pk3 (335 files)
    /home/deb/.etwolf/etmain/sp_delivery_te.pk3 (51 files)
    /home/deb/.etwolf/etmain
    /usr/local/games/enemy-territory/etmain/pak2.pk3 (22 files)
    /usr/local/games/enemy-territory/etmain/pak1.pk3 (10 files)
    /usr/local/games/enemy-territory/etmain/pak0.pk3 (3725 files)
    /usr/local/games/enemy-territory/etmain/mp_bin.pk3 (6 files)
    /usr/local/games/enemy-territory/etmain
    
    ----------------------
    4149 files in pk3 files
    execing default.cfg
    couldn't exec language.cfg
    execing profiles/Neemo/etconfig.cfg
    couldn't exec autoexec.cfg
    Hunk_Clear: reset the hunk ok
    
    ------- Input Initialization -------
    Joystick is not active.
    ------------------------------------
    Bypassing CD checks
    ----- Client Initialization -----
    ----- Initializing Renderer ----
    -------------------------------
    ----- Client Initialization Complete -----
    ----- R_Init -----
    ...loading libGL.so.1: Initializing OpenGL display
    ...setting mode -1: 1366 768
    Using XFree86-VidModeExtension Version 2.2
    XF86DGA Mouse (Version 2.0) initialized
    XFree86-VidModeExtension Activated at 1366x768
    Using 4/4/4 Color bits, 24 depth, 0 stencil display.
    GL_RENDERER: AMD Radeon R7 Graphics (CARRIZO / DRM 3.23.0 / 4.15.0-43-generic, LLVM 6.0.0)
    ^3WARNNING: GL extensions string too long (6486), truncated to 4096
    Initializing OpenGL extensions
    ...GL_S3_s3tc not found
    ...GL_EXT_texture_env_add not found
    ...using GL_ARB_multitexture
    ...GL_EXT_compiled_vertex_array not found
    ...GL_NV_fog_distance not found
    ... GL_EXT_texture_filter_anisotropic not found
    Initializing GLX extensions
    ...using GLX_SGI_swap_control
    ...using GLX_SGI_video_sync
    XF86 Gamma extension initialized
    
    GL_VENDOR: X.Org
    GL_RENDERER: AMD Radeon R7 Graphics (CARRIZO / DRM 3.23.0 / 4.15.0-43-generic, LLVM 6.0.0)
    GL_VERSION: 3.0 Mesa 18.0.5
    GL_EXTENSIONS: GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_packed_pixels GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_derivative_control GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_sparse_buffer GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_texture_barrier GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_window_pos GL_ATI_blend_equation_separate GL_ATI_draw_buffers GL_ATI_fragment_shader GL_ATI_meminfo GL_ATI_separate_stencil GL_ATI_texture_compression_3dc GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_ATI_texture_mGLX_EXTENSIONS: GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_INTEL_swap_event GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGI_video_sync 
    GL_MAX_TEXTURE_SIZE: 16384
    GL_MAX_ACTIVE_TEXTURES_ARB: 8
    
    PIXELFORMAT: color(32-bits) Z(24-bit) stencil(0-bits)
    MODE: -1, 1366 x 768 fullscreen hz:N/A
    GAMMA: hardware w/ 0 overbright bits
    CPU: 
    rendering primitives: multiple glArrayElement
    texturemode: GL_LINEAR_MIPMAP_LINEAR
    picmip: 0
    texture bits: 32
    multitexture: enabled
    compiled vertex arrays: disabled
    texenv add: disabled
    compressed textures: disabled
    anisotropy: 1.0
    NV distance fog: disabled
    Initializing Shaders
    ----- finished R_Init -----
    
    ------- sound initialization -------
    /dev/dsp: No such file or directory
    Could not open /dev/dsp
    ------------------------------------
    Sound memory manager started
    Sys_LoadDll(/home/deb/.etwolf/etmain/ui.mp.i386.so)... 
    Sys_LoadDll(/home/deb/.etwolf/etmain/ui.mp.i386.so) failed:
    "/home/deb/.etwolf/etmain/ui.mp.i386.so: cannot open shared object file: No such file or directory"
    Sys_LoadDll(/usr/local/games/enemy-territory/etmain/ui.mp.i386.so)... ok
    Sys_LoadDll(ui) found **vmMain** at  0xe5161f40  
    Sys_LoadDll(ui) succeeded!
    --- Common Initialization Complete ---
    Opening IP socket: localhost:27960
    Hostname: deb
    IP: 127.0.1.1
    Started tty console (use +set ttycon 0 to disable)
    Resolving etmaster.idsoftware.com
    etmaster.idsoftware.com resolved to 192.246.40.60:27951
    ----- CL_Shutdown -----
    RE_Shutdown( 1 )
    -----------------------
    ----- CL_Shutdown -----
    -----------------------
    Shutdown tty console
    
    

    Any suggestions?

    Thanks.


  • admin

    @Dibbo said in ET SDL Sound Setup:

    wrong ELF class: ELFCLASS64

    That means you have installed amd64 packages instead of i386 ones.



  • Thanks for reply. Below solution is worked for me.

    I have made a script and provide the below details and run the game from that script -

    #!/bin/bash
    export LD_PRELOAD="/home/deb/Documents/et-sdl-sound.so"
    export SDL_AUDIODRIVER="pulse"
    et
    

Log in to reply
 

0
Online

404
Users

25
Topics

345
Posts