Author Topic: gldrivers.xml could not be loaded and window not redrawn  (Read 1283 times)

bugmenot

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
gldrivers.xml could not be loaded and window not redrawn
« on: August 19, 2009, 03:16:10 pm »
Hello,
I am trying to make a Debian package of planeshift to publish it on playeb.net.


Compilation succeeded but there are same messages shown when starting the game.
They also appear in the log:
Quote
Your configuration files are in... /home/korn/.PlaneShift
DEBUG: Initializing OpenAL sound system
DEBUG: Retrieving available devices.
DEBUG: Available OpenAL device: ALSA Software on default
DEBUG: Available OpenAL device: ALSA Software on HDA Intel
DEBUG: Available OpenAL device: OSS Software
DEBUG: Available OpenAL device: Wave File Writer
DEBUG: Default OpenAL device: ALSA Software on default
DEBUG: No device specified
DEBUG: Falling back on default device
DEBUG: OpenAL context frequency: 44100 Hz
DEBUG: OpenAL context refresh: 1378 Hz
DEBUG: OpenAL context uses asynchronous (threaded) context
 
crystalspace.canvas.openglcommon:
  Could not open driver database file '/config/gldrivers.xml'
 
crystalspace.engine.warning:
  Default shader /shader/std_lighting.xml not available
  Default shader /shader/std_lighting_portal.xml not available
 
planeshift.application.client:
  PlaneShift Steel Blue (0.4.03)
  This game uses Crystal Space Engine created by Jorrit and others
  1.4.0.19 [Unix-x86-GCC]
Wed Aug 19 14:21:18 2009, LOG_ANY flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_WEATHER flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_SPAWN flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_CELPERSIST flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_PAWS flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_GROUP flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_CHEAT flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_LINMOVE flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_SPELLS flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_NEWCHAR flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_SUPERCLIENT flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_EXCHANGES flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_ADMIN flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_STARTUP flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_CHARACTER flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_CONNECTIONS flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_CHAT flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_NET flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_LOAD flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_NPC flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_TRADE flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_SOUND flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_COMBAT flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_SKILLXP flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_QUESTS flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_SCRIPT flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_MARRIAGE flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_MESSAGES flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_CACHE flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_PETS flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_USER flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_LOOT flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_DUELS flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, LOG_TRIBES flag deactivated with no filter.
Wed Aug 19 14:21:18 2009, All LOGS are off.
Mounting skin: /this/art/skins/default.zip
Mounting skin: /planeshift/art/skins/base/client_base.zip
  psEngine initialized.
Using fontsize 16 for resolution 1024x768
WARNING! Object '_s_sigil_05' is not closed!
WARNING! Object 'spikes_03' is not closed!
WARNING! Object '_s_sigil_04' is not closed!
WARNING! Object 'spikes_02' is not closed!
WARNING! Object '_s_sigil_03' is not closed!
WARNING! Object '_s_sigil_01' is not closed!
...
 
crystalspace.graphics3d.shader.fixed:
  Multitexture units: moderate 4
 
planeshift.application.client:
  PSLoader: step 2: success
Wed Aug 19 14:21:28 2009, <src/client/pscharcontrol.cpp:880 LoadKeys SEVERE>
Wed Aug 19 14:21:28 2009, Failed to map 'F10' to 'Brightness reset'
  PSLoader: step 3: success
Wed Aug 19 14:21:28 2009, <src/common/util/psxmlparser.cpp:282 ParseFile SEVERE>
Wed Aug 19 14:21:28 2009, Could not find file: /planeshift/world/terr_common/sound.xml
Wed Aug 19 14:21:28 2009, <src/common/util/psxmlparser.cpp:282 ParseFile SEVERE>
Wed Aug 19 14:21:28 2009, Could not find file: /planeshift/world/hydlaa_jayose/sound.xml
  PSLoader: step 4: success
Map hydlaa_common loaded successfully in 126ms
Map tutorial loaded successfully in 841ms
Wed Aug 19 14:21:30 2009, <src/client/psclientdr.cpp:248 HandleStatsUpdate SEVERE>
Wed Aug 19 14:21:30 2009, Stat request failed because CelClient not ready for EID:32378
Wed Aug 19 14:21:30 2009, <src/client/psclientdr.cpp:248 HandleStatsUpdate SEVERE>
Wed Aug 19 14:21:30 2009, Stat request failed because CelClient not ready for EID:32378
  PSLoader: step 5: success
Wed Aug 19 14:21:30 2009, <src/common/paws/pawswidget.cpp:552 LoadAttributes>
Wed Aug 19 14:21:30 2009, GUI image 'ColorTool' not found.
Wed Aug 19 14:21:30 2009,
Wed Aug 19 14:21:30 2009, <src/common/paws/pawswidget.cpp:552 LoadAttributes>
Wed Aug 19 14:21:30 2009, GUI image 'NameTool' not found.
Wed Aug 19 14:21:30 2009,
Wed Aug 19 14:21:30 2009, <src/common/paws/pawswidget.cpp:552 LoadAttributes>
Wed Aug 19 14:21:30 2009, GUI image 'SaveTool' not found.
Wed Aug 19 14:21:30 2009,
Wed Aug 19 14:21:30 2009, <src/common/paws/pawswidget.cpp:552 LoadAttributes>
Wed Aug 19 14:21:30 2009, GUI image 'LoadTool' not found.
Wed Aug 19 14:21:30 2009,
  PSLoader: step 6: success
psEngine destroyed.
AL lib: alSource.c:2291: alcDestroyContext(): 2 Source(s) NOT deleted
AL lib: alBuffer.c:1097: exit() 8 Buffer(s) NOT deleted
 
crystalspace.sndsys.renderer.openal:
  Closing OpenAL sound system
  Destroying context

These lines also occur when starting the game at the top of the game windows:
Quote
crystalspace.canvas.openglcommon:
  Could not open driver database file '/config/gldrivers.xml'
 
crystalspace.engine.warning:
  Default shader /shader/std_lighting.xml not available
  Default shader /shader/std_lighting_portal.xml not available



All necessary files are installed here:
Quote
$ ls -l /usr/share/games/planeshift/
insgesamt 3948
drwxr-xr-x 9 root root    4096 2009-08-19 13:45 art
drwxr-xr-x 9 root root    4096 2009-08-19 13:45 data
drwxr-xr-x 2 root root    4096 2009-08-19 13:44 docs
-rw-r--r-- 1 root root    6141 2009-08-19 00:43 eedit.cfg
drwxr-xr-x 6 root root    4096 2009-08-19 13:44 lang
-rw-r--r-- 1 root root    3034 2009-08-19 00:43 npcclient.cfg
-rw-r--r-- 1 root root    8332 2009-08-19 00:43 pawseditor.cfg
-rwxr-xr-x 1 root root 3962656 2009-08-19 13:41 psclient
-rw-r--r-- 1 root root    7641 2009-08-19 00:43 psclient.cfg
-rw-r--r-- 1 root root     648 2009-08-19 00:43 pslaunch.cfg
-rw-r--r-- 1 root root    4495 2009-08-19 00:43 psserver.cfg
-rw-r--r-- 1 root root     679 2009-08-19 00:43 pssetup.cfg
drwxr-xr-x 3 root root    4096 2009-08-19 13:44 support
-rw-r--r-- 1 root root     469 2009-08-19 00:43 updaterinfo.xml
-rw-r--r-- 1 root root    1661 2009-08-19 00:43 vfs.cfg

The gldrivers.xml is located here:
/usr/share/games/planeshift/data/config/gldrivers.xml

I assume because of that there are these graphic issues ingame.


About my system:
Ubuntu 9.04 Jaunty (amd64)
Nvidia Quadro NVS 140M
Nvidia 185.18.14 drivers
« Last Edit: August 19, 2009, 03:32:51 pm by bugmenot »

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: gldrivers.xml could not be loaded and window not redrawn
« Reply #1 on: August 19, 2009, 03:59:45 pm »
You can find the two shader xmls in your crystal space source under /data/shader.
So if you have the crystal space source in /home/korn/build/cs/ you will have to copy /home/korn/build/cs/data/shaders/std_lighting.xml and [...]/std_lighting_portal.xml to /usr/share/games/planeshift/art/shader/.
I don't know about glxdrivers.xml but you may want to start the client with the "--verbose" option and post the output here.

bugmenot

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
Re: gldrivers.xml could not be loaded and window not redrawn
« Reply #2 on: August 19, 2009, 04:13:31 pm »
Thanks for the answer.

First here is the verbose log:
http://pastebin.com/f5daa37d3

The two shader xml files exist in the directory already and are the same as the xml files in crystalspace:
Quote
korn@ubuntu:/usr/share/crystalspace-1.4/data/shader$ diff -u std_lighting_portal.xml /usr/share/games/planeshift/art/shaders/std_lighting_portal.xml
korn@ubuntu:/usr/share/crystalspace-1.4/data/shader$ diff -u std_lighting.xml /usr/share/games/planeshift/art/shaders/std_lighting.xml
korn@ubuntu:/usr/share/crystalspace-1.4/data/shader$

Nakem

  • Traveller
  • *
  • Posts: 42
    • View Profile
Re: gldrivers.xml could not be loaded and window not redrawn
« Reply #3 on: August 19, 2009, 04:49:13 pm »
Problem solved. :)
Bugmenot was using the wrong cs revision.

bugmenot

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
Re: gldrivers.xml could not be loaded and window not redrawn
« Reply #4 on: August 19, 2009, 10:08:29 pm »
The problem is still not solved.

The problem also exists in a static build with the correct CS revision.

This is the debian/rules file I use.
Code: [Select]
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
 
 
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
else
CROSS= --build $(DEB_BUILD_GNU_TYPE)
endif
 
crystalspace:
        # compile crystalspace static
        svn co -r 32140 https://crystal.svn.sourceforge.net/svnroot/crystal/CS/branches/release/V1.4 crystalspace_svn32140
 
        cd crystalspace_svn32140 && ./configure --without-java --without-perl --without-python --without-3ds
        cd crystalspace_svn32140 && jam -aq libs staticplugins cs-config walktest_static
 
        touch $@
 
config.status: configure
        dh_testdir
        # Add here commands to configure the package.
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
        cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
        cp -f /usr/share/misc/config.guess config.guess
endif
        CRYSTAL=$(CURDIR)/crystalspace_svn32140 ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
 
build: crystalspace build-stamp
 
build-stamp:  config.status
        dh_testdir
 
        # Add here commands to compile the package.
        CRYSTAL=$(CURDIR)/crystalspace_svn32140 jam psclient_static
        #docbook-to-man debian/planeshift.sgml > planeshift.1
 
        touch $@
 
clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp crystalspace
 
        # Add here commands to clean up after the build process.
        rm -f config.sub config.guess
 
        dh_clean
 
install: build
        dh_testdir
        dh_testroot
        dh_installdirs
 
 
# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.
 
# Build architecture-dependent files here.
binary-arch: install
        dh_testdir
        dh_testroot
        dh_installchangelogs
        dh_installdocs
        dh_installexamples
        dh_install
#       dh_installmenu
#       dh_installdebconf
#       dh_installlogrotate
#       dh_installemacsen
#       dh_installpam
#       dh_installmime
#       dh_python
#       dh_installinit
#       dh_installcron
#       dh_installinfo
        dh_installman
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
#       dh_perl
#       dh_makeshlibs
        dh_installdeb
        dh_shlibdeps -l$(CURDIR)/debian/planeshift/usr/share/games/planeshift/libs
        dh_gencontrol
        dh_md5sums
        dh_builddeb
 
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install

As you see I checkout the required revision.

//edit
I finally was able to solve the problem.

It was because the vfs.cfg is configured to mount the crystalspace directory.
But is should instead take the game directories, shouldn'it?

This patch fixes the problem:
Code: [Select]
Index: planeshift-0.4.03/vfs.cfg
===================================================================
--- planeshift-0.4.03.orig/vfs.cfg 2009-08-20 00:09:12.380438197 +0200
+++ planeshift-0.4.03/vfs.cfg 2009-08-20 00:09:59.580405025 +0200
@@ -13,9 +13,9 @@
 VFS.Mount.tmp = $(TMP)$/
 
 ; Configuration repository
-VFS.Mount.config = $@data$/config-plugins$/
+VFS.Mount.config = $^data$/config$/
 
-VFS.Mount.shader = $@data$/shader$/
+VFS.Mount.shader = $^art$/shaders$/
 
 ; The TTF font library
 VFS.Mount.fonts/ttf     = $^data$/ttf$/, $(TTF_PATH:$.$/)
« Last Edit: August 20, 2009, 11:50:34 am by bugmenot »