Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative content root path? #31

Closed
jessechounard opened this issue Mar 26, 2012 · 1 comment
Closed

Relative content root path? #31

jessechounard opened this issue Mar 26, 2012 · 1 comment

Comments

@jessechounard
Copy link

When saving the a level, would it be possible to convert the content root path to a relative path? (Relative to where the level file was saved.) I'm worried about using absolute paths, as that may cause problems when working with collaborators.

When using the old Gleed2d years ago, I actually removed the idea of a content root path completely, and all stored paths were relative to where the level file was saved. I could do that again, but I think the relative path idea might cause fewer headaches.

@SteveDunn
Copy link
Owner

Hi Jesse,
Thanks for the feedback. I added a related feature a while back: when you
load a level where the content root folder doesn't exist, it displays thiss

message:

Content root folder not found.

The level file has a content root folder that does not exist.

It says the content root is at "c:\project". Images specified in this level
file are relative to this folder so you should change it in order to load
this level file correctly.

Would you like to change it?

Yes No

If you click yes, you can change the content root folder.

Saying that, I can see the benefit of it defaulting to the location where
the level is loaded from. Perhaps we can add to the message something like
'Would you like to change it or default to '[c:\wherever the level loaded
from']' and add a 'Remember my choice' check-box.

On 26 March 2012 17:52, Jesse Chounard <
reply@reply.github.com

wrote:

When saving the a level, would it be possible to convert the content root
path to a relative path? (Relative to where the level file was saved.) I'm
worried about using absolute paths, as that may cause problems when working
with collaborators.

When using the old Gleed2d years ago, I actually removed the idea of a
content root path completely, and all stored paths were relative to where
the level file was saved. I could do that again, but I think the relative
path idea might cause fewer headaches.


Reply to this email directly or view it on GitHub:
#31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants