project-navigation
Personal tools

Author Topic: Startup problems  (Read 8040 times)

armadillo

  • Guest
Startup problems
« on: March 23, 2006, 12:09:24 pm »
Hi there, I 'm a newbie so please bear with me.

I am running KDE on Debian Sarge with a 2.6.13-1-k7 kernel (AMD Athlon).

I just downloaded "ufoai-radiant-060206.run" from sourceforge.

I chmoded it to be executable and ran it as a normal user (not root).

It apparently installed OK and created directories "GtkRadiant-1.4" and ".radiant" in my home directory.

So far so good, now when I try running it I get the following command line message:

I/O warning : failed to load external entity "/home/armand/.radiant/1.4.0/global.pref

I have to point out that the file in question exists, why it fails to load is a mystery.

This is followed by the "Select Game" GUI giving me the choice UFO:AI.

Pressing OK, spits the following message to the console:

I/O warning : failed to load external entity "/home/armand/.radiant/1.4.0/q2.game/local.pref"

Again, the file exists but it fails to load.

The GTKRadiant splash screen appears, followed by an error window reading:

"Failed to load a project file.
Please enter a valid project file."

Pressing OK opens a file browsing window. At this stage I am at a loss as to why the two previous, existing files have failed to load, what a project file is and why I need to choose one.

Any help will be greatly appreciated.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Startup problems
« Reply #1 on: March 23, 2006, 01:50:08 pm »
the first two
Quote
I/O warning : failed to load external entity
should be ok.
the thrid and last thing: you should have a .ufo/base/scripts folder, too?!?? right?

there is a proj-file in it.

armadillo

  • Guest
Startup problems
« Reply #2 on: March 23, 2006, 04:17:47 pm »
OK, fixed two problems. One was that I was not root when installing, Debian does not allow root to have anything to do with the X server. I got round it by sudo and it worked.

Second problem was, I had the wrong file, d-oh. I managed to install the map editor, radiant, not the game.

So, I went and got the game installer, "ufo.ai_0.12beta1-multilanguage.run", chmoded it to be executable, and sudo installed it.

All went seemingly well until I tried starting it, when I got the following:

Adding game dir: ./base
using /home/armand/.ufoai/base/ for writing
Adding game dir: /home/armand/.ufoai/base
Using data dir (./base/i18n/) for locate settings
Setting language to C
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_gl.so -------
LoadLibrary("ref_gl.so"): can't open /etc/ufo.conf
LoadLibrary("ref_gl.so") failed: No such file or directory
Dumped console text to /home/armand/.ufoai/base/gl_debug.txt.
ERROR: couldn't open.
recursive shutdown
Error: Couldn't initialize OpenGL renderer!
Consult gl_debug.txt for further information.

It is true, that the file /etc/ufo.conf does not exist. No idea why not though, was it supposed to be created during the installation? I didn't see any errors that might indicate something went wrong. And/or is it due to openGL libraries missing? If so, what packages do I need to download?

Thanks in advance.

[S|G]

  • Guest
Startup problems
« Reply #3 on: March 23, 2006, 08:34:46 pm »
Try the following (that worked for me):

copy <install_dir>/base/default.cfg to ~/.ufoai/base/default.cfg
open ~/.ufoai/base/default.cfg in some text editor (such as kwrite)
edit the video mode lines so they'll look like this:
Code: [Select]

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

Just comment the vid_ref and gl_driver and uncomment the same ones below. It should look then look like the one above ;)

Try to run the game.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Startup problems
« Reply #4 on: March 23, 2006, 08:38:35 pm »
there's also a workaround posted here:
http://liflg.org/forum/viewtopic.php?t=615

armadillo

  • Guest
Startup problems
« Reply #5 on: March 24, 2006, 09:47:08 am »
No joy *sigh*.

Mattn, it seems that the advice on the thread you posted says the same thing as [S|G], only instead of playing with the configuration file, you pass different startup args. In both cases, the only noticeable difference is a slightly diferent error message:

------- Loading ref_glx.so -------
LoadLibrary("ref_glx.so"): can't open /etc/ufo.conf
LoadLibrary("ref_glx.so") failed: libXxf86dga.so.1: cannot open shared object file: No such file or directory
Dumped console text to /home/armand/.ufoai/base/gl_debug.txt.
ERROR: couldn't open.
recursive shutdown
Error: Couldn't initialize OpenGL renderer!
Consult gl_debug.txt for further information.

Any ideas? Am I missing some packages? Should I install something else?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Startup problems
« Reply #6 on: March 24, 2006, 11:24:23 am »
yes, this one helps - you have no dga or vidmode extersion for x installed - you can install them or use the sdl-renderer from svn and start the game with ./ufo +set vid_ref sdl

kilrathi

  • Guest
Startup problems
« Reply #7 on: April 08, 2006, 08:55:58 pm »
Hi.
My configuration (OS etc.) is almost the same as armadillo's.
My UFO package is ufo.ai_0.12beta1-multilanguage.run
I had the same problem with gl/glx as armadillo.
I fixed it by changing default.cfg file as suggested in this topic and now, when I start ufo:ai, i get something like this:
Code: [Select]
kilrathi@kilrathi:/usr/local/games/ufoai/base$ ufoai
Adding game dir: ./base
using /home/kilrathi/.ufoai/base/ for writing
Adding game dir: /home/kilrathi/.ufoai/base
Using data dir (./base/i18n/) for locate settings
Setting language to C
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
LoadLibrary("./ref_glx.so")
ref_gl version: GL 0.12
QGL_Init("libGL.so"): can't open /etc/ufo.conf
./libGL.so: cannot open shared object file: No such file or directory
ref_gl::R_Init() - could not load "libGL.so"
------------------------------------
/usr/games/ufoai: line 104:  8792 Segmentation fault      ./$GAME_BINARY $CMD_ARGS "$@"

Could you help me?
is it a problem with some gl drivers?

And, by the way, i have libGL.so library as "/usr/lib/libGL.so.1.2"

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Startup problems
« Reply #8 on: April 08, 2006, 10:44:04 pm »
have a look here and maybe change the gl_driver stuff in your startup-script
http://liflg.org/forum/viewtopic.php?t=615

kilrathi

  • Guest
Startup problems
« Reply #9 on: April 08, 2006, 11:07:02 pm »
i've changed entries in default.cfg file:
it was:
Code: [Select]

set vid_ref                     glx
set gl_driver           libGL.so

and now it is:
Code: [Select]

set vid_ref                     glx
set gl_driver           libGL.so.1.2


It worked - the game starts, but it works terribly slow (mega-mouse-lag ;) )
so i guess there is still something wrong.
I'll take a look in other topics for info - tommorow.
thanx[/code]

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Startup problems
« Reply #10 on: April 09, 2006, 08:10:36 am »
try sdl as vidref

kilrathi

  • Guest
Startup problems
« Reply #11 on: April 09, 2006, 11:52:50 am »
nothing changed.
more about this problem: http://ufo.myexp.de/phpBB2/viewtopic.php?t=65

overridetzx

  • Guest
Startup problems
« Reply #12 on: April 09, 2006, 12:30:49 pm »
Does running in windowed mode with +set vid_grabmouse 0 +set vid_fullscreen 0 solve your mouse problem?