[SOLVED]How to use LuaScriptModule::executeString()?

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

OceanMachine
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Sat Mar 19, 2011 05:15

[SOLVED]How to use LuaScriptModule::executeString()?

Postby OceanMachine » Thu Mar 31, 2011 22:33

I have managed to get a monolithic event handler working (I know CE doesn't like this but I wish to have the GUI pass events to an external program and short of subscribing to every event for every element, I couldn't find a way to do what I wanted).

Anwyay, that's working fine - that isn't the problem. I am now trying to do things the other way round as well. I have the Command Interpreter set up as per this thread. All of the events are being handled by the ScriptingModule implementation that I showed. The issue I have is if I want to pass a string of LUA in from an external program as a string (which I managed to do fine), I am not sure how to execute it, as I have already assigned my "own" script module to System using:

Code: Select all

ScriptingModule *mymodule = new ScriptingModule; //<=== this is my custome script module
CEGUI::System::getSingleton().setScriptingModule( mymodule )
Now of course the problem is that I can't just pass LUA to this scripting module's executeString() method as it doesn't do anything with the LUA or anything else (it just returns - see the code in the other thread). I would like to pass that string to a LuaScriptModule instead and have it execute that code. Can I have more than one ScriptModule assigned to System at the same time? Or perhaps I don't even have to use System::getSingleton().setScriptingModule() to change to a different module before passing the LUA in... but I thought I may have to?

I can see a few examples of people who have set up ONE ScriptModule and are then loading .lua FILES in and executing things from within lua, but I want to keep my existing ScriptModule and have a SECOND module that is able to parse/interpret/execute a fragment (e.g. string or char*) of lua code that I send to it. It seems like the executeString() method takes a string argument that will "Execute script code contained in the given CEGUI::String object", however I am not sure how to get this to work with a second type of (Lua)ScriptModule.

If I try to create a LuaScriptModule in a similar way as before, I can't seem to get it to do anything without my app crashing when it hits the following code:

Code: Select all

      using namespace CEGUI;
      try
      {
         CEGUI::LuaScriptModule *myluamodule;
         OutputDebugString( "MyApp: Before executeString\n" );
         myluamodule->executeString( "CEGUI.WindowManager:getSingleton():getWindow(""MyApp/Quit""):setText(""hello"")" ); // <===== crashes here - this is the LUA I want to execute
         OutputDebugString( "MyApp: After executeString\n" );
      }
      catch (CEGUI::Exception e)
      {
         sprintf( ErrorStr, "Direct3D-Hook: onLeftClick() -> exception: %s", e.what() );
         OutputDebugString( ErrorStr );
      }


And I don't get the exception printed out, if there is one thrown. I see in DbgView - "MyApp: Before executeString" and then the crash hapens. There doesn't seem to be anything to indicate why this might be in the CEGUI.log either.

Anyone got any ideas what stupid mistake I have made? :)

TIA

Here is my CEGUI.log:

Code: Select all

31/03/2011 23:10:07 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
31/03/2011 23:10:07 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
31/03/2011 23:10:07 (Std)    +                          (http://www.cegui.org.uk/)                         +
31/03/2011 23:10:07 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

31/03/2011 23:10:07 (Std)    CEGUI::Logger singleton created. (04D68E28)
31/03/2011 23:10:07 (Std)    
31/03/2011 23:10:07 (Std)    ********************************************************************************
31/03/2011 23:10:07 (Std)    * Important:                                                                   *
31/03/2011 23:10:07 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
31/03/2011 23:10:07 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
31/03/2011 23:10:07 (Std)    *     support being given; please do not waste our time.                       *
31/03/2011 23:10:07 (Std)    ********************************************************************************
31/03/2011 23:10:07 (Std)    ********************************************************************************
31/03/2011 23:10:07 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
31/03/2011 23:10:07 (Std)    ********************************************************************************
31/03/2011 23:10:07 (Std)    ---- Version 0.7.5 (Build: Mar 22 2011 Static Microsoft Windows MSVC++ 10.0 32 bit) ----
31/03/2011 23:10:07 (Std)    ---- Renderer module is: CEGUI::Direct3D9Renderer - Official Direct3D 9 based 2nd generation renderer module. ----
31/03/2011 23:10:07 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
31/03/2011 23:10:07 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
31/03/2011 23:10:07 (Std)    ---- Scripting module is: None ----
31/03/2011 23:10:07 (Std)    ********************************************************************************
31/03/2011 23:10:07 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
31/03/2011 23:10:07 (Std)    ********************************************************************************
31/03/2011 23:10:07 (Std)    
31/03/2011 23:10:07 (Std)    ---- Begining CEGUI System initialisation ----
31/03/2011 23:10:07 (Std)    CEGUI::ImagesetManager singleton created (04D6C1C8)
31/03/2011 23:10:07 (Std)    CEGUI::FontManager singleton created. (04D6C408)
31/03/2011 23:10:07 (Std)    CEGUI::WindowFactoryManager singleton created
31/03/2011 23:10:07 (Std)    CEGUI::WindowManager singleton created (0304AE00)
31/03/2011 23:10:07 (Std)    CEGUI::SchemeManager singleton created. (04D6C708)
31/03/2011 23:10:07 (Std)    CEGUI::MouseCursor singleton created. (04D654C0)
31/03/2011 23:10:07 (Std)    CEGUI::GlobalEventSet singleton created. (04DABDB0)
31/03/2011 23:10:07 (Std)    CEGUI::AnimationManager singleton created (03043728)
31/03/2011 23:10:07 (Std)    CEGUI::WidgetLookManager singleton created. (03047AB0)
31/03/2011 23:10:07 (Std)    CEGUI::WindowRendererManager singleton created (0304C7D0)
31/03/2011 23:10:07 (Std)    CEGUI::RenderEffectManager singleton created (04DABDD8)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'DefaultWindow' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'DefaultWindow' windows added. (04D67F70)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'DragContainer' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'DragContainer' windows added. (04D63070)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'ScrolledContainer' windows added. (0304A498)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'ClippedContainer' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'ClippedContainer' windows added. (04D6C7D8)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (04DB4B18)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (04DB4BC0)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (04DB5CE0)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (04DB5D88)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (04DB5E30)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (04DB6F08)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (04DB6FB0)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (04DB7058)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (04DB7118)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (04DB71C0)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (04DB7268)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (04DB7310)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (04DB73B8)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (04DB7460)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (04DB7508)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (04DB75B0)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (04DB7658)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (04DB7700)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (04DB77A8)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (04DB7850)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (04DB78F8)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (04DB79A0)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (04DB7A48)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (04DB7AF0)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (04DB7B98)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (04DB7C40)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (04DB7CE8)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (04DB7D90)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (04DB7E38)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (04DB7EE0)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (04DB7F88)
31/03/2011 23:10:07 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
31/03/2011 23:10:07 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (04DB8030)
31/03/2011 23:10:07 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
31/03/2011 23:10:07 (Std)    CEGUI::System singleton created. (04D6BD40)
31/03/2011 23:10:07 (Std)    ---- CEGUI System initialisation completed ----
31/03/2011 23:10:07 (Std)    
31/03/2011 23:10:07 (Std)    Started creation of Scheme from XML specification:
31/03/2011 23:10:07 (Std)    ---- CEGUI GUIScheme name: TaharezLook
31/03/2011 23:10:07 (Info)    Finished creation of GUIScheme 'TaharezLook' via XML file. (04DC19E0)
31/03/2011 23:10:07 (Info)    ---- Begining resource loading for GUI scheme 'TaharezLook' ----
31/03/2011 23:10:07 (Std)    Started creation of Imageset from XML specification:
31/03/2011 23:10:07 (Std)    ---- CEGUI Imageset name: TaharezLook
31/03/2011 23:10:07 (Std)    ---- Source texture file: TaharezLook.tga in resource group: (Default)
31/03/2011 23:10:07 (Info)    Finished creation of Imageset 'TaharezLook' via XML file. (04DE07E8)
31/03/2011 23:10:07 (Std)    Started creation of Font from XML specification:
31/03/2011 23:10:07 (Std)    ---- CEGUI font name: DejaVuSans-10
31/03/2011 23:10:07 (Std)    ----       Font type: FreeType
31/03/2011 23:10:07 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
31/03/2011 23:10:07 (Std)    ---- Real point size: 10
31/03/2011 23:10:07 (Info)    Successfully loaded 3045 glyphs
31/03/2011 23:10:07 (Info)    Finished creation of Font 'DejaVuSans-10' via XML file. (04DD22F0)
31/03/2011 23:10:07 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Button'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Button'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/RadioButton'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/RadioButton'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Checkbox'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Checkbox'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Editbox'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Editbox'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Titlebar'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Titlebar'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/FrameWindow'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/FrameWindow'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/GroupBox'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/GroupBox'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ProgressBar'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ProgressBar'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/AltProgressBar'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/AltProgressBar'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/VUMeter'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/VUMeter'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/SliderThumb'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/SliderThumb'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Slider'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Slider'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/HorizontalScrollbarThumb'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/HorizontalScrollbarThumb'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/HorizontalScrollbar'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/HorizontalScrollbar'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/VerticalScrollbarThumb'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/VerticalScrollbarThumb'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/VerticalScrollbar'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/VerticalScrollbar'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Listbox'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Listbox'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ComboDropList'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ComboDropList'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ComboEditbox'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ComboEditbox'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Combobox'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Combobox'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Spinner'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Spinner'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/StaticShared'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/StaticShared'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/StaticImage'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/StaticImage'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/StaticText'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/StaticText'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ListHeaderSegment'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ListHeaderSegment'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ListHeader'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ListHeader'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/MultiColumnList'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/MultiColumnList'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/MultiLineEditbox'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/MultiLineEditbox'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Tooltip'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Tooltip'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ScrollablePane'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ScrollablePane'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/TabButton'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/TabButton'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/TabContentPane'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/TabContentPane'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/TabButtonPane'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/TabButtonPane'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/TabControl'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/TabControl'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/MenuItem'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/MenuItem'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/PopupMenu'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/PopupMenu'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Menubar'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Menubar'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/LargeVerticalScrollbarThumb'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/LargeVerticalScrollbarThumb'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/LargeVerticalScrollbar'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/LargeVerticalScrollbar'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ImageButton'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ImageButton'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ItemListbox'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ItemListbox'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/ListboxItem'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/ListboxItem'.
31/03/2011 23:10:07 (Info)    ---> Start of definition for widget look 'TaharezLook/Tree'.
31/03/2011 23:10:07 (Info)    ---< End of definition for widget look 'TaharezLook/Tree'.
31/03/2011 23:10:07 (Std)    ===== Look and feel parsing completed =====
31/03/2011 23:10:07 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Button' added. (04DB8768)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Default' added. (04DB84C8)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (04DB8960)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (04DB8D50)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (04DB8DF8)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (04DB8EA0)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (04DB8F48)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (04DB8FF0)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (04DA84D0)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (04DA8578)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (04DA8620)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (04DA86C8)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (04DA8770)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (04DA8818)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (04DA88C0)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (04DA8968)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Slider' added. (04DA8A10)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Static' added. (04DA8AB8)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (04DA8B60)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (04DA8C08)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (04DA8CB0)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (04DA8D58)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (04DA8E00)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (04DA8EA8)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (04DA8F50)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (04DA8FF8)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (04DA90A0)
31/03/2011 23:10:07 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
31/03/2011 23:10:07 (Std)    WindowRendererFactory 'Falagard/Tree' added. (04DA9148)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/Checkbox' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/ImageButton' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/RadioButton' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' Look'N'Feel 'TaharezLook/FrameWindow' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' Look'N'Feel 'TaharezLook/Titlebar' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/Editbox' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' Look'N'Feel 'TaharezLook/MultiLineEditbox' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' Look'N'Feel 'TaharezLook/Menubar' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' Look'N'Feel 'TaharezLook/PopupMenu' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' Look'N'Feel 'TaharezLook/MenuItem' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/AltProgressBar' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/ProgressBar' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/VUMeter' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/VerticalScrollbar' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/HorizontalScrollbar' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/VerticalScrollbarThumb' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/LargeVerticalScrollbar' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' Look'N'Feel 'TaharezLook/TabButton' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' Look'N'Feel 'TaharezLook/TabControl' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabContentPane' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabButtonPane' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/ComboDropList' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/ComboEditbox' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Combobox' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/Listbox' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' Look'N'Feel 'TaharezLook/ListHeader' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' Look'N'Feel 'TaharezLook/ListHeaderSegment' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' Look'N'Feel 'TaharezLook/MultiColumnList' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' Look'N'Feel 'TaharezLook/Slider' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/SliderThumb' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' Look'N'Feel 'TaharezLook/ScrollablePane' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Spinner' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' Look'N'Feel 'TaharezLook/Tooltip' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' Look'N'Feel 'TaharezLook/StaticImage' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' Look'N'Feel 'TaharezLook/StaticText' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' Look'N'Feel 'TaharezLook/ItemListbox' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' Look'N'Feel 'TaharezLook/ListboxItem' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/GroupBox' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Std)    Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' Look'N'Feel 'TaharezLook/Tree' and RenderEffect ''. (0018C6EC)
31/03/2011 23:10:07 (Info)    ---- Resource loading for GUI scheme 'TaharezLook' completed ----
31/03/2011 23:10:07 (Std)    ---- Scripting module is now: Unknown scripting module (vendor did not set the ID string!) ----
31/03/2011 23:10:07 (Info)    ---- Beginning loading of GUI layout from 'MyApp.layout' ----
31/03/2011 23:10:07 (Info)    Window 'Root' of type 'DefaultWindow' has been created. (04E05BA8)
31/03/2011 23:10:07 (Info)    Window 'MyApp' of type 'TaharezLook/FrameWindow' has been created. (04E08128)
31/03/2011 23:10:07 (Info)    Assigning the window renderer 'Falagard/FrameWindow' to the window 'MyApp'
31/03/2011 23:10:07 (Info)    Assigning LookNFeel 'TaharezLook/FrameWindow' to window 'MyApp'.
31/03/2011 23:10:07 (Info)    Window 'MyApp__auto_titlebar__' of type 'TaharezLook/Titlebar' has been created. (04E0C6D0)
31/03/2011 23:10:07 (Info)    Assigning the window renderer 'Falagard/Titlebar' to the window 'MyApp__auto_titlebar__'
31/03/2011 23:10:07 (Info)    Assigning LookNFeel 'TaharezLook/Titlebar' to window 'MyApp__auto_titlebar__'.
31/03/2011 23:10:07 (Info)    Window 'MyApp__auto_closebutton__' of type 'TaharezLook/ImageButton' has been created. (04E12C70)
31/03/2011 23:10:07 (Info)    Assigning the window renderer 'Falagard/Button' to the window 'MyApp__auto_closebutton__'
31/03/2011 23:10:07 (Info)    Assigning LookNFeel 'TaharezLook/ImageButton' to window 'MyApp__auto_closebutton__'.
31/03/2011 23:10:07 (Info)    Window 'MyApp/Quit' of type 'TaharezLook/Button' has been created. (04E171F8)
31/03/2011 23:10:07 (Info)    Assigning the window renderer 'Falagard/Button' to the window 'MyApp/Quit'
31/03/2011 23:10:07 (Info)    Assigning LookNFeel 'TaharezLook/Button' to window 'MyApp/Quit'.
31/03/2011 23:10:07 (Std)    ---- Successfully completed loading of GUI layout from 'MyApp.layout' ----
31/03/2011 23:10:07 (Std)    Attempting to create Imageset 'DejaVuSans-10_auto_glyph_images_ ' with texture only.
Last edited by OceanMachine on Sat Apr 02, 2011 19:18, edited 1 time in total.

OceanMachine
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Sat Mar 19, 2011 05:15

Re: How to use LuaScriptModule::executeString()?

Postby OceanMachine » Thu Mar 31, 2011 23:06

OK, I found the mistake was that I was not using LuaScriptModule::create() to construct.

When I did that, I started getting an exception thrown that said
exception: CEGUI::ScriptException in file ..\..\..\..\cegui\src\ScriptingModules\LuaScriptModule\CEGUILua.cpp(682) : Unable to execute Lua script string: 'CEGUI.WindowManager:getSingleton():getWindow("MyApp/Quit"):setText("hello")'


So then I tried to use CEGUI::System::getSingleton().setScriptingModule( myluamodule ) to set the scripting module to my Lua one... and, although the other "ScriptingModule" is now not called (my implementation of the non-lua scriptmodule as per the other thread), it appears that the events still remain subscribed, and so events are still being passed to the "CommandInterpretor"!!

SO... This achieves what I wanted. I am not sure whether this is going to cause me construction/destruction issues by just swapping scripting modules at runtime without destroying the previous one, but it seems to work for me...

Is there any way of executing the string without first setting the Syste::ScriptModule to a different module first?

This is what I ended up doing:

Code: Select all

try
{
   LuaScriptModule *myluamodule = &LuaScriptModule::create();
   CEGUI::System::getSingleton().setScriptingModule( myluamodule ); // <== need to do this unfortunately

   OutputDebugString( "MyApp: Before executeString\n" );
   myluamodule->executeString( "CEGUI.WindowManager:getSingleton():getWindow(\"MyApp/Quit\"):setText(\"hello\")" );
   OutputDebugString( "MyApp: After executeString\n" );
}
catch (CEGUI::Exception e)
{
   sprintf( ErrorStr, "MyApp: -> exception: %s", e.what() );
   OutputDebugString( ErrorStr );
}
Last edited by OceanMachine on Mon Apr 04, 2011 18:11, edited 1 time in total.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: How to use LuaScriptModule::executeString()?

Postby Jamarr » Fri Apr 01, 2011 17:06

I presume the reason why the system can only have a single ScriptModule set is because when the LayoutManager parses an <Event> tag it has no way of determining the ScriptModule to use. The CEGUI API could resolve this by adding a language attribute to <Event> and having all ScriptModules stored in a hashtable internally keyed on their name. However, this is not currently the case. If you really need this, you could try asking CE or Kulik to add this or add it yourself and contribute something back to CEGUI ;)

As far as having to set the SystemScriptModule before executeString will work for that module, again I see no reason why this has to be the case, even though it currently appears to be. I assume this would be a worthy change to CEGUI, in addition to the change mentioned above.

Now, that does not mean you cannot work around the issue using the existing CEGUI code base. If you take a look at the code for setScriptingModule you can see that all this does is basically store an internal pointer to the module, and call destroyBindings and/or createBindings depending on the situation. From this, I will assume that in order to "enable" a scripting module all you need to do is call createBindings on the module. If we take a look at the LuaScriptModule we can see that createBindings is a public function. So, hypothetically, if you are only using executeString (and do not need to switch the SystemScriptModule to bind events from layout files), then you only need to call LuaScriptModule::createBindings in your initialization code and LuaScriptModule::executeString should work.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

OceanMachine
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Sat Mar 19, 2011 05:15

Re: How to use LuaScriptModule::executeString()?

Postby OceanMachine » Sat Apr 02, 2011 19:18

Ah that's great thanks, calling LuaScriptModule::createBindings first did the trick. Why doesn't this run as part of LuaScriptModule::create()? Surely this would remove the need to either manually call LuaScriptModule::createBindings OR setting the System ScriptingModule first (which also calls createBindings) before being able to use executeString()?

Anyway, that fixed my issue without having to change the SystemScriptModule. Thanks again :)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests