Homebrew [POC] Save Repository

Scarecrow B

ScrapTown
OP
Member
Joined
Dec 29, 2015
Messages
397
Trophies
0
XP
2,454
Country
Mexico
First of all, I'm not sure if this is the right place to post this, so if I'm wrong please move it to the correct section.

This is more a proof of concept rather than a release, but still I wanted to discuss this topic and see if there is anyone working on something similar.

Problem:

The 3DS Scene has lots of useful homebrews for downloading a lot of stuff, from themes to full games, but for saves (regular and edited) you have to browse through all the forum to see if there a save that fits your needs (because you are too lazy to play the game, lost your previous save, etc...), and yes.. I know there is already a thread for sharing saves but it is hard to find a specific save among all those pages and some saves are just for Gateway.

Solution:

Since there is already a great 3DS save manager I thought that could be reused as a starting point for sharing saves, and by using a free storage option like Mega, GDrive, or similars the only thing missing was some kind of interface/app to upload/download the saves and transfer them JKSM (I chose to use FTP for this).

And since I was on vacation these past two weeks I made this little example showing a free option for sharing saves (using free hosting and mega api).

Here is the code: https://github.com/Mithrenes/3DSSaveRepository
Download: https://github.com/Mithrenes/3DSSaveRepository/releases/latest

The idea is to take advantage of Mega's 50 GB of free storage to upload the saves and using a free hosting’s (or a cheap one) database for storing basic data for downloading and uploading there shouldn't be major issues. Anyway, my first attempt resulted in this.


2017-06-17_00-49-27_zpsra7swc1e.png

2017-06-17_02-00-21_zpsuyzniziw.png

2017-06-23_02-23-47_zpsntawobkr.png


Right now, it scans the folder JKSM uses for saves and also checks if there is ExtData for the selected save. When downloading/uploading it connects through FTP to the 3DS and transfers the files to the right place, then the user can load the save using JKSM.

For now, this is only for 3ds saves but by changing just save type it is possible to make a repository for other system's saves. And if there is also a save manager and ftp for those systems then the same concepts apply. I'd like to use this thread to discuss the viability of such project and/or if there is already something similar.

Finally, sorry for my bad English.


-------------------- ADITIONAL INFO --------------------
API

Getting all saves:
Url format : website/api.savecentral.com/v1/files_data/
http://repository.net46.net/api.savecentral.com/v1/files_data/
It will return a JSON like this:
{
"status": 1,
"Saves": [
{
array info
}
]
}
status 1 means everything went ok. Any other status is a fail.

Getting download link for determined file:
Url format : website/api.savecentral.com/v1/files_data/web_encoded_filename

http://repository.net46.net/api.sav...ject_Mirai_DX_proyect+mirai+dx_ScarecrowB.zip
It will return a JSON like this:
2017-06-20_21-20-55_zpssz9rspsa.png

-------------------- LOOKING FOR TESTERS --------------------
Things that need to be tested:

- Need people who can upload Japanese saves in order to test sorting and searching stuff.
- People with a lot of saves, this includes: multiples saves for the same game (for the same and different region), saves for games with ExtData in addition to save data, saves which uses a lot of inner folders (like Pokémon), etc. It doesn't matter if the saves aren't completed or advanced, just add a description saying how much progress includes.
- Also, referring to the above point, try to upload as many saves as possible in a single session (as a sort of mini stress test).
 
Last edited by Scarecrow B,

Scarecrow B

ScrapTown
OP
Member
Joined
Dec 29, 2015
Messages
397
Trophies
0
XP
2,454
Country
Mexico
So, now I'm looking for a few beta testers to see how far this project can go. Nothing serious, just need some people with backed up saves (backed with JKSM) and who are willing to share them.
For testing you just need 3 things:
FTP homebrew (I use FTPD)
JKSM homebrew
The app from first post.

Basically just open FTPD (or whatever you are using for ftp) and then open in your pc the save repository. For uploading first create an account and set your 3DS IP as showed by the ftp, then you should see all your backed up saves in the Upload Save tab and there you can select which slot you want to share. For downloading you don't need an account just open your ftp homebrew from your 3DS, set your IP and double click a save to transfer it to JKSM.

Report any error/suggestion here or directly on github.
 
Last edited by Scarecrow B,

Giodude

GBAtemp's official rock
Member
Joined
May 17, 2015
Messages
5,094
Trophies
1
Age
23
Location
New York
XP
2,761
Country
United States
Not a bad idea, and sounds like an easy solution to implement. Hopefully in the future ftp and jksm could be merged into a program that backs up all of your saves to a computer automatically. Again not too hard to bodge together.
 
D

Deleted User

Guest
Dude, this is great. Hopefully save cloud will be implemented without PC. =)
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,249
Trophies
4
Location
Space
XP
13,802
Country
Norway
I like the program, easy to use and functional.
You might want to separate saves by game, sort alphabetically and have a "jump to letter" function, no rush though, it's just something that will be really useful when there are a lot of saves uploaded.
It would be awesome if it ran on the 3DS and had save export/import built in :)
 
  • Like
Reactions: BL4Z3D247

Scarecrow B

ScrapTown
OP
Member
Joined
Dec 29, 2015
Messages
397
Trophies
0
XP
2,454
Country
Mexico
Dude, this is great. Hopefully save cloud will be implemented without PC. =)

This seems great! If an FTP client could be built in, plus an app for the 3DS itself made, this would be amazing.

I'm also working on the api part so if anyone with good C/C++ wants to help then it "should" be possible to do the same from the 3DS, for uploading and downloading. Though, as I'm using Mega as cloud storage I'm not sure if mega api is homebrew friendly.

I like the program, easy to use and functional.
You might want to separate saves by game, sort alphabetically and have a "jump to letter" function, no rush though, it's just something that will be really useful when there are a lot of saves uploaded.
It would be awesome if it ran on the 3DS and had save export/import built in :)

Yes, that's already in my to do list but first I want to see if there are any critical errors/bugs that need fixing, and also I'd like to see how the dynamic listbox reacts when there is alot of saves before implementing more detailed listings.
 
  • Like
Reactions: Deleted User

Scarecrow B

ScrapTown
OP
Member
Joined
Dec 29, 2015
Messages
397
Trophies
0
XP
2,454
Country
Mexico
Update:
Added API for getting saves info/DLink (still in beta), better sorting/filtering (sorting "should" work with japanese characters) and option to "update" your already uploaded saves by rigth clicking the one you want to update (3DS must already be connected through FTP). Also implemented autoupdater for the app.
 
  • Like
Reactions: DeoNaught

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Sonic Angel Knight @ Sonic Angel Knight: :ph34r: