project-navigation
Personal tools

Author Topic: ufo.conf / ref_glx.so problem again :(  (Read 10344 times)

Hoehrer

  • Guest
ufo.conf / ref_glx.so problem again :(
« on: March 18, 2006, 01:57:43 pm »
I'm building my game exaclty as mentioned here (i've done it that way before this tut even existed):
http://ufo.myexp.de/phpBB2/viewtopic.php?p=46#46

But now for some reason (me, changes in svn, whatever) i yet again [1] get the problem with the 'missing' /etc/ufo.conf and when i symlink it to defaults.cfg i get the error
Code: [Select]
LoadLibrary("ref_glx.so") failed: Datei oder Verzeichnis nicht gefunden (EN: File or directory not found)

I really do not know why this problem occurs at all, everything is in the right place and i certainly didn't change anything (at least not manually).

My file structure looks like this:
Code: [Select]
trunk/
ref_glx.so -> src/linux/debugi386/ref_glx.so
ufo -> src/linux/debugi386/ufo
base/
game.so -> ../src/linux/debugi386/game.so
config.cfg
default.cfg
keys.cfg


EDIT: my default.cfg
Code: [Select]
//set vid_ref                   gl
set gl_driver           "opengl32"
set vid_ref                     glx
//set gl_driver         libGL.so
set gl_mode                     6
set     vid_fullscreen  0
set crosshair           1


Thanks for any tips what i might have done wrong,
Werner

[1] Thread with exactly this problem in the sf-forum http://sourceforge.net/forum/forum.php?thread_id=1425481&forum_id=531128

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
ufo.conf / ref_glx.so problem again :(
« Reply #1 on: March 19, 2006, 03:37:23 pm »
the path of the ref_glx.so is in the conf file in etc dir - remove the conf file - then ufoai is searching in ./ - which is the right place

Hoehrer

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #2 on: March 20, 2006, 05:47:22 pm »
Quote from: "Mattn"
the path of the ref_glx.so is in the conf file in etc dir - remove the conf file - then ufoai is searching in ./ - which is the right place


I just tried that, but now i get a new message with an opengl32 problem...
Code: [Select]
------- Loading ref_sdl.so -------
LoadLibrary("ref_sdl.so"): can't open /etc/ufo.conf - setting search path to .
LoadLibrary("./ref_sdl.so")
reset
ref_gl version: GL 0.12
QGL_Init("opengl32"): can't open /etc/ufo.conf
./opengl32: Kann die Shared-Object-Datei nicht ?ffnen: Datei oder Verzeichnis nicht gefunden
ref_gl::R_Init() - could not load "opengl32"
------------------------------------
Speicherzugriffsfehler

The same happens with "glx". Other opengl-games/apps work fine.

Werner

Hoehrer

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #3 on: March 20, 2006, 07:50:39 pm »
ok forget that last post, i forgot to change the second line in default.cfg
Code: [Select]
//set vid_ref                   gl
//set gl_driver           "opengl32"
set vid_ref                     glx
set gl_driver         libGL.so
set gl_mode                     6
set     vid_fullscreen  0
set crosshair           1


Werner

kNo

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #4 on: March 21, 2006, 12:33:22 pm »
I have the same problem:
Code: [Select]
ufoai
Adding game dir: ./base
using /home/kno/.ufoai/base/ for writing
Adding game dir: /home/kno/.ufoai/base
Using data dir (./base/i18n/) for locate settings
Setting language to es_ES
execing default.cfg
execing 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-deviceALSA: period 2048 not supported, using 2048
sound sampling rate: 48000
------------------------------------
------- Loading ref_gl.so -------
LoadLibrary("ref_gl.so"): can't open /etc/ufo.conf
LoadLibrary("ref_gl.so") failed: No existe el fichero o el directorio
Dumped console text to /home/kno/.ufoai/base/gl_debug.txt.
recursive shutdown
Error: Couldn't initialize OpenGL renderer!
Consult gl_debug.txt for further information.

Configuration (default.cfg in ~/ufoai/base)
Code: [Select]
set vid_ref                     gl
//set gl_driver         "opengl32"
//set vid_ref                   glx
set gl_driver           libGL.so
set gl_mode                     6
set     vid_fullscreen  0
set crosshair           1

Hoehrer

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #5 on: March 21, 2006, 10:38:20 pm »
Quote from: "kNo"
Code: [Select]
set vid_ref                     gl
//set gl_driver         "opengl32"
//set vid_ref                   glx
set gl_driver           libGL.so


Set your values in the default.cfg file to the ones from my previous posting:
Code: [Select]
//set vid_ref                   gl
//set gl_driver           "opengl32"
set vid_ref                     glx
set gl_driver         libGL.so
This should fix it.

Lines starting with "//" are commented out.

Werner

kNo

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #6 on: March 22, 2006, 12:25:48 am »
Now:
Code: [Select]
------- Loading ref_glx.so -------
LoadLibrary("ref_glx.so"): can't open /etc/ufo.conf
LoadLibrary("ref_glx.so") failed: libXxf86dga.so.1: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
Dumped console text to /home/kno/.ufoai/base/gl_debug.txt.
recursive shutdown
Error: Couldn't initialize OpenGL renderer!
Consult gl_debug.txt for further information.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
ufo.conf / ref_glx.so problem again :(
« Reply #7 on: March 22, 2006, 11:03:59 am »
you don't have the dga extension installed - compile the new sdl-renderer ref_sdl.so from svn or installl the dga extension for x

[S|G]

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #8 on: March 22, 2006, 08:08:52 pm »
Hello,

I have just compiled ufo from source and I ran into the ufo.conf problem. I fixed it by creating a file named ~./ufoai/base/default.conf with the following lines:

Code: [Select]

//set vid_ref                   gl
//set gl_driver           "opengl32"
set vid_ref                     glx
set gl_driver         libGL.so


Now the game changes the screen resolution but stops in a black screen with just the green mouse cursor. It stays that way until I press ESC, causing it to return to my desktop. Here is part of the terminal output:

Code: [Select]

...
Can't find pics/sfx/shadow
------------------------------------
Can't find pics/sanduhr
CDAudio_Init: No CD in drive.
CDAudio_Init: CD contains no audio tracks.
CD Audio Initialized.
Couldn't load map mask (pics/menu/map_mask.tga)
stage: intro
stage: ufos_are_coming
stage: invasion
Shared Client/Server Info loaded
Unknown command "init"
====== UFO Initialized ======

Using XF86DGA Mouse
Received signal 11, exiting...
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  134 (XFree86-VidModeExtension)
  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
  Value in failed request:  0x3a00002
  Serial number of failed request:  77
  Current serial number in output stream:  79


I got the same thing when I downloaded the pre-compiled package and now I'm having this on the one I just compiled. What should I do?

Hoehrer

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #9 on: March 22, 2006, 08:19:18 pm »
You have some missing content files, did you downlaod the    base.tar.bz2 and the base directory from svn?

If not, check out svn-base, then download the archive and extract it into the checked out base directory (just do not overwrite files from svn).

Why? The base-directory is currently a mix from the static archive and svn. Where the files in svn are more up-to-date.


EDIT: Concerning the  errors on the bottom: i have no idea what could cause this.

Hope that helps,
Werner

[S|G]

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #10 on: March 22, 2006, 08:31:32 pm »
Thanks, I am now downloading the base data files. I thought that the ones in the base svn would be enough. My mistake  :oops:

About the errors on the bottom, I don't think they are related to the UFO game in particular: it seems to be some problem when X tries to restore my previous resolution. When the game quits it is unable to restore the resolution my system was using before, but it also happens with other applications, such as Doom3. While I have no idea about what is causing it, it is not any major problem for me :)

Edit: When I extracted the files from the archive, tar reported that they had timestamps in the future. Is that normal?

[S|G]

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #11 on: March 22, 2006, 09:03:23 pm »
Hello again,

Sorry to keep posting, but I'm still not able to run UFO. I have downloaded the base package, music package, got the svn version, compiled it and..... I'm stuck at a black screen with only the cursor. I couldn't see any error messages on console this time, it just doesn't work.

Console output (complete):
Code: [Select]

Adding game dir: ./base
using /home/diego/.ufoai/base/ for writing
Adding game dir: /home/diego/.ufoai/base
Using data dir (./base/i18n/) for locate settings
Setting language to pt_BR.UTF-8
execing default.cfg
execing 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")
ref_gl version: GL 0.12
Initializing OpenGL display
...setting fullscreen mode 6: 1024 768
Using XFree86-VidModeExtension Version 2.2
Using hardware gamma
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce4 MX 440 with AGP8X/AGP/SSE/3DNOW!
GL_VERSION: 1.5.5 NVIDIA 81.78
GL_EXTENSIONS: GL_ARB_imaging GL_ARB_multitexture GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects GL_ARB_shading_language_100 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_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays 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_shared_texture_palette GL_EXT_stencil_wrap 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_vertex_array GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod 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 deprecated in favor of ARB_multitexture
...using GL_ARB_texture_compression
...using GL_EXT_texture_filter_anisotropic [ 2 max] [ 1 selected]
...using GL_EXT_texture_lod_bias
...using GL_EXT_stencil_wrap
...GL_ARB_fragment_program not found
...GL_ATI_separate_stencil not found
Max texture size supported
...detected 2048
------------------------------------
CDAudio_Init: No CD in drive.
CDAudio_Init: CD contains no audio tracks.
CD Audio Initialized.
Map mask loaded.
stage: intro
stage: ufos_are_coming
stage: invasion
Shared Client/Server Info loaded
Unknown command "init"
====== UFO Initialized ======

Using XF86DGA Mouse
Received signal 11, exiting...


Then that's it. It stops at a black screen, with the mouse cursor (green crosshairs) and nothing else happens. I press esc and it quits to desktop. Any ideas?  :cry:

Hoehrer

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #12 on: March 22, 2006, 09:17:35 pm »
Sorry, no idea what could cause this, buzt i suspect a graphic-card, x-server or ufo-config issue.

I can't promise anything, but you could try changing some settings in default.conf and config.cfg (e.g fullscreen on/off, turning off or lower GL settings etc...)

Attaching uf to gdb may produce some usefull output though -> backtrace.

Werner

[S|G]

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #13 on: March 22, 2006, 09:25:38 pm »
Quote from: "Hoehrer"
Sorry, no idea what could cause this, buzt i suspect a graphic-card, x-server or ufo-config issue.

I can't promise anything, but you could try changing some settings in default.conf and config.cfg (e.g fullscreen on/off, turning off or lower GL settings etc...)

Attaching uf to gdb may produce some usefull output though -> backtrace.

Werner


Should ufo create a ~/.ufoai automatically? If so, it is not doing that on my machine. On ~/.ufoai I had to manually create base/default.cfg and it ONLY had the following lines:
Code: [Select]

//set vid_ref                   gl
//set gl_driver           "opengl32"
set vid_ref                     glx
set gl_driver         libGL.so


What other files (you mentioned a config.cfg) do I need to create? If you could send some default samples I would be really grateful :D

Anyway, I suspect there is something weird with the program itself, since it is not creating the default configuration. Before I created the default.cfg it kept giving me the /etc/ufo.conf error.

Thanks

Hoehrer

  • Guest
ufo.conf / ref_glx.so problem again :(
« Reply #14 on: March 22, 2006, 09:39:24 pm »
default.cfg, config.cfg and keys.cfg are delivered within the base-archive (in the base-dir). I left most of this alone, except for the
Code: [Select]
set vid_mousegrab "0"
in config.cfg and the fullscreen=off settings. This works for me.

I think the files in ~/.ufoai overwrite the settings in the ./trunk/base dir, so if it (config.cfg is the only one here) was already created, edit this one.

Werner