project-navigation
Personal tools

Author Topic: Cannot start UFO:AI on gentoo  (Read 5749 times)

Offline amsch

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Cannot start UFO:AI on gentoo
« on: August 06, 2006, 06:47:03 pm »
Hello!

I have downloaded the loki installer and tried to start the game (after editing default.cfg). But im getting the following error:

Code: [Select]

Adding game dir: ./base
using /home/andreas/.ufoai/base/ for writing
Adding game dir: /home/andreas/.ufoai/base
execing default.cfg
couldn't exec config.cfg
execing keys.cfg
Console initialized.

------- sound initialization -------
Using Alsa
Using sounddevice "default" - if you have problems with this try to set the cvar snddevice to a appropriate alsa-devicesound sampling rate: 48000
------------------------------------
------- Loading ref_glx.so -------
LoadLibrary("ref_glx.so"): can't open /etc/ufo.conf - setting search path to .
LoadLibrary("ref_glx.so") failed: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory
Dumped console text to /home/andreas/.ufoai/base/gl_debug.txt.
recursive shutdown
Error: Couldn't initialize OpenGL renderer!
Consult gl_debug.txt for further information.



my default.cfg

Code: [Select]

//
// DEFAULT CVARS
//

// WIN32
//set vid_ref                   gl
//set gl_driver         "opengl32"
// END WIN32

// LINUX
//set vid_ref                   glx
set vid_ref                     sdl
set gl_driver           libGL.so
// sndsystem: (Linux only and only when SDL and/or Alsa compiled into the binary - see Makefile)
// .. 0 = OSS
// .. 1 = SDL
// .. 2 = ALSA (default)
set sndsystem 2
// END LINUX

set gl_mode             6
set vid_fullscreen      1
set crosshair           1
set cl_precachemenus    1

//----------------------------------------------

//
//      INIT STUFF
//
alias   init    "mn_push main;"

//
// newgame command
//
alias   newgame " killserver ; maxclients 1"

//
// quake2 +set dedicated 1
// will run this command if no other +map is included
//
alias   dedicated_start ""

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Cannot start UFO:AI on gentoo
« Reply #1 on: August 06, 2006, 07:50:36 pm »
install libsdl-ttf-2.0

Offline amsch

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Cannot start UFO:AI on gentoo
« Reply #2 on: August 06, 2006, 08:51:00 pm »
Actually I have emerged this ebuild - but it still does not work :-((

Version 1.2.11 - see here: http://www.gentoo-portage.com/media-libs/libsdl

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
Cannot start UFO:AI on gentoo
« Reply #3 on: August 06, 2006, 09:31:24 pm »
I haven't understood. Do you have install libsdl-ttf-2.0 installed? Not, libsdl-ttf-2.0-dev, libsdl-ttf-2.0.

Offline amsch

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Cannot start UFO:AI on gentoo
« Reply #4 on: August 06, 2006, 09:48:05 pm »
I have installed the following version:

Code: [Select]

*  media-libs/libsdl
      Latest version available: 1.2.11
      Latest version installed: 1.2.11
      Size of files: 2,730 kB
      Homepage:      http://www.libsdl.org/
      Description:   Simple Direct Media Layer
      License:       LGPL-2.1

Offline amsch

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Cannot start UFO:AI on gentoo
« Reply #5 on: August 06, 2006, 09:54:12 pm »
Sorry - this was I misunderstanding - I had to install "libsdl-ttf" not "libsdl" - no everything works fine  :oops:

Thanks for the help!

Offline amsch

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Cannot start UFO:AI on gentoo
« Reply #6 on: August 06, 2006, 10:06:02 pm »
But one thing is still quite annoying: My mouse cursor moves way too fast in some menus - I can hardly click anything if I move my mouse only some milimeters the cursor jumps to the other side of the screen - is this a known problem?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Cannot start UFO:AI on gentoo
« Reply #7 on: August 07, 2006, 08:28:58 am »
which renderer? sdl or glx? which graphic card and which drivers? dga enabled?

Offline amsch

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Cannot start UFO:AI on gentoo
« Reply #8 on: August 07, 2006, 06:00:37 pm »
SDL and GLX - I have tried both. nVidia drivers with geforce 5600

dga?

I have set all options to the lowest level but I still have >5 FPS in buy menu or in ship equip menu :-( In the menu where I can buy the kevlar west I have at least 12 FPS.

Code: [Select]

Adding game dir: ./base
using /home/andreas/.ufoai/base/ for writing
Adding game dir: /home/andreas/.ufoai/base
execing default.cfg
execing config.cfg
execing keys.cfg
Console initialized.

------- sound initialization -------
Using OSS
Soundsystem: OSS.
/dev/dsp: Permission denied
SNDDMA_Init: Could not mmap /dev/dsp.
------- Loading ref_glx.so -------
LoadLibrary("ref_glx.so"): can't open /etc/ufo.conf - setting search path to .
LoadLibrary("./ref_glx.so")
ref_gl version: GL 0.12
Initializing OpenGL display
...setting mode 6: 1024 768
Using XFree86-VidModeExtension Version 2.2
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce FX 5600/AGP/SSE/3DNOW!
GL_VERSION: 2.0.2 NVIDIA 87.56
GL_EXTENSIONS: GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_shared_texture_palette GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_texture_sRGB GL_EXT_timer_query GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
...allowing CDS
...enabling GL_EXT_compiled_vertex_array
...using GL_EXT_point_parameters
...using GL_ARB_multitexture
...using GL_EXT_texture_env_combine
...GL_SGIS_multitexture not found
...ignoring GL_ARB_texture_compression
...ignoring GL_EXT_texture_filter_anisotropic
...using GL_EXT_texture_lod_bias
...using GL_EXT_stencil_wrap
...using GL_EXT_fog_coord
...GL_ATI_separate_stencil not found
Max texture size supported
...detected 4096
...but using 256 as requested
...SDL_ttf inited
------------------------------------
CDAudio_Init: No CD in drive.
CDAudio_Init: CD contains no audio tracks.
CD Audio Initialized.
couldn't exec autoexec.cfg
...could not set to language:
...could not set to system language
Shared Client/Server Info loaded
Unknown command "ov_start"
...precaching 46 menus
Can't find pics/
Can't find pics/menu/multi_buttons1
Can't find pics/menu/main_buttons2
Can't find pics/menu/button_connect_to_ip
====== UFO Initialized ======

Changing to Singleplayer
Unknown command "selfloor-1"
recursive shutdown

Offline amsch

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Cannot start UFO:AI on gentoo
« Reply #9 on: August 09, 2006, 08:32:46 pm »
Can anybody help me please?

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
Cannot start UFO:AI on gentoo
« Reply #10 on: August 09, 2006, 10:39:56 pm »
I would suggest compiling SVN trunk. Plus enabling MMX in Makefile. Also, setting your language to "en", either in config.cfg or by LANG="en". Also setting sounddriver to someting that works (but perhaps the default in SVN will be fine). Then, please, report.