Homebrew [POC] Save Repository

Scarecrow B

ScrapTown
OP
Member
Joined
Dec 29, 2015
Messages
397
Trophies
0
XP
2,458
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,458
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,315
Trophies
4
Location
Space
XP
13,893
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,458
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,458
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
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
    Karma177 @ Karma177: do y'all think having an sd card that has a write speed of 700kb/s is a bad idea? trying to...