Support SFMLab on Patreon

AutoSaver v1.0


Description

This is my version of an auto save for sfm. took about a day and a half to finish.

This script is in beta so report any issues

FAQ

1) what does this script do?

this script automatically saves the current session

2) How do i access it?

its located in the drop down menu in scripts on the menubar.

3) How do i use it?

select the time interval between each save( ranges 1-10 min) then select how many save files do you want to keep.
this will loop the number of files you pick and overwrite the old ones for ex: session_1.dmx session_2.dmx etc..

4)where are the files saved?

"usermod\elements\sessions\autosaves\"

5) any thing i should know before i use it?

yes a few things

  1. once you click start you can close the script window and it will keep working, until you close sfm but if you open it again the loop will stop. then you need to click start again

  2. if you use start up option note: that sfm needs to to restart to take change and the script will start one min after sfm started up and the main window gets focused.

  3. depending on your specs , if it takes you longer than a min to load a session and the script doesn't start the loop, then you might need to increase the start delay. how?: go to platform\scripts\sfm\ and usermod\scripts\sfm\ and edit file sfm_init.py find the line saveTimer.start(60000) and change the number,(1 min=60,000)

  4. once started the script saves any session used meaning if you open or change to a new session it will keep working and autosave the new current session

  5. the file name for the saved session is from the movie name in the element viewer not the file itself. you could change the name during the loop and the new save file name will be updated where to find: open element viewer --> click the home icon --> expand active clip--> name

  6. when you go to file-->save, it saves it as the last autosave file in the autosave folder, you should do save-as with the original save file instead.

install file here:

workshop\scripts\sfm\mainmenu\Auto saver\

feel free to modify the script for your own use.
if you find any bugs or have suggestions message me in the comments below



Comments

ohgodzilla

neato

ohgodzilla posted 3 years, 2 months ago

ComradeXSnarky

For a person with a short attention span, a metric shit tonne of models, and a SFM that crashes due to browsing aforementioned models, this is going to save me a lot of headaches! Thank you!

ComradeXSnarky posted 3 years, 2 months ago

juliojakers

is this add more save file ? or replace the opened save file ?? I'm still worried it's like Skyrim autosave.. that create more file each autosave started...

juliojakers posted 3 years, 2 months ago

msu355

@juliojakers, this doesn't replace the saved files you made, it just lets you choose to have between 1-10 different save files which loop back and overwrite the old ones in what ever time interval you choose.

msu355 posted 3 years, 2 months ago

Gravenstien

Yay

Gravenstien posted 3 years, 2 months ago

Well, don't know if this is still being developed, but it's screwing up. When you create a file, let's say "example.dmx", there actually is no file created- usually in usermod/elements. The program does save through the elements/autosave folder where it creates "example_1.dmx" and when you open SFM again, it loads the last autosave. The more important thing is that it fucks up saving manually- when I saved and quit sfm to adjust shadowmapsize-related lag, opening the last autosave or any of the ones before it didn't give me any of my recent progress, and now that project has been fucked. Makes the most sense to store backups but still create the original project file in the usermod/elements folder.

Cufflux posted 2 years, 5 months ago

msu355

@Cufflux,those autosave files that the script creates are meant to be temporary. and only serve as backup in case sfm crashes or something gets messed up. it doesn't touch the original save file, to prevent any corruption that might happen. when you save manually make sure you do it as save-as and pick the original save file in usermod/elements instead. picking save will just save as the last auto-save file "example_3.dmx" and will get overwritten. also keep in mind if you haven't disable it, the sfm default autosave file pop up is not the same as this scripts auto-save files.

msu355 posted 2 years, 5 months ago


Leave a reply

You need to be logged in to leave a comment.

Support SFMLab on Patreon