CEGUI Documentation

trycatchthis

19-10-2007 16:54:59

Hi,

I am new to python ogre and I am trying to get a GUI up and running.

The documentation for CEGUI under python-ogre seems to be non existent.

The examples in the wiki are trivial at best and often crash.

Can anyone point me to adequate documentation preferably in (.chm) format?

kungfoomasta

19-10-2007 19:16:23

Most Open Source projects are that have not hit a v1.0 status will not have a compiled chm, or have a whole lot of documentation. Spending time on documentation detracts from development. (Although CEGUI has gone a year with very very little development..)

Your best bet is to read the wiki:
http://www.cegui.org.uk/wiki/index.php/Tutorials
To post in the forums:
http://www.cegui.org.uk/phpBB2/index.php
And to read through source code of demos.

Game_Ender

19-10-2007 21:40:20

Having tutorials, a full set of API docs, and samples/demos is the best you can hope for and its what CEGUI (and Ogre) have.

There is CEGUI documentation, its just Python-Ogre expects you to use the C++ docs. The wrapping of Python-Ogre is close enough that what you see in C++ will apply to Python-Ogre just fine. Don't let the version number confuse CEGUI has been used in commercial games and is finished enough to be a "1.0" product (not many judgments can be made based on version numbers).

Oh, and Doxygen can generate you a chm file for CEGUI too.

andy

20-10-2007 03:03:26

I assume you have examined the demos that ship with Python-Ogre as I would have thought that they represent a reasonable level of detail as the standard Demo_CEGUI_Gui shows a number of CEGUI elements etc.

The real question is what are you needing the GUI for? If it's a standard 'gaming/simple' interface (pull down menus, input boxes, drop down lists etc) then you might want to look at QuickGUI -- if it's more complicated then CEGUI is a good option and you use the C++ reference material..

Andy

foxmulder900

28-11-2007 08:16:24

I am trying to get CEGUI working in my python-ogre application however the demos from the python-ogre install crash on me. Demo_CEGUI_NewGui.py crashes with this error, anyone else had this problem? I have tried re-installing python-ogre but that didn't help

File "C:\PythonOgre\demos\cegui\Demo_CEGUI_NewGui.py", line 195, in _createScene
st = winMgr.createWindow("TaharezLook/StaticText", "TextWindow/Static")
RuntimeError: WindowManager::getWindow - A Window object with the name 'extWindow/Static

andy

28-11-2007 11:22:38

Assuming you are running Python-Ogre 1.1 do any of the other CEGUI demos work or do they all fail?

I'm not aware of any particular issues or dependencies for CEGUI, however perhaps you have an incompatible set of CEGUIxxxxx.dll's in your path that are being picked up before the Python-Ogre ones..

You could copy from \PythonOgre\packages_2.5\ogre\gui\CEGUI\*.dll to \PythonOgre\demos\CEGUI and try them again

Andy

foxmulder900

28-11-2007 20:07:37

All the demos fail, I tried moving the .dlls but that didn't help. I was excited when you gave that idea because it makes sense, I had the CEGUI SDK installed so I thought something might be conflicted, however I uninstalled the SDK and that had no effect either.

andy

28-11-2007 23:08:09

I would still like to believe the issue is a dll one -- just because I'm not aware of any issues relating to CEGUI :)

Can you run the demos from the command prompt (from within the demos/cegui directory) and give me the errors that you are seeing (is it the same error for all demos?)

Also does the behaviour change if you select the OpenGL driver or DirectX

Thanks
Andy

foxmulder900

29-11-2007 00:56:51

All of the CEGUI demos give me an error - however they all seem to be different - here is a rundown of what happens.

Demo_CEGUI_Facial.py - OpenGL and DirectX

RuntimeError: GUILayout_xmlHandler::startElement - layout loading has been aborted since no WindowFactory is available for 'TaharezLook/StaticText' objects.

Demo_CEGUI_DragnDrop.py -OpenGL and DirectX

RuntimeError: WindowManager::getWindow - A Window object with the name 'abel

Demo_CEGUI_Gui.py - OpenGL and DirectX

This demo starts up correctly but it crashes whenever I try to click one of the buttons and gives no error

Demo_CEGUI_NewGui.py - OpenGL and DirectX

st = winMgr.createWindow("TaharezLook/StaticText", "TextWindow/Static")
RuntimeError: WindowManager::getWindow - A Window object with the name 'extWindow/Static

Thanks for your help!

andy

29-11-2007 02:38:30

Lets try something more extreme..

From a command prompt do..
cd \pythonogre\demos\cegui
set PATH=c:\python25
python Demo_CEGUI_Gui.py

See what happens

foxmulder900

29-11-2007 04:15:12

Ok, it loads up like normal but when I click on "Load Test Layout" it crashes and the error displayed in the console is:

RuntimeError: GUILayout_xmlHandler::startElement - layout loading has been aborted since no WindowFactory is available for 'TaharezLook/StaticText' objects.