ModPlug Central

OpenMPT Development (Archive) => Feature Requests => Topic started by: Saga Musix on April 11, 2007, 21:03:56

Title: Autosave only for certain files
Post by: Saga Musix on April 11, 2007, 21:03:56
'Evening...
an improved autosave feature would be very nice. something like this should be added to the dialog:

Only autosave Modules in the following directories: E:\MODs
[x] Include subdirectories

I can't stand it that modules which i just want to listen to also get autosaved...
Title: Autosave only for certain files
Post by: Saga Musix on May 29, 2007, 19:04:37
any opinions? this would be a nice task for pelya, wouldn't it? :lol:
if i knew C++ good enough, i'd do it myself... :|
Title: Autosave only for certain files
Post by: LPChip on May 29, 2007, 19:17:07
Well... As far as I know, a module that isn't being altered, (and therefor doesn't have a modification flag (*) set) shouldn't neither trigger an auto-save.
Title: Autosave only for certain files
Post by: Saga Musix on May 29, 2007, 19:21:55
hm, i have the behaviour to reverse samples, mute channels, chip samples, etc of modules which aren't mine (just to try out samples or to find out which channel produces which sound - yeah i am a nerd, but i know that :D) and some of them are rather large, and i don't want to have hundreds of megabytes of ununsed modules on my hd - i have set autosave to 1 minute coz modplug still crashes from time to time :|
Title: Autosave only for certain files
Post by: LPChip on May 29, 2007, 19:26:18
Quote from: "Jojo"hm, i have the behaviour to reverse samples, mute channels, chip samples, etc of modules which aren't mine (just to try out samples or to find out which channel produces which sound - yeah i am a nerd, but i know that :D) and some of them are rather large, and i don't want to have hundreds of megabytes of ununsed modules on my hd - i have set autosave to 1 minute coz modplug still crashes from time to time :|

Then I have the perfect solution (even if only temporary and the request is being executed)

Why not make a copy of your openMPT directory, so you have 2 OpenMPT's, and in one you enable auto-save, and in the other you disable auto-save.

This way, you can choose yourself easy if it must autosave or not. (you could also just enable/disable the option, but I figure this solution might be easier for you.
Title: Autosave only for certain files
Post by: Saga Musix on May 29, 2007, 19:35:51
that could work for some time, but it's not a good option, coz i sometimes copy samples from other modules into mine to try them out, and i would always have to stop the modules playing (what a work! :D) coz only one ASIO stream is allowed at one time... :)
Title: Autosave only for certain files
Post by: Sam_Zen on May 30, 2007, 02:28:50
As soon as something is auto, I first disable it, to see what's actually happening, not wanting to loose control.
Tools like that are potential troublemakers, So I prefer the brainsave method, where I decide to make a backup,
possibly renamed, during the process myself.
Title: Autosave only for certain files
Post by: Saga Musix on May 30, 2007, 14:07:34
well, if i'm really into making a track, i just forgot to save every minute... :D
Title: Autosave only for certain files
Post by: LPChip on May 30, 2007, 17:37:41
Quote from: "Jojo"well, if i'm really into making a track, i just forgot to save every minute... :D

So basically, we should do a bug-report about you? :P So they can fix you? :D

Okay, sorry if this joke is badly received...
Title: Autosave only for certain files
Post by: Saga Musix on May 30, 2007, 18:27:57
indeed, there are several bugs in Jojo 1.0 :P - for example, he's not writing perfect music :P
Title: Autosave only for certain files
Post by: LPChip on May 30, 2007, 19:51:20
Quote from: "Jojo"for example, he's not writing perfect music :P

Uh, I call that being human :nuts:
Title: Autosave only for certain files
Post by: Snu on May 31, 2007, 05:50:01
hmm, this would be a nice feature, i change the volume of tracks when i listen to them, and it sets the save flag...

maybe instead of time based, it could autosave after a set number of edits?  wouldnt really fix jojo's problem tho.
maybe a flag in the mptm format that is 'activate autosave', and an option to only save modules with that set?

well, im just throwing some ideas out there, what do you guys think?
the last option is actually probably my favorite...
Title: Autosave only for certain files
Post by: bvanoudtshoorn on June 03, 2007, 10:01:16
I dunno... I kinda like the idea of only autosaving files stored in a particular directory. The trouble with a flag is this: say you write a track which is so absolutely mind-bogglingly terrific that you have to show everyone just how you did it, so you send it to all your mates. Now, you've got this "autosave" flag set, so when they open it up, they end up with backup copies when they fiddle around with it.

What about a differential autosave? So the first autosave contains all the data, the second one only the changes, and so on. This way will give the devs a bit of a headache, though, because when the first autosave is replaced by the second one, a whole heap of data has to be transferred. And it implies that you can guarantee data integrity across the autosaved versions...

Another idea - what about autosaving in something like the itp format? That is, don't actually save the samples. That way, the autosave will be a lot smaller. I can't think of many situations when you would need to open an autosaved file away from the computer you wrote it on... As far as I know, it's more of a backup thing for when you're busy with a piece or whatever. Of course, you'd have to be able to reload the samples correctly when you load the autosave. =)
Title: Autosave only for certain files
Post by: LPChip on June 03, 2007, 13:43:50
The best way is to use an .ITP as begin file.

If it autosaves, it will only auto save the patterns and not the samples.

Downside is that you can't really move an .ITP file unless you convert it to .IT first (or render to wav/mp3)
Title: Autosave only for certain files
Post by: Saga Musix on June 03, 2007, 15:22:26
i think that this is rather pointless if you are going to modify your samples... these wouldn't be changed in the autosave file...
Title: Autosave only for certain files
Post by: pelya on June 04, 2007, 07:31:24
The best option for me is the list of directories.
The flag inside file may also contain the name of currently logged Windows user, so if it doesn't match autosave disabled. Some kind of alternative is to check file creation and modification time - the first one should be greater if you saved the file at least once from MPT, and lesser if you copied the file to different path. If the file is copied to a friends in archive the archiver will set file's original date and time (WinRar does), so you should copy the file to another place before archiving it. That method will also work on all file formats :) .
The differential autosave will be headache definitely :wink: (at least until MPT code will contain general undo mechanism).
Title: Autosave only for certain files
Post by: LPChip on June 04, 2007, 07:36:21
Indeed. I guess that checking if a file is inside a directory is the best way.

I don't need auto save for all files anyway. I have one big working directory and when a song is finished, I move the file to another directory anyway.