Beginner Rendering

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

StrickenKid
Just popping in
Just popping in
Posts: 9
Joined: Wed Jun 23, 2010 05:59

Beginner Rendering

Postby StrickenKid » Wed Jun 23, 2010 06:29

Hi, I'm using CEGUI to interface a game-overlay (something like Xfire).

The overlay hooks the DirectX9 game's EndScene and inserts its own rendering logic.

Unfortunately CEGUI::System::create is giving problems...

I'm using the code from: http://www.cegui.org.uk/wiki/index.php/ ... _Rendering

First it was just crashing the game, no error message box, I did some reading on older posts, from what happened to them it looked like it was because some dll's we're missing from the exe's directory, to be sure, I just copied all of \bin\ from the SDK (not "_d.dll") over to the exe's dir.

Then, silly me... I found CEGUI.log in the exe's dir.

The log read:

Code: Select all

22/06/2010 23:13:49 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
22/06/2010 23:13:49 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
22/06/2010 23:13:49 (Std)    +                          (http://www.cegui.org.uk/)                         +
22/06/2010 23:13:49 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

22/06/2010 23:13:49 (Std)    CEGUI::Logger singleton created. (040A7840)
22/06/2010 23:13:49 (Error)   CEGUI::GenericException in file ..\..\..\cegui\src\CEGUIDynamicModule.cpp(120) : DynamicModule::DynamicModule - Failed to load module 'CEGUISILLYImageCodec': The specified module could not be found.


So I did some more searching, I found that it need SILLY.dll from \dependencies\bin, so I added it. Tried starting the game...

Now i get an "Assertion Failed" message box, and the log now reads:

Code: Select all

22/06/2010 23:15:31 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
22/06/2010 23:15:31 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
22/06/2010 23:15:31 (Std)    +                          (http://www.cegui.org.uk/)                         +
22/06/2010 23:15:31 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

22/06/2010 23:15:31 (Std)    CEGUI::Logger singleton created. (03FE7840)
22/06/2010 23:15:31 (Std)    
22/06/2010 23:15:31 (Std)    ********************************************************************************
22/06/2010 23:15:31 (Std)    * Important:                                                                   *
22/06/2010 23:15:31 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
22/06/2010 23:15:31 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
22/06/2010 23:15:31 (Std)    *     support being given; please do not waste our time.                       *
22/06/2010 23:15:31 (Std)    ********************************************************************************
22/06/2010 23:15:31 (Std)    ********************************************************************************
22/06/2010 23:15:31 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
22/06/2010 23:15:31 (Std)    ********************************************************************************
22/06/2010 23:15:31 (Std)    ---- Version 0.7.1 (Build: Jan 27 2010 Microsoft Windows MSVC++ 9.0 32 bit) ----
22/06/2010 23:15:31 (Std)    ---- Renderer module is: CEGUI::Direct3D9Renderer - Official Direct3D 9 based 2nd generation renderer module. ----
22/06/2010 23:15:31 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
22/06/2010 23:15:31 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
22/06/2010 23:15:31 (Std)    ---- Scripting module is: None ----
22/06/2010 23:15:31 (Std)    ********************************************************************************
22/06/2010 23:15:31 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
22/06/2010 23:15:31 (Std)    ********************************************************************************
22/06/2010 23:15:31 (Std)    
22/06/2010 23:15:31 (Std)    ---- Begining CEGUI System initialisation ----
22/06/2010 23:15:31 (Std)    CEGUI::ImagesetManager singleton created (03FF0430)
22/06/2010 23:15:31 (Std)    CEGUI::FontManager singleton created. (03FF0690)
22/06/2010 23:15:31 (Std)    CEGUI::WindowFactoryManager singleton created
22/06/2010 23:15:31 (Std)    CEGUI::WindowManager singleton created (03FF1D80)
22/06/2010 23:15:31 (Std)    CEGUI::SchemeManager singleton created. (03FF3378)
22/06/2010 23:15:31 (Std)    CEGUI::MouseCursor singleton created. (02F8AF40)
22/06/2010 23:15:31 (Std)    CEGUI::GlobalEventSet singleton created. (02F876E0)
22/06/2010 23:15:31 (Std)    CEGUI::WidgetLookManager singleton created. (03FE7EE8)
22/06/2010 23:15:31 (Std)    CEGUI::WindowRendererManager singleton created (02F894E8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'DefaultWindow' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'DefaultWindow' windows added. (03FF5B30)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'DragContainer' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'DragContainer' windows added. (03FF5BD8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'ScrolledContainer' windows added. (03FF5C80)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'ClippedContainer' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'ClippedContainer' windows added. (03FF5D28)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (03FF5DD0)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (03FF5E78)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (03FF5F20)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (03FF7FC8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (03FF8070)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (03FF8118)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (03FF81C0)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (03FF92A8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (03FF9350)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (03FF93F8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (03FFA4B8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (03FFA560)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (03FFA608)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (03FFA6B0)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (03FFA758)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (03FFA800)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (03FFA8A8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (03FFA950)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (03FFA9F8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (03FFAAA0)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (03FFAB48)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (03FFABF0)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (03FFAC98)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (03FFAD40)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (03FFADE8)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (03FFAE90)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (03FFAF38)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (03FFAFE0)
22/06/2010 23:15:31 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
22/06/2010 23:15:31 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (03FFB088)
22/06/2010 23:15:31 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
22/06/2010 23:15:31 (Std)    CEGUI::System singleton created. (03FEDCB0)
22/06/2010 23:15:31 (Std)    ---- CEGUI System initialisation completed ----
22/06/2010 23:15:31 (Std)    

(i included the whole thing just to be safe)

And here is the message box error:
Image

I'm wondering what else is wrong?

Any help would greatly be appreciated.

Thanks,
StrickenKid

EDIT: I fixed it, for some reason I had it calling init() twice.

Return to “Help”

Who is online

Users browsing this forum: No registered users and 8 guests