ldtk icon indicating copy to clipboard operation
ldtk copied to clipboard

Changeable backup save location and/or append to filename timestamps

Open chosencharacters opened this issue 3 years ago • 4 comments

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

chosencharacters avatar Feb 02 '22 22:02 chosencharacters

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 🤔

deepnight avatar Feb 03 '22 11:02 deepnight

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.

chosencharacters avatar Feb 03 '22 18:02 chosencharacters

There's no 1.1 :)

This is what my backup folder in the project folder looks like: image

deepnight avatar Feb 03 '22 19:02 deepnight

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: @.***>

chosencharacters avatar Feb 03 '22 19:02 chosencharacters

+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.

jeremyfa avatar Jan 20 '23 15:01 jeremyfa

This will be added in 1.2.6 or 1.3.0

deepnight avatar Jan 23 '23 08:01 deepnight

Would be nice to change the extension as well so that custom importers don't try to import every backup file

afk-mario avatar Mar 28 '23 01:03 afk-mario

Available in 1.3.0 image

deepnight avatar Apr 24 '23 12:04 deepnight