Topic: Support for CEGUI 0.8, Ogre 1.9

dezGusty on January 10, 2014, 09:07:05 PM

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
Hi,

I made changes to the CEGUI resource files for the game throughout this week. The files should work now with CEGUI 0.8.
Unfortunately, I did not add support for the previous CEGUI release yet (so I only performed changes to support the CEGUI 0.8).

It's not ready yet. I cannot seem to get the 3D scene to be displayed, and I'm not sure as to whether this is a CEGUI issue or an OGRE issue. Anyway...

If you want to test the build, use the branch named "gussoundtest". Remember to also update the "resources.cfg" file to use the new folders for the CEGUI 0.8 resources (in the emotionsets, GUI and GUI_XML_schemas resource groups).

E.g.
Code: [Select]
[GUI]
FileSystem=.//./share/resources/gui_0.8/configs
FileSystem=.//./share/resources/gui_0.8/fonts
FileSystem=.//./share/resources/gui_0.8/fonts/${ASPECT_RATIO}
FileSystem=.//./share/resources/gui_0.8/imagesets
FileSystem=.//./share/resources/gui_0.8/layouts
FileSystem=.//./share/resources/gui_0.8/layouts/common
FileSystem=.//./share/resources/gui_0.8/layouts/${ASPECT_RATIO}
FileSystem=.//./share/resources/gui_0.8/looknfeel
FileSystem=.//./share/resources/gui_0.8/schemes
FileSystem=.//./share/resources/gui_0.8/animations

[GUI_XML_schemas]
FileSystem=.//./share/resources/gui_0.8/xml_schemas

[emotionsets]
FileSystem=.//./share/resources/emotionsets
FileSystem=.//./share/resources/gui_0.8/emotionsets
Logged
  • Read 4790 times
  • Category Programming
Comments: 14

fusion44 on January 11, 2014, 12:28:04 PM
Reply #1

fusion44

  • Administrator
  • Sr. Member
  • *****
  • Posts: 459
  • Karma: +10/-0
    • View Profile
Very nice!

I remember having this black screen problem too some time ago. I think in th end it was a problem that the MainScreen was not transparent anymore as some CEGUI API changed.
Maybe the logfiles will show the problem.

Logged

dezGusty on January 13, 2014, 11:38:16 AM
Reply #2

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
Hey fusion.

It was more complex. I changed the way in which windows hold each-other and that broke a couple of callbacks from being triggered.
I reworked it more right now. There are still some issues (it will still crash if you want to open the inventory or skill tree), but it's almost usable :-).
However, I'm having issues with debugging, as when using the debug build, I get an exception thrown from lua. Up to now, I was typically working on the Release version, so I don't know whether this is a new issue.

Did you encounter any issues before when working with the Debug build and Lua?

Anyway, the entire UI is quite hacky right now, as we have the widget names written in code. I will want to try out a different approach at some point in the future :-)
Logged

fusion44 on January 13, 2014, 06:49:42 PM
Reply #3

fusion44

  • Administrator
  • Sr. Member
  • *****
  • Posts: 459
  • Karma: +10/-0
    • View Profile
Yes the ui is not quite optimal. Nobody of us was experienced with CEGUI when it was written - same with our usage of Ogre. There is much room for improvements :)

I don't have any problem with lua in Debug mode. Which version do you use?
Logged

dezGusty on January 13, 2014, 08:57:05 PM
Reply #4

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
I'm using a 5.1 version. I think it's the official version that comes with luarocks.
And that seems to be linked to MSVCR80.dll
Logged

fusion44 on January 14, 2014, 05:19:03 PM
Reply #5

fusion44

  • Administrator
  • Sr. Member
  • *****
  • Posts: 459
  • Karma: +10/-0
    • View Profile
I always use the version that comes with CEGUI.

Before that, I've used to compile it myself, its really fast and easy to compile.
Logged

dezGusty on January 14, 2014, 10:46:58 PM
Reply #6

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
Hmm... I did not think about using the CEGUI version. Thanks :-). I'll give it a try.
Logged

dezGusty on January 15, 2014, 06:28:59 PM
Reply #7

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
Well.. that did not help. But I did make progress on identifying the cause of the crashes. Still on the todo list:
1. Fix the skill tree display
2. Make the layouts click-through enabled (currently, you cannot walk around, as the clicks seem to stop at the UI) :-).
3. Test to see if there are other crash-causing issues
4. Update the fonts... they are a bit larger now by default.
Logged

dezGusty on January 15, 2014, 11:28:00 PM
Reply #8

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
1. Fixed the skill tree display.
2. Made the layout click-through enabled. You can walk around again now.

TODO:
1. Fix dialog window (crashes at dialog).
2. Test to see if there are other crash-causing issues
3. Update fonts.
Logged

dezGusty on January 17, 2014, 07:35:52 AM
Reply #9

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
Hi, I made some additional fixes. Most things should work properly now.

Known issues:
- only 1 main menu texture used for all chars in the char list (they all look the same in the button preview image)
- no minimap is rendered
- the story cannot be fully played, as it's sometimes not possible to interract with other chars (dialoguewindow not responding to clicks).
- sometimes, the game becomes very slow when viewing a vendor's / trader's items.
Logged

fusion44 on January 19, 2014, 03:44:10 PM
Reply #10

fusion44

  • Administrator
  • Sr. Member
  • *****
  • Posts: 459
  • Karma: +10/-0
    • View Profile
There's only two small problems that I've noticed:
  • Options and Quit button doesn't work in Main Menu
  • Textflow is not adjusted to the window width

I also had to disable the tools as they are not yet adjusted to make use of the new wrapper. Otherwise I haven't found any new issues.
Logged

dezGusty on January 19, 2014, 03:53:53 PM
Reply #11

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
There's also an issue with the Tooltips: you don't get the default tooltip being displayed (E.g. the descriptions for the user attributes).
The custom tooltip used for inventory items is displayed though.
Logged

dezGusty on January 19, 2014, 11:02:54 PM
Reply #12

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
An additional set of fixes: now the dialogs should no longer have unusable entries. main menu buttons should also be fine .
Logged

dezGusty on January 20, 2014, 10:03:17 PM
Reply #13

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
Additional small fixes. Now the dwarvenfall battle should be playable. I discovered a rather specific bug:
if you play with a Priest and use the skill "bladestorm" next to a fire element, the game crashes when trying to connect an item to a bone of the fire element. (I'm going to guess there is no bone in the fire element).
Logged

dezGusty on January 20, 2014, 11:06:56 PM
Reply #14

dezGusty

  • Artists
  • Full Member
  • *
  • Posts: 245
  • Karma: +8/-0
    • View Profile
Test version.

For anyone interested, here's a nightly build of the gussound branch where cegui 0.8 support has been added. If another version will be uploaded later on, this link will no longer work.
https://drive.google.com/file/d/0Byx-8I_NSC6-YUxMT2JUY24xNHM/edit?usp=sharing
Logged