odrick / free-tex-packer

Free texture packer
http://free-tex-packer.com/
MIT License
911 stars 168 forks source link

Paths in .ftpp files #35

Closed zyndor closed 3 years ago

zyndor commented 4 years ago

Hi Odrick,

Thanks for the awesome tool that FreeTexPacker is.

One issue I've found with it is that the .ftpp files store absolute paths (for savePath and folders), which is rather limiting when trying to check them into a repository that's being worked on from multiple workstations / by multiple users.

A more robust solution would be to save these paths relative to the location of the *.ftpp.

I have tried to manually edit the .ftpp to this end, but unfortunately that seems to be a no go - the image from these 'relative' folders don't show and export hangs the app (on Ubuntu 16.04 at least).

Would you please consider adding support for saving the export paths relative to the location of the .ftpp? (I'd attempt this myself if I wasn't limited by lack of knowledge of Electron and building FreeTexPacker.)

Thank you for your time.

odrick commented 4 years ago

Hey.

We need to think about how to make relative paths support and don't break projects with absolute paths...

zyndor commented 4 years ago

Sorry about the delayed reply. I'd treat any path that doesn't start with "^([A-Z]\:|/)" as relative -- pre-existing paths presumably won't match (and will keep working). However I haven't had a chance to look at the code base, and the devil is in the details.

I'm quite busy these days but I'll see if I can put together a PR that works, in my spare time.

blinkuz commented 4 years ago

Anything new regarding this ?, I'm having problems sharing projects with my friends since the images don't load when I move them to another computer.

dacanizares commented 3 years ago

Anything new?

odrick commented 3 years ago

At the moment I don't have much time to develop this project. Feature requests are postponed.