Problem with getting irrKlangSceneNode in the actual game

Discussion about everything. New games, 3d math, development tips...
Post Reply
Systemerror
Posts: 98
Joined: Fri Oct 03, 2008 1:25 pm
Location: UK
Contact:

Problem with getting irrKlangSceneNode in the actual game

Post by Systemerror »

Sorry but I wasn't sure where to put this as it's to do with irrKlang, irrEdit and irrlicht.

Basically, I've setup irrKlang, irrEdit, irrlicht propperly and am progressing pretty far now with my game...

My problem is when using the irrKlangSceneNode within irrEdit (Putting the sound icon somewhere, defining which sound to play, it's properties etc) and it works fine with irrEdit only, when I load the *.irr file within my game, everything works/loads fine, collision, particles etc - but the irrKlangSceneNode doesn't work and debugging doesn't really help, all I get at runtime is "Could not Create Node for unknown type: irrKlangSceneNode " and that's it, my first thought was to check the irrKlangSceneNodePlugin was linked propperly which I'm sure it is otherwize it wouldn't have worked in irrEdit because that's set to my projects path, then I checked the irrklang classes/functions but couldn't find anything, I think i'll have to define the node within my source but seems stupid as it's defined in the *.irr file and all properties and declared their also, so i'm stuck - i'll try and figure this out and post my soloution if I do so, but help on this would be appreciated.

I would imagine this has already been brought up, but couldn't find anything.

Image
Image
-System error
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

You need to add:

1. IrrKlang support to your irrlicht app.
2. The IrrKlangSceneNode code to your app.
3. Create an ISceneNodeFactory class to create the IrrKlangSceneNode and register it with the SceneManager.

Someone on the forum has already done this, I'm sure the post will come up with a search.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
Post Reply