ModPlug Central

OpenMPT => Help and Questions => Topic started by: Rakib on July 29, 2011, 21:53:58

Title: Autosave works to well?
Post by: Rakib on July 29, 2011, 21:53:58
Autosave is a lifesaver, its great to have and can save you a lot of frustration if modplug crashes while working on a song if you forgot to save. But Im not sure if it a bug or its just that modplug has crashed so many times that it forgot how many savefiles it should have.

I have a folder with two file/songs that I am currently working on, I forgot to save while working on one of these two songs. Going back to the folder just to discover that it contained 153 files, two of them is the songs Im working on, the rest is autosave files. Is this because of modplug crashing to often or a bug?
Title: Re: Autosave works to well?
Post by: Saga Musix on July 29, 2011, 22:10:03
I've set OpenMPT to keep up to 5 backups, and it does that for me. Have you resumed working from one of the backups and forgot to rename the file probably? Or have you renamed your work files?
Title: Re: Autosave works to well?
Post by: Rakib on July 29, 2011, 22:47:10
No I have the standard 3 copies, saving every 10 min. And no for your question. But Im just guessing that modplug crashed at sometime and then started on saving 3 new autosaves, disregarding the older autosaves.
Title: Re: Autosave works to well?
Post by: Rakib on July 29, 2011, 22:53:37
Since Im working on a remix, I had to get the notes. I downloaded the celemony melodyne trial and I must say it is crazy unstable in modplug. Anyone else have problem with this plugin?
Title: Re: Autosave works to well?
Post by: Saga Musix on July 29, 2011, 23:10:09
The autosaver does not keep track of the number of backups. It simply finds all files that match the autosave name pattern (songname.autosave.date.time.ext) and then removes those with the oldest date. So it's not really possible that old backups are kept, unless the base filename was changed.

Edit: Concerning the plugin, how unstable is it? Does it crash during certain actions? Does it crash randomly or behave unexpectedly?
Title: Re: Autosave works to well?
Post by: Rakib on July 29, 2011, 23:25:58
I'll give you a screenshot if this happens again. Have deleted all the files. It took 2GB.
Title: Re: Autosave works to well?
Post by: Christofori on July 31, 2011, 05:45:15
I've found an interesting/odd thing about the 'timing' of AutoSave.   It's probably intended -- just didn't think it'd work quite this way till I noticed it happen...

So I'd be working in my main file (quite large [it's > 250MB] and though a very recent upgrade on my system has considerably helped my load/save times, it still does take a few seconds to save or load -- during which the screen [set to follow playback] pauses if the song's autosaved while playing back... [gasp for air.. lol]) and, all that said (lol again), I tend to save it once I'm sure the compositional change I've made is good, and whatnot.  Thus it won't autosave as it's just been saved.  No issue yet!  That's all just background.. ;)

Now then.. I will at times play the song allowing it to loop for a while; during which I'm listening to the balance, blend, mixing, etc -- sometimes stopping it to tweak a setting here or there, but often times letting it play for several minutes (during which time I check forums, etc).  Now IF the amount of time I listen to the track exceeds the autosave time, then the next time I make a change almost immediately thereafter the autosave saves a copy.. rather than making an autosave at 10 minutes after (for example) I make the change.  I'm wondering if this is because the 'record' button is usually left ON in my case...  I certainly don't have to, just tend to do so as I usually forget to toggle it. :P

Anyway, all that boils down to this:  does the record button play a factor in the autosave timer's functionality?
Title: Re: Autosave works to well?
Post by: Saga Musix on July 31, 2011, 11:33:14
Autosave will not happen if you didn't change anything in the module, so it's no wonder that autosave is not executed if you didn't touch the tracker for a few minutes.
Title: Re: Autosave works to well?
Post by: Christofori on August 02, 2011, 13:13:03
The point I was reaching for was if nothing's touched AND time goes by, then that time is counted towards the 'do I need to autosave?' flag.  IMO it should only be flagged once a change is actually made -- THEN the time begins to count. ;)
Title: Re: Autosave works to well?
Post by: Rakib on August 02, 2011, 13:22:59
Quote from: Jojo on July 29, 2011, 23:10:09
Edit: Concerning the plugin, how unstable is it? Does it crash during certain actions? Does it crash randomly or behave unexpectedly?
You get to record notes, but doing anything from there crashes modplug. It works with other hosts.

But ontopic. It doesnt stop autosaving.

(http://bildr.no/thumb/940056.jpeg) (http://bildr.no/view/940056)
Title: Re: Autosave works to well?
Post by: LPChip on August 02, 2011, 14:50:45
Looking at that screenshot, I notice that the autosave files all have .mptm.mptm while the original file only has .mptm. I think the problem is related to this, although I have no scientific grounds on which this is based. (please don't shoot me Jojo :P)
Title: Re: Autosave works to well?
Post by: Christofori on August 02, 2011, 15:12:58
Jojo's teh viscious!  VI-SHus I says! lol
Title: Re: Autosave works to well?
Post by: Saga Musix on August 02, 2011, 23:39:01
Quote from: LPChip on August 02, 2011, 14:50:45
Looking at that screenshot, I notice that the autosave files all have .mptm.mptm while the original file only has .mptm. I think the problem is related to this, although I have no scientific grounds on which this is based. (please don't shoot me Jojo :P)
If you look closely at the screenshot you will see that he has disabled to show known extensions, so the original file must be called "houstry 1.mptm.mptm" indeed.

Rakib, does OpenMPT crash during autosave? Autosave entries are only cleaned after a successful autosave, so if OpenMPT crashes while saving, it will never get to remove any autosaved files.
Title: Re: Autosave works to well?
Post by: Rakib on August 04, 2011, 18:28:30
No crash during autosave.
Title: Re: Autosave works to well?
Post by: Rakib on August 04, 2011, 18:31:01
But Ive changed the filename no, so no .mptm.mptm anymore. But on holiday so have wait to see if that has any effect.
Title: Re: Autosave works to well?
Post by: Saga Musix on August 04, 2011, 19:18:54
Does this happen with all files, i.e. is it reproduceable? If that is the case, can you please try using a predefined autosave folder instead of the song's own folder and check if the behaviour is still the same?
Title: Re: Autosave works to well?
Post by: Christofori on December 21, 2011, 21:35:46
Yes, I like reposting in old(er) posts. :)

Can the Autosave timer be reset to 0 on the latest edit, rather than at the moment of the file being saved?  Very minor thing, but it'd make OMPT's autosave behavior more uniform to that of other apps.  Most everything (word processors even) will autosave x minutes/seconds from the last edit, not the last save point.

Very minor indeed.. so minor in fact I didn't want to make a ticket for it. :)  Just thought I'd ask in case Jojo was feeling in the giving spirit for an upcomming testing release or whatnot.. it is, after all, almost Christmas. :)  Or Boxing day.  Or St. Stephen's... or whichever variant one cares to celebrate. :)
Title: Re: Autosave works to well?
Post by: Saga Musix on December 21, 2011, 23:13:04
The problem is, the autosave timer is global, i.e. it applies to all modules. Making it indivual per module would require a rewrite of the autosave timer logic.