Crystal Space
Welcome, Guest. Please login or register.
October 24, 2014, 03:42:44 pm

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8815 Members
Latest Member: Nickymo
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Need help getting CEL to work - get CEL physical layer missing with examples
« previous next »
Pages: [1] Print
Author Topic: Need help getting CEL to work - get CEL physical layer missing with examples  (Read 2859 times)
Darthvader
Newbie
*
Posts: 5


View Profile Email
« on: August 06, 2009, 07:18:20 am »

Hello.

I have installed CS and am pretty sure it is installed correctly because I can run the Crystal Space examples.  I am on a linux computer and have built cel sucessfully with the following:

./configure --prefix=$HOME/sandbox (I am using sandbox for now because i don't yet want to install it permanently - once it works, I'll put it in a permanent place)
jam
jam install

export CEL=$HOME/sandbox/lib/cel-1.2/

my CrystalSpace variables are:

CRYSTAL=/usr/lib/crystalspace-1.2/
CRYSTAL_CONFIG=/etc/crystalspace-1.2.1
CRYSTAL_PLUGIN=/usr/lib/crystalspace-1.2.1

Now, when I go to $HOME/sandbox/bin, run celstart, and select castle.celzip from the menu (I downloaded it and put it there), I get the following messages:
Code:
cel.initializer:
  Couldn't find vfs.cfg!

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

crystalspace.font.freefont2:
  Could not open fontfile *large!
Start '/home/collin/sandbox/bin/./castle.celzip'!
PYTHONPATH: /home/collin/sandbox/bin/./castle.celzip
DEBUG: Sound System Software Renderer Initializing...

crystalspace.pluginmgr.loadplugin:
  could not load plugin 'cel.physicallayer'
  could not load plugin 'cel.persistence.classic'
  could not load plugin 'cel.celconsole'

cel.initializer:
  Couldn't find vfs.cfg!

crystalspace.pluginmgr.loadplugin:
  failed to initialize plugin 'crystalspace.device.joystick.linux'
crystalspace.application.celstart:  CEL physical layer missing!






If I do celstart castle.celzip, I get the following messages:

Code:
./celstart castle.celzip

Start realpath='castle.celzip' path='/tmp/celstart' configname='/tmp/celstart/celstart.cfg'
PYTHONPATH: castle.celzip
DEBUG: Sound System Software Renderer Initializing...

cel.initializer:
  Couldn't find vfs.cfg!

crystalspace.pluginmgr.loadplugin:
  failed to initialize plugin 'crystalspace.device.joystick.linux'

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

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/spark.png' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'spark', using checkerboard instead
  [node: world,textures,texture(name=spark)]

crystalspace.cel.physicallayer:
  Property class factory name 'cel.pcfactory.pccommandinput' is deprecated!
  Use 'cel.pcfactory.input.standard' instead.
  Property class factory name 'cel.pcfactory.defaultcamera' is deprecated! Use
  'cel.pcfactory.camera.old' instead.
  Property class factory name 'cel.pcfactory.actormove' is deprecated! Use
  'cel.pcfactory.move.actor.standard' instead.
  Property class factory name 'cel.pcfactory.mesh' is deprecated! Use
  'cel.pcfactory.object.mesh' instead.
  Property class factory name 'cel.pcfactory.linmove' is deprecated! Use
  'cel.pcfactory.move.linear' instead.
  Property class factory name 'cel.pcfactory.colldet' is deprecated! Use
  'cel.pcfactory.object.mesh.collisiondetection' instead.
  Property class factory name 'cel.pcfactory.zonemanager' is deprecated! Use
  'cel.pcfactory.world.zonemanager' instead.
  Property class factory name 'cel.pcfactory.properties' is deprecated! Use
  'cel.pcfactory.tools.properties' instead.

crystalspace.maploader:
  Unable to open shader file '/shader/parallaxAtt/parallaxAtt.xml'!
  Unable to open shader file '/shader/ambient.xml'!
  Unable to open shader file '/shader/std_lighting.xml'!

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/castle-detail1_d.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'castle-detail1_d.jpg', using checkerboard instead
  [node: world,textures,texture(name=castle-detail1_d.jpg)]

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/castle-detail1_h.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'BUMPcastle-detail1_h.jpg', using checkerboard instead
  [node: world,textures,texture(name=BUMPcastle-detail1_h.jpg)]

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/castle-detail1_n.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'BUMPcastle-detail1_n.jpg', using checkerboard instead
  [node: world,textures,texture(name=BUMPcastle-detail1_n.jpg)]

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/wall-stone_2_d.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'wall-stone_2_d.jpg', using checkerboard instead
  [node: world,textures,texture(name=wall-stone_2_d.jpg)]

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/wall-stone2_2_d.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'wall-stone2_2_d.jpg', using checkerboard instead
  [node: world,textures,texture(name=wall-stone2_2_d.jpg)]

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/cobblestone_h.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'BUMPcobblestone_h.jpg', using checkerboard instead
  [node: world,textures,texture(name=BUMPcobblestone_h.jpg)]

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/cobblestone_n.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'BUMPcobblestone_n.jpg', using checkerboard instead
  [node: world,textures,texture(name=BUMPcobblestone_n.jpg)]

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/wall-stone2_h.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'BUMPwall-stone2_h.jpg', using checkerboard instead
  [node: world,textures,texture(name=BUMPwall-stone2_h.jpg)]

crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/wall-stone2_n.jpg' on VFS!


......  A whole bunch of similar messages .....
crystalspace.maploader.parse.image:
  Could not open image file '/lib/std/castle/marble_blue.jpg' on VFS!

crystalspace.maploader.parse.texture:
  Could not load texture 'marble_blue.jpg', using checkerboard instead
  [node: world,textures,texture(name=marble_blue.jpg)]
crystalspace.maploader.parse.loadingfile:  Error opening file '/shader/std_rloop_diffuse.xml'!
crystalspace.maploader.parse.loadingfile:  [node: world,addon,paramsfile]
cel.pcworld.zonemanager:  PointMesh failed!
Segmentation fault

Could someone please give an actual step by step of how to make this work - where files need to be, etc?  It appears, for example that it is trying to reference vfs.cfg which is in $HOME/sandbox/etc/cel-1.2.

Also, how do you tell it to look for things like gldrivers.xml, which on my computer are located in /etc/crystalspce-1.2/

It really appears I am just having environment problems, but the documentation for all this is a little lacking.  How do I tell it where to find everything?

Thanks!

-C
Logged
Darthvader
Newbie
*
Posts: 5


View Profile Email
« Reply #1 on: August 06, 2009, 07:26:22 am »

Since I had the previous CEL install in a temporary place, and I am running gentoo, I tried the ebuild for both CS and CEL.  CS works fine.  Now when I run celstart and select castle, I only get the following errors:

celstart (then select castle from list)
Code:
cel.initializer:
  Couldn't find vfs.cfg!
Start './castle.celzip'!
PYTHONPATH: ./castle.celzip
DEBUG: Sound System Software Renderer Initializing...

crystalspace.pluginmgr.loadplugin:
  could not load plugin 'cel.physicallayer'
  could not load plugin 'cel.persistence.classic'
  could not load plugin 'cel.celconsole'

cel.initializer:
  Couldn't find vfs.cfg!
crystalspace.application.celstart:  CEL physical layer missing!

and if I run dorectly form the command line (celstart castle.celzip)

Code:
collin@Krypton ~/Downloads $ celstart castle.celzip
Start realpath='castle.celzip' path='/tmp/celstart' configname='/tmp/celstart/celstart.cfg'
PYTHONPATH: castle.celzip
DEBUG: Sound System Software Renderer Initializing...

cel.initializer:
  Couldn't find vfs.cfg!

crystalspace.cel.physicallayer:
  Property class factory name 'cel.pcfactory.pccommandinput' is deprecated!
  Use 'cel.pcfactory.input.standard' instead.
  Property class factory name 'cel.pcfactory.defaultcamera' is deprecated! Use
  'cel.pcfactory.camera.old' instead.
  Property class factory name 'cel.pcfactory.actormove' is deprecated! Use
  'cel.pcfactory.move.actor.standard' instead.
  Property class factory name 'cel.pcfactory.mesh' is deprecated! Use
  'cel.pcfactory.object.mesh' instead.
  Property class factory name 'cel.pcfactory.linmove' is deprecated! Use
  'cel.pcfactory.move.linear' instead.
  Property class factory name 'cel.pcfactory.colldet' is deprecated! Use
  'cel.pcfactory.object.mesh.collisiondetection' instead.
  Property class factory name 'cel.pcfactory.zonemanager' is deprecated! Use
  'cel.pcfactory.world.zonemanager' instead.
  Property class factory name 'cel.pcfactory.properties' is deprecated! Use
  'cel.pcfactory.tools.properties' instead.

crystalspace.maploader.parse.mesh:
  <polymesh> is deprecated. Use <trimesh> instead.
  [node: world,sector(name=dining-hall),meshobj(name=Plane.002),polymesh]

crystalspace.maploader.parse.trimesh:
  <colldet> is deprecated. Use <id>colldet</id> instead.
  [node:
  world,sector(name=dining-hall),meshobj(name=Plane.002),polymesh,colldet]
  <shadows> is deprecated. Use <id>shadows</id> instead.
  [node:
  world,sector(name=dining-hall),meshobj(name=Plane.002),polymesh,shadows]

crystalspace.maploader.parse.mesh:
  <polymesh> is deprecated. Use <trimesh> instead.
  [node: world,sector(name=interior),meshobj(name=Cube.018),polymesh]

crystalspace.maploader.parse.trimesh:
  <colldet> is deprecated. Use <id>colldet</id> instead.
  [node: world,sector(name=interior),meshobj(name=Cube.018),polymesh,colldet]

crystalspace.engine.warning:
  Couldn't load cached lighting for 1 object(s). Use -relight to calculate
  lighting:
      Cube.012
WARNING! Object 'Mesh.002' is not closed!
WARNING! Object 'Cylinder.231' is not closed!
WARNING! Object 'Cylinder.025' is not closed!
WARNING! Object 'Cube.581' is not closed!
WARNING! Object 'Cube.579' is not closed!
WARNING! Object 'Cube.577' is not closed!
...

But this at least brings up the demo.  What is the difference between these two methods?  How can I tell it to find vsf.cfg (which is now in /etc/crystalspce-1.2)?  What am I missing?

Currently, environment variables are:
CRYSTAL_CONFIG=/etc/crystalspace-1.2.1
CRYSTAL_PLUGIN=/usr/lib/crystalspace-1.2.1
CEL=/usr/lib/cel-1.2
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #2 on: August 06, 2009, 11:56:29 am »

Hello,

  my advice:
uninstall all (hand-installed CS & CEL, gentoo ebuilds, ...).
Then, build CS & CEL from source (try using at least 1.4 release candidate or SVN branch)
but don't install them, just use them from their source/build directory.
Set CRYSTAL & CEL environment variables, then export LD_LIBRARY_PATH=$CRYSTAL:$CEL:$LD_LIBRARY_PATH
and you're set.
Logged
Darthvader
Newbie
*
Posts: 5


View Profile Email
« Reply #3 on: August 07, 2009, 07:26:32 pm »

Thanks - that seems to work.  In just trying again, I noticed if I do install the ebuilds and run celstart "someprogram" it has no rpblems - just when I run it and it brings up a menu.  Anyway - everything seems to be working - I am having another problem, but I'll put that in a new post.
Logged
Xoalin
Newbie
*
Posts: 5


View Profile
« Reply #4 on: August 26, 2009, 10:32:13 pm »

You could also create a link in the base of the CEL installation dir, to  etc/cel-1.4/vfs.cfg (using 1.4 in my case)

vfs.cfg gets installed into etc/cel-1.4/vfs.cfg, yet CEL's search for it won't go near it otherwise. (well when I installed using --prefix anyways).
Logged
Spacemax
Newbie
*
Posts: 1


View Profile WWW Email
« Reply #5 on: December 08, 2009, 12:29:55 pm »

i have same problem, is there any way to fix it , to works properly.
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 9.236 seconds with 17 queries.