levelhead is here!

Levelhead official site
levelhead gameplay (spoiler!) You can watch first 45 seconds, if You don’t want spoiler.

instalation:

  • add my repo (home:etamPL)
  • Run package manager and install levelhead_gst (if You have localized version of openSuSE (other than English) try using levelhead_v4l) (it should pull installation of libOpenSceneGraph1, libOpenThreads1, libProducer1, osgART_{gst,v4l}, osgcal, artoolkitplus and ARToolKit_{gst,v4l})

Files needed to build cubes are in /usr/lib(64)/levelhead/Data/images/

You got me very curious. Will install right now and try it.

Cheers.

Findings on 64bit: levelhead_gst conflicts with levelhead_gst-1-4.3.x86_64

So I installed the rest of the files, did this one by ‘rpm --nodeps’, since this was the only conflict.

When I run it I get:

CullSettings::readEnvironmentalVariables()
Opened DynamicLibrary osgart_artoolkit.so
VideoManager::createVideoFromPlugin(plugin): Plugin ‘osgart_artoolkit’ successfully instantiated a video handler
Added a osgART::GenericVideo with ID:0 to the VideoManager
Opened DynamicLibrary osgart_artoolkitplus_tracker.so
osgART::TrackerManager::addTracker(tracker): Added tracker with ID 0
Field ‘threshold’ = 150
video open…
Using config string from environment [v4l2src device=/dev/video use-fixed-fps=false ! ffmpegcolorspace ! capsfilter caps=video/x-raw-rgb,bpp=24,width=640,height=480 ! identity name=artoolkit ! fakesink].
./levelhead.bin: symbol lookup error: /usr/lib64//osgart_artoolkit.so: undefined symbol: gst_init

Which stops it.

This happens after installing the other version:

CullSettings::readEnvironmentalVariables()
Opened DynamicLibrary osgart_artoolkit.so
VideoManager::createVideoFromPlugin(plugin): Plugin ‘osgart_artoolkit’ successfully instantiated a video handler
Added a osgART::GenericVideo with ID:0 to the VideoManager
Opened DynamicLibrary osgart_artoolkitplus_tracker.so
osgART::TrackerManager::addTracker(tracker): Added tracker with ID 0
Field ‘threshold’ = 150
video open…
Using config string from environment -dev=/dev/video].
video device (/dev/video) open failed
CHECK 1,2,3… IS THIS THING ON?

ARToolKitPlus: CamSize 960 , 720

ARToolKitPlus: Dist.Factor 425.00 305.00 -4.70 0.99

INFO: 0 markers loaded from config file
file=Data/character/man/man4man.cfg
fileName=Data/character/man/man4man.cfg
ReaderWriterCFG::readObject( Data/character/man/man4man.cfg )
Loading cal3d character from Data/character/man/man4man.cfg
subloading skeleton: Data/character/man/man4man.xsf
subloading animation: Data/character/man/man4idle.xaf
subloading animation: Data/character/man/man4walk.xaf
subloading animation: Data/character/man/man4stairs.xaf
subloading mesh: Data/character/man/man4male.xmf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
subloading material: Data/character/man/man4plain.xrf
scaling model by 1 factor
Time to load = 0.244686
Font 0x7f5520, numberOfTexturesAllocated 1
DynamicLibrary::getLibraryHandle( osgdb_freetype.so) - dlopen(): ./osgdb_freetype.so: cannot open shared object file: No such file or directory
DynamicLibrary::failed loading “osgdb_freetype.so”
No valid object found for fonts/Bandal.ttf
Warning: Could not find plugin to read objects from file “fonts/Bandal.ttf”.
DynamicLibrary::getLibraryHandle( osgdb_freetype.so) - dlopen(): ./osgdb_freetype.so: cannot open shared object file: No such file or directory
DynamicLibrary::failed loading “osgdb_freetype.so”
No valid object found for fonts/Bandal.ttf
Warning: Could not find plugin to read objects from file “fonts/Bandal.ttf”.
DynamicLibrary::getLibraryHandle( osgdb_osg.so) - dlopen(): ./osgdb_osg.so: cannot open shared object file: No such file or directory
DynamicLibrary::failed loading “osgdb_osg.so”
Warning: Could not find plugin to read objects from file “models/l1room1.osg”.
/usr/bin/levelhead: regel 16: 9482 Segmentatiefout ./levelhead.bin $mirror $fullscreen $width $height $timer

I’ll check the gst version.

Check if You have /dev/video device and proper permissions.
Or if you have /dev/video0 or something like that, change config in Your ~/.levelhead file.

  1. fixed levelhead_gst dependency
  2. If You change from v4l to gst or vice versa, remove ~/.levelhead file
  3. levelhead_gst is also not working for me. I’ll deal with that, but not now. Please use v4l version.
  1. levelhead requires OpenSceneGraph1-plugins
  2. fixed levelhead_gst version

Stay tuned for updated packages.

Cheers, downloading right now. I’ll keep you posted

I’now getting a white screen, asking me to put the red cub in the square to begin playing. Not getting any further.
Got any advice?

This is what I get from typing in the dark, wearing glasses that should have been replaced a while ago…Getting older is unacceptable. :wink:

Screenshot? Log? Anything?

For me it’s working fine, so I can’t tell what’s wrong.

Hi etamPL, I really thank you for making that repo:). Although I do have some doubts. The levelhead site suggests we should compile ARtoolkit, ART plus, osg etc. should we do that?
(Im not able to initialize the webcam, coz i have not yet installed the drivers). I have installed all packages of v4l but not gstreamer. The snapshots are from my desktop. Is that what i should get for a successful install? (apart from webcam not working)

http://img145.imageshack.us/img145/5987/screenshot2vv.png

http://img145.imageshack.us/img145/3051/screenshot4bj.png

Compiling ARtoolkit, ART plus, osg etc. is already done. They are in my repo and are required by levelhead.

If you have this window with “place red cube …” it means that levelhead had installed successfully.

Ok, but what are you supposed to do to get past this screen. I’ve added your repository for 11.2, installed the game and I get the white screen asking me to “put the red cube inside square to begin playing”, but there is no red cube, nor is there a square to put it in. All I see are three pink “+” marks, and the screen doesn’t respond to any keyboard or mouse input.

I apologize for the double post, but I ran the command from command line and logged the error output. Here’s the log, hope it helps. :slight_smile:

Hope you don’t mind downloading from MediaFire, but the file was pretty big.
errors.txt

  1. Which version of levelhead have you installed (v4l or gst)?
  2. Do you have working camera?
  3. If you answered yes to 2 do you have /dev/video device?
  4. If you don’t have /dev/video, but /dev/video0 edit the .levelhead file (in your home directory)
  5. And finally: Do you have cubes like those? http://selectparks.net/~julian/levelhead/images/final-cubes-hll_sml.jpg (if not go to /usr/lib64/levelhead/Data/images)
  1. I have the v4l version installed.
  2. I have a working camera (verified by testing it with skype)
  3. I have a /dev/video0 device
  4. I changed the setting in the .levelhead configuration file to use /dev/video0. After I did this, I ran the game from command line. Instead of saying “error: cannot find device /dev/video”, it now says it found the device, but it cannot open the channel(0).
  5. I reprinted the cubes. I was running out of color ink so my originals were pretty faded. Since the game doesn’t seem to be able to use my camera, though, I doubt the cubes have any bearing on my current problem.

Thanks for the quick response. I would appreciate any more help you can provide.

Edit: The specific error message regarding the video device is:

video open....
Using config string from environment -dev=/dev/video0].
error: acquireing channel(0) info
CHECK 1,2,3... IS THIS THING ON?

Edit .levelhead file:
ARTOOLKIT_CONFIG="-dev=/dev/video0 -debug"

then from command line run
levelhead | tee levelhead_log.txt

Paste contents of levelhead_log.txt file to pastebin - collaborative debugging tool (or something else if you like)

Here’s the debug output:
pastebin - collaborative debugging tool

Let me know if you need anything else. I’ve been watching the video of the game, and I can’t wait to start playing. :slight_smile:

Sorry. I can’t help you. The only thing I can say it’s ARToolKit fault, but I don’t know why. :frowning: