ldtk
ldtk copied to clipboard
Changeable backup save location and/or append to filename timestamps
Currently the backup save location is fixed as a subdirectory to where the LDTK level is. This causes issues in some programs (like OpenFL) which don't allow duplicate files (and will take all subdirectory files when trying to take something like 'assets/levels' so 'assets/levels/backups' will be taken as well.)
Another solution would be the ability to put a suffix like a timestamp on the backup file so it's never identical. So "levels-2-2-22-5-37.ldtk" or something
Timestamps were added to backup names in 1.0.0 update, but I guess it would be nice to be able to customize the backup location too 🤔
I'm on 1.1.0 and it doesn't seem to be appending for me. But my project is also 500+ levels long in separate levels mode.
There's no 1.1 :)
This is what my backup folder in the project folder looks like:

Oh I meant append to each filename. The issue is duplicate filenames. And uh sorry I had just woken up, I meant 1.0 :)
On Thu, Feb 3, 2022 at 2:46 PM Sébastien Bénard @.***> wrote:
There's no 1.1 :)
This is what my backup folder in the project folder looks like: [image: image] https://user-images.githubusercontent.com/1671695/152417405-a39c1210-3309-4446-bbf3-ec4f1530fcaa.png
— Reply to this email directly, view it on GitHub https://github.com/deepnight/ldtk/issues/597#issuecomment-1029339982, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNKA4EQBOXL44OJ5XLWILTUZLLP5ANCNFSM5NNIV3CQ . You are receiving this because you authored the thread.Message ID: @.***>
+1 on being able to choose the backup location, either globally at LDtk level or a path relative to the project in project settings. My use case is: if I want to have an LDTK project in a Ceramic project's assets directory, edit it in place, it will also generate backup files that will also be processed by Ceramic assets system, which I don't want to include.
Being able to specify a relative directory would solve that issue because I can have the backups saved in a different directory that doesn't mess up my project's assets.
This will be added in 1.2.6 or 1.3.0
Would be nice to change the extension as well so that custom importers don't try to import every backup file
Available in 1.3.0
