And one more thing... the directory is showing up right through VFS when I browse it with VSH.
----- Original Message -----
Sent: Tuesday, December 13, 2005 2:38 PM
Subject: Re: [CsMain] CEGUI in a CEL app

OK, I'm building with MSVC.Net 2003 using CVS from 11/23/05. Here are the relevent snippets of the code I am using:

#include "CEGUI.h"

#include "CEGUIWindowManager.h"

#include "CEGUILogger.h"

 

if (!celInitializer::RequestPlugins (object_reg,

CS_REQUEST_VFS,

CS_REQUEST_OPENGL3D,

CS_REQUEST_ENGINE,

CS_REQUEST_FONTSERVER,

CS_REQUEST_IMAGELOADER,

CS_REQUEST_LEVELLOADER,

CS_REQUEST_REPORTER,

CS_REQUEST_REPORTERLISTENER,

CS_REQUEST_PLUGIN ("cel.physicallayer", iCelPlLayer),

CS_REQUEST_PLUGIN ("crystalspace.collisiondetection.opcode",

iCollideSystem),

CS_REQUEST_PLUGIN ("crystalspace.cegui.wrapper", iCEGUI),

CS_REQUEST_END))

return ReportError ("Can't initialize plugins!");

 

cegui = CS_QUERY_REGISTRY (object_reg, iCEGUI);

 

cegui->Initialize();

// Set the logging level

cegui->GetLoggerPtr ()->setLoggingLevel(CEGUI::Informative);

vfs->ChDir ("/ceguitest/");

// Load the ice skin (which uses Falagard skinning system)

cegui->GetSchemeManagerPtr ()->loadScheme("ice.scheme");

//cegui->GetSystemPtr ()->setDefaultMouseCursor("ice", "MouseArrow");

//cegui->GetFontManagerPtr ()->createFont("Vera", "/fonts/ttf/Vera.ttf", 10, CEGUI::Default);

CEGUI::WindowManager* winMgr = cegui->GetWindowManagerPtr ();

// Load layout and set as root

//cegui->GetSystemPtr ()->setGUISheet(winMgr->loadWindowLayout("ice.layout"));

 

And in the header:

 

#include "CEGUI.h"

#include "ivaria/icegui.h"

 

csRef<iCEGUI> cegui;

 

This code crashes unless I comment out the scheme loading. And I am using CEGUI 0.4.1. Anything else you would need?

----- Original Message -----
From: Chris Case
Sent: Tuesday, December 13, 2005 4:15 AM
Subject: Re: [CsMain] CEGUI in a CEL app

Can you please send a backtrace of the crash? Some sort of output? Basically all the information you can give would be great... it will help everyone on the list when trying to figure out what's dying in your case.

--Chris

On 12/13/05, David Hendrickson <[EMAIL PROTECTED]> wrote:
Are there any special considerations when loading resources for CEGUI from within a CEL app? Because I am using identical code to that in the ceguitest demo, I have even changed my VFS to place the files in the same location, but everytime I try and load a resource using CEGUI it crashes. I cen leave in setting the logging level and getting the window manager and it runs fine. But if I try to load a scheme, mouse pointer, font, or set the GUI sheet it crashes. Any ideas?



--
Christopher S. Case
SUNY Fredonia
Computer Science / Computer Engineering
[EMAIL PROTECTED]
(716) 785 - 5553(Cellphone)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human. To forgive, divine.
To fix mistakes, now that's an Engineer."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to