I don't understand why CEGUI is such a pain in the ass when it comes to finding files in directories. DirectX is simple, it searches for crap relative to the .exe. I have my project folder. Inside it I have a graphics, sounds, etc. In the debug folder, I have the .exe of course, along with the same graphics, sounds, etc. folders. Whether I run it from the IDE or from the actual .exe, it works perfectly.
Now why is CEGUI such a pain the in ass? I place the datafiles folder inside the Debug folder with .exe with the intent of only using the .exe to run the program, not the IDE. Of course, it crashes with this all-too familiar log:
12/07/2005 18:16:29 (InfL1) ---- CEGUI System initialisation completed ----
12/07/2005 18:16:29 (InfL1) Attempting to load Scheme from file 'datafiles/schemes/TaharezLook.scheme'.
12/07/2005 18:16:29 (Error) Exception: DefaultResourceProvider::load - GUIScheme.xsd does not exist
12/07/2005 18:16:29 (InfL1) Attempting to create an Imageset from the information specified in file '../datafiles/imagesets/TaharezLook.imageset'.
12/07/2005 18:16:29 (Error) Exception: DefaultResourceProvider::load - Imageset.xsd does not exist
12/07/2005 18:16:29 (Error) Exception: DefaultResourceProvider::load - ../datafiles/imagesets/Imageset.xsd does not exist
12/07/2005 18:16:29 (Error) Imageset::load - loading of Imageset from file '../datafiles/imagesets/TaharezLook.imageset' failed.
Now all my other file paths follow this pattern:
"graphics\\background.png", so I change the file paths CEGUI uses to "datafiles\\schemes\\TaharezLook.scheme" and it still doesn't work.
Now then, before even adding CEGUI into my current project, just to make sure it's not a coding error from my project, I have another project folder. In it is the Debug folder. Inside that, I have the datafiles folder. I set the command to the .exe in the Debug folder, and I set the working directory to the Debug folder. Of course, the program crashes when I run the .exe. The only way to make it work is the place a copy of the datafiles folder in the project directory, one level up from the Debug folder. What is at fault here?
Is there a way to just make CEGUI work relative to the .exe? If I want to send my program to a friend, I want them to just click the .exe and everything to work fine. I just want it to work like all my other graphics/sound/etc. loading works. I am able to send it to a friend, and all they gotta do is run the .exe and everything works flawlessly.
Incorporating CEGUI Problem
Moderators: CEGUI MVP, CEGUI Team
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Incorporating CEGUI Problem
I assume VC++ since your using DirectX.
In project settings under debugging you can set the working directory that the exe should run in.
This defaults to the directory your project file is in.
I think your problem is that the paths in your .imageset, .font and .scheme files are incorrect.
These paths should be modified to point (as relative paths) to the datafiles starting at the working directory.
That is which ever directory the user or IDE runs the exe from.
HTH
In project settings under debugging you can set the working directory that the exe should run in.
This defaults to the directory your project file is in.
I think your problem is that the paths in your .imageset, .font and .scheme files are incorrect.
These paths should be modified to point (as relative paths) to the datafiles starting at the working directory.
That is which ever directory the user or IDE runs the exe from.
HTH
Re: Incorporating CEGUI Problem
Yes, I'm using VC++.NET 2003.
Are you saying that I need to modify the actual .font, .scheme, .imageset files? How in the world would I do that?
Are you saying that I need to modify the actual .font, .scheme, .imageset files? How in the world would I do that?
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Incorporating CEGUI Problem
Try a text editor.
Notepad works for me
Notepad works for me
Re: Incorporating CEGUI Problem
Haha. Ahh well.
I change this line in TaharezLook.scheme:
Filename="../datafiles/imagesets/TaharezLook.imageset"
to this:
Filename="datafiles/imagesets/TaharezLook.imageset"
And I also changed this in TaharexLook.imageset:
Imagefile="../datafiles/imagesets/TaharezLook.tga"
Imagefile="datafiles/imagesets/TaharezLook.tga"
At least I see some progress in the logger:
13/07/2005 01:27:16 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
13/07/2005 01:27:16 (InfL1) + Crazy Eddie's GUI System - Event log +
13/07/2005 01:27:16 (InfL1) + (http://www.cegui.org.uk/) +
13/07/2005 01:27:16 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
13/07/2005 01:27:16 (InfL1) CEGUI::Logger singleton created.
13/07/2005 01:27:17 (InfL1) ---- Begining CEGUI System initialisation ----
13/07/2005 01:27:17 (InfL1) CEGUI::ImagesetManager singleton created
13/07/2005 01:27:17 (InfL1) CEGUI::FontManager singleton created.
13/07/2005 01:27:17 (InfL1) CEGUI::WindowFactoryManager singleton created
13/07/2005 01:27:17 (InfL1) CEGUI::WindowManager singleton created
13/07/2005 01:27:17 (InfL1) CEGUI::SchemeManager singleton created.
13/07/2005 01:27:17 (InfL1) CEGUI::MouseCursor singleton created.
13/07/2005 01:27:17 (InfL1) CEGUI::GlobalEventSet singleton created.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'DefaultWindow' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'DragContainer' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'ScrolledContainer' windows added.
13/07/2005 01:27:17 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
13/07/2005 01:27:17 (InfL1) CEGUI::System singleton created.
13/07/2005 01:27:17 (InfL1) ---- CEGUI System initialisation completed ----
13/07/2005 01:27:17 (InfL1) Attempting to load Scheme from file 'datafiles/schemes/TaharezLook.scheme'.
13/07/2005 01:27:17 (Error) Exception: DefaultResourceProvider::load - GUIScheme.xsd does not exist
13/07/2005 01:27:17 (InfL1) Attempting to create an Imageset from the information specified in file 'datafiles/imagesets/TaharezLook.imageset'.
13/07/2005 01:27:17 (Error) Exception: DefaultResourceProvider::load - Imageset.xsd does not exist
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/AlternateProgressBar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Button' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Checkbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/CloseButton' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Combobox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ComboDropList' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ComboEditbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Editbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/FrameWindow' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/LargeVerticalScrollbar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/LargeVerticalScrollbarThumb' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Listbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ListHeader' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ListHeaderSegment' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/HorizontalScrollbar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/HorizontalScrollbarThumb' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/MultiColumnList' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/MultiLineEditbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ProgressBar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/RadioButton' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ScrollablePane' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Slider' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/SliderThumb' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Spinner' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/StaticImage' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/StaticText' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/TabButton' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/TabControl' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/TabPane' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Titlebar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Tooltip' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/VerticalScrollbar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/VerticalScrollbarThumb' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/VUMeter' windows added.
13/07/2005 01:27:17 (InfL1) Attempting to create Font 'Therfont' using the font file 'datafiles/fonts/Therfont.ttf' and a size of 12.
13/07/2005 01:27:17 (InfL1) Attempting to create Imageset 'Therfont_auto_glyph_images' with texture only.
13/07/2005 01:27:17 (Error) Exception: WindowFactoryManager::getFactory - A WindowFactory object (or an alias) for 'Taharez/Button' Window objects is not registered with the system.
Now I looked at Imageset.xsd and GUIScheme.xsd, I don't see a file name to change in them. It's having problems loading them, but I don't know what to modify.
I change this line in TaharezLook.scheme:
Filename="../datafiles/imagesets/TaharezLook.imageset"
to this:
Filename="datafiles/imagesets/TaharezLook.imageset"
And I also changed this in TaharexLook.imageset:
Imagefile="../datafiles/imagesets/TaharezLook.tga"
Imagefile="datafiles/imagesets/TaharezLook.tga"
At least I see some progress in the logger:
13/07/2005 01:27:16 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
13/07/2005 01:27:16 (InfL1) + Crazy Eddie's GUI System - Event log +
13/07/2005 01:27:16 (InfL1) + (http://www.cegui.org.uk/) +
13/07/2005 01:27:16 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
13/07/2005 01:27:16 (InfL1) CEGUI::Logger singleton created.
13/07/2005 01:27:17 (InfL1) ---- Begining CEGUI System initialisation ----
13/07/2005 01:27:17 (InfL1) CEGUI::ImagesetManager singleton created
13/07/2005 01:27:17 (InfL1) CEGUI::FontManager singleton created.
13/07/2005 01:27:17 (InfL1) CEGUI::WindowFactoryManager singleton created
13/07/2005 01:27:17 (InfL1) CEGUI::WindowManager singleton created
13/07/2005 01:27:17 (InfL1) CEGUI::SchemeManager singleton created.
13/07/2005 01:27:17 (InfL1) CEGUI::MouseCursor singleton created.
13/07/2005 01:27:17 (InfL1) CEGUI::GlobalEventSet singleton created.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'DefaultWindow' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'DragContainer' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'ScrolledContainer' windows added.
13/07/2005 01:27:17 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
13/07/2005 01:27:17 (InfL1) CEGUI::System singleton created.
13/07/2005 01:27:17 (InfL1) ---- CEGUI System initialisation completed ----
13/07/2005 01:27:17 (InfL1) Attempting to load Scheme from file 'datafiles/schemes/TaharezLook.scheme'.
13/07/2005 01:27:17 (Error) Exception: DefaultResourceProvider::load - GUIScheme.xsd does not exist
13/07/2005 01:27:17 (InfL1) Attempting to create an Imageset from the information specified in file 'datafiles/imagesets/TaharezLook.imageset'.
13/07/2005 01:27:17 (Error) Exception: DefaultResourceProvider::load - Imageset.xsd does not exist
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/AlternateProgressBar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Button' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Checkbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/CloseButton' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Combobox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ComboDropList' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ComboEditbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Editbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/FrameWindow' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/LargeVerticalScrollbar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/LargeVerticalScrollbarThumb' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Listbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ListHeader' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ListHeaderSegment' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/HorizontalScrollbar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/HorizontalScrollbarThumb' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/MultiColumnList' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/MultiLineEditbox' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ProgressBar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/RadioButton' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/ScrollablePane' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Slider' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/SliderThumb' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Spinner' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/StaticImage' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/StaticText' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/TabButton' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/TabControl' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/TabPane' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Titlebar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/Tooltip' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/VerticalScrollbar' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/VerticalScrollbarThumb' windows added.
13/07/2005 01:27:17 (InfL1) WindowFactory for 'TaharezLook/VUMeter' windows added.
13/07/2005 01:27:17 (InfL1) Attempting to create Font 'Therfont' using the font file 'datafiles/fonts/Therfont.ttf' and a size of 12.
13/07/2005 01:27:17 (InfL1) Attempting to create Imageset 'Therfont_auto_glyph_images' with texture only.
13/07/2005 01:27:17 (Error) Exception: WindowFactoryManager::getFactory - A WindowFactory object (or an alias) for 'Taharez/Button' Window objects is not registered with the system.
Now I looked at Imageset.xsd and GUIScheme.xsd, I don't see a file name to change in them. It's having problems loading them, but I don't know what to modify.
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Incorporating CEGUI Problem
The .xsd files needs to be in the working directory.
This would probably be the exe path (or your debugging working dir).
and the windowfactory is "TaharezLook/Button" not just "Taharez/Button"
This would probably be the exe path (or your debugging working dir).
and the windowfactory is "TaharezLook/Button" not just "Taharez/Button"
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 7 guests