(solved) CELayoutEditor-0.5c runtime error (schemes missing)

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

schnorr
Just popping in
Just popping in
Posts: 14
Joined: Fri Jan 11, 2008 09:39

(solved) CELayoutEditor-0.5c runtime error (schemes missing)

Postby schnorr » Fri Jan 25, 2008 22:17

Hello,

I downloaded the current stable tarball of the layout editor, version 0.5c, from the links available here: http://www.cegui.org.uk/wiki/index.php/CELayoutEditor_Downloads_0.5.0.

After compiling it under linux, I tried to execute it. I get the following error:
Can not enumerate files in directory '/home/user/tmp/CELayoutEditor/bin/schemes/' (error 2: No such file or directory)

I checked the mentioned directory, but I found nothing named "schemes". Should this directory be present in the tarball package?
Does anyone know how to find it?
Last edited by schnorr on Mon Jan 28, 2008 12:35, edited 1 time in total.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Sat Jan 26, 2008 11:07

Hi,

all Cegui files are stored in a 'datafiles' directory, which was introduced in earlier versions of Cegui to provide one shared location for the samples. Because it worked pretty nice, it has became a sort of standard for the tools as well.

If you have Cegui itself installed aswell, you should find a datafiles directory under Samples.

Now on linux you should have two options:
1) use a CELAYOUTEDITOR_DATAPATH environment variable, it should be possible to 'config' this.
2) have a look at the CELayoutEditor.ini file and change the paths to all Cegui file types.

HTH! You're almost there :)
Check out my released snake game using Cegui!

schnorr
Just popping in
Just popping in
Posts: 14
Joined: Fri Jan 11, 2008 09:39

Postby schnorr » Mon Jan 28, 2008 09:23

Hi...

So, I found the datafiles directory under the distribution of CEGUI-0.5.0.
When I execute CELayoutEditor, it asked me where is the datafiles directory.
So, I pointed it out and it show me the following error:
WindowFactoryManager::addWindowTypeAlias - alias 'Taharez AltProgressBar' could not be created because the target type 'TaharezLook/AlternateProgressBar' is unknown within the system.
under a window titlte "CELayoutEditor Error".

This is what is inside the file CELayoutEditor.ini
[SETTINGS]
BigKeyStep=10
SmallKeyStep=1
DefaultFont=
CurrentBackground=
BackgroundVisible=0
CurrentLayout=
ViewWidth=640
ViewHeight=480
SnapMode=2
GridSize=10
GridVisible=0
ConfigsPath=/home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/configs/
FontsPath=/home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/fonts/
ImagesetsPath=/home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/imagesets/
LookNFeelsPath=/home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/looknfeel/
ScriptsPath=/home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/lua_scripts/
SchemesPath=/home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/schemes/
SupportedProperties=Alpha,float;ClickStepSize,float;MaximumValue,float;
Visible,bool;AlwaysOnTop,bool;ClippedByParent,bool;InheritsAlpha,bool;
Selected,bool;ReadOnly,bool;CloseButtonEnabled,bool;
DragMovingEnabled,bool;FrameEnabled,bool;SizingEnabled,bool;
TitlebarEnabled,bool;MultiSelect,bool;Sort,bool;DraggingEnabled,bool;
BackgroundEnabled,bool;InheritsTooltipText,bool;HoverImage,text;
PushedImage,text;DisabledImage,text;NormalImage,text;Font,font;
TitlebarFont,font;VerticalAlignment,vert_align;
HorizontalAlignment,horz_align;VertFormatting,vert_text_format;
HorzFormatting,horz_text_format;Tooltip,text;


This is the list of files under /home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/schemes/:
schnorr@crowh:~/tmp/CELayoutEditor$ ls /home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/schemes/
Demo8.scheme TaharezLookWidgetAliases.scheme WindowsLook.scheme
GUIScheme.xsd TaharezLookWidgets.scheme WindowsLookWidgets.scheme
TaharezLook.scheme VanillaSkin.scheme
schnorr@crowh:~/tmp/CELayoutEditor$


I checked the file TaharezLook.scheme to see if the AlternateProgressBar is there, and it seems to be there:
schnorr@crowh:~/tmp/CELayoutEditor$ cat /home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/schemes/TaharezLook.scheme | grep AlternateProgressBar
<FalagardMapping WindowType="TaharezLook/AlternateProgressBar" TargetType="CEGUI/ProgressBar" Renderer="Falagard/ProgressBar" LookNFeel="TaharezLook/AltProgressBar" />
schnorr@crowh:~/tmp/CELayoutEditor$


And there is also a reference to "Taharez AltProgressBar" in the file TaharezLookWidgetAliases.scheme:
schnorr@crowh:~/tmp/CELayoutEditor$ cat /home/schnorr/misc/CEGUI-0.5.0/Samples/datafiles/schemes/TaharezLookWidgetAliases.scheme | grep "Taharez AltProgressBar"
<WindowAlias Alias="Taharez AltProgressBar" Target="TaharezLook/AlternateProgressBar" />
schnorr@crowh:~/tmp/CELayoutEditor$


I also changed the datafiles directory so the layout editor uses the one
available in the revision 1518 of the cegui trunk in SVN. It did not solve the problem. :cry:

In this case, what would be the problem, am I missing something? :shock:

Thanks again...

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon Jan 28, 2008 12:03

Hi,

can you try to delete/move these files:
-TaharezLookWidgetAliases.scheme
-TaharezLookWidgets.scheme
-WindowsLookWidgets.scheme

I think that some of these helper files have become outdated. So you should only keep:
-WindowsLook.scheme
-TaharezLook.scheme
-VanillaSkin.scheme

Good luck!
Check out my released snake game using Cegui!

schnorr
Just popping in
Just popping in
Posts: 14
Joined: Fri Jan 11, 2008 09:39

Postby schnorr » Mon Jan 28, 2008 12:35

I did as you said and it's working! :D
Thanks scriptkid.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon Jan 28, 2008 12:38

Great! :)
Check out my released snake game using Cegui!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 24 guests