Stencyl 3.4.0 is now out. Get it now!

[Extension] Keep'em Safe!

Alexin

  • *
  • Posts: 3132
Keep'em Safe! is an extension that creates a ZIP file of the current game/kit to back it up. There are currently two options:

1) Backups are saved in the games folder of the current workspace or in a specified folder.

2) Saving a game backs it up automatically. This one can be a life saver, though I prefer to do it manually to control which versions are backed up.

The generated ZIP isn't compressed - it simply stores the game folder.

How to Install

Grab it on StencylForge (next version coming after b368).


Disclaimer

I tested the extension on W7 only. Integrity of ZIP files was verified using WinRAR. If you get an error it's most likely because the folder isn't writable or a previous backup of the same game/kit is being used - no harm done.
Because of the reasons above I don't take responsibility for whatever damage the extension may cause.

Report any bugs here, please. Thanks.

Enjoy!


TODO for 0.2

- Validate alternative folder.
- Make it clearer when the workspace folder is being used.
- Show some confirmation if you backup via the menu.

« Last Edit: September 08, 2011, 09:25:30 pm by Jon »
"Find the fun"
alexin@stencyl.com

Alexin

  • *
  • Posts: 3132
I want to release 0.2 but I also need the ability to enable/disable the save button. Jon, do you mind if I modify OptionsPanel and ExtensionCP to allow it? If possible I would also like to expose the file chooser's AutoVerifyField to explore its feedback capabilities.

« Last Edit: April 06, 2011, 05:35:10 pm by Alexin »
"Find the fun"
alexin@stencyl.com

Jon

  • *
  • Posts: 17515
Sure, you're free to edit anything you'd like to improve your extension.

Alexin

  • *
  • Posts: 3132
The warning text and icon refuse to show up no matter what I do. >:V
"Find the fun"
alexin@stencyl.com

Jon

  • *
  • Posts: 17515
There is a call currently that disables them. Something like hideError.

Alexin

  • *
  • Posts: 3132
It's disableErrorIcon() and I modified AutoVerifyField so the the error icon could be enabled/disabled at runtime, as well as the error message. I've tried plenty of solutions and inspected other parts of SW, but I couldn't make it work.
"Find the fun"
alexin@stencyl.com

Jon

  • *
  • Posts: 17515
Did you implement the code for actually determining whether an error should be shown or not? The field verifier.

Alexin

  • *
  • Posts: 3132
I did and it works. I must be missing something so I'll look at it again later.
"Find the fun"
alexin@stencyl.com

Jon

  • *
  • Posts: 17515
Did you have a chance to update this? I'd like this one to go out to the public.

Alexin

  • *
  • Posts: 3132
I'm on it.

Can you tell me again what is the improvement/fix you referred before, please? I can't find where it is.

In fact, I remember I released a version newer than the one corresponding to the opening post. It addressed some suggestions (including yours).

Anyway, I just built and tested it again. I'll send it to you via email.

« Last Edit: September 16, 2011, 04:13:28 am by Alexin »
"Find the fun"
alexin@stencyl.com

Jon

  • *
  • Posts: 17515
Mainly this bug

1) Make a new game
2) Save
3) Modal dialog appears

Alexin

  • *
  • Posts: 3132
I see. It looks like SW and the extension are somehow conflicting with that scenario. Neither can SW read game.xml nor the extension is able to backup.

Investigating...
"Find the fun"
alexin@stencyl.com

sixcorners

  • Posts: 10
Updates? Where did it go? What happened to it?

Alexin

  • *
  • Posts: 3132
No updates, though if I make one it will be to create multiple backups, so a failed game doesn't corrupt the only backup.

I don't know why it isn't on Forge, if that's what you're asking.
"Find the fun"
alexin@stencyl.com

sixcorners

  • Posts: 10
I don't know why it isn't on Forge, if that's what you're asking.
That is correct. I was wondering if I could get a copy. Where does it back up the project to exactly? Another place on the computer or is there a web service you have set up so the copies are kept online? Dropbox maybe?