I am posting this up here and in SPUF just to really help the community out.
Bernt AKA btdavis, The creator of The SFMPhysic's script, managed to figure out how to create an Autosave script for sfm
You can find it [url="https://github.com/btdavis/sfm-autosave"]Here[/url]
Now be careful This is a python script and the dragons you can find modifying python code is much much worse then those that lurk in element viewer.
When you get the script take the text and copy and paste it into your [sfm]/game/usermod/scripts/sfm/sfm_init.py file. This makes SFM activate the script upon initialization of a document.
Now onto it's options. due to how it is implemented we don't have nay GUI windows yet. So if you want to change how it acts you'll have to change it manually.
If you are new then I'll tell ya what code you can change
[code]saveInterval = 600 #seconds
addTimestamp = True #True creates new files for each save, False overwrites the original .dmx[/code]
These two lines of code are kinda self explainitory but still.
saveInterval is how many seconds it takes between saves Currently it is at 10 min. if you want 5 minutes do 300. You get the drill.
addTimestamp is how the file is saved. You can ether make the project save itself into seperate files for every ten seconds (which is nice sometimes and a memory clog at others) or you can have it constantly save over the same project (which means some of the changes you don't like will be permanent)
To make it resave over a single file change this value to False (yes with a capital)
Enjoy and remember to thank Bernt! Lord knows how many files he had to dig through to find the sfmApp library.
I was excited for this until I remembered that I already compulsively save every scene I'm working on after every little change.
Still, I can see how this would be pretty useful.
I compulsively CTRL-S after every change as well but this is neat.
Your my project saver! Thanks!
Sorry, you need to Log In to post a reply to this thread.