Homebrew CaVE Database Manager - A SNES, NES, N64, Genesis Switch Online modding App

lisko

Well-Known Member
Member
Joined
Oct 28, 2018
Messages
125
Trophies
0
Age
33
XP
629
Country
Italy
@DarkAkuma what about changing the linked rom within Cave? So for example I can relink A link to the past to my translated rom without having duplicates. It's only a minor thing but could be useful.
 

RadMcFist

Well-Known Member
Member
Joined
Sep 16, 2019
Messages
114
Trophies
0
Age
39
XP
698
Country
United States
@DarkAkuma what about changing the linked rom within Cave? So for example I can relink A link to the past to my translated rom without having duplicates. It's only a minor thing but could be useful.
To do that without adding duplicates, just name your sfrom 2024_e.sfrom and put it in a folder named S-2024_e; or 2024_j.sfrom and S-2024_j if you're using SFC Online. The app will load that instead of the stock game, just like with everything with LayeredFS. You can also edit the rom path within CaVE itself, but that's just complicating things unnecessarily.

Since you mention a translation, be careful though if you're using PAL games that that tends to lead to issues, like 18Phoenix can attest to, on top of the usual issues a translation patch can add. It should still work, though.
 

DarkAkuma

Well-Known Member
OP
Member
Joined
Sep 20, 2008
Messages
412
Trophies
1
XP
2,458
Country
United States
@DarkAkuma what about changing the linked rom within Cave? So for example I can relink A link to the past to my translated rom without having duplicates. It's only a minor thing but could be useful.

Now that I know that the stock games can be even removed from the database. Yea. I can look into allowing you to change the rom too. You can already edit the rom path, but that would require you to create the ROM file at the new path outside of CaVE. I already needed to rethink the import setup a little anyway, because atm you cant create SP versions of games. NES supports that, but I'm sure SNES will too... soon enough.

Both options will probably be available from a right click/Edit menu option.
 

DarkAkuma

Well-Known Member
OP
Member
Joined
Sep 20, 2008
Messages
412
Trophies
1
XP
2,458
Country
United States
Awesome soft !

Too bad that creating covert art is such a pain in the ass ...

If you mean, just converting normal images to xtx.z? Well, for now you have Switch Toolbox. Its not hard to use software. In fact, you can make the process even easier by just making a copy of one of the stock images in the CaVE "/images/" sub directory, renaming that copy, opening it in Switch Toolbox, and right click on "Texture 1" in the left panel and selecting "Replace". From there, just select your source image and save.

I do plan on adding support for importing and converting images directly. I just deemed it not necessary for the programs launch, as it would delay things a bit. The code I used to display xtx.z images itself barely works, and does have some issues. I need to spend a proper amount of time focusing on doing the support right.

If you mean just that, its a pita to find decent box images, or make them yourself. Yea. I can see that. There was a lot of work done for various type of cover art styles in the SNESC community. The resolutions there were smaller though. but perhaps one of the packs might suit needs enough.

I'm sure someone will make a SNES / NES Online art package at some point, same as SNESC.
 

lisko

Well-Known Member
Member
Joined
Oct 28, 2018
Messages
125
Trophies
0
Age
33
XP
629
Country
Italy
If you mean, just converting normal images to xtx.z? Well, for now you have Switch Toolbox. Its not hard to use software. In fact, you can make the process even easier by just making a copy of one of the stock images in the CaVE "/images/" sub directory, renaming that copy, opening it in Switch Toolbox, and right click on "Texture 1" in the left panel and selecting "Replace". From there, just select your source image and save.

I do plan on adding support for importing and converting images directly. I just deemed it not necessary for the programs launch, as it would delay things a bit. The code I used to display xtx.z images itself barely works, and does have some issues. I need to spend a proper amount of time focusing on doing the support right.

If you mean just that, its a pita to find decent box images, or make them yourself. Yea. I can see that. There was a lot of work done for various type of cover art styles in the SNESC community. The resolutions there were smaller though. but perhaps one of the packs might suit needs enough.

I'm sure someone will make a SNES / NES Online art package at some point, same as SNESC.
Or auto scraping of games arts and metadata like emulation station would be wonderful... Just dreaming!
 

MeteK

Well-Known Member
Member
Joined
Dec 31, 2012
Messages
367
Trophies
1
Age
43
XP
1,261
Country
France
If you mean, just converting normal images to xtx.z? Well, for now you have Switch Toolbox. Its not hard to use software. In fact, you can make the process even easier by just making a copy of one of the stock images in the CaVE "/images/" sub directory, renaming that copy, opening it in Switch Toolbox, and right click on "Texture 1" in the left panel and selecting "Replace". From there, just select your source image and save.

I do plan on adding support for importing and converting images directly. I just deemed it not necessary for the programs launch, as it would delay things a bit. The code I used to display xtx.z images itself barely works, and does have some issues. I need to spend a proper amount of time focusing on doing the support right.

If you mean just that, its a pita to find decent box images, or make them yourself. Yea. I can see that. There was a lot of work done for various type of cover art styles in the SNESC community. The resolutions there were smaller though. but perhaps one of the packs might suit needs enough.

I'm sure someone will make a SNES / NES Online art package at some point, same as SNESC.
Ok but directly on Switch Toolbox, there's a tutorial somewhere ? i just can't figure how to do it....

[EDIT] Ok understood, once a game is added with your soft, the xtx.z is automatically created, just have to modify it with toolbox after ...
 
Last edited by MeteK,

RadMcFist

Well-Known Member
Member
Joined
Sep 16, 2019
Messages
114
Trophies
0
Age
39
XP
698
Country
United States
Ok but directly on Switch Toolbox, there's a tutorial somewhere ? i just can't figure how to do it....

[EDIT] Ok understood, once a game is added with your soft, the xtx.z is automatically created, just have to modify it with toolbox after ...
Double clicking on a thumbnail within CaVE lets you change that image for an xtx.z image of your own, so I find it easier to just have a template (just copy the one from CaVE's "images" folder, like DarkAkuma said), modify that with Switch Tool, then within CaVE double click the cover thumbnail and choose the image I just modify, then save. Rinse and repeat for every cover or title screen that you want to change, even the stock games ones.
 

DarkAkuma

Well-Known Member
OP
Member
Joined
Sep 20, 2008
Messages
412
Trophies
1
XP
2,458
Country
United States
Double clicking on a thumbnail within CaVE lets you change that image for an xtx.z image of your own, so I find it easier to just have a template (just copy the one from CaVE's "images" folder, like DarkAkuma said), modify that with Switch Tool, then within CaVE double click the cover thumbnail and choose the image I just modify, then save. Rinse and repeat for every cover or title screen that you want to change, even the stock games ones.

Now that I think about it, the double click on the images to select new ones, isnt completely obvious. In a future version I need to at least add a tooltip message, or a right click menu option.
 

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,784
Trophies
1
Age
44
XP
6,504
Country
Germany
@DarkAkuma (nice nick btw)
Can we also extract the roms with this from SNES and NES Online?
Without starting a big discussion this would be an interesting way of obtaining roms a bit more legally than downloading them from anywhere.
At least if we only use them as long as we're subscribed to Nintendo Online lol.
 

DarkAkuma

Well-Known Member
OP
Member
Joined
Sep 20, 2008
Messages
412
Trophies
1
XP
2,458
Country
United States
@DarkAkuma (nice nick btw)
Can we also extract the roms with this from SNES and NES Online?
Without starting a big discussion this would be an interesting way of obtaining roms a bit more legally than downloading them from anywhere.
At least if we only use them as long as we're subscribed to Nintendo Online lol.

Sorry. I thought I responded to this earlier, but guess I did not.

You can extract them on your own. But neither CaVE or SFROM Tool have anything to do with that. That would require extracting files from an nsp, which these tools do not need to do for anything. In fact, CaVE is designed around you specifically not having to do that at all because it can be a confusing pain in the ass.

As far as legality goes. I could comfortably argue that I own the ROMs on my SNES Classic. But as switch online is a service, its more like you are renting access to them. I don't think there's much of a argument for treating this like a legal method of having the ROMs like SNESC or even previous Virtual Consoles.

That said, you are free to make your own choices. Look into using hactool to extract files from a nsp. That will have nothing to do with these projects however, so look for guidance elsewhere. Sorry.
 
  • Like
Reactions: lordelan

RadMcFist

Well-Known Member
Member
Joined
Sep 16, 2019
Messages
114
Trophies
0
Age
39
XP
698
Country
United States
I added 30 games at once (control on multiple .sfrom) and most of games has the name of another game.
Can you be a bit more specific with your issue? I have tested this thing very extensively for quite a while now and I cannot reproduce your issue, if I'm understanding it correctly. Just in case, I just added over 60 games in one go and they were all given the same name as the rom in the database, as is supposed to be. I tried both dragging and dropping and through the Import Sfrom option and both worked perfectly.
 

0bvious

Well-Known Member
Member
Joined
Oct 1, 2007
Messages
174
Trophies
1
XP
884
Country
I was wondering if anyone had found a clever way to auto-generate .xtc.z files yet?

There is a really good collection of SNES front covers here. I am sure there is an equivalent title screen database out there. With the process automated it would be a breeze to have a hosted database of all the covers etc. or just download them all to Cave and have them auto attach to the games.

The process at the moment is extremely tedious
 

0bvious

Well-Known Member
Member
Joined
Oct 1, 2007
Messages
174
Trophies
1
XP
884
Country
Has anyone figured out how the save games are different from the SNES Classic (or otherwise)? I tried just copying over sram and save states and it doesn't seem to work.
 

DarkAkuma

Well-Known Member
OP
Member
Joined
Sep 20, 2008
Messages
412
Trophies
1
XP
2,458
Country
United States
Has anyone figured out how the save games are different from the SNES Classic (or otherwise)? I tried just copying over sram and save states and it doesn't seem to work.

Me and RadMcFist messed with saves a little.

I know they got rid of the .sram hashing stuff in favor of a more normal sram. So using the "canoe .sram to .srm" option in SFROM Tool would be useful for going from SNESClassic to Switch Online.

Save states... well. They are a different format. Switch Online now uses a single "state" file, compared to SNESC which used a "state.time" and rollback directory of multiple files. Sizes do not match up for 1 to 1 conversions. I think on the SNESC savestates were pure rewind recordings, while on Switch Online they are just snapshots. So conversions would not be easy, if possible.

It's not something I plan on looking into any time soon. So sram conversions will have to suffice.
 
Last edited by DarkAkuma,

0bvious

Well-Known Member
Member
Joined
Oct 1, 2007
Messages
174
Trophies
1
XP
884
Country
Me and RadMcFist messed with saves a little.

I know they got rid of the .sram hashing stuff in favor of a more normal sram. So using the "canoe .sram to .srm" option would be useful for going from SNESClassic to Switch Online.
Thanks. That explains it. I got them working! Except.... Front Mission: Gun Hazard. I seem to remember this had some weird save-based problem on Canoe that was eventually patched by sluffy. The game loads fine in SNES Online, and it saves great too (I seem to remember that you had to rely on save states to bypass the srm problem on SNES Classic). But if I try and load my old Canoe srm/sram it defaults back to zero saves. I had all these saves also working great on a Super NT and flash cart, so the Gun Hazard issue is something to do with how Canoe handles it.

I just mention this because it might make an interesting test case for thing at some point.

Also extremely sad that Terranigma fails to get past the opening menu :(

Thanks for all your work on this! I look forward to updates. A couple of minor things I noticed:

- If you try to delete several games at once from CaVE it is prone to crash
- It would be great if changing info in the advanced section of CaVE actually affected the filenames etc. At the moment I can change the info, which changes the database entry, but the file names remain the same, so it's really easy to edit the sfrom name and then have it pointing to the wrong place in the database.
- .jpg and .png artwork import would obviously be a huge addition :)
- I realise this is probably a big ask, but I found this .nro for homebrew on Switch, which allows you to easily turn your Switch into an MTP file system in windows. You plug your Switch in via usb, load it on the Switch side, and then your SD Card is mounted and becomes browseable in the Windows file system. I was using this to copy over the titles/01008D300C50C000 folder manually from CaVE. A really simple/fantastic adaption to CaVE would be a way to push file updates over MTP from within the program.

Thanks again
 
Last edited by 0bvious,

DarkAkuma

Well-Known Member
OP
Member
Joined
Sep 20, 2008
Messages
412
Trophies
1
XP
2,458
Country
United States
Except.... Front Mission: Gun Hazard. I seem to remember this had some weird save-based problem on Canoe that was eventually patched by sluffy.

Did you try sluffys patch on SNES Online too? Many of the snesc canoe fixes are still relevant on the switch.

Also extremely sad that Terranigma fails to get past the opening menu :(

There will be a fix released for that soon. As well as the other quintet games.

I've been trying to work on a complete SFROM Tool update for the switch format of .sfroms. I have all params at least somewhat understood now, but not as completely as I'd like. RadMcFist made some major discoverys with his testing that fix the quintet game issues.

- If you try to delete several games at once from CaVE it is prone to crash

I'll look into that. When I think about it, there hasent been a ton of testing with deleting games as its more common to be adding games. So I'm not surprised an issue would slip by like that.

- It would be great if changing info in the advanced section of CaVE actually affected the filenames etc. At the moment I can change the info, which changes the database entry, but the file names remain the same, so it's really easy to edit the sfrom name and then have it pointing to the wrong place in the database.

This is something already planned. At least as far as having editing the Code entry update other things.

- .jpg and .png artwork import would obviously be a huge addition

Yea. I know. This is top of my todo list for CaVE. I've just been focused on SFROM Tool lately as it had fallen way behind and still needs an official update.

- I realise this is probably a big ask, but I found this .nro for homebrew on Switch, which allows you to easily turn your Switch into an MTP file system in windows. You plug your Switch in via usb, load it on the Switch side, and then your SD Card is mounted and becomes browseable in the Windows file system. I was using this to copy over the titles/01008D300C50C000 folder manually from CaVE. A really simple/fantastic adaption to CaVE would be a way to push file updates over MTP from within the program.

This was kind of the idea behind the Export option, but my thinking was a bit outdated and... yea. I don't know much about the MTP protocol atm. So that idea kind of fizzled out as I figured it would take some time to properly support.
 
Last edited by DarkAkuma,

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
766
Trophies
1
XP
2,298
Country
Germany
There will be a fix released for that soon. As well as the other quintet games.

I've been trying to work on a complete SFROM Tool update for the switch format of .sfroms. I have all params at least somewhat understood now, but not as completely as I'd like. RadMcFist made some major discoverys with his testing that fix the quintet game issues.

OMG, that would be awesome to get the Quintet games working. :lol:
Can we await results during this week ? :shy:
 

0bvious

Well-Known Member
Member
Joined
Oct 1, 2007
Messages
174
Trophies
1
XP
884
Country
Did you try sluffys patch on SNES Online too? Many of the snes Canoe fixes are still relevant on the switch.
Ah ha! I had tried this two different ways:

1. Take my Sluffy patched SFROM working on SNES Classic and convert it straight to SFROM for SNES Online (in SFROM Tool) - this didn't work.
2. Take an unpatched ROM and convert for SNES Online - this didn't work.

then...

3. After your reply I took an unpatched ROM (it already has Aeon Genesis ENG translation) added it to SFROM Tool and add Sluffy's patch directly to it, then save for SNES Online - THIS DID WORK!

Worth noting the difference, since it might not be possible to just convert all Sluffy's patched SFROMs straight to SNES Online format. Anyway, result is fantastic. Thanks

This was kind of the idea behind the Export option, but my thinking was a bit outdated and... yea. I don't know much about the MTP protocol atm. So that idea kind of fizzled out as I figured it would take some time to properly support.
OK export makes sense now. Using the simple MTP .nro I can export straight from CaVE onto my Switch via Windows Explorer. It might be worth just bundling that .nro with CaVE, then your export could automatically point to the Switch if it has already been mounted (obviously people would have to install that into their own homebrew).

Thankyou again.... I am really looking forward to seeing where this all goes.

On a connected note, here you can find most of the USA SNES art collection, and here is a .zip containing most SNES and many JAP SNES game title screens. If someone could just autoconvert all these to xtx.z format they would be ready to use.
 
Last edited by 0bvious,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    It could get banned from PSN but you can change your ID I think?
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
  • BakerMan @ BakerMan:
    guys, my fuckin headphones have an out of place speaker
  • K3Nv2 @ K3Nv2:
    Did you try wearing them?
    K3Nv2 @ K3Nv2: Did you try wearing them?