martignasse wrote:The solution i think about is to add a field with the base path who is automaticly updated with the path of the imageset when you load it, and is used as reference for the image file.
Hmm, I'm not sure that will work in my case. Consider this set of paths:
Base Dir = c:\projects\mygame\bin
Imageset Dir = c:\projects\mygame\bin\gui\imageset
File Referenced = "gui\imageset\mypic.tga"
The path of the imageset can't be used as a reference, it needs to be the base game path. Anything that automatically works would have to be a bit smart and work backwards from the imageset dir, although even this wouldn't work in the "..\datafiles" case.