Alternative Data Path

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Malkyne
Just popping in
Just popping in
Posts: 9
Joined: Wed Jan 12, 2005 12:06
Location: Sydney, Australia

Alternative Data Path

Postby Malkyne » Tue Aug 31, 2004 10:28

Please pardon me if I'm being daft for asking this, but is there any way to define an alternative path (other than the one the executable is in) for the system to look for xml files and graphical assets? I'm trying to put all of my assets in a "data" directory (while keeping the dlls in the "bin" directory), and it would be extremely annoying to have to use the full path, everywhere. I've dug all through the API docs and the forums, and can't find any good way to do this. Any recommendations?

Thanks, in advance!

Tess

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Alternative Data Path

Postby CrazyEddie » Tue Aug 31, 2004 11:13

Currently, all paths need to be specified either absolutely, or relative to the working directory (so if you're in 'bin', your paths might have to start "../data/whatever", or similar).

I understand and acknowledge this is a bit lame and _mental_ from the Ogre project has on his TODO list a full resource manager for the system; this will also support existing resource managers, so if you're already using the Ogre resource manager for example, CEGui will also be able to use that same system. I don't have an ETA on this at the moment, so for a little while yet, we're all stuck with the current set-up :(

CE.

User avatar
Malkyne
Just popping in
Just popping in
Posts: 9
Joined: Wed Jan 12, 2005 12:06
Location: Sydney, Australia

Alternative Data Path

Postby Malkyne » Tue Aug 31, 2004 12:02

Thanks for the info!

Ogre's resource management system is actually pretty sophisticated. In Gamebryo, I can set a media path, but I don't have anything anywhere near as expressive as Ogre's system. I have to say, I'm continually impressed by the work that Sinbad and the gang have put into Ogre.

Tess

User avatar
_mental_
CEGUI Team (Retired)
Posts: 157
Joined: Wed Jan 12, 2005 12:06
Contact:

Alternative Data Path

Postby _mental_ » Wed Sep 01, 2004 01:45

Just to keep everyone updated. I have actually started work on the resource provider and I hope to have something to show within the next week or two.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Alternative Data Path

Postby CrazyEddie » Wed Sep 01, 2004 08:22

That's great news _mental_ :)

Thanks for the update.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 18 guests