Auto fix for extra LF's and bad lineWeight

Hey everyone…

In light of the recent issue of files (mainly Me files) ending up with extraneous LF’s causing lots of whitespace, and the removal of the lineWeight file fiixing which was causing part of the LF issue… I have reimplemented an autofix solution for both issues in the 2D and Me files.

Since it also seems like a lot of users don’t backup up thier Seamly files, and since the files are potentially being changed with the autofix I implemented backing up both files when you load a pattern, before the files are autofixed.

So you may be wondering… won’t that create a lot of backup files? Not really. I added a new preference for the max number of each file to keep (1 to 10) , and once you exceed the limit the oldest file(s) get removed.

image

I should note that you also have the option to keep a backup when converting from an older schema ver to a newer one. Since the basename of the backups remains the same, the convertion backups are included in the limit. If you enable the conversion backup you will end up with a backup of the old schema and one of the new schema before any changes are made… as long as your max number > 1.

The backups will now also be date stamped so the format will be:

[my backups path] basename_date-time(backup).ext

I should aslo note that the backups are seperate, and more permanent than the autosave files.

image

The autosave files are saved at the set interval (in mins), but only remain in the Seamly2D directory if the app crashes. If you safely exit the app, the autosaves are cleared. Now with forcing the autobackups of the pattern & me files with every load, there should always be at least 1 backup.

Oh… one last note. If the My Backups path can not be found the backups will be saved in dir the pattern was loaded from. This could happen if for example you have your pattern and me files on your main C: drive, but are storing backups on an external or second drive (good idea), and for some reason the external drive has been removed.

5 Likes

Update: I forced the max number of files to be 2 if the conversion backup is checked:

image

6 Likes