Incorporating CEGUI Problem
Posted: Tue Jul 12, 2005 22:33
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.
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.