Google

Problem loading caelum script

Discussion relating to the Caelum sky rendering plugin

Moderators: OGRE Team, Caelum Moderators

Problem loading caelum script

Postby Darkeye » Mon Jun 29, 2009 8:28 am

Hi all!
wow, congatulations, caelum is a must-have plugin!

I am trying to load a .os Script, but when I call
Code: Select all
Caelum::CaelumPlugin::getSingleton ().loadCaelumSystemFromScript (mCaelumSystem, "TestSkyScript.os");
this exception is thrown
Code: Select all
09:41:53: OGRE EXCEPTION(5:ItemIdentityException): Could not find caelum_sky_system TestSkyScript.os in CaelumPlugin::loadCaelumSystemFromScript at c:\lacadela\caelum-0.4.0\main\src\caelumplugin.cpp (line 138)


Reading this forum I've added the following line at plugins.cfg
Code: Select all
Plugin=caelum_d.dll
but it still doesnt works.

Thanks. :wink:

EDIT: haaha now I realised how works the function, you must put a config defined in the .os file, but now I have another question, Why If I put:
Code: Select all
Caelum::CaelumPlugin::getSingleton ().loadCaelumSystemFromScript (mCaelumSystem, "MidnightSun");


There's no sun, but the shadow of a robot I have in the middle is rotating constantly?
Darkeye
 
Posts: 20
Joined: Sun Jun 28, 2009 10:07 pm

Re: Problem loading caelum script

Postby Darkeye » Tue Jun 30, 2009 6:04 am

Solved by myself.
Wow what a difference between the Ogre support and the add-ons support. :x
Darkeye
 
Posts: 20
Joined: Sun Jun 28, 2009 10:07 pm

Re: Problem loading caelum script

Postby DonRu » Sun May 16, 2010 10:08 pm

Hi,

im now meeting the same issue but iam not able to solve it my own. My "TestSkyScript.os" is put in many folders listet in the resource_d.cfg and its copied in the gamedirectory and everywhere.( after hours i began to try...) The caelum_d.dll is listet in the plugins_d.cfg but still the error pops up:

Code: Select all
OGRE EXCEPTION(5:ItemIdentityException): Could not find caelum_sky_system TestSkyScript.os in CaelumPlugin::loadCaelumSystemFromScript at c:\lacadela\caelum-0.4.0\main\src\caelumplugin.cpp (line 138)


Does anybody know where to put this script or where to define the resource folder? I didn't find any tutorial which explains loading a script for caelum.

DonRu
DonRu
 
Posts: 2
Joined: Sun May 16, 2010 10:01 pm

Re: Problem loading caelum script

Postby Fish » Sun May 16, 2010 10:48 pm

Are there any clues in the example application that comes with Caelum?

- Fish
User avatar
Fish
 
Posts: 274
Joined: Wed Aug 27, 2008 9:10 pm

Re: Problem loading caelum script

Postby DonRu » Sun May 16, 2010 11:05 pm

I could not find any hint. Searching for the keyword ".os" only got me to included caelumfiles, but no example for including a script. There is just the resource.cfg.sample but this resources should be accessible for caelum even when defined in the resource_d.cfg of the project. I dont understand where Caelum is looking for the scripts.

I had errors where Caelum was not finding the EarthClearSky2.png but this was fixed after putting the right path in the resource_d.cfg. This script is not found even if it is in the same Folder as this image.

-DonRu
DonRu
 
Posts: 2
Joined: Sun May 16, 2010 10:01 pm


Return to Caelum

Who is online

Users browsing this forum: No registered users and 1 guest