I think you might have to use version 0.4.0 of CEGUI. At least some part didnt work before (such as scheme) if you didnt use 0.4.0. I recommand you to install 0.4.0 of CEGUI and if the problem still exist I will try to take a look at it.

/ Dan

David Hendrickson wrote:

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 <mailto:[EMAIL PROTECTED]>
    *To:* [email protected]
    <mailto:[email protected]>
    *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]
    <mailto:[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] <mailto:[EMAIL PROTECTED]>
    (716) 785 - 5553(Cellphone)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "To err is human. To forgive, divine.
    To fix mistakes, now that's an Engineer."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to