Problem loading caelum script

Darkeye

29-06-2009 08:28:12

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

I am trying to load a .os Script, but when I call Caelum::CaelumPlugin::getSingleton ().loadCaelumSystemFromScript (mCaelumSystem, "TestSkyScript.os"); this exception is thrown 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 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:
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

30-06-2009 06:04:59

Solved by myself.
Wow what a difference between the Ogre support and the add-ons support. :x

DonRu

16-05-2010 22:08:10

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:

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

Fish

16-05-2010 22:48:46

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

- Fish

DonRu

16-05-2010 23:05:28

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

teodron

04-09-2012 09:16:42

Still no hints/answers/ideas to this issue of loading caelum from an os script. What could be a potential issue for "Could not find caelum_sky_system ScriptName in CaelumPlugin::loadCaelumSystemFromScript at src\CaelumPlugin.cpp (line 138)"?

It does seem that the script is invisible to the caelum loader, although everything else seems to be in place. Since there are really no other hints apart from the source code, could someone please post a clue or two..?