View previous topic :: View next topic |
Author |
Message |
fik Member
Joined: 11 Oct 2006 Posts: 303
|
Posted: Tue Jul 08, 2008 12:47 am Post subject: Auto save plugin |
|
|
I have almost completed a auto save plugin. It saves rolling backups while you are working to zip files. I don't know if anyone would be interested. But if like me when you get modeling you find the time disapears and you have forgot to save for longer than is wise(as any crashes always seem to be after you spent a long while doing something tricky, and its all gone because you forgot to save for a few hours. Then you have to do all over )
Just got one bit I cannot work out how to do. That is to stop you being able to close DeleD before you close the plugin. As that causes an error loop that needs Task manager to close process to get out of. Other than that it seems to be all good
If anyone knows of a good file host let me know and I will put it up if you would like. |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Tue Jul 08, 2008 1:25 am Post subject: Re: Auto save plugin |
|
|
fik wrote: |
I have almost completed a auto save plugin. It saves rolling backups while you are working to zip files. I don't know if anyone would be interested. But if like me when you get modeling you find the time disapears and you have forgot to save for longer than is wise(as any crashes always seem to be after you spent a long while doing something tricky, and its all gone because you forgot to save for a few hours. Then you have to do all over )
Just got one bit I cannot work out how to do. That is to stop you being able to close DeleD before you close the plugin. As that causes an error loop that needs Task manager to close process to get out of. Other than that it seems to be all good
If anyone knows of a good file host let me know and I will put it up if you would like. |
Can't you just have your plugin check to see if DeleD is active before it does something, and then shut itself down? You can do a 'FindWindow()' call, with DeleD, and see if it exists. _________________
|
|
Back to top |
|
|
fik Member
Joined: 11 Oct 2006 Posts: 303
|
Posted: Tue Jul 08, 2008 4:09 pm Post subject: |
|
|
Thanks Daaark .I tried with that but that is only can close after DeleD closed and errors are popped up. Guess it not possible with plugins interface as it is, maybe some time in future there will be some way of Deled telling plugins it is closing.
I have uploaded to mediafire if anyone wants to look at plugin. As all working except you must close plugin before you close DeleD.
here is download link -
latest version see below
Any problems let me know i have only tested on XP. hope it of somne use to somebody.
Last edited by fik on Wed Aug 27, 2008 10:57 pm; edited 1 time in total |
|
Back to top |
|
|
trucker2000 DeleD PRO user
Joined: 11 May 2005 Posts: 1839 Location: Sacramento, California
|
Posted: Thu Jul 10, 2008 12:11 am Post subject: |
|
|
I've downloaded it and will give it a try. I'm always forgetting to save my work on regular intervals and get stuck redoing my work.
Thanks for making this plugging. _________________ Some day I will grow up and be a real modeler.
"Never give up! Never surrender!!"
Sys specs:
asus
8 gigs ram
Invidia gtx560 video card
Windows 8 (worst op sys Ever) |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Tue Aug 05, 2008 7:02 am Post subject: |
|
|
What I do in NuXporter (if I remember correctly) is to find and subclass the DeleD main window. When that window gets a NC_DESTROY message, I know that DeleD is closing down.
However, I think that a separate thread is a bad idea -- just post a timer on yourself that fires every 10 minutes or whatever. Within a timer message notification in the main thread, it's safe to call into DeleD to extract the scene. Or, perhaps even simpler, just post a ctrl-S key event to the main window :-) |
|
Back to top |
|
|
fik Member
Joined: 11 Oct 2006 Posts: 303
|
Posted: Sat Aug 09, 2008 11:53 pm Post subject: |
|
|
Thanks for all the advice. I found the answer in the end Had to Use and set DllProc.
So here is the fully working version which dosen't cause a crash if you forget to close it before DeleD.
latest version see below
Hope anyone who uses finds this better I do
Last edited by fik on Wed Aug 27, 2008 10:57 pm; edited 1 time in total |
|
Back to top |
|
|
fik Member
Joined: 11 Oct 2006 Posts: 303
|
Posted: Mon Aug 11, 2008 8:28 pm Post subject: |
|
|
Found there was a problem with new version. It stopped errors when open but made errors when not
This is modified version seems all ok both now
http://www.mediafire.com/?tbxdpjyifxx
version 1.2 |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Sat Aug 30, 2008 6:56 pm Post subject: |
|
|
Nice, the tray icon and the zipping are a real nice touch. Not so sure I like the enforced folder name, but for the average user that is probably the best (safest) choice. Good job! Haven't been able to crash it yet...
Uploaded it here.
Remark:
1. I am not sure if changing the values while the thing is running affect the settings immediately. If not, perhaps they should be greyed out until you hit the stop button, or there should be a little text explaining that. |
|
Back to top |
|
|
fik Member
Joined: 11 Oct 2006 Posts: 303
|
Posted: Mon Sep 01, 2008 12:06 am Post subject: |
|
|
Thanks Paul-Jan for finding time to check this out and putting in your plugin section. I was going to make the folder name changable maybe I should?
I liked the fact that if you zip a file it takes approx 1/10 the disk space so you can keep quiet a few backups at little cost
On changing the values while running this should effect settings immediately I will do some more testing of this to make sure it is the case. |
|
Back to top |
|
|
fik Member
Joined: 11 Oct 2006 Posts: 303
|
Posted: Tue Sep 02, 2008 11:10 pm Post subject: |
|
|
Have found this can still crash if you have not saved the scene at least once since you started a new scene or opened Deled. Am completely stumped at what to do to stop this
So please if you are using this plugin. Save your Scene at least once and you won't have problem. |
|
Back to top |
|
|
Lascar Member
Joined: 28 Feb 2010 Posts: 79 Location: Cornwall, England
|
Posted: Fri Mar 19, 2010 4:17 pm Post subject: |
|
|
I am searching for the autosave plug-in but the link on this thread is dead.
Is it available anywhere else?
Edit: Never mind (it's me) I found it on the other link
. |
|
Back to top |
|
|
|