Kitty Corp Meow Mix Forums

Super Smash Bros. Brawl Hacking => General Hacking Discussion => Topic started by: Syvkal on April 21, 2018, 02:03:18 PM



Title: Virtual SD Sync
Post by: Syvkal on April 21, 2018, 02:03:18 PM
(https://i.imgur.com/dLKo8vp.png)
Virtual SD Sync
Version: 0.1.3.1 (http://forums.kc-mm.com/Gallery/BrawlView.php?Number=215734)


A collection of utilities and scripts to automate updating your virtual SD card.

You choose a folder and your sd.raw file, then run the program to sync between them.
Only copies files that have been modified or newly added. It can also optionally purge old files from the SD card that no longer exist in your mods folder.

Features

  • Mount sd.raw files as a virtual Windows drive
  • Sync files between your build directory and the sd.raw file
  • Unmount virtual drive after syncing
  • Load Dolphin after sync (optional)
  • Load Dolphin save state on start (optional)
  • Create new sd.raw file if required

Notes

  • Make sure to backup your data
  • Once the Setup is done, everything should be safe and easy to use
  • Can be pinned to the taskbar for ease of use

Changelog


Version: 0.1.3.1
  • Major bug fix
Version: 0.1.3.0
  • Switched from using OSFMount to the more reliable ImDisk
  • Remodeled the GUI
  • Reduced file and ini clutter
  • Added a delay to help prevent errors when unmounting the SD Card too fast

I'd appreciate any error reports, I tried my best to make it a standalone package. Hope you like it!


Title: Re: Virtual SD Sync
Post by: okotochiken on April 21, 2018, 02:16:25 PM
Duuude. This is so gonna come in handy - Thanks for taking the time to make it!


Title: Re: Virtual SD Sync
Post by: Ricardo慤 on April 21, 2018, 06:54:47 PM
I love this, I'll be using it a lot for updating Dolphin mods. Thanks a bunch.


Title: Re: Virtual SD Sync
Post by: Syvkal on April 22, 2018, 03:02:42 AM
Glad you guys like, hope it comes in handy!

Also, minor update.
Previously it was ignoring any old versions of files.
I realized that people may want to revert changes and use an older version, so I've updated the batch file to perform a proper sync


Title: Re: Virtual SD Sync
Post by: Syvkal on June 29, 2018, 08:27:07 AM
Updated to Version 0.1.3.0

Changelog in the first post.
Major changes involve a better GUI, bug fixes, and the switch to using ImDisk.


Updated to Version 0.1.3.1

Major bug fix... whoops


Title: Re: Virtual SD Sync
Post by: SinusStudios on September 01, 2018, 08:29:09 AM
This tool is very useful, but does it check actual dates..?
As in does it not overwrite if the source file has an older date?
If that's the case, there should be a setting to toggle "always mirror" i.e. make the SD contents equal to the source no matter what dates.
Also i'm having trouble getting savestates to work, when i make some in the emulator it doesn't find them - no matter if started from VSDSync or not.


Title: Re: Virtual SD Sync
Post by: Syvkal on September 03, 2018, 02:47:10 AM
Updated the description so it's a bit clearer.

It only copies files if they have changed in someway (if the Timestamp OR the file size differs) or if they are new files (exists in your mods folder, but not in the sd.raw).

The purge option makes it so the sync is an outright mirror and deletes files from the sd.raw that are no longer in your mods folder.

As for the savestates on the emulator, does it say not found or does it say they were made with a different version of Dolphin?
I don't see how this could be related to VSDSync in any way, however, I could be wrong.

I believe I ran into this issue before as well, but it was before I made VSDSync.
They work on the main install I have of Dolphin, but none of the development versions...
Sorry I can't be of more help =/


Title: Re: Virtual SD Sync
Post by: SinusStudios on September 14, 2018, 10:10:07 AM
The save state thing was actually my own fault or something, it works now, only Dolphin fires the save state load very delayed but that's just Dolphin i guess.
For modding Brawl / PM it's not very useful if you already use Skip Strap and Skip to CSS codes, since the save-state load will always load the same assets, only when you enter Stage screen and go back it updates etc. so save states never load updated content - you have to load them manually and for that pressing Tab for speeding up emulation is a bit more helpful imo.

Still, thank you SO MUCH for this tool!


Title: Re: Virtual SD Sync
Post by: Syvkal on September 14, 2018, 09:38:20 PM
The save state load occurs at the earliest possible opportunity.
Basically it waits for the information on the window title to update to show it has actually loaded the game, then it sends the command to load the save state.

Saving your state stores exactly how your game was at that moment.
If you are testing changes to stages, you save on the stage select screen and then pick the stage after loading.
If you are testing character changes, either save in the main menu or (as you mentioned) save in the stage select screen and go backwards.

I have my save state set up so I do not need to select a character each time nor change my default settings to timed mode (to allow me to play a stage one player)

Glad you like the tool and good luck modding.


Title: Re: Virtual SD Sync
Post by: Adsixnine on September 18, 2018, 10:56:33 PM
oh nice
thank you guy