odrick / free-tex-packer

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

.ftpp projects are generated with absolute path + option to remove pivot points #72

Open jonit-dev opened 2 years ago

jonit-dev commented 2 years ago

Hi @odrick!

First of all, thank you for this amazing software.

I'm currently using it to develop a game, however, facing some difficulties due to the fact that Free texture packer saves the .ftpp files in an absolute format, not a relative one.

So when another team member picks up the project to change the texture, it has to replace all the paths available on the .ftpp file, otherwise the texture simply won't load.

image

It would be cool to use relative paths by default.

Also, it would be great to have a feature to disable pivot points on the atlas .json output. It causes issues with Phaser and I had to create a script to fix constantly remove it.

Thank you!

rohannarang15 commented 1 year ago

Ran into the absolute paths issue as well. The save files break when they are opened on a different system. This is an incredibly useful tool and it would be perfect if this can be fixed.

likwidgames commented 1 year ago

We are running into this issue as well.

ssotangkur commented 3 months ago

@jonit-dev @rohannarang15 @likwidgames I made a fork that saves the file using relative paths: https://github.com/ssotangkur/free-tex-packer

When the project file is saved, it will convert the paths to be relative to the project file itself only in the file written to disk. When the project is loaded from disk, the reverse happens and the relative paths are converted to an absolute path specific to the computer opening it, but this only affects the in-memory copy of the project. To the rest of the program, everything appears to be in absolute paths so everything should work as before.